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-left: -16 * @unit_base;
105 margin-right: -16 * @unit_base;
122 font-size : @list-font-size-main;
126 .ui-li.ui-field-contain {
139 font-size : @list-font-size-main;
140 min-height : 52 * @unit_base;
141 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;
300 background : @color_bg;
303 &[data-style="check"] {
304 height: 60 * @unit_base;
306 padding-bottom : 0px;
308 padding-left : 92 * @unit_base;
309 line-height : 60 * @unit_base;
312 &[data-style="checkexpandable"] {
313 height: 60 * @unit_base;
315 padding-bottom : 0px;
317 padding-left : 92 * @unit_base;
318 line-height : 60 * @unit_base;
321 &[data-style="expandable"] {
322 height: 60 * @unit_base;
324 padding-bottom : 0px;
326 line-height : 60 * @unit_base;
330 .ui-divider-expand-div {
333 width : 98 * @unit_base;
334 height : 42 * @unit_base;
335 top : 10 * @unit_base;
338 border-left-width : 1px;
339 border-left-style : solid;
340 border-left-color : @color_list_divider_expand_div;
346 .ui-li-has-thumb:not(.ui-li-thumbnail-right) {
347 .ui-btn-inner a.ui-link-inherit,
349 min-height: 60 * @unit_base;
350 padding-left: 104 * @unit_base;
353 padding-left: 104 * @unit_base;
359 .ui-btn-inner a.ui-link-inherit,
361 min-height: 60 * @unit_base;
362 padding-left: 92 * @unit_base;
365 padding-left: 92 * @unit_base;
369 .ui-li-has-thumb.ui-li-has-checkbox,
370 .ui-li-has-thumb.ui-li-has-radio {
371 .ui-btn-inner a.ui-link-inherit,
373 min-height: 60 * @unit_base;
374 padding-left: 180 * @unit_base;
378 padding-left: 180 * @unit_base;
383 .ui-btn-inner a.ui-link-inherit,
398 text-overflow: ellipsis;
408 max-height: @list-bigicon-size2;
409 max-width: @list-bigicon-size2;
412 .ui-listview * .ui-btn-inner > .ui-btn > .ui-btn-inner {
420 font-size: @font_size_list_sub_text;
424 /* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
425 /* ~~~~~~~~~~~~~~ NEW LIST STYLE ~~~~~~~~~ */
426 /* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
430 font-size: @font_size_list_sub_text;
431 color: @color_list_sub_text_default;
433 margin-top: -0.5em;*/
436 right : 16 * @unit_base;
437 top : 16 * @unit_base;
440 width: @list-smallicon-size;
441 height: @list-smallicon-size;
442 margin: 0 @list-li-padding-horizontal 0 @list-li-padding-horizontal;
449 font-size: @font_size_list_sub_text;
450 color: @color_list_sub_text_default;
453 right : 16 * @unit_base;
454 top : 16 * @unit_base;
457 width: @list-smallicon-size;
458 height: @list-smallicon-size;
459 margin: 0 0 0 @list-li-padding-horizontal;
463 li:not(.ui-li-has-multiline) .ui-li-text-sub {
466 right : 16 * @unit_base;
467 top: 22 * @unit_base;
470 .ui-li-has-multiline .ui-li-text-sub {
474 left : 16 * @unit_base;
475 top: 70 * @unit_base;
480 .ui-li-icon-sub-right,
484 width: @list-smallicon-size;
485 height: @list-smallicon-size;
488 .ui-li-icon-sub-right {
489 right : 16 * @unit_base;
498 &> li.ui-li-dialogue {
499 margin-left: @style_list_li_dialogue_margin_left;
500 margin-right : @style_list_li_dialogue_margin_left;
501 border-left: @style_list_li_dialogue_border_left_width @color_dialogue_editor_border solid;
502 //margin-left: @style_list_li_dialogue_margin_left;
503 border-top-width: 0px;
505 .LESSdialogue-border-style;
508 &> li.ui-li-dialogue.ui-body-s,
509 &> li.ui-li-dialogue.ui-btn-hover-up-s:not(.ui-btn-down-s),
510 &> li.ui-li-dialogue.ui-btn-up-s {
511 &:not(.ui-li-expanded){
512 background : @color_list_dialogue_bg;
516 &> li.ui-li-dialogue.ui-li-divider {
517 height: 32 * @unit_base;
521 &> li.ui-li-group-title {
522 padding-top : 32 * @unit_base;
525 &> li.ui-li-group-title span {
526 padding-left : 16 * @unit_base;
528 &> li.ui-li-dialogue-divider {
529 .LESSdialogue-divider;
542 min-width: 160 * @unit_base;
543 min-height: 160 * @unit_base;
547 word-wrap: break-word;
548 .LESSborder-radius-topright(@list-li-bubble-corner-radius);
549 .LESSborder-radius-bottomright(@list-li-bubble-corner-radius);
550 font-size: @list-li-bubble-font-size;
552 font-size: @list-li-bubble-font-size;
554 //margin: 12px 20% 12px 0%;
555 margin-top: 12 * @unit_base;
556 margin-bottom: 12 * @unit_base;
561 padding: 16px 22px 16px 16px;
563 .ui-li-bubble-right {
564 word-wrap: break-word;
565 .LESSborder-radius-topleft(@list-li-bubble-corner-radius);
566 .LESSborder-radius-bottomleft(@list-li-bubble-corner-radius);
567 margin: 12px 0% 12px 20%;
568 padding: 16px 16px 16px 22px;
573 height: 40 * @unit_base;
574 font-size: @list-li-bubble-date-font-size;
575 margin: 12px 0%; // no horizontal margin
578 text-align: @style_list_bubble_date_text_align;
580 span.ui-li-bubble-time {
582 font-size: @list-li-bubble-time-font-size;
583 display: inline-block;
587 // Expandable list animation
589 @-webkit-keyframes ui-expand-show {
591 -webkit-transform-origin: 0% 0%;
592 -webkit-transform: rotateX(90deg) skewX(30deg) translateZ(0);
594 -webkit-transform-origin: 0% 0%;
595 -webkit-transform: rotateX(0deg) skewX(0deg) translateZ(0);
601 .ui-li-expandable-shown {
603 .LESSimg-expanded-icon;
605 .ui-li-expandable-hidden {
607 .LESSimg-expand-icon;
612 .ui-li-expand-transition-show {
614 -webkit-animation: ui-expand-show 0.4s 1 ease-out;
616 .ui-li-expand-transition-hide {
618 height: 0px !important;
619 min-height: 0px !important;
623 -webkit-transition: all 0.2s ease;
624 -moz-transition: all 0.2s ease;
625 -o-transition: all 0.2s ease;
626 transition: all 0.2s ease;
631 .LESSimg-expand-icon(@right:@list-li-padding-horizontal, @size:@list-bigicon-size) {
633 background-image: url(images/00_button_expand_closed.png);
634 background-size: 100%;
637 width: 64 * @unit_base;
638 height: 64 * @unit_base;
639 margin-top: -(@size/2);
640 right: 16 * @unit_base;
644 .LESSimg-expanded-icon(@right:@list-li-padding-horizontal, @size:@list-bigicon-size) {
645 .ui-li-expanded-icon {
646 background-image: url(images/00_button_expand_opened.png);
647 background-size: 100%;
650 width: 64 * @unit_base;
651 height: 64 * @unit_base;
652 margin-top: -(@size/2);
653 right: 16 * @unit_base;