2 * jQuery Mobile Framework
3 * Copyright (c) jQuery Project
4 * Dual licensed under the MIT (MIT-LICENSE.txt) or GPL (GPL-LICENSE.txt) licenses.
7 /*** less definitions ***/
12 @list-font-size-main: 44 * @unit_base;
13 @list-font-size-sub: 32 * @unit_base;
14 @list-font-size-divider: 32 * @unit_base; // NOTE: defined in dialogue group
17 @list-dialogue-font-size-main: 38 * @unit_base;
18 @list-dialogue-font-size-sub: 32 * @unit_base;
21 @list-font-weight: normal;
24 @list-li-height: 112 * @unit_base;
26 @list-li-2line-height: 128 * @unit_base;
27 @list-li-3line-height: 160 * @unit_base;
28 @list-li-top-padding: 10 * @unit_base;
29 @list-li-main-line-height: 60 * @unit_base;
30 @list-li-sub-line-height: 48 * @unit_base;
32 @list-smallicon-size: 32 * @unit_base;
33 @list-li-padding-horizontal: 16 * @unit_base;
35 @list-li-divider-height: 32 * @unit_base;
38 @list-bigicon-size: 64 * @unit_base;
39 @list-bigicon-size2: 72 * @unit_base;
41 @list-checkbox-size: 42 * @unit_base;
42 @list-progressbar-height: 16 * @unit_base;
47 @list-li-bubble-font-size: 38 * @unit_base;
48 @list-li-bubble-time-font-size: 26 * @unit_base;
49 @list-li-bubble-date-font-size: @list-li-bubble-time-font-size;
50 @list-li-bubble-corner-radius: 9 * @unit_base; // TODO: fit to 9px (picked from bg images)
52 @list-li-sub-left-width: 187 * @unit_base;
53 @list-li-main-right-padding: 187 * @unit_base;
56 @list-li-email-top-padding: 8 * @unit_base;
57 @list-li-email-subline-top-padding: 4 * @unit_base;
58 @list-li-email-sub-line-height: 40 * @unit_base;
59 @list-email-icon-width: 56 * @unit_base;
60 @list-email-icon-height: 60 * @unit_base;
62 @list-email-icon-top-padding: 16 * @unit_base;
63 @list-email-attach-icon-width: 40 * @unit_base;
64 @list-email-attach-icon-height: 40 * @unit_base;
65 @list-email-warning-icon-width: 30 * @unit_base;
66 @list-email-warning-icon-height: 30 * @unit_base;
67 @list-email-text-padding-left: 60 * @unit_base;
69 /************************/
73 counter-reset: listnumbering;
74 border-top-width: 1px;
75 border-top-style: solid;
77 li.ui-btn > .ui-btn-hastxt > .ui-btn-text.ui-btn-text-padding-right {
78 padding-right: 0 * @unit_base; // Clear default button padding-right
82 // list item separator line
83 border-bottom-width: 1px;
84 border-bottom-style: solid;
86 border-top-width: 0px;
89 &> .ui-li:not(.ui-li-divider) {
90 &:not(.ui-li-static) {
91 min-height : 112 * @unit_base;
95 &> .ui-li.ui-li-has-multiline:not(.ui-li-divider) {
96 &:not(.ui-li-static) {
97 min-height : 128 * @unit_base;
104 margin: -16 * @unit_base;
121 font-size : @list-font-size-main;
125 .ui-li.ui-field-contain {
138 font-size : @list-font-size-main;
139 min-height : 52 * @unit_base;
140 font-weight : normal;
150 text-overflow: ellipsis;
156 &.ui-field-contain:last-child {
157 border-bottom-width: 1px;
166 &>.ui-btn-inner.ui-btn-hastxt {
171 .ui-btn-inner a.ui-link-inherit,
173 padding-top : 30 * @unit_base;
174 padding-bottom : 30 * @unit_base;
175 padding-left : 16 * @unit_base;
176 padding-right : 16 * @unit_base;
183 margin-top : -40 * @unit_base;
185 display : inline-block;
188 right : 16 * @unit_base;
192 [data-role="button"] {
195 right : 16 * @unit_base;
204 margin-top : -30 * @unit_base;
206 left : 16 * @unit_base;
208 width : 60 * @unit_base;
209 height : 60 * @unit_base;
212 padding : 10 * @unit_base 10 * @unit_base 10 * @unit_base 10 * @unit_base;
213 line-height : 40 * @unit_base;
218 left : 5 * @unit_base;
228 margin-top : -36 * @unit_base;
231 left : 16 * @unit_base;
235 left : 92 * @unit_base;
239 right : 16 * @unit_base;
243 .ui-li-color-bar + img.ui-li-bigicon:nth-child(2) {
244 left : 16 * @unit_base;
249 width : 12 * @unit_base;
250 height : 20 * @unit_base;
252 top : 0 * @unit_base;
253 left : 0 * @unit_base;
255 background-color : rgba(0, 0, 0, 1);
259 li.ui-li-thumbnail-right {
260 img.ui-li-bigicon.ui-li-thumb {
262 right : 16 * @unit_base;
266 .ui-li.ui-li-has-multiline {
267 .ui-btn-inner a.ui-link-inherit,
269 padding-top : 10 * @unit_base;
270 padding-bottom : 58 * @unit_base;
271 /* padding-left : 16 * @unit_base;
272 padding-right : 16 * @unit_base;
275 min-height : 60 * @unit_base;
280 /********************************************/
281 /*************** Divider ********************/
282 /********************************************/
286 counter-reset: listnumbering;
288 font-size: @list-font-size-divider;
289 padding-left: 16 * @unit_base;
290 padding-top: 8 * @unit_base;
291 padding-bottom: 8 * @unit_base;
294 .ui-listview .ui-li-divider {
295 &[data-style="dialogue"] {
296 height: 32 * @unit_base;
299 .LESSdialogue-divider;
302 &[data-style="check"] {
303 height: 60 * @unit_base;
305 padding-bottom : 0px;
307 padding-left : 92 * @unit_base;
308 line-height : 60 * @unit_base;
311 &[data-style="checkexpandable"] {
312 height: 60 * @unit_base;
314 padding-bottom : 0px;
316 padding-left : 92 * @unit_base;
317 line-height : 60 * @unit_base;
321 .ui-divider-expand-div {
327 .ui-li-has-thumb:not(.ui-li-thumbnail-right) {
328 .ui-btn-inner a.ui-link-inherit,
330 min-height: 60 * @unit_base;
331 padding-left: 104 * @unit_base;
334 padding-left: 104 * @unit_base;
340 .ui-btn-inner a.ui-link-inherit,
342 min-height: 60 * @unit_base;
343 padding-left: 92 * @unit_base;
346 padding-left: 92 * @unit_base;
350 .ui-li-has-thumb.ui-li-has-checkbox,
351 .ui-li-has-thumb.ui-li-has-radio {
352 .ui-btn-inner a.ui-link-inherit,
354 min-height: 60 * @unit_base;
355 padding-left: 180 * @unit_base;
359 padding-left: 180 * @unit_base;
364 .ui-btn-inner a.ui-link-inherit,
379 text-overflow: ellipsis;
389 max-height: @list-bigicon-size2;
390 max-width: @list-bigicon-size2;
393 .ui-listview * .ui-btn-inner > .ui-btn > .ui-btn-inner {
401 font-size: @font_size_list_sub_text;
405 /* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
406 /* ~~~~~~~~~~~~~~ NEW LIST STYLE ~~~~~~~~~ */
407 /* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
411 font-size: @font_size_list_sub_text;
412 color: @color_list_sub_text_default;
414 margin-top: -0.5em;*/
417 right : 16 * @unit_base;
418 top : 16 * @unit_base;
421 width: @list-smallicon-size;
422 height: @list-smallicon-size;
423 margin: 0 @list-li-padding-horizontal 0 @list-li-padding-horizontal;
430 font-size: @font_size_list_sub_text;
431 color: @color_list_sub_text_default;
434 right : 16 * @unit_base;
435 top : 16 * @unit_base;
438 width: @list-smallicon-size;
439 height: @list-smallicon-size;
440 margin: 0 0 0 @list-li-padding-horizontal;
444 li:not(.ui-li-has-multiline) .ui-li-text-sub {
447 right : 16 * @unit_base;
448 top: 22 * @unit_base;
451 .ui-li-has-multiline .ui-li-text-sub {
455 left : 16 * @unit_base;
456 top: 70 * @unit_base;
461 .ui-li-icon-sub-right,
465 width: @list-smallicon-size;
466 height: @list-smallicon-size;
469 .ui-li-icon-sub-right {
470 right : 16 * @unit_base;
479 &> li.ui-li-dialogue {
480 margin-left: @style_list_li_dialogue_margin_left;
481 margin-right : @style_list_li_dialogue_margin_left;
482 border-left: @style_list_li_dialogue_border_left_width @color_dialogue_editor_border solid;
483 //margin-left: @style_list_li_dialogue_margin_left;
484 border-top-width: 0px;
486 .LESSdialogue-border-style;
489 &> li.ui-li-dialogue.ui-body-s,
490 &> li.ui-li-dialogue.ui-btn-hover-up-s:not(.ui-btn-down-s),
491 &> li.ui-li-dialogue.ui-btn-up-s {
492 &:not(.ui-li-expanded){
493 background : @color_list_dialogue_bg;
497 &> li.ui-li-dialogue.ui-li-divider {
498 height: 32 * @unit_base;
502 &> li.ui-li-group-title {
503 padding-top : 32 * @unit_base;
506 &> li.ui-li-group-title span {
507 padding-left : 16 * @unit_base;
509 &> li.ui-li-dialogue-divider {
510 .LESSdialogue-divider;
523 min-width: 160 * @unit_base;
524 min-height: 160 * @unit_base;
528 word-wrap: break-word;
529 .LESSborder-radius-topright(@list-li-bubble-corner-radius);
530 .LESSborder-radius-bottomright(@list-li-bubble-corner-radius);
531 font-size: @list-li-bubble-font-size;
533 font-size: @list-li-bubble-font-size;
535 //margin: 12px 20% 12px 0%;
536 margin-top: 12 * @unit_base;
537 margin-bottom: 12 * @unit_base;
542 padding: 16px 22px 16px 16px;
544 .ui-li-bubble-right {
545 word-wrap: break-word;
546 .LESSborder-radius-topleft(@list-li-bubble-corner-radius);
547 .LESSborder-radius-bottomleft(@list-li-bubble-corner-radius);
548 margin: 12px 0% 12px 20%;
549 padding: 16px 16px 16px 22px;
554 height: 40 * @unit_base;
555 font-size: @list-li-bubble-date-font-size;
556 margin: 12px 0%; // no horizontal margin
559 text-align: @style_list_bubble_date_text_align;
561 span.ui-li-bubble-time {
563 font-size: @list-li-bubble-time-font-size;
564 display: inline-block;
568 // Expandable list animation
570 @-webkit-keyframes ui-expand-show {
572 -webkit-transform-origin: 0% 0%;
573 -webkit-transform: rotateX(90deg) skewX(30deg) translateZ(0);
575 -webkit-transform-origin: 0% 0%;
576 -webkit-transform: rotateX(0deg) skewX(0deg) translateZ(0);
582 .ui-li-expandable-shown {
584 .LESSimg-expanded-icon;
586 .ui-li-expandable-hidden {
588 .LESSimg-expand-icon;
593 .ui-li-expand-transition-show {
595 -webkit-animation: ui-expand-show 0.4s 1 ease-out;
597 .ui-li-expand-transition-hide {
599 height: 0px !important;
600 min-height: 0px !important;
604 -webkit-transition: all 0.2s ease;
605 -moz-transition: all 0.2s ease;
606 -o-transition: all 0.2s ease;
607 transition: all 0.2s ease;
612 .LESSimg-expand-icon(@right:@list-li-padding-horizontal, @size:@list-bigicon-size) {
614 background-image: url(images/00_button_expand_closed.png);
615 background-size: 100%;
618 width: 64 * @unit_base;
619 height: 64 * @unit_base;
620 margin-top: -(@size/2);
621 right: 16 * @unit_base;
625 .LESSimg-expanded-icon(@right:@list-li-padding-horizontal, @size:@list-bigicon-size) {
626 .ui-li-expanded-icon {
627 background-image: url(images/00_button_expand_opened.png);
628 background-size: 100%;
631 width: 64 * @unit_base;
632 height: 64 * @unit_base;
633 margin-top: -(@size/2);
634 right: 16 * @unit_base;