Button: data-corners attribute has been added
[platform/framework/web/web-ui-fw.git] / src / themes / tizen / common / jquery.mobile.theme.less
1
2 @import "config.less";
3
4 /***************************************************************************
5                     Header / Footer
6                     NavigationBar
7 ***************************************************************************/
8
9 .ui-bar-s {
10         border: none;
11         background : rgba(248, 246, 239, 1); // #F8F6EF /* Header Background */
12         color: @color_bar_title_text;
13         font-family: Helvetica, Arial, sans-serif;
14         font-weight: bold;
15         font-size : 28 * @unit_base;
16
17         .ui-link-inherit {
18                 color: @color_bar_title_text;
19         }
20         
21         
22         > .ui-btn.ui-btn-back {
23                 background : transparent;
24
25                 position : absolute;
26                 right : 0px;
27
28                 .ui-icon-header-back-btn {
29                         top : 8 * @unit_base;
30                         left : auto;
31                         right : 13 * @unit_base;
32
33                         margin-top : 0px
34                 }
35         }
36 }
37
38 /* Header style */
39 .ui-header.ui-bar-s{
40         position : fixed;
41         top : 0px;
42
43         min-height : 55 * @unit_base;
44
45         .ui-title {
46                 display: inline-block;
47                 color : @color_bar_title_text;
48                 min-height : 28 * @unit_base;
49                 max-height : 34 * @unit_base; /* temporary UX strange */
50                 font-size  : 28 * @unit_base;
51                 text-overflow: ellipsis;
52                 overflow: hidden;
53                 white-space: nowrap;
54                 outline: 0 !important;
55
56                 text-align: left;
57                 margin: 16*@unit_base 8*@unit_base 5*@unit_base 8*@unit_base;
58
59         }
60
61         /* header button position : need to press area more... */
62         >.ui-btn {
63                 .ui-btn-inner.ui-btn-icon-only .ui-icon {
64                         left : 0px;
65                         top : 0px;
66                         margin-top : 0px;
67                 }
68         }
69
70         > .ui-btn.ui-btn-back {
71                 right : 13 * @unit_base;
72         }
73
74         img {
75                 display: inline-block;
76                 height: 16 * @unit_base;
77                 width: 16 * @unit_base;
78                 margin-left: 8 * @unit_base;
79         }
80
81         .ui-title-text-sub {
82                 position : absolute;
83                 top : 36 * @unit_base;
84                 left : 8 * @unit_base;  
85
86                 font-size : 12 * @unit_base;    
87
88                 img {
89                         height: 16 * @unit_base;
90                         width: 16 * @unit_base;
91                         margin-left: 8 * @unit_base;
92                 }
93         }
94
95         > .ui-btn{
96                 position : absolute;
97                 top : 16 * @unit_base;
98                 margin-top : 0px;
99
100                 height : 34 * @unit_base;
101                 width : 34 * @unit_base;
102
103                 background: transparent;
104                 color   : @color_bar_title_button_text;
105         }
106
107         > .ui-btn.ui-btn-icon_only {
108                 -o-border-radius : 0px;
109                 -ms-border-radius : 0px;
110                 -moz-border-radius : 0px;
111                 -webkit-border-radius : 0px;
112                 border-radius : 0px;
113         }
114
115         > .ui-btn:nth-child(2) {
116                 right : 13 * @unit_base;
117         }
118
119         > .ui-btn:nth-child(3) {
120                 right : 56 * @unit_base;
121         }
122
123         > img + h1 + a.ui-btn:nth-child(3) {
124                 right : 13 * @unit_base;
125         }
126
127         > img + h1 + a.ui-btn:nth-child(4) {
128                 right : 56 * @unit_base;
129         }
130
131         > img + h1 + span.ui-title-text-sub + a.ui-btn:nth-child(4) {
132                 right : 11 * @unit_base;
133         }
134
135         > img + h1 + span.ui-title-text-sub + a.ui-btn:nth-child(5) {
136                 right : 58 * @unit_base;
137         }
138
139         > .ui-btn.ui-btn-down-s {
140                 background : @color_bar_btn_press;
141                 color : @color_bar_title_button_text_press;
142         }
143         
144         &.ui-title-multiline {
145                 .ui-title {
146                         min-height : 24 * @unit_base;
147                         max-height : 24 * @unit_base; /* temporary UX strange */
148                         font-size  : 22 * @unit_base;
149
150                         margin: 9*@unit_base 8*@unit_base 22*@unit_base 8*@unit_base;
151                 }
152         }
153         
154 }
155
156 .ui-footer.ui-bar-s {
157         height : 49 * @unit_base;
158         text-align : center;
159         bottom : 0px;
160         >.ui-btn.ui-btn-back,
161         >[data-icon="naviframe-more"] {
162                 background : transparent;
163
164                 >.ui-btn-icon-only {
165                         width : 56 * @unit_base;
166                         height : 49 * @unit_base;
167                         padding : 0px;
168                         -webkit-box-shadow : none /* temp code */
169                 }
170         }
171
172         [data-icon="naviframe-more"] {
173                 position : absolute;
174                 left : 0 * @unit_base;
175                 top : 0 * @unit_base;
176
177                 box-shadow : none;
178                 border-width : 0px;
179
180                 .ui-icon-naviframe-more {
181                         left : 13 * @unit_base;
182                         top : 8 * @unit_base;
183                         
184                         margin-top : 0px;
185                 }
186                 .ui-btn-inner {
187                         border: none;
188                         background: transparent;
189                         box-shadow: none;
190                 }
191         }
192         >[data-role="button"] {
193                 font-size : 15 * @unit_base;
194                 font-weight : bold;
195                 color : @color_tabbar_btn_normal;
196         }
197
198         [data-role="controlgroup"] {
199                 margin-left : auto;
200                 margin-right : auto;
201                 margin-top : 6 * @unit_base; /* temp value */
202                 margin-bottom : 6 * @unit_base; /* temp value */
203                 padding-left : 58 * @unit_base;
204                 padding-right : 58 * @unit_base;
205
206
207                 [data-role="button"] {
208                         background : transparent;
209                         
210                         min-width : 77 * @unit_base;
211
212                         border-style : solid;
213                         border-color : @color_bar_divider_line;
214                         border-top-width : 0px;
215                         border-bottom-width : 0px;
216                         border-left-width : 1px;
217                         border-right-width : 1px;
218
219                         border-radius : 0px;
220                         box-shadow : none;
221
222                         padding : 0px;
223                         margin-left : -4 * @unit_base;
224                         margin-right : -5 * @unit_base;
225
226                         &.ui-btn-down-s, .ui-btn-active-s {
227                                 .ui-btn-inner {
228                                         background : @color_bg;
229                                         .ui-btn-text {
230                                                 color : @color_bar_title_text;
231                                         }
232                                 }
233                         }
234
235                         >.ui-btn-inner {
236                                 border : 0px solid;
237                                 box-shadow : none;
238                         }
239                         .ui-btn-text {
240                                 font-size : 17 * @unit_base;
241                                 color : rgba(58, 58, 58, 1);
242                         }
243
244                         &.ui-corner-right {
245                                 border-right-width : 0px;
246                         }
247
248                         &.ui-corner-left {
249                                 border-left-width : 0px;
250                         }
251                 }
252                 }
253         
254         > [data-role="button"]:not([data-icon="naviframe-more"]) {
255                 top : 6 * @unit_base;
256         }
257
258         > p {
259                 margin-top : 8 * @unit_base;
260                 margin-bottom : 8 * @unit_base;
261         }
262 }
263
264 /***************************************************************************
265                     Content Top calculate
266 ***************************************************************************/
267 .ui-content {
268         position : relative;
269         top : 0;
270 }
271
272 /***************************************************************************
273                     Content Top calculate
274 ***************************************************************************/
275
276
277 .ui-body-s {
278         border: 1px solid #2a2a2a;
279         background:                     @color_bg;
280         color:                                  @color_text;
281         font-weight: normal;
282
283         font-family: Helvetica, Arial, sans-serif;
284
285         .ui-link-inherit { color:       #fff; }
286         .ui-link {
287                 /* ui-body-link */
288                 color: #2489CE;
289                 font-weight: bold;
290                 &:hover { color: #2489CE; }
291                 &:active { color: #2489CE; }
292                 &:visited {     color: #2489CE; }
293         }
294 }
295
296 .ui-br {
297 }
298 .ui-btn-box-s {
299         padding: 1 * @unit_base;
300 }
301 .ui-btn-box-s.ui-btn-up-s {
302         .LESSbutton_box_style;
303         .LESSborder-radius-all( 0.3rem );
304         .LESSbutton_text1_style;
305 }
306
307 .ui-btn.ui-btn-corner-all .ui-btn-box-s.ui-btn-up-s {
308         .LESSborder-radius-all( 1.2rem );
309 }
310
311 .ui-btn-box-s .ui-btn-inner {
312         border: 1px solid;
313         border-color: rgb(199, 197, 190);
314         .LESSborder-radius-all( 0.3rem );
315         .LESSbox-boxsizing( border-box );
316         .LESSbutton_inner_box_style;
317         height: 100%;
318 }
319
320 .ui-btn.ui-btn-corner-all.ui-btn-box-s .ui-btn-inner {
321         .LESSborder-radius-all( 1.2rem );
322 }
323
324 .ui-ctxpopup .ui-btn-box-s{
325         &.ui-btn-up-s,
326         &.ui-btn-hover-s {
327                 background: transparent !important;
328                 border: none;
329                 box-shadow: none;
330                 padding: 0;
331                 color: white !important;
332         }
333         &.ui-btn-down-s {
334                 background: @color_ctxbutton_press !important;
335                 border: none;
336                 box-shadow: none;
337                 padding: 0;
338                 color: white !important;
339                 .LESSborder-radius-all( 0 );
340         }
341         .ui-btn-inner {
342                 background: transparent ! important;
343                 box-shadow: none;
344                 border: none;
345         }
346 }
347
348 .ui-ctxpopup .ui-btn-down-s {
349         background: @color_ctxbutton_press !important;
350 }
351
352 .ui-header .ui-btn-box-s,
353 .ui-footer .ui-btn-box-s,
354 .ui-btn-back.ui-btn-up-s,
355 .ui-btn-back.ui-btn-hover-s,
356 .ui-btn-back.ui-btn-down-s,
357 .ui-popup-container .ui-btn-box-s {
358         font-weight: normal;
359         .LESSborder-radius-all( 0.9 rem );
360 }
361
362 .ui-btn-box-s.ui-btn-hover-s {
363         .LESSbutton_hover_style;
364         .LESSbutton_text1_style;
365         .LESSborder-radius-allimportant( 0.3em );
366 }
367 .ui-btn-box-s.ui-btn-hover-s.ui-btn-corner-circle {
368         .LESSborder-radius-allimportant( 1em );
369 }
370 .ui-btn-box-s.ui-btn-hover-s.ui-btn-corner-all {
371         .LESSborder-radius-allimportant( 1.2em );
372 }
373 .ui-btn-box-s.ui-btn-hover-s.ui-btn-round {
374         .LESSborder-radius-allimportant( 1.2em );
375 }
376 .ui-btn-box-s.ui-btn-down-s .ui-btn-inner {
377         .LESSbutton_down_style;
378 }
379
380 .ui-btn-up-s,
381 .ui-btn-hover-s,
382 .ui-btn-down-s {
383         font-family: Helvetica, Arial, sans-serif;
384         text-decoration: none;
385 }
386
387 /*
388 /* Structure */
389 /* links within "buttons" 
390 -----------------------------------------------------------------------------------------------------------*/
391
392 a.ui-link-inherit {
393         text-decoration: none !important;
394 }
395
396
397 /* Active class used as the "on" state across all themes
398 -----------------------------------------------------------------------------------------------------------*/
399
400 /* button default color for active state */
401 .ui-btn-active {
402         /* global-active */
403         color:                                  @color_button_text_normal;
404         cursor: pointer;
405         text-decoration: none;
406         background:                     @color_button_press;
407         outline: none;
408         //font-family: Helvetica, Arial, sans-serif;
409
410         a.ui-link-inherit {
411                 color:                                  @color_button_text_normal;
412         }
413 }
414
415 /* button inner top highlight
416 -----------------------------------------------------------------------------------------------------------*/
417
418 .ui-btn-inner {
419         //border : none;
420 }
421
422
423
424
425 /* corner rounding classes
426 -----------------------------------------------------------------------------------------------------------*/
427
428 .ui-corner-tl {
429         .LESSborder-radius-topleft(.3em);
430 }
431 .ui-corner-tr {
432         .LESSborder-radius-topright(.3em);
433 }
434 .ui-corner-bl {
435         .LESSborder-radius-bottomleft(.3em);
436 }
437 .ui-corner-br {
438         .LESSborder-radius-bottomright(.3em);
439 }
440 .ui-corner-top {
441         .LESSborder-radius-topleft(.3em);
442         .LESSborder-radius-topright(.3em);
443 }
444 .ui-corner-bottom {
445         .LESSborder-radius-bottomleft(.3em);
446         .LESSborder-radius-bottomright(.3em);
447 }
448 .ui-corner-right {
449         .LESSborder-radius-topright(.3em);
450         .LESSborder-radius-bottomright(.3em);
451 }
452 .ui-corner-left {
453         .LESSborder-radius-topleft(.3em);
454         .LESSborder-radius-bottomleft(.3em);
455 }
456 .ui-corner-all {
457         //.LESSborder-radius-all(.3em);
458 }
459 .ui-corner-none {
460         .LESSborder-radius-all(0); 
461 }
462
463 /*************************************************************************** 
464                     Icon (Naviframe)
465 ***************************************************************************/
466 .ui-header, .ui-footer {
467         .ui-btn .ui-btn-icon-only .ui-icon {
468                 width: 32 * @unit_base; 
469                 height: 32 * @unit_base;
470                 
471         }
472 }
473
474 .ui-btn-back .ui-btn-inner .ui-icon-header-back-btn {
475         width: 32 * @unit_base; 
476         height: 32 * @unit_base;
477
478         background-repeat: no-repeat;
479         background-size: 100% 100%;
480
481 }
482
483 .ui-btn-up-s {
484         .ui-icon-header-back-btn { background-image: url(images/page/00_icon_Back.png); }
485         .ui-icon-naviframe-more { background-image: url(images/page/00_icon_more.png); }
486         .ui-icon-naviframe-cancel { background-image: url(images/00_icon_cancel.png); } /* FIXME : check ux if it needs to be deprecated... */
487         .ui-icon-naviframe-edit { background-image: url(images/page/00_icon_edit.png); }
488         .ui-icon-naviframe-plus { background-image: url(images/page/00_icon_plus.png); }
489 }
490
491 .ui-btn-down-s, .ui-btn-hover-s {
492         .ui-icon-header-back-btn { background-image: url(images/page/00_icon_Back_press.png); }
493         .ui-icon-naviframe-more { background-image: url(images/page/00_icon_more_press.png); }
494         .ui-icon-naviframe-cancel { background-image: url(images/00_icon_cancel_press.png); } /* FIXME: check ux if it needs to be deprecated.. */
495         .ui-icon-naviframe-edit { background-image: url(images/page/00_icon_edit_press.png); }
496         .ui-icon-naviframe-plus { background-image: url(images/page/00_icon_plus_press.png); }
497 }
498
499 /* Interaction cues
500 -----------------------------------------------------------------------------------------------------------*/
501 .ui-disabled {
502         filter: Alpha(Opacity=30);
503         opacity: .3;
504         zoom: 1;
505 }
506 .ui-disabled,
507 .ui-disabled a {
508         cursor: default !important;
509         pointer-events: none;
510 }
511