Commit 5fe93ca887dd697a13a618ad20ed0ecedba31413

Authored by Dang YoungWorld
1 parent 87c93a0297

Theme modal

Showing 3 changed files with 133 additions and 7 deletions Inline Diff

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 ($scope) { 3 app.controller('MainCtrl', function ($scope) {
4 $scope.modalTShirtDesign = function() { 4 $scope.modalTShirtDesign = function() {
5 // console.log($('#tshirt-design').length); 5 // console.log($('#tshirt-design').length);
6 $('#tshirt-design').modal(); 6 $('#tshirt-design').modal(
7 {
8 backdrop: 'static',
9 keyboard: false
10 }
11 );
12 };
13 $scope.modalClose = function(){
14 $('#tshirt-design').modal('hide');
7 } 15 }
8 }); 16 });
9 }); 17 });
10 18
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'; 4 font-family: 'Hiragino Kaku Gothic Pro';
5 } 5 }
6 button.red{ 6 button.red{
7 color: #ffffff; 7 color: #ffffff;
8 background-color: #ff0000; 8 background-color: #ff0000;
9 border: 1px solid #ff0000; 9 border: 1px solid #ff0000;
10 10
11 } 11 }
12 button.white{ 12 button.white{
13 border: 1px solid #ff8080; 13 border: 1px solid #ff8080;
14 color: #ff8080; 14 color: #ff8080;
15 background-color: #ffffff; 15 background-color: #ffffff;
16 } 16 }
17 button.brown{ 17 button.brown{
18 background-color: #666666; 18 background-color: #666666;
19 border: 1px solid #666666; 19 border: 1px solid #666666;
20 color: #ffffff; 20 color: #ffffff;
21 border-radius: 5px; 21 border-radius: 5px;
22 } 22 }
23 #tshirt-container{ 23 #tshirt-container{
24 border-left: 1px solid #dcdcdc; 24 border-left: 1px solid #dcdcdc;
25 border-right: 1px solid #dcdcdc; 25 border-right: 1px solid #dcdcdc;
26 } 26 }
27 /*HEADER*/ 27 /*HEADER*/
28 header{ 28 header{
29 border-bottom: 1px solid #dcdcdc; 29 border-bottom: 1px solid #dcdcdc;
30 } 30 }
31 header .logo{ 31 header .logo{
32 color: #ed1d24; 32 color: #ed1d24;
33 font-size: 30px; 33 font-size: 30px;
34 text-transform: uppercase; 34 text-transform: uppercase;
35 font-weight: bold; 35 font-weight: bold;
36 } 36 }
37 header .logo img{ 37 header .logo img{
38 width: 60px; 38 width: 60px;
39 } 39 }
40 /*NAVIGATION*/ 40 /*NAVIGATION*/
41 nav{ 41 nav{
42 border-bottom: 1px solid #dcdcdc; 42 border-bottom: 1px solid #dcdcdc;
43 } 43 }
44 nav h2{ 44 nav h2{
45 font-size: 24px; 45 font-size: 24px;
46 } 46 }
47 nav ul{ 47 nav ul{
48 list-style: none; 48 list-style: none;
49 padding-left: 0; 49 padding-left: 0;
50 } 50 }
51 nav ul li{ 51 nav ul li{
52 margin-left: 2px; 52 margin-left: 2px;
53 float: left; 53 float: left;
54 padding: 6px 12px; 54 padding: 6px 12px;
55 background-color: #999999; 55 background-color: #999999;
56 } 56 }
57 nav ul li a{ 57 nav ul li a{
58 color: #ffffff; 58 color: #ffffff;
59 } 59 }
60 nav ul li.action{ 60 nav ul li.action{
61 color: #ffffff; 61 color: #ffffff;
62 background-color: #ed1d24; 62 background-color: #ed1d24;
63 } 63 }
64 /*ASIDE*/ 64 /*ASIDE*/
65 aside{ 65 aside{
66 66
67 } 67 }
68 68
69 aside .break-down{ 69 aside .break-down{
70 padding: 0 0; 70 padding: 0 0;
71 } 71 }
72 aside .break-down i.fa{ 72 aside .break-down i.fa{
73 font-size: 35px; 73 font-size: 35px;
74 color: #ff0000; 74 color: #ff0000;
75 } 75 }
76 aside .break-line{ 76 aside .break-line{
77 77
78 } 78 }
79 aside .break-line hr{ 79 aside .break-line hr{
80 border-top: 1px dotted #cccccc; 80 border-top: 1px dotted #cccccc;
81 } 81 }
82 aside .step{ 82 aside .step{
83 margin: 0 0; 83 margin: 0 0;
84 } 84 }
85 aside .step .title{ 85 aside .step .title{
86 font-size: 13px; 86 font-size: 13px;
87 line-height: 16px; 87 line-height: 16px;
88 font-weight: bold; 88 font-weight: bold;
89 } 89 }
90 aside .step .title-notice{ 90 aside .step .title-notice{
91 font-size: 13px; 91 font-size: 13px;
92 line-height: 16px; 92 line-height: 16px;
93 } 93 }
94 aside .step .title-notice .require{ 94 aside .step .title-notice .require{
95 font-size: 10px; 95 font-size: 10px;
96 } 96 }
97 aside .step .step-box{ 97 aside .step .step-box{
98 border: 2px solid #dcdcdc; 98 border: 2px solid #dcdcdc;
99 font-size: 12px; 99 font-size: 12px;
100 100
101 } 101 }
102 /*Step 1*/ 102 /*Step 1*/
103 aside .step .step-box .tshirt-design{ 103 aside .step .step-box .tshirt-design{
104 border: 1px solid #cccccc; 104 border: 1px solid #cccccc;
105 background-color: #f5f5f5; 105 background-color: #f5f5f5;
106 margin: 10px 10px; 106 margin: 10px 10px;
107 } 107 }
108 aside .step .step-box .tshirt-design div{ 108 aside .step .step-box .tshirt-design div{
109 float: left; 109 float: left;
110 } 110 }
111 aside .step .step-box .tshirt-design .icon{ 111 aside .step .step-box .tshirt-design .icon{
112 padding: 4px 4px; 112 padding: 4px 4px;
113 border-right: 1px solid #cccccc; 113 border-right: 1px solid #cccccc;
114 114
115 } 115 }
116 aside .step .step-box .tshirt-design .icon img{ 116 aside .step .step-box .tshirt-design .icon img{
117 height: 50px; 117 height: 50px;
118 } 118 }
119 aside .step .step-box .tshirt-design .name{ 119 aside .step .step-box .tshirt-design .name{
120 padding: 10px 10px; 120 padding: 10px 10px;
121 121
122 } 122 }
123 aside .step .step-box .tshirt-design .action{ 123 aside .step .step-box .tshirt-design .action{
124 padding: 10px 10px; 124 padding: 10px 10px;
125 float: right; 125 float: right;
126 126
127 } 127 }
128 aside .step .step-box .tshirt-design .action button{ 128 aside .step .step-box .tshirt-design .action button{
129 padding: 8px 10px; 129 padding: 8px 10px;
130 } 130 }
131 /*Step 2*/ 131 /*Step 2*/
132 aside .step .step-box .tshirt-color{ 132 aside .step .step-box .tshirt-color{
133 padding: 6px 10px; 133 padding: 6px 10px;
134 position: relative; 134 position: relative;
135 } 135 }
136 aside .step .step-box .tshirt-color ul.choice-color{ 136 aside .step .step-box .tshirt-color ul.choice-color{
137 float: left; 137 float: left;
138 list-style: none; 138 list-style: none;
139 padding-left: 0; 139 padding-left: 0;
140 width: 100%; 140 width: 100%;
141 } 141 }
142 aside .step .step-box .tshirt-color ul.choice-color li{ 142 aside .step .step-box .tshirt-color ul.choice-color li{
143 margin: 0 10px 0 0; 143 margin: 0 10px 0 0;
144 border: 1px solid #cccccc; 144 border: 1px solid #cccccc;
145 padding: 2px 2px; 145 padding: 2px 2px;
146 float: left; 146 float: left;
147 } 147 }
148 aside .step .step-box .tshirt-color ul.choice-color li div{ 148 aside .step .step-box .tshirt-color ul.choice-color li div{
149 height: 30px; 149 height: 30px;
150 width: 30px; 150 width: 30px;
151 } 151 }
152 152
153 aside .step .step-box .tshirt-color ul.choice-color li.white div{ 153 aside .step .step-box .tshirt-color ul.choice-color li.white div{
154 background-color: #ece7e4; 154 background-color: #ece7e4;
155 } 155 }
156 aside .step .step-box .tshirt-color ul.choice-color li.blue div{ 156 aside .step .step-box .tshirt-color ul.choice-color li.blue div{
157 background-color: #e7dfd0; 157 background-color: #e7dfd0;
158 } 158 }
159 aside .step .step-box .tshirt-color .color-name{ 159 aside .step .step-box .tshirt-color .color-name{
160 width: 100%; 160 width: 100%;
161 } 161 }
162 aside .step .step-box .tshirt-color .view-more{ 162 aside .step .step-box .tshirt-color .view-more{
163 position: absolute; 163 position: absolute;
164 bottom: 6px; 164 bottom: 6px;
165 right: 10px; 165 right: 10px;
166 } 166 }
167 /*Step 3*/ 167 /*Step 3*/
168 aside .step .step-box .tshirt-saveorder{ 168 aside .step .step-box .tshirt-saveorder{
169 padding: 10px 10px; 169 padding: 10px 10px;
170 } 170 }
171 aside .step .step-box .tshirt-saveorder .action{ 171 aside .step .step-box .tshirt-saveorder .action{
172 width: 50%; 172 width: 50%;
173 float: left; 173 float: left;
174 } 174 }
175 aside .step .step-box .tshirt-saveorder .action:first-child{ 175 aside .step .step-box .tshirt-saveorder .action:first-child{
176 padding-right: 5px; 176 padding-right: 5px;
177 } 177 }
178 aside .step .step-box .tshirt-saveorder .action:last-child{ 178 aside .step .step-box .tshirt-saveorder .action:last-child{
179 padding-left: 5px; 179 padding-left: 5px;
180 } 180 }
181 aside .step .step-box .tshirt-saveorder .action button{ 181 aside .step .step-box .tshirt-saveorder .action button{
182 padding: 8px 10px; 182 padding: 8px 10px;
183 183
184 } 184 }
185 aside .step .step-box .tshirt-saveorder .action button .text{ 185 aside .step .step-box .tshirt-saveorder .action button .text{
186 float: left; 186 float: left;
187 width: 80%; 187 width: 80%;
188 text-align: center; 188 text-align: center;
189 padding-left: 10px; 189 padding-left: 10px;
190 vertical-align: bottom; 190 vertical-align: bottom;
191 } 191 }
192 aside .step .step-box .tshirt-saveorder .action button .arrow{ 192 aside .step .step-box .tshirt-saveorder .action button .arrow{
193 float: left; 193 float: left;
194 width: 20%; 194 width: 20%;
195 height: 40px; 195 height: 40px;
196 position: relative; 196 position: relative;
197 } 197 }
198 aside .step .step-box .tshirt-saveorder .action button .arrow i.fa{ 198 aside .step .step-box .tshirt-saveorder .action button .arrow i.fa{
199 position: absolute; 199 position: absolute;
200 top: 50%; 200 top: 50%;
201 right: -6px; 201 right: -6px;
202 transform: translateX(-50%) translateY(-50%); 202 transform: translateX(-50%) translateY(-50%);
203 -webkit-transform: translateX(-50%) translateY(-50%); 203 -webkit-transform: translateX(-50%) translateY(-50%);
204 } 204 }
205 /*Step 4*/ 205 /*Step 4*/
206 aside .step .title-notice{ 206 aside .step .title-notice{
207 207
208 } 208 }
209 aside .step .step-box .change-design{ 209 aside .step .step-box .change-design{
210 padding: 4px 4px; 210 padding: 4px 4px;
211 } 211 }
212 aside .step .step-box .change-design table{ 212 aside .step .step-box .change-design table{
213 213
214 } 214 }
215 aside .step .step-box .change-design table tr{ 215 aside .step .step-box .change-design table tr{
216 border-bottom: 1px dotted #cccccc; 216 border-bottom: 1px dotted #cccccc;
217 } 217 }
218 aside .step .step-box .change-design table tr:last-child{ 218 aside .step .step-box .change-design table tr:last-child{
219 border-bottom: 0; 219 border-bottom: 0;
220 } 220 }
221 221
222 /*Step 5- finish*/ 222 /*Step 5- finish*/
223 aside .step .finish-design{ 223 aside .step .finish-design{
224 224
225 } 225 }
226 aside .step .finish-design button{ 226 aside .step .finish-design button{
227 width: 100%; 227 width: 100%;
228 padding: 6px 10px; 228 padding: 6px 10px;
229 } 229 }
230 230
231 /*DESIGN CONTENT*/ 231 /*DESIGN CONTENT*/
232 #tshirt-content{ 232 #tshirt-content{
233 233
234 } 234 }
235 #tshirt-content .tshirt-image{ 235 #tshirt-content .tshirt-image{
236 236
237 } 237 }
238 #tshirt-content .tshirt-choice{ 238 #tshirt-content .tshirt-choice{
239 239
240 } 240 }
241 #tshirt-content .tshirt-choice ul{ 241 #tshirt-content .tshirt-choice ul{
242 list-style: none; 242 list-style: none;
243 padding-left: 0; 243 padding-left: 0;
244 display: table; 244 display: table;
245 margin: auto; 245 margin: auto;
246 } 246 }
247 #tshirt-content .tshirt-choice ul li{ 247 #tshirt-content .tshirt-choice ul li{
248 float: left; 248 float: left;
249 249
250 margin: 10px 10px; 250 margin: 10px 10px;
251 } 251 }
252 #tshirt-content .tshirt-choice ul li .image{ 252 #tshirt-content .tshirt-choice ul li .image{
253 border: 1px solid #cccccc; 253 border: 1px solid #cccccc;
254 padding: 3px 3px; 254 padding: 3px 3px;
255 } 255 }
256 #tshirt-content .tshirt-choice ul li.focus{ 256 #tshirt-content .tshirt-choice ul li.focus{
257 257
258 } 258 }
259 #tshirt-content .tshirt-choice ul li.focus .image{ 259 #tshirt-content .tshirt-choice ul li.focus .image{
260 border: 1px solid #ff0000; 260 border: 1px solid #ff0000;
261 } 261 }
262 /*MODAL Design*/
263 #tshirt-design{
264 background-color: #000;
265 }
266 #tshirt-design .modal-dialog{
267 width: 75%;
268 margin: 0 auto;
269 }
270 #tshirt-design .modal-dialog .modal-content{
271 background-color: transparent;
272 border-radius: 0;
273 border: 0;
274 }
275 #tshirt-design .modal-dialog .modal-content .modal-header{
276 padding: 0 0 10px 0;
277 border-bottom: 0;
278 }
279 #tshirt-design .modal-dialog .modal-content .modal-body{
280 background-color: #ffffff;
281 padding: 0 0;
282 }
283 #tshirt-design header{
284 border-bottom: 1px solid #DDDDDD;
285 }
286 #tshirt-design header ul.nav{
287 padding-left: 0;
288 list-style: none;
289 }
290 #tshirt-design header ul.nav li{
291 float: left;
292 padding: 10px 15px;
293 border-right: 1px solid #DDDDDD;
294 }
262 295
296 /*Aside modal*/
297 .aside{
263 298
299 }
300 .aside #choice-design-option{
301 list-style: none;
302 padding-left: 0;
303 }
264 /* Customize container */ 304 /* Customize container */
265 @media (min-width: 768px) { 305 @media (min-width: 768px) {
266 .container { 306 .container {
267 /*max-width: 730px;*/ 307 /*max-width: 730px;*/
268 } 308 }
269 } 309 }
270 310
271 /* Responsive: Portrait tablets and up */ 311 /* Responsive: Portrait tablets and up */
272 @media screen and (min-width: 768px) { 312 @media screen and (min-width: 768px) {
273 /* Remove the padding we set earlier */ 313 /* Remove the padding we set earlier */
274 314
275 } 315 }
276 316
app/views/tshirt-design.html
1 <!-- Modal --> 1 <!-- Modal -->
2 <div class="modal fade" id="tshirt-design" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"> 2 <div class="modal fade" id="tshirt-design" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
3
3 <div class="modal-dialog" role="document"> 4 <div class="modal-dialog" role="document">
4 <div class="modal-content"> 5 <div class="modal-content">
5 <div class="modal-header"> 6 <div class="modal-header">
6 <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button> 7 <button class="" ng-click="modalClose()">Close</button>
7 </div> 8 </div>
8 <div class="modal-body"> 9 <div class="modal-body">
9 <h1>Content Design</h1> 10 <header>
10 </div> 11 <ul class="nav">
11 <div class="modal-footer"> 12 <li>
12 <button type="button" class="btn btn-default" data-dismiss="modal">Close</button> 13 <i class="fa fa-jpy" aria-hidden="true"></i> 文字
13 <button type="button" class="btn btn-primary">Save changes</button> 14 </li>
15 <li>
16 <i class="fa fa-btc" aria-hidden="true"></i> イラスト・イメージ
17 </li>
18 <li>
19 <i class="fa fa-money" aria-hidden="true"></i> 自分の画像・写真
20 </li>
21 <li>
22 <i class="fa fa-minus-circle" aria-hidden="true"></i> 全消去
23 </li>
24 </ul>
25 </header>
26 <section class="tshirt-design-container clearfix">
27 <div class="aside col-xs-4">
28 <ul id="choice-design-option">
29 <li>
30 <div class="title">
31 <i class="fa fa-chevron-circle-right" aria-hidden="true"></i>
32 文字を追加
33 </div>
34 <div class="clearfix">
35 <div class="col-xs-2 text-center">
36 <i class="fa fa-jpy" aria-hidden="true"></i>
37 </div>
38 <div class="col-xs-10">
39 書体を選んでお好きな文字を入力できます
40 </div>
41 </div>
42 </li>
43 <li>
44 <div class="title">
45 <i class="fa fa-chevron-circle-right" aria-hidden="true"></i>
46 イラストやイメージを追加
47 </div>
48 <div class="clearfix">
49 <div class="col-xs-2 text-center">
50 <i class="fa fa-btc" aria-hidden="true"></i>
51 </div>
52 <div class="col-xs-10">
53 自由にお使いいただけるデザイン画像をご用意しました
54 </div>
55 </div>
56 </li>
57 <li>
58 <div class="title">
59 <i class="fa fa-chevron-circle-right" aria-hidden="true"></i>
60 自分の画像・写真を追加
61 </div>
62 <div class="clearfix">
63 <div class="col-xs-2 text-center">
64 <i class="fa fa-jpy" aria-hidden="true"></i>
65 </div>
66 <div class="col-xs-10">
67 ご自分で用意した画像をアップロードして使えます
68 </div>
69 </div>
70 </li>
71 <li>
72 <div class="title">
73 <i class="fa fa-chevron-circle-right" aria-hidden="true"></i>
74 おすすめデザインを使う
75 </div>
76 <div class="clearfix">
77 <div class="col-xs-2 text-center">
78 <i class="fa fa-jpy" aria-hidden="true"></i>
79 </div>
80 <div class="col-xs-10">
81 おすすめデザインデータをご自由にカスタマイズしてお使いください
82 </div>
83 </div>
84 </li>
85
86 </ul>
87 </div>
88 <div class="design-contetn col-xs-8">
89
90 </div>
91 </section>
14 </div> 92 </div>
15 </div> 93 </div>
16 </div> 94 </div>
17 </div> 95 </div>