Commit 19a5416862fe17c5be7f8ecff2b70c62af569ed0
1 parent
ba689b493b
Exists in
master
and in
1 other branch
restruct + fix style
Showing 12 changed files with 56 additions and 16 deletions Inline Diff
- app/images/layer-icon-1.png
- app/images/layer-icon-2.png
- app/images/layer-icon-3.png
- app/images/layer-icon-4.png
- app/index.html
- app/scripts/app.js
- app/scripts/controllers/main.js
- app/scripts/routes.js
- app/styles/main.css
- app/views/design_part/default.html
- app/views/design_part/image.html
- app/views/tshirt-design.html
app/images/layer-icon-1.png
1.31 KB
app/images/layer-icon-2.png
1.3 KB
app/images/layer-icon-3.png
1.38 KB
app/images/layer-icon-4.png
1.38 KB
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 = '15-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/app.js
1 | /*jshint unused: vars */ | 1 | /*jshint unused: vars */ |
2 | 2 | ||
3 | define(['angular','routes']/*deps*/, function (angular, configRoutes)/*invoke*/ { | 3 | define(['angular','routes']/*deps*/, function (angular, configRoutes)/*invoke*/ { |
4 | 'use strict'; | 4 | 'use strict'; |
5 | 5 | ||
6 | var app = angular.module('tshatsApp', [/*angJSDeps*/ | 6 | var app = angular.module('tshatsApp', [/*angJSDeps*/ |
7 | 'ngCookies', | 7 | 'ngCookies', |
8 | 'ngRoute', | 8 | 'ngRoute', |
9 | 'ui.select2' | 9 | 'ui.select2' |
10 | ]); | 10 | ]); |
11 | app.config([ | 11 | app.config([ |
12 | '$routeProvider', | 12 | '$routeProvider', |
13 | '$locationProvider', | 13 | '$locationProvider', |
14 | '$controllerProvider', | 14 | '$controllerProvider', |
15 | '$compileProvider', | 15 | '$compileProvider', |
16 | '$filterProvider', | 16 | '$filterProvider', |
17 | '$provide', | 17 | '$provide', |
18 | function ($routeProvider, $locationProvider, $controllerProvider, $compileProvider, $filterProvider, $provide) { | 18 | function ($routeProvider, $locationProvider, $controllerProvider, $compileProvider, $filterProvider, $provide) { |
19 | 19 | ||
20 | app.controller = $controllerProvider.register; | 20 | app.controller = $controllerProvider.register; |
21 | app.directive = $compileProvider.directive; | 21 | app.directive = $compileProvider.directive; |
22 | app.filter = $filterProvider.register; | 22 | app.filter = $filterProvider.register; |
23 | app.factory = $provide.factory; | 23 | app.factory = $provide.factory; |
24 | app.service = $provide.service; | 24 | app.service = $provide.service; |
25 | 25 | ||
26 | // enable below line for enable html5 mode | 26 | // enable below line for enable html5 mode |
27 | // $locationProvider.html5Mode({ | 27 | // $locationProvider.html5Mode({ |
28 | // enabled: true, | 28 | // enabled: true, |
29 | // requireBase: false | 29 | // requireBase: false |
30 | // }); | 30 | // }); |
31 | 31 | ||
32 | /* resolve controller function for lazyload */ | 32 | /* resolve controller function for lazyload */ |
33 | var resolveController = function (dependencies){ | 33 | var resolveController = function (dependencies){ |
34 | return { | 34 | return { |
35 | load: ['$q', '$rootScope', function ($q, $rootScope) { | 35 | load: ['$q', '$rootScope', function ($q, $rootScope) { |
36 | var defer = $q.defer(); | 36 | var defer = $q.defer(); |
37 | require(dependencies, function () { | 37 | require(dependencies, function () { |
38 | $rootScope.$apply(function() { | 38 | $rootScope.$apply(function() { |
39 | defer.resolve(); | 39 | defer.resolve(); |
40 | }); | 40 | }); |
41 | }); | 41 | }); |
42 | return defer.promise; | 42 | return defer.promise; |
43 | }] | 43 | }] |
44 | }; | 44 | }; |
45 | }; | 45 | }; |
46 | 46 | ||
47 | if (configRoutes.routes !== undefined){ | 47 | if (configRoutes.routes !== undefined){ |
48 | angular.forEach(configRoutes.routes, function(route, path) | 48 | angular.forEach(configRoutes.routes, function(route, path) |
49 | { | 49 | { |
50 | $routeProvider.when(path, {templateUrl: route.templateUrl, resolve: resolveController(route.dependencies)}); | 50 | $routeProvider.when(path, {templateUrl: route.templateUrl+'?ver='+VERSION, resolve: resolveController(route.dependencies)}); |
51 | }); | 51 | }); |
52 | } | 52 | } |
53 | 53 | ||
54 | if (configRoutes.defaultRoutePaths !== undefined){ | 54 | if (configRoutes.defaultRoutePaths !== undefined){ |
55 | $routeProvider.otherwise({redirectTo: configRoutes.defaultRoutePaths}); | 55 | $routeProvider.otherwise({redirectTo: configRoutes.defaultRoutePaths}); |
56 | } | 56 | } |
57 | } | 57 | } |
58 | ]); | 58 | ]); |
59 | return app; | 59 | return app; |
60 | }); | 60 | }); |
61 | 61 |
app/scripts/controllers/main.js
1 | define(['app'], function (app) { | 1 | define(['app'], function (app) { |
2 | 'use strict'; | 2 | 'use strict'; |
3 | app.controller('MainCtrl', function ($rootScope, $scope, $illustration, $t_shirt) { | 3 | app.controller('MainCtrl', function ($rootScope, $scope, $illustration, $t_shirt) { |
4 | $scope.designFrameView = 'views/tshirt-design.html?ver='+VERSION; | 4 | $scope.designFrameView = 'views/tshirt-design.html?ver='+VERSION; |
5 | $scope.designPartIllustration = 'views/design_part/illustration.html?ver='+VERSION; | 5 | $scope.designPartIllustration = 'views/design_part/illustration.html?ver='+VERSION; |
6 | $scope.designPartImage = 'views/design_part/image.html?ver='+VERSION; | ||
7 | $scope.designPartText = 'views/design_part/text.html?ver='+VERSION; | ||
8 | $scope.designPartDefault = 'views/design_part/default.html?ver='+VERSION; | ||
6 | 9 | ||
7 | //Action T-Shirt choice color and Back or Front | 10 | //Action T-Shirt choice color and Back or Front |
8 | $scope.tShirtColor = $t_shirt.getTShirtColor(0); | 11 | $scope.tShirtColor = $t_shirt.getTShirtColor(0); |
9 | //Set color name default | 12 | //Set color name default |
10 | var tShirtColorFirstKey = 0; | 13 | var tShirtColorFirstKey = 0; |
11 | $scope.tShirtChoiceBackFrontKey = 'front'; | 14 | $scope.tShirtChoiceBackFrontKey = 'front'; |
12 | $scope.tShirtColorKey = tShirtColorFirstKey; | 15 | $scope.tShirtColorKey = tShirtColorFirstKey; |
13 | $rootScope.tShirtColorCode = $scope.tShirtColor[tShirtColorFirstKey].code; | 16 | $rootScope.tShirtColorCode = $scope.tShirtColor[tShirtColorFirstKey].code; |
14 | $scope.tShirtColorName = $scope.tShirtColor[tShirtColorFirstKey].name; | 17 | $scope.tShirtColorName = $scope.tShirtColor[tShirtColorFirstKey].name; |
15 | $scope.tShirtImgFront = $scope.tShirtColor[tShirtColorFirstKey].img.front; | 18 | $scope.tShirtImgFront = $scope.tShirtColor[tShirtColorFirstKey].img.front; |
16 | $scope.tShirtImgBack = $scope.tShirtColor[tShirtColorFirstKey].img.back; | 19 | $scope.tShirtImgBack = $scope.tShirtColor[tShirtColorFirstKey].img.back; |
17 | $scope.tShirtImg = $scope.tShirtImgFront; | 20 | $scope.tShirtImg = $scope.tShirtImgFront; |
18 | 21 | ||
19 | $scope.choiceTShirtColor = function(key) { | 22 | $scope.choiceTShirtColor = function(key) { |
20 | $scope.tShirtColorKey = key; | 23 | $scope.tShirtColorKey = key; |
21 | $rootScope.tShirtColorCode = $scope.tShirtColor[key].code; | 24 | $rootScope.tShirtColorCode = $scope.tShirtColor[key].code; |
22 | $scope.tShirtColorName = $scope.tShirtColor[key].name; | 25 | $scope.tShirtColorName = $scope.tShirtColor[key].name; |
23 | $scope.tShirtImgFront = $scope.tShirtColor[key].img.front; | 26 | $scope.tShirtImgFront = $scope.tShirtColor[key].img.front; |
24 | $scope.tShirtImgBack = $scope.tShirtColor[key].img.back; | 27 | $scope.tShirtImgBack = $scope.tShirtColor[key].img.back; |
25 | if($scope.tShirtChoiceBackFrontKey == 'front') { | 28 | if($scope.tShirtChoiceBackFrontKey == 'front') { |
26 | $scope.tShirtImg = $scope.tShirtImgFront; | 29 | $scope.tShirtImg = $scope.tShirtImgFront; |
27 | } else { | 30 | } else { |
28 | $scope.tShirtImg = $scope.tShirtImgBack; | 31 | $scope.tShirtImg = $scope.tShirtImgBack; |
29 | } | 32 | } |
30 | }; | 33 | }; |
31 | $scope.choiceTShirtBackFront = function(choice) { | 34 | $scope.choiceTShirtBackFront = function(choice) { |
32 | if(choice == 'front') { | 35 | if(choice == 'front') { |
33 | $scope.tShirtImg = $scope.tShirtImgFront; | 36 | $scope.tShirtImg = $scope.tShirtImgFront; |
34 | } else { | 37 | } else { |
35 | $scope.tShirtImg = $scope.tShirtImgBack; | 38 | $scope.tShirtImg = $scope.tShirtImgBack; |
36 | } | 39 | } |
37 | $scope.tShirtChoiceBackFrontKey = choice; | 40 | $scope.tShirtChoiceBackFrontKey = choice; |
38 | }; | 41 | }; |
39 | 42 | ||
40 | 43 | ||
41 | $scope.showIllustration = function(tab){ | 44 | $scope.showDesignTab = function(tab){ |
42 | $rootScope.isShowLeftPanel = tab; | 45 | $rootScope.isShowLeftPanel = tab; |
43 | switch (tab) { | 46 | switch (tab) { |
44 | case 'illustration': { | 47 | case 'illustration': { |
45 | $scope.IllustrationList = $illustration.getAll(); | 48 | $scope.IllustrationList = $illustration.getAll(); |
46 | $scope.illustrationSelectConfig = { | 49 | $scope.illustrationSelectConfig = { |
47 | allowClear:true | 50 | allowClear:true |
48 | }; | 51 | }; |
49 | break; | 52 | break; |
50 | } | 53 | } |
51 | case 'text': { | 54 | case 'text': { |
52 | break; | 55 | break; |
53 | } | 56 | } |
54 | } | 57 | } |
55 | }; | 58 | }; |
56 | 59 | ||
57 | //safeApply | 60 | //safeApply |
58 | $rootScope.safeApply = function(fn) { | 61 | $rootScope.safeApply = function(fn) { |
59 | var phase = this.$root.$$phase; | 62 | var phase = this.$root.$$phase; |
60 | if(phase == '$apply' || phase == '$digest') { | 63 | if(phase == '$apply' || phase == '$digest') { |
61 | if(fn && (typeof(fn) === 'function')) { | 64 | if(fn && (typeof(fn) === 'function')) { |
62 | fn(); | 65 | fn(); |
63 | } | 66 | } |
64 | } else { | 67 | } else { |
65 | this.$apply(fn); | 68 | this.$apply(fn); |
66 | } | 69 | } |
67 | }; | 70 | }; |
68 | 71 | ||
69 | $scope.modalTShirtDesign = function() { | 72 | $scope.modalTShirtDesign = function() { |
70 | $('#tshirt-design').modal( | 73 | $('#tshirt-design').modal( |
71 | { | 74 | { |
72 | backdrop: 'static', | 75 | backdrop: 'static', |
73 | keyboard: false | 76 | keyboard: false |
74 | } | 77 | } |
75 | ); | 78 | ); |
76 | $scope.showIllustration('default'); | 79 | $scope.showDesignTab('default'); |
77 | }; | 80 | }; |
78 | $scope.modalClose = function(){ | 81 | $scope.modalClose = function(){ |
79 | $('#tshirt-design').modal('hide'); | 82 | $('#tshirt-design').modal('hide'); |
80 | }; | 83 | }; |
81 | 84 | ||
82 | 85 | ||
83 | 86 | ||
84 | 87 | ||
85 | }); | 88 | }); |
86 | }); | 89 | }); |
87 | 90 |
app/scripts/routes.js
1 | define([], function(){ | 1 | define([], function(){ |
2 | 'use strict'; | 2 | 'use strict'; |
3 | return { | 3 | return { |
4 | defaultRoutePaths: '/', | 4 | defaultRoutePaths: '/', |
5 | routes: { | 5 | routes: { |
6 | /* add more routes */ | 6 | /* add more routes */ |
7 | '/': { | 7 | '/': { |
8 | templateUrl: 'views/main.html?ver='+VERSION, | 8 | templateUrl: 'views/main.html', |
9 | dependencies: [ | 9 | dependencies: [ |
10 | 'scripts/controllers/main.js', | 10 | 'scripts/controllers/main.js', |
11 | 'scripts/controllers/tshirtdesign.js', | 11 | 'scripts/controllers/tshirtdesign.js', |
12 | 'scripts/services/illustration.js', | 12 | 'scripts/services/illustration.js', |
13 | 'scripts/services/tshirt.js' | 13 | 'scripts/services/tshirt.js' |
14 | ] | 14 | ] |
15 | } | 15 | } |
16 | } | 16 | } |
17 | }; | 17 | }; |
18 | }); | 18 | }); |
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 | @import "../fonts/font_canvas/font-canvas.css"; | 3 | @import "../fonts/font_canvas/font-canvas.css"; |
4 | body { | 4 | body { |
5 | font-family: 'Hiragino Kaku Gothic Pro', sans-serif; | 5 | font-family: 'Hiragino Kaku Gothic Pro', sans-serif; |
6 | /*font-family: 'gn_aki_iro_sesami_cookies';*/ | 6 | /*font-family: 'gn_aki_iro_sesami_cookies';*/ |
7 | } | 7 | } |
8 | 8 | ||
9 | .padding-right-0{ | 9 | .padding-right-0{ |
10 | padding-right: 0!important; | 10 | padding-right: 0!important; |
11 | } | 11 | } |
12 | .padding-left-0{ | 12 | .padding-left-0{ |
13 | padding-left: 0!important; | 13 | padding-left: 0!important; |
14 | } | 14 | } |
15 | button.red{ | 15 | button.red{ |
16 | color: #ffffff; | 16 | color: #ffffff; |
17 | background-color: #ff0000; | 17 | background-color: #ff0000; |
18 | border: 1px solid #ff0000; | 18 | border: 1px solid #ff0000; |
19 | 19 | ||
20 | } | 20 | } |
21 | button.white{ | 21 | button.white{ |
22 | border: 1px solid #ff8080; | 22 | border: 1px solid #ff8080; |
23 | color: #ff8080; | 23 | color: #ff8080; |
24 | background-color: #ffffff; | 24 | background-color: #ffffff; |
25 | } | 25 | } |
26 | button.brown{ | 26 | button.brown{ |
27 | background-color: #666666; | 27 | background-color: #666666; |
28 | border: 1px solid #666666; | 28 | border: 1px solid #666666; |
29 | color: #ffffff; | 29 | color: #ffffff; |
30 | border-radius: 5px; | 30 | border-radius: 5px; |
31 | } | 31 | } |
32 | button.black{ | 32 | button.black{ |
33 | border: 1px solid #c9c9c9; | 33 | border: 1px solid #c9c9c9; |
34 | background-color: #343434; | 34 | background-color: #343434; |
35 | color: #ffffff; | 35 | color: #ffffff; |
36 | padding: 1px 6px; | 36 | padding: 1px 6px; |
37 | } | 37 | } |
38 | #tshirt-container{ | 38 | #tshirt-container{ |
39 | border-left: 1px solid #dcdcdc; | 39 | border-left: 1px solid #dcdcdc; |
40 | border-right: 1px solid #dcdcdc; | 40 | border-right: 1px solid #dcdcdc; |
41 | } | 41 | } |
42 | /*HEADER*/ | 42 | /*HEADER*/ |
43 | header{ | 43 | header{ |
44 | border-bottom: 1px solid #dcdcdc; | 44 | border-bottom: 1px solid #dcdcdc; |
45 | } | 45 | } |
46 | header .logo{ | 46 | header .logo{ |
47 | color: #ed1d24; | 47 | color: #ed1d24; |
48 | font-size: 30px; | 48 | font-size: 30px; |
49 | text-transform: uppercase; | 49 | text-transform: uppercase; |
50 | font-weight: bold; | 50 | font-weight: bold; |
51 | } | 51 | } |
52 | header .logo img{ | 52 | header .logo img{ |
53 | width: 60px; | 53 | width: 60px; |
54 | } | 54 | } |
55 | /*NAVIGATION*/ | 55 | /*NAVIGATION*/ |
56 | nav{ | 56 | nav{ |
57 | border-bottom: 1px solid #dcdcdc; | 57 | border-bottom: 1px solid #dcdcdc; |
58 | padding: 10px 0; | 58 | padding: 10px 0; |
59 | } | 59 | } |
60 | nav h2{ | 60 | nav h2{ |
61 | font-size: 27px; | 61 | font-size: 27px; |
62 | margin: 0 0; | 62 | margin: 0 0; |
63 | } | 63 | } |
64 | nav ul{ | 64 | nav ul{ |
65 | list-style: none; | 65 | list-style: none; |
66 | padding-left: 0; | 66 | padding-left: 0; |
67 | margin-bottom: 0; | 67 | margin-bottom: 0; |
68 | 68 | ||
69 | } | 69 | } |
70 | nav ul li{ | 70 | nav ul li{ |
71 | margin-left: 2px; | 71 | margin-left: 2px; |
72 | float: left; | 72 | float: left; |
73 | padding: 6px 12px; | 73 | padding: 6px 12px; |
74 | background-color: #999999; | 74 | background-color: #999999; |
75 | position: relative; | 75 | position: relative; |
76 | } | 76 | } |
77 | nav ul li i.fa{ | 77 | nav ul li i.fa{ |
78 | position: absolute; | 78 | position: absolute; |
79 | color: #ffffff; | 79 | color: #ffffff; |
80 | font-size: 18px; | 80 | font-size: 18px; |
81 | right: -4px; | 81 | right: -4px; |
82 | top: 50%; | 82 | top: 50%; |
83 | transform: translateX(-50%) translateY(-50%); | 83 | transform: translateX(-50%) translateY(-50%); |
84 | -webkit-transform: translateX(-50%) translateY(-50%); | 84 | -webkit-transform: translateX(-50%) translateY(-50%); |
85 | } | 85 | } |
86 | nav ul li a{ | 86 | nav ul li a{ |
87 | color: #ffffff; | 87 | color: #ffffff; |
88 | } | 88 | } |
89 | nav ul li:hover a{ | 89 | nav ul li:hover a{ |
90 | text-decoration: none; | 90 | text-decoration: none; |
91 | color: #ffffff; | 91 | color: #ffffff; |
92 | } | 92 | } |
93 | nav ul li.action{ | 93 | nav ul li.action{ |
94 | color: #ffffff; | 94 | color: #ffffff; |
95 | background-color: #ed1d24; | 95 | background-color: #ed1d24; |
96 | } | 96 | } |
97 | /*ASIDE*/ | 97 | /*ASIDE*/ |
98 | aside{ | 98 | aside{ |
99 | margin: 10px 0; | 99 | margin: 10px 0; |
100 | } | 100 | } |
101 | 101 | ||
102 | aside .break-down{ | 102 | aside .break-down{ |
103 | padding: 0 0; | 103 | padding: 0 0; |
104 | } | 104 | } |
105 | aside .break-down i.fa{ | 105 | aside .break-down i.fa{ |
106 | font-size: 35px; | 106 | font-size: 35px; |
107 | color: #ff0000; | 107 | color: #ff0000; |
108 | } | 108 | } |
109 | aside .break-line{ | 109 | aside .break-line{ |
110 | height: 10px; | 110 | height: 10px; |
111 | } | 111 | } |
112 | aside .break-line hr{ | 112 | aside .break-line hr{ |
113 | border-top: 1px dotted #cccccc; | 113 | border-top: 1px dotted #cccccc; |
114 | } | 114 | } |
115 | aside .step{ | 115 | aside .step{ |
116 | margin: 0 0; | 116 | margin: 0 0; |
117 | } | 117 | } |
118 | aside .step .title{ | 118 | aside .step .title{ |
119 | font-size: 15px; | 119 | font-size: 15px; |
120 | line-height: 16px; | 120 | line-height: 16px; |
121 | font-weight: bold; | 121 | font-weight: bold; |
122 | margin-bottom: 3px; | 122 | margin-bottom: 3px; |
123 | } | 123 | } |
124 | aside .step .title-notice{ | 124 | aside .step .title-notice{ |
125 | font-size: 13px; | 125 | font-size: 13px; |
126 | line-height: 16px; | 126 | line-height: 16px; |
127 | margin-bottom: 3px; | 127 | margin-bottom: 3px; |
128 | } | 128 | } |
129 | aside .step .title-notice .require{ | 129 | aside .step .title-notice .require{ |
130 | font-size: 10px; | 130 | font-size: 10px; |
131 | } | 131 | } |
132 | aside .step .step-box{ | 132 | aside .step .step-box{ |
133 | border: 2px solid #dcdcdc; | 133 | border: 2px solid #dcdcdc; |
134 | font-size: 12px; | 134 | font-size: 12px; |
135 | 135 | ||
136 | } | 136 | } |
137 | /*Step 1*/ | 137 | /*Step 1*/ |
138 | aside .step .step-box .tshirt-design{ | 138 | aside .step .step-box .tshirt-design{ |
139 | border: 1px solid #cccccc; | 139 | border: 1px solid #cccccc; |
140 | background-color: #f5f5f5; | 140 | background-color: #f5f5f5; |
141 | margin: 10px 10px; | 141 | margin: 10px 10px; |
142 | } | 142 | } |
143 | aside .step .step-box .tshirt-design:hover{ | 143 | aside .step .step-box .tshirt-design:hover{ |
144 | border: 1px solid #ff0000; | 144 | border: 1px solid #ff0000; |
145 | } | 145 | } |
146 | aside .step .step-box .tshirt-design button:hover{ | 146 | aside .step .step-box .tshirt-design button:hover{ |
147 | background-color: #fa7b7b; | 147 | background-color: #fa7b7b; |
148 | border: 1px solid #fa7b7b; | 148 | border: 1px solid #fa7b7b; |
149 | } | 149 | } |
150 | aside .step .step-box .tshirt-design div{ | 150 | aside .step .step-box .tshirt-design div{ |
151 | float: left; | 151 | float: left; |
152 | } | 152 | } |
153 | aside .step .step-box .tshirt-design .icon{ | 153 | aside .step .step-box .tshirt-design .icon{ |
154 | padding: 4px 4px; | 154 | padding: 4px 4px; |
155 | border-right: 1px solid #cccccc; | 155 | border-right: 1px solid #cccccc; |
156 | 156 | ||
157 | } | 157 | } |
158 | aside .step .step-box .tshirt-design .icon img{ | 158 | aside .step .step-box .tshirt-design .icon img{ |
159 | height: 50px; | 159 | height: 50px; |
160 | } | 160 | } |
161 | aside .step .step-box .tshirt-design .name{ | 161 | aside .step .step-box .tshirt-design .name{ |
162 | padding: 10px 10px; | 162 | padding: 10px 10px; |
163 | 163 | ||
164 | } | 164 | } |
165 | aside .step .step-box .tshirt-design .action{ | 165 | aside .step .step-box .tshirt-design .action{ |
166 | padding: 10px 10px; | 166 | padding: 10px 10px; |
167 | float: right; | 167 | float: right; |
168 | 168 | ||
169 | } | 169 | } |
170 | aside .step .step-box .tshirt-design .action button{ | 170 | aside .step .step-box .tshirt-design .action button{ |
171 | padding: 8px 10px; | 171 | padding: 8px 10px; |
172 | } | 172 | } |
173 | /*Step 2*/ | 173 | /*Step 2*/ |
174 | aside .step .step-box .tshirt-color{ | 174 | aside .step .step-box .tshirt-color{ |
175 | padding: 6px 10px; | 175 | padding: 6px 10px; |
176 | position: relative; | 176 | position: relative; |
177 | } | 177 | } |
178 | aside .step .step-box .tshirt-color ul.choice-color{ | 178 | aside .step .step-box .tshirt-color ul.choice-color{ |
179 | float: left; | 179 | float: left; |
180 | list-style: none; | 180 | list-style: none; |
181 | padding-left: 0; | 181 | padding-left: 0; |
182 | width: 100%; | 182 | width: 100%; |
183 | margin-bottom: 3px; | 183 | margin-bottom: 3px; |
184 | } | 184 | } |
185 | aside .step .step-box .tshirt-color ul.choice-color li{ | 185 | aside .step .step-box .tshirt-color ul.choice-color li{ |
186 | margin: 0 10px 0 0; | 186 | margin: 0 10px 0 0; |
187 | border: 1px solid #cccccc; | 187 | border: 1px solid #cccccc; |
188 | padding: 2px 2px; | 188 | padding: 2px 2px; |
189 | float: left; | 189 | float: left; |
190 | cursor: pointer; | 190 | cursor: pointer; |
191 | } | 191 | } |
192 | aside .step .step-box .tshirt-color ul.choice-color li.action{ | 192 | aside .step .step-box .tshirt-color ul.choice-color li.action{ |
193 | border: 1px solid #ff0000; | 193 | border: 1px solid #ff0000; |
194 | } | 194 | } |
195 | aside .step .step-box .tshirt-color ul.choice-color li:hover{ | 195 | aside .step .step-box .tshirt-color ul.choice-color li:hover{ |
196 | border: 1px solid #ff0000; | 196 | border: 1px solid #ff0000; |
197 | } | 197 | } |
198 | aside .step .step-box .tshirt-color ul.choice-color li div{ | 198 | aside .step .step-box .tshirt-color ul.choice-color li div{ |
199 | height: 30px; | 199 | height: 30px; |
200 | width: 30px; | 200 | width: 30px; |
201 | } | 201 | } |
202 | 202 | ||
203 | aside .step .step-box .tshirt-color ul.choice-color li.white div{ | 203 | aside .step .step-box .tshirt-color ul.choice-color li.white div{ |
204 | background-color: #ece7e4; | 204 | background-color: #ece7e4; |
205 | } | 205 | } |
206 | aside .step .step-box .tshirt-color ul.choice-color li.blue div{ | 206 | aside .step .step-box .tshirt-color ul.choice-color li.blue div{ |
207 | background-color: #e7dfd0; | 207 | background-color: #e7dfd0; |
208 | } | 208 | } |
209 | aside .step .step-box .tshirt-color .color-name{ | 209 | aside .step .step-box .tshirt-color .color-name{ |
210 | width: 100%; | 210 | width: 100%; |
211 | font-size: 10px; | 211 | font-size: 10px; |
212 | } | 212 | } |
213 | aside .step .step-box .tshirt-color .view-more{ | 213 | aside .step .step-box .tshirt-color .view-more{ |
214 | position: absolute; | 214 | position: absolute; |
215 | bottom: 6px; | 215 | bottom: 6px; |
216 | right: 10px; | 216 | right: 10px; |
217 | } | 217 | } |
218 | /*Step 3*/ | 218 | /*Step 3*/ |
219 | aside .step .step-box .tshirt-saveorder{ | 219 | aside .step .step-box .tshirt-saveorder{ |
220 | padding: 10px 10px 6px 10px; | 220 | padding: 10px 10px 6px 10px; |
221 | } | 221 | } |
222 | aside .step .step-box .tshirt-saveorder .action{ | 222 | aside .step .step-box .tshirt-saveorder .action{ |
223 | width: 50%; | 223 | width: 50%; |
224 | float: left; | 224 | float: left; |
225 | } | 225 | } |
226 | aside .step .step-box .tshirt-saveorder .action:first-child{ | 226 | aside .step .step-box .tshirt-saveorder .action:first-child{ |
227 | padding-right: 5px; | 227 | padding-right: 5px; |
228 | } | 228 | } |
229 | aside .step .step-box .tshirt-saveorder .action:last-child{ | 229 | aside .step .step-box .tshirt-saveorder .action:last-child{ |
230 | padding-left: 5px; | 230 | padding-left: 5px; |
231 | } | 231 | } |
232 | aside .step .step-box .tshirt-saveorder .action button{ | 232 | aside .step .step-box .tshirt-saveorder .action button{ |
233 | padding: 8px 10px; | 233 | padding: 8px 10px; |
234 | 234 | ||
235 | } | 235 | } |
236 | aside .step .step-box .tshirt-saveorder .action button .text{ | 236 | aside .step .step-box .tshirt-saveorder .action button .text{ |
237 | float: left; | 237 | float: left; |
238 | width: 80%; | 238 | width: 80%; |
239 | text-align: center; | 239 | text-align: center; |
240 | padding-left: 10px; | 240 | padding-left: 10px; |
241 | vertical-align: bottom; | 241 | vertical-align: bottom; |
242 | } | 242 | } |
243 | aside .step .step-box .tshirt-saveorder .action button .arrow{ | 243 | aside .step .step-box .tshirt-saveorder .action button .arrow{ |
244 | float: left; | 244 | float: left; |
245 | width: 20%; | 245 | width: 20%; |
246 | height: 40px; | 246 | height: 40px; |
247 | position: relative; | 247 | position: relative; |
248 | } | 248 | } |
249 | aside .step .step-box .tshirt-saveorder .action button .arrow i.fa{ | 249 | aside .step .step-box .tshirt-saveorder .action button .arrow i.fa{ |
250 | position: absolute; | 250 | position: absolute; |
251 | top: 50%; | 251 | top: 50%; |
252 | right: -6px; | 252 | right: -6px; |
253 | transform: translateX(-50%) translateY(-50%); | 253 | transform: translateX(-50%) translateY(-50%); |
254 | -webkit-transform: translateX(-50%) translateY(-50%); | 254 | -webkit-transform: translateX(-50%) translateY(-50%); |
255 | } | 255 | } |
256 | aside .step .step-box .tshirt-saveorder .notice{ | 256 | aside .step .step-box .tshirt-saveorder .notice{ |
257 | padding: 5px 0 0 0; | 257 | padding: 5px 0 0 0; |
258 | } | 258 | } |
259 | /*Step 4*/ | 259 | /*Step 4*/ |
260 | aside .step .title-notice{ | 260 | aside .step .title-notice{ |
261 | 261 | ||
262 | } | 262 | } |
263 | aside .step .step-box .change-design{ | 263 | aside .step .step-box .change-design{ |
264 | padding: 4px 4px; | 264 | padding: 4px 4px; |
265 | } | 265 | } |
266 | aside .step .step-box .change-design table{ | 266 | aside .step .step-box .change-design table{ |
267 | 267 | ||
268 | } | 268 | } |
269 | aside .step .step-box .change-design table tr{ | 269 | aside .step .step-box .change-design table tr{ |
270 | border-bottom: 1px dotted #cccccc; | 270 | border-bottom: 1px dotted #cccccc; |
271 | } | 271 | } |
272 | aside .step .step-box .change-design table tr:last-child{ | 272 | aside .step .step-box .change-design table tr:last-child{ |
273 | border-bottom: 0; | 273 | border-bottom: 0; |
274 | } | 274 | } |
275 | 275 | ||
276 | /*Step 5- finish*/ | 276 | /*Step 5- finish*/ |
277 | aside .step .finish-design{ | 277 | aside .step .finish-design{ |
278 | padding: 20px 0; | 278 | padding: 20px 0; |
279 | } | 279 | } |
280 | aside .step .finish-design button{ | 280 | aside .step .finish-design button{ |
281 | width: 100%; | 281 | width: 100%; |
282 | padding: 8px 10px; | 282 | padding: 8px 10px; |
283 | } | 283 | } |
284 | 284 | ||
285 | /*DESIGN CONTENT*/ | 285 | /*DESIGN CONTENT*/ |
286 | #tshirt-content{ | 286 | #tshirt-content{ |
287 | position: relative; | 287 | position: relative; |
288 | } | 288 | } |
289 | #tshirt-content .switch-border-design{ | 289 | #tshirt-content .switch-border-design{ |
290 | position: absolute; | 290 | position: absolute; |
291 | top: 5px; | 291 | top: 5px; |
292 | right: 10px; | 292 | right: 10px; |
293 | color: red; | 293 | color: red; |
294 | font-size: 11px; | 294 | font-size: 11px; |
295 | } | 295 | } |
296 | #tshirt-content .tshirt-image{ | 296 | #tshirt-content .tshirt-image{ |
297 | padding: 20px 0 0 0; | 297 | padding: 20px 0 0 0; |
298 | } | 298 | } |
299 | #tshirt-content .tshirt-choice{ | 299 | #tshirt-content .tshirt-choice{ |
300 | 300 | ||
301 | } | 301 | } |
302 | #tshirt-content .tshirt-choice ul{ | 302 | #tshirt-content .tshirt-choice ul{ |
303 | list-style: none; | 303 | list-style: none; |
304 | padding-left: 0; | 304 | padding-left: 0; |
305 | display: table; | 305 | display: table; |
306 | margin: auto; | 306 | margin: auto; |
307 | } | 307 | } |
308 | #tshirt-content .tshirt-choice ul li{ | 308 | #tshirt-content .tshirt-choice ul li{ |
309 | float: left; | 309 | float: left; |
310 | margin: 10px 10px; | 310 | margin: 10px 10px; |
311 | cursor: pointer; | 311 | cursor: pointer; |
312 | } | 312 | } |
313 | #tshirt-content .tshirt-choice ul li .image{ | 313 | #tshirt-content .tshirt-choice ul li .image{ |
314 | border: 1px solid #cccccc; | 314 | border: 1px solid #cccccc; |
315 | padding: 3px 3px; | 315 | padding: 3px 3px; |
316 | } | 316 | } |
317 | #tshirt-content .tshirt-choice ul li.focus{ | 317 | #tshirt-content .tshirt-choice ul li.focus{ |
318 | 318 | ||
319 | } | 319 | } |
320 | #tshirt-content .tshirt-choice ul li.focus .image{ | 320 | #tshirt-content .tshirt-choice ul li.focus .image{ |
321 | border: 1px solid #ff0000; | 321 | border: 1px solid #ff0000; |
322 | } | 322 | } |
323 | #tshirt-content .tshirt-choice ul li .image img{ | 323 | #tshirt-content .tshirt-choice ul li .image img{ |
324 | width: 50px; | 324 | width: 50px; |
325 | height: auto; | 325 | height: auto; |
326 | } | 326 | } |
327 | /*MODAL Design*/ | 327 | /*MODAL Design*/ |
328 | #tshirt-design{ | 328 | #tshirt-design{ |
329 | background-color: #666666; | 329 | background-color: #666666; |
330 | } | 330 | } |
331 | #tshirt-design .modal-dialog{ | 331 | #tshirt-design .modal-dialog{ |
332 | width: 75%; | 332 | width: 75%; |
333 | margin: 0 auto; | 333 | margin: 0 auto; |
334 | } | 334 | } |
335 | #tshirt-design .modal-dialog .modal-content{ | 335 | #tshirt-design .modal-dialog .modal-content{ |
336 | background-color: transparent; | 336 | background-color: transparent; |
337 | border-radius: 0; | 337 | border-radius: 0; |
338 | border: 0; | 338 | border: 0; |
339 | -webkit-box-shadow: 0 0 0 rgba(0, 0, 0, .5)!important; | 339 | -webkit-box-shadow: 0 0 0 rgba(0, 0, 0, .5)!important; |
340 | box-shadow: 0 0 0 rgba(0, 0, 0, .5)!important; | 340 | box-shadow: 0 0 0 rgba(0, 0, 0, .5)!important; |
341 | } | 341 | } |
342 | #tshirt-design .modal-dialog .modal-content .modal-header{ | 342 | #tshirt-design .modal-dialog .modal-content .modal-header{ |
343 | padding: 0 0 10px 0; | 343 | padding: 0 0 10px 0; |
344 | border-bottom: 0; | 344 | border-bottom: 0; |
345 | border-shadow: none!important; | 345 | border-shadow: none!important; |
346 | } | 346 | } |
347 | #tshirt-design .modal-dialog .modal-content .modal-body{ | 347 | #tshirt-design .modal-dialog .modal-content .modal-body{ |
348 | background-color: #f5f5f5; | 348 | background-color: #f5f5f5; |
349 | padding: 0 0; | 349 | padding: 0 0; |
350 | } | 350 | } |
351 | #tshirt-design header{ | 351 | #tshirt-design header{ |
352 | border-bottom: 1px solid #cccccc; | 352 | border-bottom: 1px solid #cccccc; |
353 | background-color: #dddddd; | 353 | background-color: #dddddd; |
354 | } | 354 | } |
355 | #tshirt-design header ul.nav{ | 355 | #tshirt-design header ul.nav{ |
356 | padding-left: 0; | 356 | padding-left: 0; |
357 | list-style: none; | 357 | list-style: none; |
358 | } | 358 | } |
359 | #tshirt-design header ul.nav li{ | 359 | #tshirt-design header ul.nav li{ |
360 | float: left; | 360 | float: left; |
361 | padding: 8px 26px; | 361 | padding: 8px 26px; |
362 | border-right: 1px solid #cccccc; | 362 | border-right: 1px solid #cccccc; |
363 | font-size: 14px; | 363 | font-size: 14px; |
364 | cursor: pointer; | 364 | cursor: pointer; |
365 | } | 365 | } |
366 | #tshirt-design header ul.nav li:hover, #tshirt-design header ul.nav li.active{ | 366 | #tshirt-design header ul.nav li:hover, #tshirt-design header ul.nav li.active{ |
367 | background-color: red; | 367 | background-color: red; |
368 | color: #ffffff; | 368 | color: #ffffff; |
369 | } | 369 | } |
370 | #tshirt-design header ul.nav li:hover i.fa, #tshirt-design header ul.nav li.active i.fa{ | 370 | #tshirt-design header ul.nav li:hover i.fa, #tshirt-design header ul.nav li.active i.fa{ |
371 | color: #ffffff; | 371 | color: #ffffff; |
372 | } | 372 | } |
373 | #tshirt-design header ul.nav li i.fa{ | 373 | #tshirt-design header ul.nav li i.fa{ |
374 | color: #fe070f; | 374 | color: #fe070f; |
375 | font-size: 20px; | 375 | font-size: 20px; |
376 | margin-right: 10px; | 376 | margin-right: 10px; |
377 | } | 377 | } |
378 | #tshirt-design header .action{ | 378 | #tshirt-design header .action{ |
379 | 379 | ||
380 | } | 380 | } |
381 | #tshirt-design header .action button{ | 381 | #tshirt-design header .action button{ |
382 | padding: 2px 10px; | 382 | padding: 2px 10px; |
383 | margin: 6px 10px; | 383 | margin: 6px 10px; |
384 | } | 384 | } |
385 | #tshirt-design header .action button:hover{ | 385 | #tshirt-design header .action button:hover{ |
386 | background-color: red; | 386 | background-color: red; |
387 | color: #ffffff; | 387 | color: #ffffff; |
388 | } | 388 | } |
389 | 389 | ||
390 | /*Aside modal*/ | 390 | /*Aside modal*/ |
391 | .aside{ | 391 | .aside{ |
392 | } | 392 | } |
393 | 393 | ||
394 | .aside .box-design-option{ | 394 | .aside .box-design-option{ |
395 | list-style: none; | 395 | list-style: none; |
396 | padding-left: 0; | 396 | padding-left: 0; |
397 | margin-top: 10px; | 397 | margin-top: 10px; |
398 | } | 398 | } |
399 | .aside .box-design-option li{ | 399 | .aside .box-design-option li{ |
400 | 400 | ||
401 | } | 401 | } |
402 | .aside .box-design-option li{ | 402 | .aside .box-design-option li{ |
403 | border: 1px solid #cdcdcd; | 403 | border: 1px solid #cdcdcd; |
404 | position: relative; | 404 | position: relative; |
405 | cursor: pointer; | 405 | cursor: pointer; |
406 | } | 406 | } |
407 | .aside .box-design-option li .hover{ | 407 | .aside .box-design-option li .hover{ |
408 | background-color: #fddad4; | 408 | background-color: #fddad4; |
409 | opacity: 0.6; | 409 | opacity: 0.6; |
410 | position: absolute; | 410 | position: absolute; |
411 | width: 100%; | 411 | width: 100%; |
412 | height: 100%; | 412 | height: 100%; |
413 | display: none; | 413 | display: none; |
414 | } | 414 | } |
415 | .aside .box-design-option li:hover .hover{ | 415 | .aside .box-design-option li:hover .hover{ |
416 | display: block; | 416 | display: block; |
417 | } | 417 | } |
418 | 418 | ||
419 | .aside .box-design-option li .title{ | 419 | .aside .box-design-option li .title{ |
420 | background: url("../images/bg1.png") repeat #cdcdcd; | 420 | background: url("../images/bg1.png") repeat #cdcdcd; |
421 | padding: 3px 10px; | 421 | padding: 3px 10px; |
422 | } | 422 | } |
423 | .aside .box-design-option li .title i.fa{ | 423 | .aside .box-design-option li .title i.fa{ |
424 | color: #000000; | 424 | color: #000000; |
425 | } | 425 | } |
426 | 426 | ||
427 | .aside .box-design-option li .content{ | 427 | .aside .box-design-option li .content{ |
428 | 428 | ||
429 | } | 429 | } |
430 | .aside .box-design-option li .content i.fa{ | 430 | .aside .box-design-option li .content i.fa{ |
431 | font-size: 30px; | 431 | font-size: 30px; |
432 | color: #fe070f; | 432 | color: #fe070f; |
433 | margin: 8px 0; | 433 | margin: 8px 0; |
434 | } | 434 | } |
435 | .aside .box-design-option li .content .des{ | 435 | .aside .box-design-option li .content .des{ |
436 | padding: 3px 10px 3px 0; | 436 | padding: 3px 10px 3px 0; |
437 | } | 437 | } |
438 | 438 | ||
439 | /*Design Choice Illustration*/ | 439 | /*Design Choice Illustration*/ |
440 | .aside #choice-illustration li .content { | 440 | .aside #choice-illustration li .content { |
441 | padding: 10px 10px; | 441 | padding: 10px 10px; |
442 | } | 442 | } |
443 | 443 | ||
444 | .aside #choice-illustration li .content select{ | 444 | .aside #choice-illustration li .content select{ |
445 | width: 100%; | 445 | width: 100%; |
446 | } | 446 | } |
447 | 447 | ||
448 | .aside #choice-illustration li .content .illustration-list { | 448 | .aside #choice-illustration li .content .illustration-list { |
449 | width: 100%; | 449 | width: 100%; |
450 | border: #bbb solid 1px; | 450 | border: #bbb solid 1px; |
451 | background: #FFF; | 451 | background: #FFF; |
452 | margin-top: 5px; | 452 | margin-top: 5px; |
453 | } | 453 | } |
454 | 454 | ||
455 | .aside #choice-illustration li .content .illustration-list .illstration-item{ | 455 | .aside #choice-illustration li .content .illustration-list .illstration-item{ |
456 | height: 65px; | 456 | height: 60px; |
457 | overflow: hidden; | 457 | overflow: hidden; |
458 | float: left; | 458 | float: left; |
459 | margin-left: 5px; | 459 | margin-left: 6px; |
460 | margin-top: 5px; | ||
461 | margin-bottom: 5px; | ||
462 | padding: 2px; | ||
463 | background: #e2e2e2; | ||
464 | border: solid 2px #d7d7d7; | ||
465 | overflow: pointer; | ||
460 | } | 466 | } |
461 | 467 | ||
462 | .aside #choice-illustration li .content .illustration-list .illstration-item:hover { | 468 | .aside #choice-illustration li .content .illustration-list .illstration-item:hover { |
463 | outline: 2px solid #ed1d24; | 469 | outline: 2px solid #ed1d24; |
464 | } | 470 | } |
465 | 471 | ||
466 | .aside #choice-illustration li .content .illustration-list .illstration-item img { | 472 | .aside #choice-illustration li .content .illustration-list .illstration-item img { |
467 | width: 62px; | 473 | width: 50px; |
468 | cursor: pointer; | 474 | cursor: pointer; |
469 | } | 475 | } |
470 | 476 | ||
471 | .aside #choice-illustration li .content .color-patterns { | 477 | .aside #choice-illustration li .content .color-patterns { |
472 | width: 100%; | 478 | width: 100%; |
473 | border: #bbb solid 1px; | 479 | border: #bbb solid 1px; |
474 | background: #FFF; | 480 | background: #FFF; |
475 | margin-top: 5px; | 481 | margin-top: 5px; |
476 | } | 482 | } |
477 | 483 | ||
478 | .aside #choice-illustration li .content .color-patterns .color-pattern-item{ | 484 | .aside #choice-illustration li .content .color-patterns .color-pattern-item{ |
479 | height: 20px; | 485 | height: 20px; |
480 | float: left; | 486 | float: left; |
481 | margin-left: 4px; | 487 | margin-left: 4px; |
482 | margin-top: 2px; | 488 | margin-top: 2px; |
483 | width: 20px; | 489 | width: 20px; |
484 | cursor: pointer; | 490 | cursor: pointer; |
485 | border: 1px solid #ddd; | 491 | border: 1px solid #ddd; |
486 | } | 492 | } |
487 | 493 | ||
488 | .aside #choice-illustration li .content .color-patterns .color-pattern-item:hover { | 494 | .aside #choice-illustration li .content .color-patterns .color-pattern-item:hover { |
489 | outline: 1px solid #ed1d24; | 495 | outline: 1px solid #ed1d24; |
490 | } | 496 | } |
491 | 497 | ||
492 | 498 | ||
493 | /*Design content*/ | 499 | /*Design content*/ |
494 | .tshirt-design-container{ | 500 | .tshirt-design-container{ |
495 | position: relative; | 501 | position: relative; |
496 | } | 502 | } |
497 | .tshirt-design-container .design-content{ | 503 | .tshirt-design-container .design-content{ |
498 | padding: 10px 30px 10px 15px; | 504 | padding: 10px 30px 10px 15px; |
499 | } | 505 | } |
500 | .tshirt-design-container .design-content .content{ | 506 | .tshirt-design-container .design-content .content{ |
501 | width: 100%; | 507 | width: 100%; |
502 | min-height: 650px; | 508 | min-height: 650px; |
503 | background-color: #f0efea; | 509 | background-color: #f0efea; |
504 | padding: 40px 40px; | 510 | padding: 40px 40px; |
505 | height: 100%; | 511 | height: 100%; |
506 | } | 512 | } |
507 | .tshirt-design-container .design-content .content .selection-design{ | 513 | .tshirt-design-container .design-content .content .selection-design{ |
508 | border: 1px solid #ff0000; | 514 | border: 1px solid #ff0000; |
509 | width: 100%; | 515 | width: 100%; |
510 | height: 620px; | 516 | height: 620px; |
511 | } | 517 | } |
512 | .tshirt-design-container .agree-design{ | 518 | .tshirt-design-container .agree-design{ |
513 | position: absolute; | 519 | position: absolute; |
514 | right: -16px; | 520 | right: -16px; |
515 | top: 40%; | 521 | top: 40%; |
516 | } | 522 | } |
517 | .tshirt-design-container .trash-design{ | 523 | .tshirt-design-container .trash-design{ |
518 | position: absolute; | 524 | position: absolute; |
519 | right: 5px; | 525 | right: 5px; |
520 | bottom: 0; | 526 | bottom: 0; |
521 | } | 527 | } |
522 | 528 | ||
523 | 529 | ||
524 | /*FOOTER*/ | 530 | /*FOOTER*/ |
525 | footer{ | 531 | footer{ |
526 | background-color: #333333; | 532 | background-color: #333333; |
527 | } | 533 | } |
528 | footer ul.nav-footer{ | 534 | footer ul.nav-footer{ |
529 | padding-left: 0; | 535 | padding-left: 0; |
530 | list-style: none; | 536 | list-style: none; |
531 | } | 537 | } |
532 | footer ul.nav-footer li{ | 538 | footer ul.nav-footer li{ |
533 | float: left; | 539 | float: left; |
534 | padding: 3px 10px; | 540 | padding: 3px 10px; |
535 | border-right: 1px dotted #ffffff; | 541 | border-right: 1px dotted #ffffff; |
536 | 542 | ||
537 | } | 543 | } |
538 | footer ul.nav-footer li a{ | 544 | footer ul.nav-footer li a{ |
539 | color: #ffffff; | 545 | color: #ffffff; |
540 | font-size: 11px; | 546 | font-size: 11px; |
541 | } | 547 | } |
542 | /* Customize container */ | 548 | /* Customize container */ |
543 | @media (min-width: 768px) { | 549 | @media (min-width: 768px) { |
544 | .container { | 550 | .container { |
545 | /*max-width: 730px;*/ | 551 | /*max-width: 730px;*/ |
546 | } | 552 | } |
547 | } | 553 | } |
548 | 554 | ||
549 | /* Responsive: Portrait tablets and up */ | 555 | /* Responsive: Portrait tablets and up */ |
550 | @media screen and (min-width: 768px) { | 556 | @media screen and (min-width: 768px) { |
551 | /* Remove the padding we set earlier */ | 557 | /* Remove the padding we set earlier */ |
552 | 558 | ||
553 | } | 559 | } |
554 | 560 |
app/views/design_part/default.html
1 | <li> | 1 | <li ng-click="showDesignTab('text')"> |
2 | <div class="hover"></div> | 2 | <div class="hover"></div> |
3 | <div class="title"> | 3 | <div class="title"> |
4 | <i class="fa fa-chevron-circle-right" aria-hidden="true"></i> | 4 | <i class="fa fa-chevron-circle-right" aria-hidden="true"></i> |
5 | 文字を追加 | 5 | 文字を追加 |
6 | </div> | 6 | </div> |
7 | <div class="content clearfix"> | 7 | <div class="content clearfix"> |
8 | <div class="col-xs-2 text-center"> | 8 | <div class="col-xs-2 text-center"> |
9 | <i class="fa fa-jpy" aria-hidden="true"></i> | 9 | <i class="fa fa-jpy" aria-hidden="true"></i> |
10 | </div> | 10 | </div> |
11 | <div class="col-xs-10 des padding-left-0"> | 11 | <div class="col-xs-10 des padding-left-0"> |
12 | 書体を選んでお好きな文字を入力できます | 12 | 書体を選んでお好きな文字を入力できます |
13 | </div> | 13 | </div> |
14 | </div> | 14 | </div> |
15 | </li> | 15 | </li> |
16 | <li> | 16 | <li ng-click="showDesignTab('illustration')"> |
17 | <div class="hover"></div> | 17 | <div class="hover"></div> |
18 | <div class="title"> | 18 | <div class="title"> |
19 | <i class="fa fa-chevron-circle-right" aria-hidden="true"></i> | 19 | <i class="fa fa-chevron-circle-right" aria-hidden="true"></i> |
20 | イラストやイメージを追加 | 20 | イラストやイメージを追加 |
21 | </div> | 21 | </div> |
22 | <div class="content clearfix"> | 22 | <div class="content clearfix"> |
23 | <div class="col-xs-2 text-center"> | 23 | <div class="col-xs-2 text-center"> |
24 | <i class="fa fa-btc" aria-hidden="true"></i> | 24 | <i class="fa fa-btc" aria-hidden="true"></i> |
25 | </div> | 25 | </div> |
26 | <div class="col-xs-10 des padding-left-0"> | 26 | <div class="col-xs-10 des padding-left-0"> |
27 | 自由にお使いいただけるデザイン画像をご用意しました | 27 | 自由にお使いいただけるデザイン画像をご用意しました |
28 | </div> | 28 | </div> |
29 | </div> | 29 | </div> |
30 | </li> | 30 | </li> |
31 | <li> | 31 | <li ng-click="showDesignTab('image')"> |
32 | <div class="hover"></div> | 32 | <div class="hover"></div> |
33 | <div class="title"> | 33 | <div class="title"> |
34 | <i class="fa fa-chevron-circle-right" aria-hidden="true"></i> | 34 | <i class="fa fa-chevron-circle-right" aria-hidden="true"></i> |
35 | 自分の画像・写真を追加 | 35 | 自分の画像・写真を追加 |
36 | </div> | 36 | </div> |
37 | <div class="content clearfix"> | 37 | <div class="content clearfix"> |
38 | <div class="col-xs-2 text-center"> | 38 | <div class="col-xs-2 text-center"> |
39 | <i class="fa fa-jpy" aria-hidden="true"></i> | 39 | <i class="fa fa-jpy" aria-hidden="true"></i> |
40 | </div> | 40 | </div> |
41 | <div class="col-xs-10 des padding-left-0"> | 41 | <div class="col-xs-10 des padding-left-0"> |
42 | ご自分で用意した画像をアップロードして使えます | 42 | ご自分で用意した画像をアップロードして使えます |
43 | </div> | 43 | </div> |
44 | </div> | 44 | </div> |
45 | </li> | 45 | </li> |
46 | <li> | 46 | <li> |
47 | <div class="hover"></div> | 47 | <div class="hover"></div> |
48 | <div class="title"> | 48 | <div class="title"> |
49 | <i class="fa fa-chevron-circle-right" aria-hidden="true"></i> | 49 | <i class="fa fa-chevron-circle-right" aria-hidden="true"></i> |
50 | おすすめデザインを使う | 50 | おすすめデザインを使う |
51 | </div> | 51 | </div> |
52 | <div class="content clearfix"> | 52 | <div class="content clearfix"> |
53 | <div class="col-xs-2 text-center"> | 53 | <div class="col-xs-2 text-center"> |
54 | <i class="fa fa-jpy" aria-hidden="true"></i> | 54 | <i class="fa fa-jpy" aria-hidden="true"></i> |
55 | </div> | 55 | </div> |
56 | <div class="col-xs-10 des padding-left-0"> | 56 | <div class="col-xs-10 des padding-left-0"> |
57 | おすすめデザインデータをご自由にカスタマイズしてお使いください | 57 | おすすめデザインデータをご自由にカスタマイズしてお使いください |
58 | </div> | 58 | </div> |
59 | </div> | 59 | </div> |
60 | </li> | 60 | </li> |
app/views/design_part/image.html
File was created | 1 | <li> | |
2 | <div class="title"> | ||
3 | <!--<i class="fa fa-chevron-circle-right" aria-hidden="true"></i>--> | ||
4 | イラスト・イメージ選択 | ||
5 | </div> | ||
6 | <div class="content clearfix"> | ||
7 | |||
8 | </div> | ||
9 | </li> | ||
10 | <li> | ||
11 | <div class="title"> | ||
12 | <!--<i class="fa fa-chevron-circle-right" aria-hidden="true"></i>--> | ||
13 | カラー変更 | ||
14 | <div class="pull-right">元の色に戻す</div> | ||
15 | </div> | ||
16 | <div class="content clearfix"> | ||
17 | |||
18 | </div> | ||
19 | </li> | ||
20 | <li> | ||
21 | <div class="title"> | ||
22 | <!--<i class="fa fa-chevron-circle-right" aria-hidden="true"></i>--> | ||
23 | 重ね順変更 | ||
24 | </div> | ||
25 | <div class="content clearfix"> | ||
26 | |||
27 | </div> | ||
28 | </li> |
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="showDesignTab('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="showDesignTab('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 ng-class="{'active': isShowLeftPanel=='image'}" ng-click="showDesignTab('image')"> |
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 | <!-- Default--> | 37 | <!-- Default--> |
38 | <ul class="box-design-option" id="choice-design-option" ng-show="isShowLeftPanel=='default' " ng-include="'views/design_part/default.html'"> | 38 | <ul class="box-design-option" id="choice-design-option" ng-show="isShowLeftPanel=='default' " ng-include="designPartDefault"> |
39 | </ul> | 39 | </ul> |
40 | <!-- Illustration design--> | 40 | <!-- Illustration design--> |
41 | <ul class="box-design-option" id="choice-illustration" ng-show="isShowLeftPanel=='illustration'" ng-include="designPartIllustration"> | 41 | <ul class="box-design-option" id="choice-illustration" ng-show="isShowLeftPanel=='illustration'" ng-include="designPartIllustration"> |
42 | </ul> | 42 | </ul> |
43 | <!-- Custom image design--> | ||
44 | <ul class="box-design-option" id="choice-image" ng-show="isShowLeftPanel=='image'" ng-include="designPartImage"> | ||
45 | </ul> | ||
43 | <!-- Text design--> | 46 | <!-- Text design--> |
44 | <ul class="box-design-option" id="choice-text" ng-show="isShowLeftPanel=='text'" ng-include="'views/design_part/text.html'"> | 47 | <ul class="box-design-option" id="choice-text" ng-show="isShowLeftPanel=='text'" ng-include="designPartText"> |
45 | </ul> | 48 | </ul> |
46 | </div> | 49 | </div> |
47 | <div class="design-content col-xs-8"> | 50 | <div class="design-content col-xs-8"> |
48 | <div class="content" ng-style="{'background-color' : tShirtColorCode}"> | 51 | <div class="content" ng-style="{'background-color' : tShirtColorCode}"> |
49 | <canvas id="main-design-container" width="510px" height="620px" class="selection-design lower-canvas"> | 52 | <canvas id="main-design-container" width="510px" height="620px" class="selection-design lower-canvas"> |
50 | 53 | ||
51 | </canvas> | 54 | </canvas> |
52 | </div> | 55 | </div> |
53 | <div class="agree-design"> | 56 | <div class="agree-design"> |
54 | <img src="images/agree-design.png" alt="agree design" /> | 57 | <img src="images/agree-design.png" alt="agree design" /> |
55 | </div> | 58 | </div> |
56 | <div class="trash-design"> | 59 | <div class="trash-design"> |
57 | <img src="images/trash.png" alt="trash design" /> | 60 | <img src="images/trash.png" alt="trash design" /> |
58 | </div> | 61 | </div> |
59 | </div> | 62 | </div> |
60 | </section> | 63 | </section> |
61 | </div> | 64 | </div> |
62 | </div> | 65 | </div> |
63 | </div> | 66 | </div> |
64 | </div> | 67 | </div> |