collapsible: Add collapse/expand animation (VI)
[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
259 /***************************************************************************
260                     Content Top calculate
261 ***************************************************************************/
262 .ui-content {
263         position : relative;
264         top : 0;
265 }
266
267 /***************************************************************************
268                     Content Top calculate
269 ***************************************************************************/
270
271
272 .ui-body-s {
273         border: 1px solid #2a2a2a;
274         background:                     @color_bg;
275         color:                                  @color_text;
276         font-weight: normal;
277
278         font-family: Helvetica, Arial, sans-serif;
279
280         .ui-link-inherit { color:       #fff; }
281         .ui-link {
282                 /* ui-body-link */
283                 color: #2489CE;
284                 font-weight: bold;
285                 &:hover { color: #2489CE; }
286                 &:active { color: #2489CE; }
287                 &:visited {     color: #2489CE; }
288         }
289 }
290
291 .ui-br {
292 }
293 .ui-btn-box-s {
294         padding: 1 * @unit_base;
295 }
296 .ui-btn-box-s.ui-btn-up-s {
297         .LESSbutton_box_style;
298         .LESSborder-radius-all( 0.3rem );
299         .LESSbutton_text1_style;
300 }
301
302 .ui-ctxpopup .ui-btn-box-s{
303         &.ui-btn-up-s,
304         &.ui-btn-hover-s {
305                 background: transparent !important;
306                 border: none;
307                 box-shadow: none;
308                 padding: 0;
309                 color: white !important;
310         }
311         &.ui-btn-down-s {
312                 background: @color_ctxbutton_press !important;
313                 border: none;
314                 box-shadow: none;
315                 padding: 0;
316                 color: white !important;
317                 .LESSborder-radius-all( 0 );
318         }
319         .ui-btn-inner {
320                 background: transparent ! important;
321                 box-shadow: none;
322                 border: none;
323         }
324 }
325
326 .ui-ctxpopup .ui-btn-down-s {
327         background: @color_ctxbutton_press !important;
328 }
329
330 .ui-btn-box-s .ui-btn-inner {
331         border: 1px solid;
332         border-color: rgb(199, 197, 190);
333         .LESSborder-radius-all( 0.3rem );
334         .LESSbox-boxsizing( border-box );
335         .LESSbutton_inner_box_style;
336         height: 100%;
337 }
338
339 .ui-header .ui-btn-box-s,
340 .ui-footer .ui-btn-box-s,
341 .ui-btn-back.ui-btn-up-s,
342 .ui-btn-back.ui-btn-hover-s,
343 .ui-btn-back.ui-btn-down-s,
344 .ui-popup-container .ui-btn-box-s {
345         font-weight: normal;
346         .LESSborder-radius-all( 0.9 rem );
347 }
348
349 .ui-btn-box-s.ui-btn-hover-s {
350         .LESSbutton_hover_style;
351         .LESSbutton_text1_style;
352 }
353 /*
354 .ui-btn-box-s.ui-btn-hover-s.ui-btn-corner-circle{
355         .LESScirclebutton_hover_style;
356 }
357 */
358 .ui-btn-box-s.ui-btn-down-s .ui-btn-inner {
359         .LESSbutton_down_style;
360 }
361
362 .ui-btn-up-s,
363 .ui-btn-hover-s,
364 .ui-btn-down-s {
365         font-family: Helvetica, Arial, sans-serif;
366         text-decoration: none;
367 }
368 /*
369 .ui-btn-down-s.ui-btn-corner-circle{
370         .LESScirclebutton_press_style;
371 }
372
373 /* Structure */
374 /* links within "buttons" 
375 -----------------------------------------------------------------------------------------------------------*/
376
377 a.ui-link-inherit {
378         text-decoration: none !important;
379 }
380
381
382 /* Active class used as the "on" state across all themes
383 -----------------------------------------------------------------------------------------------------------*/
384
385 /* button default color for active state */
386 .ui-btn-active {
387         /* global-active */
388         color:                                  @color_button_text_normal;
389         cursor: pointer;
390         text-decoration: none;
391         background:                     @color_button_press;
392         outline: none;
393         //font-family: Helvetica, Arial, sans-serif;
394
395         a.ui-link-inherit {
396                 color:                                  @color_button_text_normal;
397         }
398 }
399
400 /* button inner top highlight
401 -----------------------------------------------------------------------------------------------------------*/
402
403 .ui-btn-inner {
404         //border : none;
405 }
406
407
408
409
410 /* corner rounding classes
411 -----------------------------------------------------------------------------------------------------------*/
412
413 .ui-corner-tl {
414         .LESSborder-radius-topleft(.3em);
415 }
416 .ui-corner-tr {
417         .LESSborder-radius-topright(.3em);
418 }
419 .ui-corner-bl {
420         .LESSborder-radius-bottomleft(.3em);
421 }
422 .ui-corner-br {
423         .LESSborder-radius-bottomright(.3em);
424 }
425 .ui-corner-top {
426         .LESSborder-radius-topleft(.3em);
427         .LESSborder-radius-topright(.3em);
428 }
429 .ui-corner-bottom {
430         .LESSborder-radius-bottomleft(.3em);
431         .LESSborder-radius-bottomright(.3em);
432 }
433 .ui-corner-right {
434         .LESSborder-radius-topright(.3em);
435         .LESSborder-radius-bottomright(.3em);
436 }
437 .ui-corner-left {
438         .LESSborder-radius-topleft(.3em);
439         .LESSborder-radius-bottomleft(.3em);
440 }
441 .ui-corner-all {
442         //.LESSborder-radius-all(.3em);
443 }
444 .ui-corner-none {
445         .LESSborder-radius-all(0); 
446 }
447
448 /*************************************************************************** 
449                     Icon (Naviframe)
450 ***************************************************************************/
451 .ui-header, .ui-footer {
452         .ui-btn .ui-btn-icon-only .ui-icon {
453                 width: 32 * @unit_base; 
454                 height: 32 * @unit_base;
455                 
456         }
457 }
458
459 .ui-btn-back .ui-btn-inner .ui-icon-header-back-btn {
460         width: 32 * @unit_base; 
461         height: 32 * @unit_base;
462
463         background-repeat: no-repeat;
464         background-size: 100% 100%;
465
466 }
467
468 .ui-btn-up-s {
469         .ui-icon-header-back-btn { background-image: url(images/page/00_icon_Back.png); }
470         .ui-icon-naviframe-more { background-image: url(images/page/00_icon_more.png); }
471         .ui-icon-naviframe-cancel { background-image: url(images/00_icon_cancel.png); } /* FIXME : check ux if it needs to be deprecated... */
472         .ui-icon-naviframe-edit { background-image: url(images/page/00_icon_edit.png); }
473         .ui-icon-naviframe-plus { background-image: url(images/page/00_icon_plus.png); }
474 }
475
476 .ui-btn-down-s, .ui-btn-hover-s {
477         .ui-icon-header-back-btn { background-image: url(images/page/00_icon_Back_press.png); }
478         .ui-icon-naviframe-more { background-image: url(images/page/00_icon_more_press.png); }
479         .ui-icon-naviframe-cancel { background-image: url(images/00_icon_cancel_press.png); } /* FIXME: check ux if it needs to be deprecated.. */
480         .ui-icon-naviframe-edit { background-image: url(images/page/00_icon_edit_press.png); }
481         .ui-icon-naviframe-plus { background-image: url(images/page/00_icon_plus_press.png); }
482 }