Tizen 2.0 Release
[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         &.ui-title-tabbar >.ui-btn {
107                 // NOTE: there is an issue that when tabbar and button are
108                 // used together in the header, the lower part of buttons is
109                 // hidden by the tabbar. (N_SE-22253) Although No specification
110                 // for this case is found in the GUI guide, this one is added
111                 // to resolve this issue.
112                 top: 8 * @unit_base;
113         }
114
115         > .ui-btn.ui-btn-icon_only {
116                 -o-border-radius : 0px;
117                 -ms-border-radius : 0px;
118                 -moz-border-radius : 0px;
119                 -webkit-border-radius : 0px;
120                 border-radius : 0px;
121         }
122
123         > .ui-btn:nth-child(2) {
124                 right : 13 * @unit_base;
125         }
126
127         > .ui-btn:nth-child(3) {
128                 right : 56 * @unit_base;
129         }
130
131         > img + h1 + .ui-btn:nth-child(3) {
132                 right : 13 * @unit_base;
133         }
134
135         > img + h1 + .ui-btn:nth-child(3) + .ui-btn {
136                 right : 56 * @unit_base;
137         }
138
139         > img + h1 + span.ui-title-text-sub + .ui-btn:nth-child(4) {
140                 right : 11 * @unit_base;
141         }
142
143         > img + h1 + span.ui-title-text-sub + .ui-btn:nth-child(4) + .ui-btn {
144                 right : 58 * @unit_base;
145         }
146
147         > .ui-btn.ui-btn-down-s {
148                 background : @color_bar_btn_press;
149                 color : @color_bar_title_button_text_press;
150         }
151         
152         &.ui-title-multiline {
153                 .ui-title {
154                         min-height : 24 * @unit_base;
155                         max-height : 24 * @unit_base; /* temporary UX strange */
156                         font-size  : 22 * @unit_base;
157
158                         margin: 9*@unit_base 8*@unit_base 22*@unit_base 8*@unit_base;
159                 }
160         }
161         
162 }
163
164 .ui-footer.ui-bar-s {
165         height : 49 * @unit_base;
166         text-align : center;
167         bottom : 0px;
168         >.ui-btn.ui-btn-back,
169         >[data-icon="naviframe-more"] {
170                 background : transparent;
171
172                 >.ui-btn-icon-only {
173                         width : 56 * @unit_base;
174                         height : 49 * @unit_base;
175                         padding : 0px;
176                         -webkit-box-shadow : none /* temp code */
177                 }
178         }
179
180         [data-icon="naviframe-more"] {
181                 position : absolute;
182                 left : 0 * @unit_base;
183                 top : 0 * @unit_base;
184
185                 box-shadow : none;
186                 border-width : 0px;
187
188                 .ui-icon-naviframe-more {
189                         left : 13 * @unit_base;
190                         top : 8 * @unit_base;
191                         
192                         margin-top : 0px;
193                 }
194                 .ui-btn-inner {
195                         border: none;
196                         background: transparent;
197                         box-shadow: none;
198                 }
199         }
200         >[data-role="button"] {
201                 font-size : 15 * @unit_base;
202                 font-weight : bold;
203                 color : @color_tabbar_btn_normal;
204         }
205
206         [data-role="controlgroup"] {
207                 margin-left : auto;
208                 margin-right : auto;
209                 margin-top : 6 * @unit_base; /* temp value */
210                 margin-bottom : 6 * @unit_base; /* temp value */
211                 padding-left : 58 * @unit_base;
212                 padding-right : 58 * @unit_base;
213
214
215                 [data-role="button"] {
216                         background : transparent;
217                         
218                         border-style : solid;
219                         border-color : @color_bar_divider_line;
220                         border-top-width : 0px;
221                         border-bottom-width : 0px;
222                         border-left-width : 0px;
223                         border-right-width : 1px;
224
225                         border-top-left-radius : 0px !important;
226                         border-top-right-radius : 0px !important;
227                         border-bottom-left-radius : 0px !important;
228                         border-bottom-right-radius : 0px !important;
229
230                         box-shadow : none;
231
232                         padding : 0px;
233                         margin-left : -4 * @unit_base;
234                         margin-right : -5 * @unit_base;
235
236                         &.ui-btn-down-s, .ui-btn-active-s {
237                                 .ui-btn-inner {
238                                         background : @color_bg;
239                                         .ui-btn-text {
240                                                 color : @color_bar_title_text;
241                                         }
242                                 }
243                         }
244
245                         >.ui-btn-inner {
246                                 border : 0px solid;
247                                 box-shadow : none;
248                         }
249                         .ui-btn-text {
250                                 font-size : 17 * @unit_base;
251                                 color : rgba(58, 58, 58, 1);
252                         }
253
254                         &.ui-corner-right {
255                                 border-right-width : 0px;
256                         }
257
258                         &.ui-corner-left {
259                                 border-left-width : 0px;
260                         }
261                 }
262                 }
263         
264         > [data-role="button"]:not([data-icon="naviframe-more"]) {
265                 top : 6 * @unit_base;
266         }
267
268         > p {
269                 margin-top : 8 * @unit_base;
270                 margin-bottom : 8 * @unit_base;
271         }
272         > h1, h2, h3, h4, h5, h6 {
273                 display: inline-block;
274         }
275 }
276
277 /***************************************************************************
278                     Content Top calculate
279 ***************************************************************************/
280 .ui-content {
281         position : relative;
282         top : 0;
283 }
284
285 /***************************************************************************
286                     Content Top calculate
287 ***************************************************************************/
288
289
290 .ui-body-s {
291         border: 1px solid #2a2a2a;
292         background:                     @color_bg;
293         color:                                  @color_text;
294         font-weight: normal;
295
296         font-family: Helvetica, Arial, sans-serif;
297
298         .ui-link-inherit { color:       #fff; }
299         .ui-link {
300                 /* ui-body-link */
301                 color: #2489CE;
302                 font-weight: bold;
303                 &:hover { color: #2489CE; }
304                 &:active { color: #2489CE; }
305                 &:visited {     color: #2489CE; }
306         }
307 }
308
309 .ui-br {
310 }
311 .ui-btn-box-s {
312         padding: 1 * @unit_base;
313 }
314 .ui-btn-box-s.ui-btn-up-s {
315         .LESSbutton_box_style;
316         .LESSborder-radius-all( 0.3rem );
317         .LESSbutton_text1_style;
318 }
319
320 .ui-btn.ui-btn-corner-all .ui-btn-box-s.ui-btn-up-s {
321         .LESSborder-radius-all( 1.2rem );
322 }
323
324 .ui-btn-box-s .ui-btn-inner {
325         border: 1px solid;
326         border-color: rgb(199, 197, 190);
327         .LESSborder-radius-all( 0.3rem );
328         .LESSbox-boxsizing( border-box );
329         .LESSbutton_inner_box_style;
330         height: 100%;
331 }
332
333 .ui-btn.ui-btn-corner-all.ui-btn-box-s .ui-btn-inner {
334         .LESSborder-radius-all( 1.2rem );
335 }
336
337 .ui-ctxpopup .ui-btn-box-s{
338         &.ui-btn-up-s,
339         &.ui-btn-hover-s {
340                 background: transparent !important;
341                 border: none;
342                 box-shadow: none;
343                 padding: 0;
344                 color: white !important;
345         }
346         &.ui-btn-down-s {
347                 background: @color_ctxbutton_press !important;
348                 border: none;
349                 box-shadow: none;
350                 padding: 0;
351                 color: white !important;
352                 .LESSborder-radius-all( 0 );
353         }
354         .ui-btn-inner {
355                 background: transparent ! important;
356                 box-shadow: none;
357                 border: none;
358         }
359 }
360
361 .ui-ctxpopup .ui-btn-down-s {
362         background: @color_ctxbutton_press !important;
363 }
364
365 .ui-header .ui-btn-box-s,
366 .ui-footer .ui-btn-box-s,
367 .ui-btn-back.ui-btn-up-s,
368 .ui-btn-back.ui-btn-hover-s,
369 .ui-btn-back.ui-btn-down-s,
370 .ui-popup-container .ui-btn-box-s {
371         font-weight: normal;
372         .LESSborder-radius-all( 0.9 rem );
373 }
374
375 .ui-btn-box-s.ui-btn-hover-s {
376         .LESSbutton_hover_style;
377         .LESSbutton_text1_style;
378         .LESSborder-radius-allimportant( 0.3em );
379 }
380 .ui-btn-box-s.ui-btn-hover-s.ui-btn-corner-circle {
381         .LESSborder-radius-allimportant( 1em );
382 }
383 .ui-btn-box-s.ui-btn-hover-s.ui-btn-corner-all {
384         .LESSborder-radius-allimportant( 1.2em );
385 }
386 .ui-btn-box-s.ui-btn-hover-s.ui-btn-round {
387         .LESSborder-radius-allimportant( 1.2em );
388 }
389 .ui-btn-box-s.ui-btn-down-s .ui-btn-inner {
390         .LESSbutton_down_style;
391 }
392
393 .ui-btn-up-s,
394 .ui-btn-hover-s,
395 .ui-btn-down-s {
396         font-family: Helvetica, Arial, sans-serif;
397         text-decoration: none;
398 }
399
400 /*
401 /* Structure */
402 /* links within "buttons" 
403 -----------------------------------------------------------------------------------------------------------*/
404
405 a.ui-link-inherit {
406         text-decoration: none !important;
407 }
408
409
410 /* Active class used as the "on" state across all themes
411 -----------------------------------------------------------------------------------------------------------*/
412
413 /* button default color for active state */
414 .ui-btn-active {
415         /* global-active */
416         color:                                  @color_button_text_normal;
417         cursor: pointer;
418         text-decoration: none;
419         background:                     @color_button_press;
420         outline: none;
421         //font-family: Helvetica, Arial, sans-serif;
422
423         a.ui-link-inherit {
424                 color:                                  @color_button_text_normal;
425         }
426 }
427
428 /* button inner top highlight
429 -----------------------------------------------------------------------------------------------------------*/
430
431 .ui-btn-inner {
432         //border : none;
433 }
434
435
436
437
438 /* corner rounding classes
439 -----------------------------------------------------------------------------------------------------------*/
440
441 .ui-corner-tl {
442         .LESSborder-radius-topleft(.3em);
443 }
444 .ui-corner-tr {
445         .LESSborder-radius-topright(.3em);
446 }
447 .ui-corner-bl {
448         .LESSborder-radius-bottomleft(.3em);
449 }
450 .ui-corner-br {
451         .LESSborder-radius-bottomright(.3em);
452 }
453 .ui-corner-top {
454         .LESSborder-radius-topleft(.3em);
455         .LESSborder-radius-topright(.3em);
456 }
457 .ui-corner-bottom {
458         .LESSborder-radius-bottomleft(.3em);
459         .LESSborder-radius-bottomright(.3em);
460 }
461 .ui-corner-right {
462         .LESSborder-radius-topright(.3em);
463         .LESSborder-radius-bottomright(.3em);
464 }
465 .ui-corner-left {
466         .LESSborder-radius-topleft(.3em);
467         .LESSborder-radius-bottomleft(.3em);
468 }
469 .ui-corner-all {
470         //.LESSborder-radius-all(.3em);
471 }
472 .ui-corner-none {
473         .LESSborder-radius-all(0); 
474 }
475
476 /*************************************************************************** 
477                     Icon (Naviframe)
478 ***************************************************************************/
479 .ui-header, .ui-footer {
480         .ui-btn .ui-btn-icon-only .ui-icon {
481                 width: 32 * @unit_base; 
482                 height: 32 * @unit_base;
483                 
484         }
485 }
486
487 .ui-btn-back .ui-btn-inner .ui-icon-header-back-btn {
488         width: 32 * @unit_base; 
489         height: 32 * @unit_base;
490
491         background-repeat: no-repeat;
492         background-size: 100% 100%;
493
494 }
495
496 .ui-btn-up-s {
497         .ui-icon-header-back-btn { background-image: url(images/page/00_icon_Back.png); }
498         .ui-icon-naviframe-more { background-image: url(images/page/00_icon_more.png); }
499         .ui-icon-naviframe-cancel { background-image: url(images/00_icon_cancel.png); } /* FIXME : check ux if it needs to be deprecated... */
500         .ui-icon-naviframe-edit { background-image: url(images/page/00_icon_edit.png); }
501         .ui-icon-naviframe-plus { background-image: url(images/page/00_icon_plus.png); }
502 }
503
504 .ui-btn-down-s, .ui-btn-hover-s {
505         .ui-icon-header-back-btn { background-image: url(images/page/00_icon_Back_press.png); }
506         .ui-icon-naviframe-more { background-image: url(images/page/00_icon_more_press.png); }
507         .ui-icon-naviframe-cancel { background-image: url(images/00_icon_cancel_press.png); } /* FIXME: check ux if it needs to be deprecated.. */
508         .ui-icon-naviframe-edit { background-image: url(images/page/00_icon_edit_press.png); }
509         .ui-icon-naviframe-plus { background-image: url(images/page/00_icon_plus_press.png); }
510 }
511
512 /* Interaction cues
513 -----------------------------------------------------------------------------------------------------------*/
514 .ui-disabled {
515         filter: Alpha(Opacity=30);
516         opacity: .3;
517         zoom: 1;
518 }
519 .ui-disabled,
520 .ui-disabled a {
521         cursor: default !important;
522         pointer-events: none;
523 }
524