Commit aff3eb043c4767e889cf95ba1ffa596fdaeb60ab
1 parent
b0bc7eb37a
Exists in
master
and in
1 other branch
update illustration interactive
Showing 4 changed files with 143 additions and 49 deletions Inline Diff
app/index.html
1 | <!doctype html> | 1 | <!doctype html> |
2 | <!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8" id="ng-app" ng-app=""> <![endif]--> | 2 | <!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8" id="ng-app" ng-app=""> <![endif]--> |
3 | <!--[if IE 8]> <html class="no-js lt-ie9" id="ng-app" ng-app=""> <![endif]--> | 3 | <!--[if IE 8]> <html class="no-js lt-ie9" id="ng-app" ng-app=""> <![endif]--> |
4 | <!--[if gt IE 8]><!--> <html class="no-js" ng-app> <!--<![endif]--> | 4 | <!--[if gt IE 8]><!--> <html class="no-js" ng-app> <!--<![endif]--> |
5 | <head> | 5 | <head> |
6 | <meta charset="utf-8"> | 6 | <meta charset="utf-8"> |
7 | <meta http-equiv="X-UA-Compatible" content="IE=edge"> | 7 | <meta http-equiv="X-UA-Compatible" content="IE=edge"> |
8 | <title></title> | 8 | <title></title> |
9 | <meta name="description" content=""> | 9 | <meta name="description" content=""> |
10 | <meta name="viewport" content="width=device-width"> | 10 | <meta name="viewport" content="width=device-width"> |
11 | <!-- Place favicon.ico and apple-touch-icon.png in the root directory --> | 11 | <!-- Place favicon.ico and apple-touch-icon.png in the root directory --> |
12 | <!-- build:css styles/vendor.css --> | 12 | <!-- build:css styles/vendor.css --> |
13 | <link rel="stylesheet" href="bower_components/bootstrap/dist/css/bootstrap.css" /> | 13 | <link rel="stylesheet" href="bower_components/bootstrap/dist/css/bootstrap.css" /> |
14 | <link rel="stylesheet" href="bower_components/font-awesome/css/font-awesome.min.css" /> | 14 | <link rel="stylesheet" href="bower_components/font-awesome/css/font-awesome.min.css" /> |
15 | <link rel="stylesheet" href="bower_components/select2/select2.css"> | 15 | <link rel="stylesheet" href="bower_components/select2/select2.css"> |
16 | <!-- bower:css --> | 16 | <!-- bower:css --> |
17 | <!-- endbower --> | 17 | <!-- endbower --> |
18 | <!-- endbuild --> | 18 | <!-- endbuild --> |
19 | <!-- build:css({.tmp,app}) styles/main.css --> | 19 | <!-- build:css({.tmp,app}) styles/main.css --> |
20 | <link rel="stylesheet" href="styles/main.css"> | 20 | <link rel="stylesheet" href="styles/main.css"> |
21 | <!-- endbuild --> | 21 | <!-- endbuild --> |
22 | </head> | 22 | </head> |
23 | <body ng-app="tshatsApp"> | 23 | <body ng-app="tshatsApp"> |
24 | <!--[if lt IE 7]> | 24 | <!--[if lt IE 7]> |
25 | <p class="browsehappy">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p> | 25 | <p class="browsehappy">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p> |
26 | <![endif]--> | 26 | <![endif]--> |
27 | 27 | ||
28 | <!-- Add your site or application content here --> | 28 | <!-- Add your site or application content here --> |
29 | <div class="container" ng-view></div> | 29 | <div class="container" ng-view></div> |
30 | 30 | ||
31 | <!-- Google Analytics: change UA-XXXXX-X to be your site's ID --> | 31 | <!-- Google Analytics: change UA-XXXXX-X to be your site's ID --> |
32 | <script> | 32 | <script> |
33 | (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ | 33 | (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ |
34 | (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), | 34 | (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), |
35 | m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) | 35 | m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) |
36 | })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); | 36 | })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); |
37 | 37 | ||
38 | ga('create', 'UA-XXXXX-X'); | 38 | ga('create', 'UA-XXXXX-X'); |
39 | ga('send', 'pageview'); | 39 | ga('send', 'pageview'); |
40 | </script> | 40 | </script> |
41 | <script type="text/javascript" src="bower_components/jquery/dist/jquery.min.js"></script> | 41 | <script type="text/javascript" src="bower_components/jquery/dist/jquery.min.js"></script> |
42 | <script type="text/javascript" src="bower_components/fabric.js/dist/fabric.min.js"></script> | 42 | <script type="text/javascript" src="bower_components/fabric.js/dist/fabric.min.js"></script> |
43 | <script type="text/javascript" src="bower_components/bootstrap/dist/js/bootstrap.min.js"></script> | 43 | <script type="text/javascript" src="bower_components/bootstrap/dist/js/bootstrap.min.js"></script> |
44 | <!--[if lt IE 9]> | 44 | <!--[if lt IE 9]> |
45 | <script src="bower_components/es5-shim/es5-shim.js"></script> | 45 | <script src="bower_components/es5-shim/es5-shim.js"></script> |
46 | <script src="bower_components/json3/lib/json3.min.js"></script> | 46 | <script src="bower_components/json3/lib/json3.min.js"></script> |
47 | <![endif]--> | 47 | <![endif]--> |
48 | <script type="text/javascript"> | 48 | <script type="text/javascript"> |
49 | var VERSION = '13-11_01'; | 49 | var VERSION = new Date().getTime(); |
50 | var require = { | 50 | var require = { |
51 | urlArgs: "ver="+VERSION, | 51 | urlArgs: "ver="+VERSION, |
52 | }; | 52 | }; |
53 | </script> | 53 | </script> |
54 | <script src="bower_components/requirejs/require.js" data-main="scripts/main"></script> | 54 | <script src="bower_components/requirejs/require.js" data-main="scripts/main"></script> |
55 | </body> | 55 | </body> |
56 | </html> | 56 | </html> |
57 | 57 |
app/scripts/controllers/tshirtdesign.js
1 | define(['app'], function (app) { | 1 | define(['app'], function (app) { |
2 | 'use strict'; | 2 | 'use strict'; |
3 | 3 | ||
4 | app.controller('TshirtdesignCtrl', function ($scope, $rootScope, $illustration) { | 4 | app.controller('TshirtdesignCtrl', function ($scope, $rootScope, $illustration) { |
5 | 5 | ||
6 | var canvas = new fabric.Canvas('main-design-container'); | 6 | var canvas = new fabric.Canvas('main-design-container'); |
7 | fabric.Object.prototype.transparentCorners = false; | 7 | fabric.Object.prototype.transparentCorners = false; |
8 | 8 | ||
9 | canvas.on('after:render', function() { | 9 | canvas.on('after:render', function() { |
10 | }); | 10 | }); |
11 | canvas.on({ | 11 | canvas.on({ |
12 | 'object:added': onIllustrationAdded, | ||
12 | 'object:moving': onIllustrationChange, | 13 | 'object:moving': onIllustrationChange, |
13 | 'object:scaling': onIllustrationChange, | 14 | 'object:scaling': onIllustrationChange, |
14 | 'object:rotating': onIllustrationChange, | 15 | 'object:rotating': onIllustrationChange, |
15 | 'object:selected': onllustrationSelected, | 16 | 'object:selected': onllustrationSelected, |
17 | 'object:modified': onllustrationModifield | ||
16 | }); | 18 | }); |
19 | |||
20 | var currentObj; | ||
21 | var listObj = []; | ||
22 | var stateObj = []; | ||
23 | var indexCurr = 0; | ||
24 | var indexCurr2 = 0; | ||
25 | var actionObj = false; | ||
26 | var refreshObj = true; | ||
27 | |||
28 | function onIllustrationAdded(options){ | ||
29 | var object = options.target; | ||
30 | console.log('object:added'); | ||
31 | |||
32 | if (actionObj === true) { | ||
33 | stateObj = [stateObj[indexCurr2]]; | ||
34 | listObj = [listObj[indexCurr2]]; | ||
35 | |||
36 | actionObj = false; | ||
37 | console.log(stateObj); | ||
38 | indexCurr = 1; | ||
39 | } | ||
40 | object.saveState(); | ||
41 | |||
42 | console.log(object.originalState); | ||
43 | stateObj[indexCurr] = JSON.stringify(object.originalState); | ||
44 | listObj[indexCurr] = object; | ||
45 | indexCurr++; | ||
46 | indexCurr2 = indexCurr - 1; | ||
47 | refreshObj = true; | ||
48 | } | ||
49 | |||
50 | function onllustrationModifield(options){ | ||
51 | var objOffset = canvas.getActiveObject().getBoundingRect(); | ||
52 | var cH = canvas.height, cW = canvas.width, H0 = 50, W0 = 50; | ||
53 | console.log(objOffset,canvas.height,canvas.width); | ||
54 | if (objOffset.left<W0-objOffset.width || objOffset.left>cW-W0 || objOffset.top<H0-objOffset.height || objOffset.top>cH-H0){ | ||
55 | if (confirm('削除してもよろしいですか')){ | ||
56 | canvas.getActiveObject().remove(); | ||
57 | }else{ | ||
58 | undoCanvas(); | ||
59 | return; | ||
60 | } | ||
61 | } | ||
62 | |||
63 | var object = options.target; | ||
64 | console.log('object:modified'); | ||
65 | if (actionObj === true) { | ||
66 | stateObj = [stateObj[indexCurr2]]; | ||
67 | listObj = [listObj[indexCurr2]]; | ||
68 | |||
69 | actionObj = false; | ||
70 | console.log(stateObj); | ||
71 | indexCurr = 1; | ||
72 | } | ||
73 | |||
74 | object.saveState(); | ||
75 | |||
76 | stateObj[indexCurr] = JSON.stringify(object.originalState); | ||
77 | listObj[indexCurr] = object; | ||
78 | indexCurr++; | ||
79 | indexCurr2 = indexCurr - 1; | ||
80 | console.log(stateObj); | ||
81 | refreshObj = true; | ||
82 | } | ||
83 | |||
17 | function onIllustrationChange(options) { | 84 | function onIllustrationChange(options) { |
18 | // options.target.setCoords(); | 85 | // options.target.setCoords(); |
19 | // canvas.forEachObject(function(obj) { | 86 | // canvas.forEachObject(function(obj) { |
20 | // if (obj === options.target) return; | 87 | // if (obj === options.target) return; |
21 | // obj.setOpacity(options.target.intersectsWithObject(obj) ? 0.5 : 1); | 88 | // obj.setOpacity(options.target.intersectsWithObject(obj) ? 0.5 : 1); |
22 | // }); | 89 | // }); |
23 | } | 90 | } |
24 | 91 | ||
25 | $scope.currentObject = null; | ||
26 | function onllustrationSelected(options){ | 92 | function onllustrationSelected(options){ |
27 | $scope.currentObject = canvas.getActiveObject(); | 93 | //console.log(canvas.getActiveObject()); |
28 | console.log(canvas.getActiveObject()); | ||
29 | } | 94 | } |
95 | |||
96 | function undoCanvas() { | ||
97 | if (indexCurr <= 0) { | ||
98 | indexCurr = 0; | ||
99 | return; | ||
100 | } | ||
101 | |||
102 | if (refreshObj === true) { | ||
103 | indexCurr--; | ||
104 | refreshObj = false; | ||
105 | } | ||
106 | |||
107 | console.log('undo'); | ||
108 | |||
109 | indexCurr2 = indexCurr - 1; | ||
110 | currentObj = listObj[indexCurr2]; | ||
111 | if (currentObj){ | ||
112 | currentObj.setOptions(JSON.parse(indexCurr[indexCurr2])); | ||
113 | } | ||
114 | |||
115 | indexCurr--; | ||
116 | currentObj.setCoords(); | ||
117 | canvas.renderAll(); | ||
118 | actionObj = true; | ||
119 | } | ||
120 | |||
121 | function redoCanvas() { | ||
122 | actionObj = true; | ||
123 | if (indexCurr >= stateObj.length - 1) { | ||
124 | return; | ||
125 | } | ||
126 | |||
127 | console.log('redo'); | ||
128 | |||
129 | indexCurr2 = indexCurr + 1; | ||
130 | currentObj = listObj[indexCurr2]; | ||
131 | currentObj.setOptions(JSON.parse(indexCurr[indexCurr2])); | ||
132 | |||
133 | indexCurr++; | ||
134 | currentObj.setCoords(); | ||
135 | canvas.renderAll(); | ||
136 | } | ||
30 | 137 | ||
31 | // Illustration process | 138 | // Illustration process |
32 | $scope.changeIllustrationCategory = function(currentIllustration){ | 139 | $scope.changeIllustrationCategory = function(currentIllustration){ |
33 | $scope.currentIllustrationCate = $illustration.getList(currentIllustration); | 140 | $scope.currentIllustrationCate = $illustration.getList(currentIllustration); |
34 | console.log($scope.currentIllustrationCate); | 141 | console.log($scope.currentIllustrationCate); |
35 | }; | 142 | }; |
36 | 143 | ||
37 | $scope.insertSvg = function(item){ | 144 | $scope.insertSvg = function(item){ |
38 | fabric.loadSVGFromURL(item.path, function(objects, options) { | 145 | fabric.loadSVGFromURL(item.path, function(objects, options) { |
39 | var shape = fabric.util.groupSVGElements(objects, options); | 146 | var shape = fabric.util.groupSVGElements(objects, options); |
40 | // shape.setFill('green'); | 147 | // shape.setFill('green'); |
41 | canvas.add(shape.scale(0.6)); | 148 | canvas.add(shape.scale(0.6)); |
42 | shape.set({ left: 150, top: 200 }).setCoords(); | 149 | shape.set({ left: 150, top: 200 }).setCoords(); |
43 | canvas.renderAll(); | 150 | canvas.renderAll(); |
44 | canvas.setActiveObject(shape); | 151 | canvas.setActiveObject(shape); |
45 | }); | 152 | }); |
46 | }; | 153 | }; |
47 | 154 | ||
48 | // color pattern | 155 | // color pattern |
49 | $scope.changeColorPattern = function(color){ | 156 | $scope.changeColorPattern = function(color){ |
50 | canvas.getActiveObject().set("fill", color); | 157 | if (canvas.getActiveObject()){ |
51 | canvas.renderAll(); | 158 | canvas.getActiveObject().set("fill", color); |
159 | canvas.renderAll(); | ||
160 | } | ||
52 | }; | 161 | }; |
53 | $scope.listColorPatterns = [ | 162 | $scope.listColorPatterns = [ |
54 | '#000000', | 163 | '#000000','#ffff00','#ff6600','#ff0000','#ff6262','#ffa19c','#ff9933','#c45d01','#5d2b03','#ffffcc', |
55 | '#ffff00', | 164 | '#ffff99','#ffd500','#c0db50','#21a52a','#00663f','#abfcab','#36ffaa','#89eaea','#00938c','#005450', |
56 | '#ff6600', | 165 | '#0badff','#006cff','#839aff','#0410a0','#ffb2ff','#f93fff','#6600ca','#ff6699','#999999','#666666', |
57 | '#ff0000', | 166 | '#333333' |
58 | '#ff6262', | ||
59 | '#ffa19c', | ||
60 | '#ff9933', | ||
61 | '#c45d01', | ||
62 | '#5d2b03', | ||
63 | '#ffffcc', | ||
64 | '#000000', | ||
65 | '#ffff00', | ||
66 | '#ff6600', | ||
67 | '#ff0000', | ||
68 | '#ff6262', | ||
69 | '#ffa19c', | ||
70 | '#ff9933', | ||
71 | '#c45d01', |
app/styles/main.css
1 | /* Space out content a bit */ | 1 | /* Space out content a bit */ |
2 | @import "../fonts/font.css"; | 2 | @import "../fonts/font.css"; |
3 | body { | 3 | body { |
4 | font-family: 'Hiragino Kaku Gothic Pro', sans-serif; | 4 | font-family: 'Hiragino Kaku Gothic Pro', sans-serif; |
5 | } | 5 | } |
6 | .padding-right-0{ | 6 | .padding-right-0{ |
7 | padding-right: 0!important; | 7 | padding-right: 0!important; |
8 | } | 8 | } |
9 | .padding-left-0{ | 9 | .padding-left-0{ |
10 | padding-left: 0!important; | 10 | padding-left: 0!important; |
11 | } | 11 | } |
12 | button.red{ | 12 | button.red{ |
13 | color: #ffffff; | 13 | color: #ffffff; |
14 | background-color: #ff0000; | 14 | background-color: #ff0000; |
15 | border: 1px solid #ff0000; | 15 | border: 1px solid #ff0000; |
16 | 16 | ||
17 | } | 17 | } |
18 | button.white{ | 18 | button.white{ |
19 | border: 1px solid #ff8080; | 19 | border: 1px solid #ff8080; |
20 | color: #ff8080; | 20 | color: #ff8080; |
21 | background-color: #ffffff; | 21 | background-color: #ffffff; |
22 | } | 22 | } |
23 | button.brown{ | 23 | button.brown{ |
24 | background-color: #666666; | 24 | background-color: #666666; |
25 | border: 1px solid #666666; | 25 | border: 1px solid #666666; |
26 | color: #ffffff; | 26 | color: #ffffff; |
27 | border-radius: 5px; | 27 | border-radius: 5px; |
28 | } | 28 | } |
29 | button.black{ | 29 | button.black{ |
30 | border: 1px solid #c9c9c9; | 30 | border: 1px solid #c9c9c9; |
31 | background-color: #343434; | 31 | background-color: #343434; |
32 | color: #ffffff; | 32 | color: #ffffff; |
33 | padding: 1px 6px; | 33 | padding: 1px 6px; |
34 | } | 34 | } |
35 | #tshirt-container{ | 35 | #tshirt-container{ |
36 | border-left: 1px solid #dcdcdc; | 36 | border-left: 1px solid #dcdcdc; |
37 | border-right: 1px solid #dcdcdc; | 37 | border-right: 1px solid #dcdcdc; |
38 | } | 38 | } |
39 | /*HEADER*/ | 39 | /*HEADER*/ |
40 | header{ | 40 | header{ |
41 | border-bottom: 1px solid #dcdcdc; | 41 | border-bottom: 1px solid #dcdcdc; |
42 | } | 42 | } |
43 | header .logo{ | 43 | header .logo{ |
44 | color: #ed1d24; | 44 | color: #ed1d24; |
45 | font-size: 30px; | 45 | font-size: 30px; |
46 | text-transform: uppercase; | 46 | text-transform: uppercase; |
47 | font-weight: bold; | 47 | font-weight: bold; |
48 | } | 48 | } |
49 | header .logo img{ | 49 | header .logo img{ |
50 | width: 60px; | 50 | width: 60px; |
51 | } | 51 | } |
52 | /*NAVIGATION*/ | 52 | /*NAVIGATION*/ |
53 | nav{ | 53 | nav{ |
54 | border-bottom: 1px solid #dcdcdc; | 54 | border-bottom: 1px solid #dcdcdc; |
55 | padding: 10px 0; | 55 | padding: 10px 0; |
56 | } | 56 | } |
57 | nav h2{ | 57 | nav h2{ |
58 | font-size: 27px; | 58 | font-size: 27px; |
59 | margin: 0 0; | 59 | margin: 0 0; |
60 | } | 60 | } |
61 | nav ul{ | 61 | nav ul{ |
62 | list-style: none; | 62 | list-style: none; |
63 | padding-left: 0; | 63 | padding-left: 0; |
64 | margin-bottom: 0; | 64 | margin-bottom: 0; |
65 | 65 | ||
66 | } | 66 | } |
67 | nav ul li{ | 67 | nav ul li{ |
68 | margin-left: 2px; | 68 | margin-left: 2px; |
69 | float: left; | 69 | float: left; |
70 | padding: 6px 12px; | 70 | padding: 6px 12px; |
71 | background-color: #999999; | 71 | background-color: #999999; |
72 | position: relative; | 72 | position: relative; |
73 | } | 73 | } |
74 | nav ul li i.fa{ | 74 | nav ul li i.fa{ |
75 | position: absolute; | 75 | position: absolute; |
76 | color: #ffffff; | 76 | color: #ffffff; |
77 | font-size: 18px; | 77 | font-size: 18px; |
78 | right: -4px; | 78 | right: -4px; |
79 | top: 50%; | 79 | top: 50%; |
80 | transform: translateX(-50%) translateY(-50%); | 80 | transform: translateX(-50%) translateY(-50%); |
81 | -webkit-transform: translateX(-50%) translateY(-50%); | 81 | -webkit-transform: translateX(-50%) translateY(-50%); |
82 | } | 82 | } |
83 | nav ul li a{ | 83 | nav ul li a{ |
84 | color: #ffffff; | 84 | color: #ffffff; |
85 | } | 85 | } |
86 | nav ul li:hover a{ | 86 | nav ul li:hover a{ |
87 | text-decoration: none; | 87 | text-decoration: none; |
88 | color: #ffffff; | 88 | color: #ffffff; |
89 | } | 89 | } |
90 | nav ul li.action{ | 90 | nav ul li.action{ |
91 | color: #ffffff; | 91 | color: #ffffff; |
92 | background-color: #ed1d24; | 92 | background-color: #ed1d24; |
93 | } | 93 | } |
94 | /*ASIDE*/ | 94 | /*ASIDE*/ |
95 | aside{ | 95 | aside{ |
96 | margin: 10px 0; | 96 | margin: 10px 0; |
97 | } | 97 | } |
98 | 98 | ||
99 | aside .break-down{ | 99 | aside .break-down{ |
100 | padding: 0 0; | 100 | padding: 0 0; |
101 | } | 101 | } |
102 | aside .break-down i.fa{ | 102 | aside .break-down i.fa{ |
103 | font-size: 35px; | 103 | font-size: 35px; |
104 | color: #ff0000; | 104 | color: #ff0000; |
105 | } | 105 | } |
106 | aside .break-line{ | 106 | aside .break-line{ |
107 | height: 10px; | 107 | height: 10px; |
108 | } | 108 | } |
109 | aside .break-line hr{ | 109 | aside .break-line hr{ |
110 | border-top: 1px dotted #cccccc; | 110 | border-top: 1px dotted #cccccc; |
111 | } | 111 | } |
112 | aside .step{ | 112 | aside .step{ |
113 | margin: 0 0; | 113 | margin: 0 0; |
114 | } | 114 | } |
115 | aside .step .title{ | 115 | aside .step .title{ |
116 | font-size: 15px; | 116 | font-size: 15px; |
117 | line-height: 16px; | 117 | line-height: 16px; |
118 | font-weight: bold; | 118 | font-weight: bold; |
119 | margin-bottom: 3px; | 119 | margin-bottom: 3px; |
120 | } | 120 | } |
121 | aside .step .title-notice{ | 121 | aside .step .title-notice{ |
122 | font-size: 13px; | 122 | font-size: 13px; |
123 | line-height: 16px; | 123 | line-height: 16px; |
124 | margin-bottom: 3px; | 124 | margin-bottom: 3px; |
125 | } | 125 | } |
126 | aside .step .title-notice .require{ | 126 | aside .step .title-notice .require{ |
127 | font-size: 10px; | 127 | font-size: 10px; |
128 | } | 128 | } |
129 | aside .step .step-box{ | 129 | aside .step .step-box{ |
130 | border: 2px solid #dcdcdc; | 130 | border: 2px solid #dcdcdc; |
131 | font-size: 12px; | 131 | font-size: 12px; |
132 | 132 | ||
133 | } | 133 | } |
134 | /*Step 1*/ | 134 | /*Step 1*/ |
135 | aside .step .step-box .tshirt-design{ | 135 | aside .step .step-box .tshirt-design{ |
136 | border: 1px solid #cccccc; | 136 | border: 1px solid #cccccc; |
137 | background-color: #f5f5f5; | 137 | background-color: #f5f5f5; |
138 | margin: 10px 10px; | 138 | margin: 10px 10px; |
139 | } | 139 | } |
140 | aside .step .step-box .tshirt-design:hover{ | 140 | aside .step .step-box .tshirt-design:hover{ |
141 | border: 1px solid #ff0000; | 141 | border: 1px solid #ff0000; |
142 | } | 142 | } |
143 | aside .step .step-box .tshirt-design button:hover{ | 143 | aside .step .step-box .tshirt-design button:hover{ |
144 | background-color: #fa7b7b; | 144 | background-color: #fa7b7b; |
145 | border: 1px solid #fa7b7b; | 145 | border: 1px solid #fa7b7b; |
146 | } | 146 | } |
147 | aside .step .step-box .tshirt-design div{ | 147 | aside .step .step-box .tshirt-design div{ |
148 | float: left; | 148 | float: left; |
149 | } | 149 | } |
150 | aside .step .step-box .tshirt-design .icon{ | 150 | aside .step .step-box .tshirt-design .icon{ |
151 | padding: 4px 4px; | 151 | padding: 4px 4px; |
152 | border-right: 1px solid #cccccc; | 152 | border-right: 1px solid #cccccc; |
153 | 153 | ||
154 | } | 154 | } |
155 | aside .step .step-box .tshirt-design .icon img{ | 155 | aside .step .step-box .tshirt-design .icon img{ |
156 | height: 50px; | 156 | height: 50px; |
157 | } | 157 | } |
158 | aside .step .step-box .tshirt-design .name{ | 158 | aside .step .step-box .tshirt-design .name{ |
159 | padding: 10px 10px; | 159 | padding: 10px 10px; |
160 | 160 | ||
161 | } | 161 | } |
162 | aside .step .step-box .tshirt-design .action{ | 162 | aside .step .step-box .tshirt-design .action{ |
163 | padding: 10px 10px; | 163 | padding: 10px 10px; |
164 | float: right; | 164 | float: right; |
165 | 165 | ||
166 | } | 166 | } |
167 | aside .step .step-box .tshirt-design .action button{ | 167 | aside .step .step-box .tshirt-design .action button{ |
168 | padding: 8px 10px; | 168 | padding: 8px 10px; |
169 | } | 169 | } |
170 | /*Step 2*/ | 170 | /*Step 2*/ |
171 | aside .step .step-box .tshirt-color{ | 171 | aside .step .step-box .tshirt-color{ |
172 | padding: 6px 10px; | 172 | padding: 6px 10px; |
173 | position: relative; | 173 | position: relative; |
174 | } | 174 | } |
175 | aside .step .step-box .tshirt-color ul.choice-color{ | 175 | aside .step .step-box .tshirt-color ul.choice-color{ |
176 | float: left; | 176 | float: left; |
177 | list-style: none; | 177 | list-style: none; |
178 | padding-left: 0; | 178 | padding-left: 0; |
179 | width: 100%; | 179 | width: 100%; |
180 | margin-bottom: 3px; | 180 | margin-bottom: 3px; |
181 | } | 181 | } |
182 | aside .step .step-box .tshirt-color ul.choice-color li{ | 182 | aside .step .step-box .tshirt-color ul.choice-color li{ |
183 | margin: 0 10px 0 0; | 183 | margin: 0 10px 0 0; |
184 | border: 1px solid #cccccc; | 184 | border: 1px solid #cccccc; |
185 | padding: 2px 2px; | 185 | padding: 2px 2px; |
186 | float: left; | 186 | float: left; |
187 | cursor: pointer; | 187 | cursor: pointer; |
188 | } | 188 | } |
189 | aside .step .step-box .tshirt-color ul.choice-color li.action{ | 189 | aside .step .step-box .tshirt-color ul.choice-color li.action{ |
190 | border: 1px solid #ff0000; | 190 | border: 1px solid #ff0000; |
191 | } | 191 | } |
192 | aside .step .step-box .tshirt-color ul.choice-color li:hover{ | 192 | aside .step .step-box .tshirt-color ul.choice-color li:hover{ |
193 | border: 1px solid #ff0000; | 193 | border: 1px solid #ff0000; |
194 | } | 194 | } |
195 | aside .step .step-box .tshirt-color ul.choice-color li div{ | 195 | aside .step .step-box .tshirt-color ul.choice-color li div{ |
196 | height: 30px; | 196 | height: 30px; |
197 | width: 30px; | 197 | width: 30px; |
198 | } | 198 | } |
199 | 199 | ||
200 | aside .step .step-box .tshirt-color ul.choice-color li.white div{ | 200 | aside .step .step-box .tshirt-color ul.choice-color li.white div{ |
201 | background-color: #ece7e4; | 201 | background-color: #ece7e4; |
202 | } | 202 | } |
203 | aside .step .step-box .tshirt-color ul.choice-color li.blue div{ | 203 | aside .step .step-box .tshirt-color ul.choice-color li.blue div{ |
204 | background-color: #e7dfd0; | 204 | background-color: #e7dfd0; |
205 | } | 205 | } |
206 | aside .step .step-box .tshirt-color .color-name{ | 206 | aside .step .step-box .tshirt-color .color-name{ |
207 | width: 100%; | 207 | width: 100%; |
208 | font-size: 10px; | 208 | font-size: 10px; |
209 | } | 209 | } |
210 | aside .step .step-box .tshirt-color .view-more{ | 210 | aside .step .step-box .tshirt-color .view-more{ |
211 | position: absolute; | 211 | position: absolute; |
212 | bottom: 6px; | 212 | bottom: 6px; |
213 | right: 10px; | 213 | right: 10px; |
214 | } | 214 | } |
215 | /*Step 3*/ | 215 | /*Step 3*/ |
216 | aside .step .step-box .tshirt-saveorder{ | 216 | aside .step .step-box .tshirt-saveorder{ |
217 | padding: 10px 10px 6px 10px; | 217 | padding: 10px 10px 6px 10px; |
218 | } | 218 | } |
219 | aside .step .step-box .tshirt-saveorder .action{ | 219 | aside .step .step-box .tshirt-saveorder .action{ |
220 | width: 50%; | 220 | width: 50%; |
221 | float: left; | 221 | float: left; |
222 | } | 222 | } |
223 | aside .step .step-box .tshirt-saveorder .action:first-child{ | 223 | aside .step .step-box .tshirt-saveorder .action:first-child{ |
224 | padding-right: 5px; | 224 | padding-right: 5px; |
225 | } | 225 | } |
226 | aside .step .step-box .tshirt-saveorder .action:last-child{ | 226 | aside .step .step-box .tshirt-saveorder .action:last-child{ |
227 | padding-left: 5px; | 227 | padding-left: 5px; |
228 | } | 228 | } |
229 | aside .step .step-box .tshirt-saveorder .action button{ | 229 | aside .step .step-box .tshirt-saveorder .action button{ |
230 | padding: 8px 10px; | 230 | padding: 8px 10px; |
231 | 231 | ||
232 | } | 232 | } |
233 | aside .step .step-box .tshirt-saveorder .action button .text{ | 233 | aside .step .step-box .tshirt-saveorder .action button .text{ |
234 | float: left; | 234 | float: left; |
235 | width: 80%; | 235 | width: 80%; |
236 | text-align: center; | 236 | text-align: center; |
237 | padding-left: 10px; | 237 | padding-left: 10px; |
238 | vertical-align: bottom; | 238 | vertical-align: bottom; |
239 | } | 239 | } |
240 | aside .step .step-box .tshirt-saveorder .action button .arrow{ | 240 | aside .step .step-box .tshirt-saveorder .action button .arrow{ |
241 | float: left; | 241 | float: left; |
242 | width: 20%; | 242 | width: 20%; |
243 | height: 40px; | 243 | height: 40px; |
244 | position: relative; | 244 | position: relative; |
245 | } | 245 | } |
246 | aside .step .step-box .tshirt-saveorder .action button .arrow i.fa{ | 246 | aside .step .step-box .tshirt-saveorder .action button .arrow i.fa{ |
247 | position: absolute; | 247 | position: absolute; |
248 | top: 50%; | 248 | top: 50%; |
249 | right: -6px; | 249 | right: -6px; |
250 | transform: translateX(-50%) translateY(-50%); | 250 | transform: translateX(-50%) translateY(-50%); |
251 | -webkit-transform: translateX(-50%) translateY(-50%); | 251 | -webkit-transform: translateX(-50%) translateY(-50%); |
252 | } | 252 | } |
253 | aside .step .step-box .tshirt-saveorder .notice{ | 253 | aside .step .step-box .tshirt-saveorder .notice{ |
254 | padding: 5px 0 0 0; | 254 | padding: 5px 0 0 0; |
255 | } | 255 | } |
256 | /*Step 4*/ | 256 | /*Step 4*/ |
257 | aside .step .title-notice{ | 257 | aside .step .title-notice{ |
258 | 258 | ||
259 | } | 259 | } |
260 | aside .step .step-box .change-design{ | 260 | aside .step .step-box .change-design{ |
261 | padding: 4px 4px; | 261 | padding: 4px 4px; |
262 | } | 262 | } |
263 | aside .step .step-box .change-design table{ | 263 | aside .step .step-box .change-design table{ |
264 | 264 | ||
265 | } | 265 | } |
266 | aside .step .step-box .change-design table tr{ | 266 | aside .step .step-box .change-design table tr{ |
267 | border-bottom: 1px dotted #cccccc; | 267 | border-bottom: 1px dotted #cccccc; |
268 | } | 268 | } |
269 | aside .step .step-box .change-design table tr:last-child{ | 269 | aside .step .step-box .change-design table tr:last-child{ |
270 | border-bottom: 0; | 270 | border-bottom: 0; |
271 | } | 271 | } |
272 | 272 | ||
273 | /*Step 5- finish*/ | 273 | /*Step 5- finish*/ |
274 | aside .step .finish-design{ | 274 | aside .step .finish-design{ |
275 | padding: 20px 0; | 275 | padding: 20px 0; |
276 | } | 276 | } |
277 | aside .step .finish-design button{ | 277 | aside .step .finish-design button{ |
278 | width: 100%; | 278 | width: 100%; |
279 | padding: 8px 10px; | 279 | padding: 8px 10px; |
280 | } | 280 | } |
281 | 281 | ||
282 | /*DESIGN CONTENT*/ | 282 | /*DESIGN CONTENT*/ |
283 | #tshirt-content{ | 283 | #tshirt-content{ |
284 | position: relative; | 284 | position: relative; |
285 | } | 285 | } |
286 | #tshirt-content .switch-border-design{ | 286 | #tshirt-content .switch-border-design{ |
287 | position: absolute; | 287 | position: absolute; |
288 | top: 5px; | 288 | top: 5px; |
289 | right: 10px; | 289 | right: 10px; |
290 | color: red; | 290 | color: red; |
291 | font-size: 11px; | 291 | font-size: 11px; |
292 | } | 292 | } |
293 | #tshirt-content .tshirt-image{ | 293 | #tshirt-content .tshirt-image{ |
294 | padding: 20px 0 0 0; | 294 | padding: 20px 0 0 0; |
295 | } | 295 | } |
296 | #tshirt-content .tshirt-choice{ | 296 | #tshirt-content .tshirt-choice{ |
297 | 297 | ||
298 | } | 298 | } |
299 | #tshirt-content .tshirt-choice ul{ | 299 | #tshirt-content .tshirt-choice ul{ |
300 | list-style: none; | 300 | list-style: none; |
301 | padding-left: 0; | 301 | padding-left: 0; |
302 | display: table; | 302 | display: table; |
303 | margin: auto; | 303 | margin: auto; |
304 | } | 304 | } |
305 | #tshirt-content .tshirt-choice ul li{ | 305 | #tshirt-content .tshirt-choice ul li{ |
306 | float: left; | 306 | float: left; |
307 | margin: 10px 10px; | 307 | margin: 10px 10px; |
308 | cursor: pointer; | 308 | cursor: pointer; |
309 | } | 309 | } |
310 | #tshirt-content .tshirt-choice ul li .image{ | 310 | #tshirt-content .tshirt-choice ul li .image{ |
311 | border: 1px solid #cccccc; | 311 | border: 1px solid #cccccc; |
312 | padding: 3px 3px; | 312 | padding: 3px 3px; |
313 | } | 313 | } |
314 | #tshirt-content .tshirt-choice ul li.focus{ | 314 | #tshirt-content .tshirt-choice ul li.focus{ |
315 | 315 | ||
316 | } | 316 | } |
317 | #tshirt-content .tshirt-choice ul li.focus .image{ | 317 | #tshirt-content .tshirt-choice ul li.focus .image{ |
318 | border: 1px solid #ff0000; | 318 | border: 1px solid #ff0000; |
319 | } | 319 | } |
320 | #tshirt-content .tshirt-choice ul li .image img{ | 320 | #tshirt-content .tshirt-choice ul li .image img{ |
321 | width: 50px; | 321 | width: 50px; |
322 | height: auto; | 322 | height: auto; |
323 | } | 323 | } |
324 | /*MODAL Design*/ | 324 | /*MODAL Design*/ |
325 | #tshirt-design{ | 325 | #tshirt-design{ |
326 | background-color: #666666; | 326 | background-color: #666666; |
327 | } | 327 | } |
328 | #tshirt-design .modal-dialog{ | 328 | #tshirt-design .modal-dialog{ |
329 | width: 75%; | 329 | width: 75%; |
330 | margin: 0 auto; | 330 | margin: 0 auto; |
331 | } | 331 | } |
332 | #tshirt-design .modal-dialog .modal-content{ | 332 | #tshirt-design .modal-dialog .modal-content{ |
333 | background-color: transparent; | 333 | background-color: transparent; |
334 | border-radius: 0; | 334 | border-radius: 0; |
335 | border: 0; | 335 | border: 0; |
336 | -webkit-box-shadow: 0 0 0 rgba(0, 0, 0, .5)!important; | 336 | -webkit-box-shadow: 0 0 0 rgba(0, 0, 0, .5)!important; |
337 | box-shadow: 0 0 0 rgba(0, 0, 0, .5)!important; | 337 | box-shadow: 0 0 0 rgba(0, 0, 0, .5)!important; |
338 | } | 338 | } |
339 | #tshirt-design .modal-dialog .modal-content .modal-header{ | 339 | #tshirt-design .modal-dialog .modal-content .modal-header{ |
340 | padding: 0 0 10px 0; | 340 | padding: 0 0 10px 0; |
341 | border-bottom: 0; | 341 | border-bottom: 0; |
342 | border-shadow: none!important; | 342 | border-shadow: none!important; |
343 | } | 343 | } |
344 | #tshirt-design .modal-dialog .modal-content .modal-body{ | 344 | #tshirt-design .modal-dialog .modal-content .modal-body{ |
345 | background-color: #f5f5f5; | 345 | background-color: #f5f5f5; |
346 | padding: 0 0; | 346 | padding: 0 0; |
347 | } | 347 | } |
348 | #tshirt-design header{ | 348 | #tshirt-design header{ |
349 | border-bottom: 1px solid #cccccc; | 349 | border-bottom: 1px solid #cccccc; |
350 | background-color: #dddddd; | 350 | background-color: #dddddd; |
351 | } | 351 | } |
352 | #tshirt-design header ul.nav{ | 352 | #tshirt-design header ul.nav{ |
353 | padding-left: 0; | 353 | padding-left: 0; |
354 | list-style: none; | 354 | list-style: none; |
355 | } | 355 | } |
356 | #tshirt-design header ul.nav li{ | 356 | #tshirt-design header ul.nav li{ |
357 | float: left; | 357 | float: left; |
358 | padding: 8px 26px; | 358 | padding: 8px 26px; |
359 | border-right: 1px solid #cccccc; | 359 | border-right: 1px solid #cccccc; |
360 | font-size: 14px; | 360 | font-size: 14px; |
361 | cursor: pointer; | 361 | cursor: pointer; |
362 | } | 362 | } |
363 | #tshirt-design header ul.nav li:hover, #tshirt-design header ul.nav li.active{ | 363 | #tshirt-design header ul.nav li:hover, #tshirt-design header ul.nav li.active{ |
364 | background-color: red; | 364 | background-color: red; |
365 | color: #ffffff; | 365 | color: #ffffff; |
366 | } | 366 | } |
367 | #tshirt-design header ul.nav li:hover i.fa, #tshirt-design header ul.nav li.active i.fa{ | 367 | #tshirt-design header ul.nav li:hover i.fa, #tshirt-design header ul.nav li.active i.fa{ |
368 | color: #ffffff; | 368 | color: #ffffff; |
369 | } | 369 | } |
370 | #tshirt-design header ul.nav li i.fa{ | 370 | #tshirt-design header ul.nav li i.fa{ |
371 | color: #fe070f; | 371 | color: #fe070f; |
372 | font-size: 20px; | 372 | font-size: 20px; |
373 | margin-right: 10px; | 373 | margin-right: 10px; |
374 | } | 374 | } |
375 | #tshirt-design header .action{ | 375 | #tshirt-design header .action{ |
376 | 376 | ||
377 | } | 377 | } |
378 | #tshirt-design header .action button{ | 378 | #tshirt-design header .action button{ |
379 | padding: 2px 10px; | 379 | padding: 2px 10px; |
380 | margin: 6px 10px; | 380 | margin: 6px 10px; |
381 | } | 381 | } |
382 | #tshirt-design header .action button:hover{ | 382 | #tshirt-design header .action button:hover{ |
383 | background-color: red; | 383 | background-color: red; |
384 | color: #ffffff; | 384 | color: #ffffff; |
385 | } | 385 | } |
386 | 386 | ||
387 | /*Aside modal*/ | 387 | /*Aside modal*/ |
388 | .aside{ | 388 | .aside{ |
389 | padding-left: 0; | ||
389 | } | 390 | } |
390 | .aside #choice-design-option{ | 391 | .aside #choice-design-option{ |
391 | list-style: none; | 392 | list-style: none; |
392 | padding-left: 0; | 393 | padding-left: 0; |
393 | margin-top: 10px; | 394 | margin-top: 10px; |
394 | 395 | ||
395 | } | 396 | } |
396 | .aside #choice-design-option li{ | 397 | .aside #choice-design-option li{ |
397 | border: 1px solid #cdcdcd; | 398 | border: 1px solid #cdcdcd; |
398 | position: relative; | 399 | position: relative; |
399 | cursor: pointer; | 400 | cursor: pointer; |
400 | } | 401 | } |
401 | .aside #choice-design-option li .hover{ | 402 | .aside #choice-design-option li .hover{ |
402 | background-color: #fddad4; | 403 | background-color: #fddad4; |
403 | opacity: 0.6; | 404 | opacity: 0.6; |
404 | position: absolute; | 405 | position: absolute; |
405 | width: 100%; | 406 | width: 100%; |
406 | height: 100%; | 407 | height: 100%; |
407 | display: none; | 408 | display: none; |
408 | } | 409 | } |
409 | .aside #choice-design-option li:hover .hover{ | 410 | .aside #choice-design-option li:hover .hover{ |
410 | display: block; | 411 | display: block; |
411 | } | 412 | } |
412 | 413 | ||
413 | .aside #choice-design-option li .title{ | 414 | .aside #choice-design-option li .title{ |
414 | background: url("../images/bg1.png") repeat #cdcdcd; | 415 | background: url("../images/bg1.png") repeat #cdcdcd; |
415 | padding: 3px 10px; | 416 | padding: 3px 10px; |
416 | } | 417 | } |
417 | .aside #choice-design-option li .title i.fa{ | 418 | .aside #choice-design-option li .title i.fa{ |
418 | color: #000000; | 419 | color: #000000; |
419 | } | 420 | } |
420 | 421 | ||
421 | .aside #choice-design-option li .content{ | 422 | .aside #choice-design-option li .content{ |
422 | 423 | ||
423 | } | 424 | } |
424 | .aside #choice-design-option li .content i.fa{ | 425 | .aside #choice-design-option li .content i.fa{ |
425 | font-size: 30px; | 426 | font-size: 30px; |
426 | color: #fe070f; | 427 | color: #fe070f; |
427 | margin: 8px 0; | 428 | margin: 8px 0; |
428 | } | 429 | } |
429 | .aside #choice-design-option li .content .des{ | 430 | .aside #choice-design-option li .content .des{ |
430 | padding: 3px 10px 3px 0; | 431 | padding: 3px 10px 3px 0; |
431 | } | 432 | } |
432 | 433 | ||
433 | 434 | ||
434 | .aside #choice-illustration{ | 435 | .aside #choice-illustration{ |
435 | list-style: none; | 436 | list-style: none; |
436 | padding-left: 0; | 437 | padding-left: 0; |
437 | margin-top: 10px; | 438 | margin-top: 10px; |
438 | 439 | ||
439 | } | 440 | } |
440 | .aside #choice-illustration li{ | 441 | .aside #choice-illustration li{ |
441 | border: 1px solid #cdcdcd; | 442 | border: 1px #cdcdcd double; |
443 | border-radius: 5px; | ||
442 | position: relative; | 444 | position: relative; |
445 | padding: 5px 10px; | ||
446 | margin-bottom: 20px; | ||
443 | } | 447 | } |
444 | 448 | ||
445 | .aside #choice-illustration li .title{ | 449 | .aside #choice-illustration li .title{ |
446 | background: url("../images/bg1.png") repeat #cdcdcd; | 450 | /*background: url("../images/bg1.png") repeat #cdcdcd;*/ |
447 | padding: 3px 10px; | 451 | padding: 3px 10px; |
452 | font-size: 13px; | ||
453 | color: #ff0f00; | ||
454 | font-weight: 600; | ||
448 | } | 455 | } |
449 | 456 | ||
450 | .aside #choice-illustration li .content { | 457 | .aside #choice-illustration li .content { |
451 | padding: 10px 10px; | 458 | /*padding: 10px 10px;*/ |
452 | } | 459 | } |
453 | 460 | ||
454 | .aside #choice-illustration li .content select{ | 461 | .aside #choice-illustration li .content select{ |
455 | width: 100%; | 462 | width: 100%; |
456 | } | 463 | } |
457 | 464 | ||
458 | .aside #choice-illustration li .content .illustration-list { | 465 | .aside #choice-illustration li .content .illustration-list { |
459 | width: 100%; | 466 | width: 100%; |
460 | border: #bbb solid 1px; | 467 | border: #bbb solid 1px; |
461 | background: #FFF; | 468 | background: #FFF; |
462 | margin-top: 5px; | 469 | margin-top: 5px; |
463 | } | 470 | } |
464 | 471 | ||
465 | .aside #choice-illustration li .content .illustration-list .illstration-item{ | 472 | .aside #choice-illustration li .content .illustration-list .illstration-item{ |
466 | height: 65px; | 473 | height: 61px; |
467 | overflow: hidden; | 474 | overflow: hidden; |
468 | float: left; | 475 | float: left; |
469 | margin-left: 5px; | 476 | margin-left: 10px; |
477 | margin-top: 10px; | ||
478 | background: #e2e2e2; | ||
479 | border: #d7d7d7 solid 1px; | ||
480 | padding: 2px; | ||
470 | } | 481 | } |
471 | 482 | ||
472 | .aside #choice-illustration li .content .illustration-list .illstration-item:hover { | 483 | .aside #choice-illustration li .content .illustration-list .illstration-item:hover { |
473 | outline: 2px solid #ed1d24; | 484 | outline: 2px solid #ed1d24; |
474 | } | 485 | } |
475 | 486 | ||
476 | .aside #choice-illustration li .content .illustration-list .illstration-item img { | 487 | .aside #choice-illustration li .content .illustration-list .illstration-item img { |
477 | width: 62px; | 488 | width: 53px; |
478 | cursor: pointer; | 489 | cursor: pointer; |
479 | } | 490 | } |
480 | 491 | ||
481 | .aside #choice-illustration li .content .color-patterns { | 492 | .aside #choice-illustration li .content .color-patterns { |
482 | width: 100%; | 493 | width: 100%; |
483 | border: #bbb solid 1px; | 494 | border: #bbb solid 1px; |
484 | background: #FFF; | 495 | background: #FFF; |
485 | margin-top: 5px; | 496 | margin-top: 5px; |
486 | } | 497 | } |
487 | 498 | ||
488 | .aside #choice-illustration li .content .color-patterns .color-pattern-item{ | 499 | .aside #choice-illustration li .content .color-patterns .color-pattern-item{ |
489 | height: 20px; | 500 | height: 20px; |
490 | float: left; | 501 | float: left; |
491 | margin-left: 4px; | 502 | margin-left: 4px; |
492 | margin-top: 2px; | 503 | margin-top: 2px; |
493 | width: 20px; | 504 | width: 20px; |
494 | cursor: pointer; | 505 | cursor: pointer; |
495 | border: 1px solid #ddd; | 506 | border: 1px solid #ddd; |
496 | } | 507 | } |
497 | 508 | ||
498 | .aside #choice-illustration li .content .color-patterns .color-pattern-item:hover { | 509 | .aside #choice-illustration li .content .color-patterns .color-pattern-item:hover { |
499 | outline: 1px solid #ed1d24; | 510 | outline: 1px solid #ed1d24; |
500 | } | 511 | } |
501 | 512 | ||
502 | 513 | ||
503 | /*Design content*/ | 514 | /*Design content*/ |
504 | .tshirt-design-container{ | 515 | .tshirt-design-container{ |
505 | position: relative; | 516 | position: relative; |
506 | } | 517 | } |
507 | .tshirt-design-container .design-content{ | 518 | .tshirt-design-container .design-content{ |
508 | padding: 10px 30px 10px 15px; | 519 | padding: 10px 30px 10px 15px; |
509 | } | 520 | } |
510 | .tshirt-design-container .design-content .content{ | 521 | .tshirt-design-container .design-content .content{ |
511 | width: 100%; | 522 | width: 100%; |
512 | min-height: 650px; | 523 | min-height: 650px; |
513 | background-color: #f0efea; | 524 | background-color: #f0efea; |
514 | padding: 40px 40px; | 525 | padding: 40px 40px; |
515 | height: 100%; | 526 | height: 100%; |
516 | } | 527 | } |
517 | .tshirt-design-container .design-content .content .selection-design{ | 528 | .tshirt-design-container .design-content .content .selection-design{ |
518 | border: 1px solid #ff0000; | 529 | border: 1px solid #ff0000; |
519 | width: 100%; | 530 | width: 100%; |
520 | height: 620px; | 531 | height: 620px; |
521 | } | 532 | } |
522 | .tshirt-design-container .agree-design{ | 533 | .tshirt-design-container .agree-design{ |
523 | position: absolute; | 534 | position: absolute; |
524 | right: -16px; | 535 | right: -16px; |
525 | top: 40%; | 536 | top: 40%; |
526 | } | 537 | } |
527 | .tshirt-design-container .trash-design{ | 538 | .tshirt-design-container .trash-design{ |
528 | position: absolute; | 539 | position: absolute; |
529 | right: 5px; | 540 | right: 5px; |
530 | bottom: 0; | 541 | bottom: 0; |
531 | } | 542 | } |
532 | 543 | ||
533 | 544 | ||
534 | /*FOOTER*/ | 545 | /*FOOTER*/ |
535 | footer{ | 546 | footer{ |
536 | background-color: #333333; | 547 | background-color: #333333; |
537 | } | 548 | } |
538 | footer ul.nav-footer{ | 549 | footer ul.nav-footer{ |
539 | padding-left: 0; | 550 | padding-left: 0; |
540 | list-style: none; | 551 | list-style: none; |
541 | } | 552 | } |
542 | footer ul.nav-footer li{ | 553 | footer ul.nav-footer li{ |
543 | float: left; | 554 | float: left; |
544 | padding: 3px 10px; | 555 | padding: 3px 10px; |
545 | border-right: 1px dotted #ffffff; | 556 | border-right: 1px dotted #ffffff; |
546 | 557 | ||
547 | } | 558 | } |
548 | footer ul.nav-footer li a{ | 559 | footer ul.nav-footer li a{ |
549 | color: #ffffff; | 560 | color: #ffffff; |
550 | font-size: 11px; | 561 | font-size: 11px; |
551 | } | 562 | } |
552 | /* Customize container */ | 563 | /* Customize container */ |
553 | @media (min-width: 768px) { | 564 | @media (min-width: 768px) { |
554 | .container { | 565 | .container { |
555 | /*max-width: 730px;*/ | 566 | /*max-width: 730px;*/ |
556 | } | 567 | } |
557 | } | 568 | } |
558 | 569 | ||
559 | /* Responsive: Portrait tablets and up */ | 570 | /* Responsive: Portrait tablets and up */ |
560 | @media screen and (min-width: 768px) { | 571 | @media screen and (min-width: 768px) { |
561 | /* Remove the padding we set earlier */ | 572 | /* Remove the padding we set earlier */ |
562 | 573 | ||
563 | } | 574 | } |
564 | 575 |
app/views/tshirt-design.html
1 | <!-- Modal --> | 1 | <!-- Modal --> |
2 | <div class="modal fade" id="tshirt-design" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" ng-controller="TshirtdesignCtrl"> | 2 | <div class="modal fade" id="tshirt-design" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" ng-controller="TshirtdesignCtrl"> |
3 | 3 | ||
4 | <div class="modal-dialog" role="document"> | 4 | <div class="modal-dialog" role="document"> |
5 | <div class="modal-content"> | 5 | <div class="modal-content"> |
6 | <div class="modal-header"> | 6 | <div class="modal-header"> |
7 | <button class="black" ng-click="modalClose()"><i class="fa fa-times" aria-hidden="true"></i> キャンセル</button> | 7 | <button class="black" ng-click="modalClose()"><i class="fa fa-times" aria-hidden="true"></i> キャンセル</button> |
8 | <button class="black"> <i class="fa fa-angle-right" aria-hidden="true"></i> はじめての方へ</button> | 8 | <button class="black"> <i class="fa fa-angle-right" aria-hidden="true"></i> はじめての方へ</button> |
9 | </div> | 9 | </div> |
10 | <div class="modal-body"> | 10 | <div class="modal-body"> |
11 | <header class="clearfix"> | 11 | <header class="clearfix"> |
12 | <ul class="nav pull-left"> | 12 | <ul class="nav pull-left"> |
13 | <li ng-class="{'active': isShowLeftPanel=='text'}" ng-click="showIllustration('text')"> | 13 | <li ng-class="{'active': isShowLeftPanel=='text'}" ng-click="showIllustration('text')"> |
14 | <i class="fa fa-jpy" aria-hidden="true"></i> 文字 | 14 | <i class="fa fa-jpy" aria-hidden="true"></i> 文字 |
15 | </li> | 15 | </li> |
16 | <li ng-class="{'active': isShowLeftPanel=='illustration'}" ng-click="showIllustration('illustration')"> | 16 | <li ng-class="{'active': isShowLeftPanel=='illustration'}" ng-click="showIllustration('illustration')"> |
17 | <i class="fa fa-btc" aria-hidden="true"></i> イラスト・イメージ | 17 | <i class="fa fa-btc" aria-hidden="true"></i> イラスト・イメージ |
18 | </li> | 18 | </li> |
19 | <li> | 19 | <li> |
20 | <i class="fa fa-money" aria-hidden="true"></i> 自分の画像・写真 | 20 | <i class="fa fa-money" aria-hidden="true"></i> 自分の画像・写真 |
21 | </li> | 21 | </li> |
22 | <li> | 22 | <li> |
23 | <i class="fa fa-minus-circle" aria-hidden="true"></i> 全消去 | 23 | <i class="fa fa-minus-circle" aria-hidden="true"></i> 全消去 |
24 | </li> | 24 | </li> |
25 | </ul> | 25 | </ul> |
26 | <div class="action pull-right"> | 26 | <div class="action pull-right"> |
27 | <button class="white"> | 27 | <button class="white"> |
28 | アルバムを開く | 28 | アルバムを開く |
29 | </button> | 29 | </button> |
30 | <button class="white"> | 30 | <button class="white"> |
31 | アルバムに入れる | 31 | アルバムに入れる |
32 | </button> | 32 | </button> |
33 | </div> | 33 | </div> |
34 | </header> | 34 | </header> |
35 | <section class="tshirt-design-container clearfix"> | 35 | <section class="tshirt-design-container clearfix"> |
36 | <div class="aside col-xs-4"> | 36 | <div class="aside col-xs-4"> |
37 | <ul id="choice-design-option" ng-show="isShowLeftPanel=='default'"> | 37 | <ul id="choice-design-option" ng-show="isShowLeftPanel=='default'"> |
38 | <li> | 38 | <li> |
39 | <div class="hover"></div> | 39 | <div class="hover"></div> |
40 | <div class="title"> | 40 | <div class="title"> |
41 | <i class="fa fa-chevron-circle-right" aria-hidden="true"></i> | 41 | <i class="fa fa-chevron-circle-right" aria-hidden="true"></i> |
42 | 文字を追加 | 42 | 文字を追加 |
43 | </div> | 43 | </div> |
44 | <div class="content clearfix"> | 44 | <div class="content clearfix"> |
45 | <div class="col-xs-2 text-center"> | 45 | <div class="col-xs-2 text-center"> |
46 | <i class="fa fa-jpy" aria-hidden="true"></i> | 46 | <i class="fa fa-jpy" aria-hidden="true"></i> |
47 | </div> | 47 | </div> |
48 | <div class="col-xs-10 des padding-left-0"> | 48 | <div class="col-xs-10 des padding-left-0"> |
49 | 書体を選んでお好きな文字を入力できます | 49 | 書体を選んでお好きな文字を入力できます |
50 | </div> | 50 | </div> |
51 | </div> | 51 | </div> |
52 | </li> | 52 | </li> |
53 | <li> | 53 | <li> |
54 | <div class="hover"></div> | 54 | <div class="hover"></div> |
55 | <div class="title"> | 55 | <div class="title"> |
56 | <i class="fa fa-chevron-circle-right" aria-hidden="true"></i> | 56 | <i class="fa fa-chevron-circle-right" aria-hidden="true"></i> |
57 | イラストやイメージを追加 | 57 | イラストやイメージを追加 |
58 | </div> | 58 | </div> |
59 | <div class="content clearfix"> | 59 | <div class="content clearfix"> |
60 | <div class="col-xs-2 text-center"> | 60 | <div class="col-xs-2 text-center"> |
61 | <i class="fa fa-btc" aria-hidden="true"></i> | 61 | <i class="fa fa-btc" aria-hidden="true"></i> |
62 | </div> | 62 | </div> |
63 | <div class="col-xs-10 des padding-left-0"> | 63 | <div class="col-xs-10 des padding-left-0"> |
64 | 自由にお使いいただけるデザイン画像をご用意しました | 64 | 自由にお使いいただけるデザイン画像をご用意しました |
65 | </div> | 65 | </div> |
66 | </div> | 66 | </div> |
67 | </li> | 67 | </li> |
68 | <li> | 68 | <li> |
69 | <div class="hover"></div> | 69 | <div class="hover"></div> |
70 | <div class="title"> | 70 | <div class="title"> |
71 | <i class="fa fa-chevron-circle-right" aria-hidden="true"></i> | 71 | <i class="fa fa-chevron-circle-right" aria-hidden="true"></i> |
72 | 自分の画像・写真を追加 | 72 | 自分の画像・写真を追加 |
73 | </div> | 73 | </div> |
74 | <div class="content clearfix"> | 74 | <div class="content clearfix"> |
75 | <div class="col-xs-2 text-center"> | 75 | <div class="col-xs-2 text-center"> |
76 | <i class="fa fa-jpy" aria-hidden="true"></i> | 76 | <i class="fa fa-jpy" aria-hidden="true"></i> |
77 | </div> | 77 | </div> |
78 | <div class="col-xs-10 des padding-left-0"> | 78 | <div class="col-xs-10 des padding-left-0"> |
79 | ご自分で用意した画像をアップロードして使えます | 79 | ご自分で用意した画像をアップロードして使えます |
80 | </div> | 80 | </div> |
81 | </div> | 81 | </div> |
82 | </li> | 82 | </li> |
83 | <li> | 83 | <li> |
84 | <div class="hover"></div> | 84 | <div class="hover"></div> |
85 | <div class="title"> | 85 | <div class="title"> |
86 | <i class="fa fa-chevron-circle-right" aria-hidden="true"></i> | 86 | <i class="fa fa-chevron-circle-right" aria-hidden="true"></i> |
87 | おすすめデザインを使う | 87 | おすすめデザインを使う |
88 | </div> | 88 | </div> |
89 | <div class="content clearfix"> | 89 | <div class="content clearfix"> |
90 | <div class="col-xs-2 text-center"> | 90 | <div class="col-xs-2 text-center"> |
91 | <i class="fa fa-jpy" aria-hidden="true"></i> | 91 | <i class="fa fa-jpy" aria-hidden="true"></i> |
92 | </div> | 92 | </div> |
93 | <div class="col-xs-10 des padding-left-0"> | 93 | <div class="col-xs-10 des padding-left-0"> |
94 | おすすめデザインデータをご自由にカスタマイズしてお使いください | 94 | おすすめデザインデータをご自由にカスタマイズしてお使いください |
95 | </div> | 95 | </div> |
96 | </div> | 96 | </div> |
97 | </li> | 97 | </li> |
98 | </ul> | 98 | </ul> |
99 | <ul id="choice-illustration" ng-show="isShowLeftPanel=='illustration'"> | 99 | <ul id="choice-illustration" ng-show="isShowLeftPanel=='illustration'"> |
100 | <li> | 100 | <li> |
101 | <div class="hover"></div> | 101 | <div class="hover"></div> |
102 | <div class="title"> | 102 | <div class="title"> |
103 | <i class="fa fa-chevron-circle-right" aria-hidden="true"></i> | 103 | <!--<i class="fa fa-chevron-circle-right" aria-hidden="true"></i>--> |
104 | items | 104 | イラスト・イメージ選択 |
105 | </div> | 105 | </div> |
106 | <div class="content clearfix"> | 106 | <div class="content clearfix"> |
107 | <select id="illustration-select-category" ui-select2="illustrationSelectConfig" ng-model="currentIllustration" ng-change="changeIllustrationCategory(currentIllustration)" data-placeholder="Choose category" style="width: 100%"> | 107 | <select id="illustration-select-category" ui-select2="illustrationSelectConfig" ng-model="currentIllustration" ng-change="changeIllustrationCategory(currentIllustration)" data-placeholder="Choose category" style="width: 100%"> |
108 | <option ng-repeat="(key,cate) in IllustrationList" value="{{key}}">{{cate.name}}</option> | 108 | <option ng-repeat="(key,cate) in IllustrationList" value="{{key}}">{{cate.name}}</option> |
109 | </select> | 109 | </select> |
110 | <div class="illustration-list"> | 110 | <div class="illustration-list"> |
111 | <div class="illstration-item" ng-repeat="item in currentIllustrationCate.list" ng-click="insertSvg(item)"> | 111 | <div class="illstration-item" ng-repeat="item in currentIllustrationCate.list" ng-click="insertSvg(item)"> |
112 | <img ng-src="{{item.path}}"/> | 112 | <img ng-src="{{item.path}}"/> |
113 | </div> | 113 | </div> |
114 | <div class="clearfix"></div> | 114 | <div class="clearfix"></div> |
115 | </div> | 115 | </div> |
116 | </div> | 116 | </div> |
117 | </li> | 117 | </li> |
118 | <li> | 118 | <li> |
119 | <div class="hover"></div> | 119 | <div class="hover"></div> |
120 | <div class="title"> | 120 | <div class="title"> |
121 | <i class="fa fa-chevron-circle-right" aria-hidden="true"></i> | 121 | <!--<i class="fa fa-chevron-circle-right" aria-hidden="true"></i>--> |
122 | Color to fill | 122 | カラー変更 |
123 | <div class="pull-right">元の色に戻す</div> | ||
123 | </div> | 124 | </div> |
124 | <div class="content clearfix"> | 125 | <div class="content clearfix"> |
125 | <div class="color-patterns"> | 126 | <div class="color-patterns"> |
126 | <div class="color-pattern-item" ng-repeat="color in listColorPatterns track by $index" ng-click="changeColorPattern(color)" ng-style="{'background-color': color}"> | 127 | <div class="color-pattern-item" ng-repeat="color in listColorPatterns track by $index" ng-click="changeColorPattern(color)" ng-style="{'background-color': color}"> |
127 | </div> | 128 | </div> |
128 | <div class="clearfix"></div> | 129 | <div class="clearfix"></div> |
129 | </div> | 130 | </div> |
130 | </div> | 131 | </div> |
131 | </li> | 132 | </li> |
132 | <li> | 133 | <li> |
133 | <div class="hover"></div> | 134 | <div class="hover"></div> |
134 | <div class="title"> | 135 | <div class="title"> |
135 | <i class="fa fa-chevron-circle-right" aria-hidden="true"></i> | 136 | <!--<i class="fa fa-chevron-circle-right" aria-hidden="true"></i>--> |
136 | Layer option | 137 | 重ね順変更 |
137 | </div> | 138 | </div> |
138 | <div class="content clearfix"> | 139 | <div class="content clearfix"> |
139 | 140 | ||
140 | </div> | 141 | </div> |
141 | </li> | 142 | </li> |
142 | </ul> | 143 | </ul> |
143 | 144 | ||
144 | <!-- Text design--> | 145 | <!-- Text design--> |
145 | <ul id="choice-text" ng-show="isShowLeftPanel=='text'" ng-include="'views/design_part/text.html'"> | 146 | <ul id="choice-text" ng-show="isShowLeftPanel=='text'" ng-include="'views/design_part/text.html'"> |
146 | </ul> | 147 | </ul> |
147 | </div> | 148 | </div> |
148 | <div class="design-content col-xs-8"> | 149 | <div class="design-content col-xs-8"> |
149 | <div class="content" ng-style="{'background-color' : tShirtColorCode}"> | 150 | <div class="content" ng-style="{'background-color' : tShirtColorCode}"> |
150 | <canvas id="main-design-container" width="510px" height="620px" class="selection-design lower-canvas"> | 151 | <canvas id="main-design-container" width="510px" height="620px" class="selection-design lower-canvas"> |
151 | 152 | ||
152 | </canvas> | 153 | </canvas> |
153 | </div> | 154 | </div> |
154 | <div class="agree-design"> | 155 | <div class="agree-design"> |
155 | <img src="images/agree-design.png" alt="agree design" /> | 156 | <img src="images/agree-design.png" alt="agree design" /> |
156 | </div> | 157 | </div> |
157 | <div class="trash-design"> | 158 | <div class="trash-design"> |
158 | <img src="images/trash.png" alt="trash design" /> | 159 | <img src="images/trash.png" alt="trash design" /> |
159 | </div> | 160 | </div> |
160 | </div> | 161 | </div> |
161 | </section> | 162 | </section> |
162 | </div> | 163 | </div> |
163 | </div> | 164 | </div> |
164 | </div> | 165 | </div> |
165 | </div> | 166 | </div> |