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;
149 text-overflow: ellipsis;
155 &.ui-field-contain:last-child {
156 border-bottom-width: 1px;
165 &>.ui-btn-inner.ui-btn-hastxt {
170 .ui-btn-inner a.ui-link-inherit,
172 padding-top : 30 * @unit_base;
173 padding-bottom : 30 * @unit_base;
174 padding-left : 16 * @unit_base;
175 padding-right : 16 * @unit_base;
182 margin-top : -40 * @unit_base;
184 display : inline-block;
187 right : 16 * @unit_base;
191 [data-role="button"] {
194 right : 16 * @unit_base;
203 margin-top : -30 * @unit_base;
205 left : 16 * @unit_base;
207 width : 60 * @unit_base;
208 height : 60 * @unit_base;
211 padding : 10 * @unit_base 10 * @unit_base 10 * @unit_base 10 * @unit_base;
212 line-height : 40 * @unit_base;
217 left : 5 * @unit_base;
227 margin-top : -36 * @unit_base;
230 left : 16 * @unit_base;
234 left : 92 * @unit_base;
238 right : 16 * @unit_base;
242 .ui-li-color-bar + img.ui-li-bigicon:nth-child(2) {
243 left : 16 * @unit_base;
248 width : 12 * @unit_base;
249 height : 20 * @unit_base;
251 top : 0 * @unit_base;
252 left : 0 * @unit_base;
254 background-color : rgba(0, 0, 0, 1);
258 li.ui-li-thumbnail-right {
259 img.ui-li-bigicon.ui-li-thumb {
261 right : 16 * @unit_base;
265 .ui-li.ui-li-has-multiline {
266 .ui-btn-inner a.ui-link-inherit,
268 padding-top : 10 * @unit_base;
269 padding-bottom : 58 * @unit_base;
270 /* padding-left : 16 * @unit_base;
271 padding-right : 16 * @unit_base;
274 min-height : 60 * @unit_base;
279 /********************************************/
280 /*************** Divider ********************/
281 /********************************************/
285 counter-reset: listnumbering;
287 font-size: @list-font-size-divider;
288 padding-left: 16 * @unit_base;
289 padding-top: 8 * @unit_base;
290 padding-bottom: 8 * @unit_base;
293 .ui-listview .ui-li-divider {
294 &[data-style="dialogue"] {
295 height: 32 * @unit_base;
298 .LESSdialogue-divider;
299 background : @color_bg;
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;
320 &[data-style="expandable"] {
321 height: 60 * @unit_base;
323 padding-bottom : 0px;
325 line-height : 60 * @unit_base;
329 .ui-divider-expand-div {
332 width : 98 * @unit_base;
333 height : 42 * @unit_base;
334 top : 10 * @unit_base;
337 border-left-width : 1px;
338 border-left-style : solid;
339 border-left-color : rgba(42, 137, 194, 0.5);
345 .ui-li-has-thumb:not(.ui-li-thumbnail-right) {
346 .ui-btn-inner a.ui-link-inherit,
348 min-height: 60 * @unit_base;
349 padding-left: 104 * @unit_base;
352 padding-left: 104 * @unit_base;
358 .ui-btn-inner a.ui-link-inherit,
360 min-height: 60 * @unit_base;
361 padding-left: 92 * @unit_base;
364 padding-left: 92 * @unit_base;
368 .ui-li-has-thumb.ui-li-has-checkbox,
369 .ui-li-has-thumb.ui-li-has-radio {
370 .ui-btn-inner a.ui-link-inherit,
372 min-height: 60 * @unit_base;
373 padding-left: 180 * @unit_base;
377 padding-left: 180 * @unit_base;
382 .ui-btn-inner a.ui-link-inherit,
397 text-overflow: ellipsis;
407 max-height: @list-bigicon-size2;
408 max-width: @list-bigicon-size2;
411 .ui-listview * .ui-btn-inner > .ui-btn > .ui-btn-inner {
419 font-size: @font_size_list_sub_text;
423 /* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
424 /* ~~~~~~~~~~~~~~ NEW LIST STYLE ~~~~~~~~~ */
425 /* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
429 font-size: @font_size_list_sub_text;
430 color: @color_list_sub_text_default;
432 margin-top: -0.5em;*/
435 right : 16 * @unit_base;
436 top : 16 * @unit_base;
439 width: @list-smallicon-size;
440 height: @list-smallicon-size;
441 margin: 0 @list-li-padding-horizontal 0 @list-li-padding-horizontal;
448 font-size: @font_size_list_sub_text;
449 color: @color_list_sub_text_default;
452 right : 16 * @unit_base;
453 top : 16 * @unit_base;
456 width: @list-smallicon-size;
457 height: @list-smallicon-size;
458 margin: 0 0 0 @list-li-padding-horizontal;
462 li:not(.ui-li-has-multiline) .ui-li-text-sub {
465 right : 16 * @unit_base;
466 top: 22 * @unit_base;
469 .ui-li-has-multiline .ui-li-text-sub {
473 left : 16 * @unit_base;
474 top: 70 * @unit_base;
479 .ui-li-icon-sub-right,
483 width: @list-smallicon-size;
484 height: @list-smallicon-size;
487 .ui-li-icon-sub-right {
488 right : 16 * @unit_base;
497 &> li.ui-li-dialogue {
498 margin-left: @style_list_li_dialogue_margin_left;
499 margin-right : @style_list_li_dialogue_margin_left;
500 border-left: @style_list_li_dialogue_border_left_width @color_dialogue_editor_border solid;
501 //margin-left: @style_list_li_dialogue_margin_left;
502 border-top-width: 0px;
504 .LESSdialogue-border-style;
507 &> li.ui-li-dialogue.ui-body-s,
508 &> li.ui-li-dialogue.ui-btn-hover-up-s:not(.ui-btn-down-s),
509 &> li.ui-li-dialogue.ui-btn-up-s {
510 &:not(.ui-li-expanded){
511 background : @color_list_dialogue_bg;
515 &> li.ui-li-dialogue.ui-li-divider {
516 height: 32 * @unit_base;
520 &> li.ui-li-group-title {
521 padding-top : 32 * @unit_base;
524 &> li.ui-li-group-title span {
525 padding-left : 16 * @unit_base;
527 &> li.ui-li-dialogue-divider {
528 .LESSdialogue-divider;
541 min-width: 160 * @unit_base;
542 min-height: 160 * @unit_base;
546 word-wrap: break-word;
547 .LESSborder-radius-topright(@list-li-bubble-corner-radius);
548 .LESSborder-radius-bottomright(@list-li-bubble-corner-radius);
549 font-size: @list-li-bubble-font-size;
551 font-size: @list-li-bubble-font-size;
553 //margin: 12px 20% 12px 0%;
554 margin-top: 12 * @unit_base;
555 margin-bottom: 12 * @unit_base;
560 padding: 16px 22px 16px 16px;
562 .ui-li-bubble-right {
563 word-wrap: break-word;
564 .LESSborder-radius-topleft(@list-li-bubble-corner-radius);
565 .LESSborder-radius-bottomleft(@list-li-bubble-corner-radius);
566 margin: 12px 0% 12px 20%;
567 padding: 16px 16px 16px 22px;
572 height: 40 * @unit_base;
573 font-size: @list-li-bubble-date-font-size;
574 margin: 12px 0%; // no horizontal margin
577 text-align: @style_list_bubble_date_text_align;
579 span.ui-li-bubble-time {
581 font-size: @list-li-bubble-time-font-size;
582 display: inline-block;
586 // Expandable list animation
588 @-webkit-keyframes ui-expand-show {
590 -webkit-transform-origin: 0% 0%;
591 -webkit-transform: rotateX(90deg) skewX(30deg) translateZ(0);
593 -webkit-transform-origin: 0% 0%;
594 -webkit-transform: rotateX(0deg) skewX(0deg) translateZ(0);
600 .ui-li-expandable-shown {
602 .LESSimg-expanded-icon;
604 .ui-li-expandable-hidden {
606 .LESSimg-expand-icon;
611 .ui-li-expand-transition-show {
613 -webkit-animation: ui-expand-show 0.4s 1 ease-out;
615 .ui-li-expand-transition-hide {
617 height: 0px !important;
618 min-height: 0px !important;
622 -webkit-transition: all 0.2s ease;
623 -moz-transition: all 0.2s ease;
624 -o-transition: all 0.2s ease;
625 transition: all 0.2s ease;
630 .LESSimg-expand-icon(@right:@list-li-padding-horizontal, @size:@list-bigicon-size) {
632 background-image: url(images/00_button_expand_closed.png);
633 background-size: 100%;
636 width: 64 * @unit_base;
637 height: 64 * @unit_base;
638 margin-top: -(@size/2);
639 right: 16 * @unit_base;
643 .LESSimg-expanded-icon(@right:@list-li-padding-horizontal, @size:@list-bigicon-size) {
644 .ui-li-expanded-icon {
645 background-image: url(images/00_button_expand_opened.png);
646 background-size: 100%;
649 width: 64 * @unit_base;
650 height: 64 * @unit_base;
651 margin-top: -(@size/2);
652 right: 16 * @unit_base;