:root { --list-item-color: var(--text-color); --list-item-active-background-color: var(--list-tap-active-background-color); --list-item-separator-color: var(--border-color); --list-border: 1px solid var(--list-item-separator-color); --list-item-min-height: 44px; --list-item-margin: 0 0 -1px 0; --list-item-padding-side: 14px; --list-item-padding: 0 0 0 var(--list-item-padding-side); --list-border-top: 1px solid var(--list-item-separator-color); --list-border-bottom: 1px solid var(--list-item-separator-color); --list-header-color: var(--text-color); --list-header-font-size: 12px; --list-header-padding: 0 0 0 15px; --list-header-min-height: 24px; --list-header-font-weight: var(--font-weight--large); --inset-list-border: 1px solid var(--list-item-separator-color); --list-title-color: #6d6d72; --list-title-font-size: 13px; --list-title-font-weight: 500; --list-title-line-height: 24px; --list-title-padding: 0 0 0 16px; --material-list-item-side-padding: 16px; --material-list-item-min-height: 48px; --material-list-item-padding: 0 0 0 var(--material-list-item-side-padding); --material-list-title-color: #757575; --material-list-title-font-size: 14px; --material-list-title-font-weight: 500; --material-list-title-line-height: 24px; --material-list-title-padding: 12px 0 12px var(--material-list-item-side-padding); --retina-list-item-border: { border-bottom: none; background-size: 100% 1px; background-repeat: no-repeat; background-position: bottom; background-image: linear-gradient(0deg, var(--list-item-separator-color), var(--list-item-separator-color) 100%); @media (--retina-query) { background-image: linear-gradient(0deg, var(--list-item-separator-color), var(--list-item-separator-color) 50%, transparent 50%); } } --retina-material-list-item-border: { border-bottom: none; background-size: 100% 1px; background-repeat: no-repeat; background-position: bottom; background-image: linear-gradient(0deg, var(--material-list-item-separator-color), var(--material-list-item-separator-color) 100%); @media (--retina-query) { background-image: linear-gradient(0deg, var(--material-list-item-separator-color), var(--material-list-item-separator-color) 50%, transparent 50%); } } --retina-list-border: { @media (--retina-query) { border: none; background-size: 100% 1px, 100% 1px; background-repeat: no-repeat; background-position: bottom, top; background-image: linear-gradient(0deg, var(--list-item-separator-color), var(--list-item-separator-color) 50%, transparent 50%), linear-gradient(180deg, var(--list-item-separator-color), var(--list-item-separator-color) 50%, transparent 50%); } } } /*~ name: List category: List elements: ons-list ons-list-item markup: | */ .list { @apply(--reset-base); @apply(--reset-cursor); @apply(--reset-font); list-style-type: none; text-align: left; display: block; -webkit-overflow-scrolling: touch; overflow: hidden; background-image: linear-gradient(var(--list-item-separator-color), var(--list-item-separator-color)), linear-gradient(var(--list-item-separator-color), var(--list-item-separator-color)); background-size: 100% 1px, 100% 1px; background-repeat: no-repeat; background-position: bottom, top; border: none; background-color: var(--list-background-color); @media (--retina-query) { background-image: linear-gradient(0deg, var(--list-item-separator-color), var(--list-item-separator-color) 50%, transparent 50%), linear-gradient(180deg, var(--list-item-separator-color), var(--list-item-separator-color) 50%, transparent 50%); } } .list-item { position: relative; width: 100%; list-style: none; box-sizing: border-box; display: flex; flex-direction: row; justify-content: flex-start; align-items: center; padding: var(--list-item-padding); margin: var(--list-item-margin); color: var(--list-item-color); transition: background-color 0.2s linear; } /*~ name: Expandable List category: List elements: ons-list ons-list-item markup: | */ .list-item__top { display: flex; flex-direction: row; justify-content: flex-start; align-items: center; order: 0; width: 100%; } .list-item--expandable { display: flex; flex-direction: column; @apply(--retina-list-item-border); background-position-x: var(--list-item-padding-side); } .list-item__expandable-content { display: none; width: 100%; padding: 12px 14px 12px 0; box-sizing: border-box; order: 1; overflow: hidden; } .list-item.expanded > .list-item__expandable-content { display: block; height: auto; } .list-item__left { box-sizing: border-box; display: flex; padding: 12px 14px 12px 0; order: 0; align-items: center; align-self: stretch; line-height: 1.2em; min-height: var(--list-item-min-height); } .list-item__left:empty { width: 0; min-width: 0; padding: 0; margin: 0; } .list-item__center { box-sizing: border-box; display: flex; flex-grow: 1; flex-wrap: wrap; flex-direction: row; order: 1; margin-right: auto; align-items: center; align-self: stretch; margin-left: 0; @apply(--retina-list-item-border); padding: 12px 6px 12px 0; line-height: 1.2em; min-height: var(--list-item-min-height); } .list-item__right { box-sizing: border-box; display: flex; margin-left: auto; padding: 12px 12px 12px 0; order: 2; align-items: center; align-self: stretch; @apply(--retina-list-item-border); line-height: 1.2em; min-height: var(--list-item-min-height); } .list-header { margin: 0; list-style: none; text-align: left; display: block; box-sizing: border-box; padding: var(--list-header-padding); font-size: var(--list-header-font-size); font-weight: var(--list-header-font-weight); color: var(--list-header-color); min-height: var(--list-header-min-height); line-height: calc(1px + var(--list-header-min-height)); text-transform: uppercase; position: relative; background-color: var(--list-header-background-color); background-size: 100% 1px; background-repeat: no-repeat; background-position: top; background-image: linear-gradient(0deg, var(--list-item-separator-color), var(--list-item-separator-color) 100%); @media (--retina-query) { background-image: linear-gradient(180deg, var(--list-item-separator-color), var(--list-item-separator-color) 50%, transparent 50%); } } /*~ name: Noborder List category: List elements: ons-list ons-list-item markup: | */ .list--noborder { border-top: none; border-bottom: none; background-image: none; } /*~ name: Category List Header category: List elements: ons-list ons-list-header ons-list-item markup: | */ /*~ name: Tappable List category: List elements: ons-list ons-list-item markup: | */ .list-item--tappable:active { transition: none; background-color: var(--list-item-active-background-color); } /*~ name: Switch in List Item category: List elements: ons-list ons-list-item ons-switch markup: | */ /*~ name: Inset List category: List elements: ons-list ons-list-item markup: | */ .list--inset { margin: 0 8px; border: var(--inset-list-border); border-radius: 4px; background-image: none; } /*~ name: Radio Button in List Item category: List elements: ons-list ons-list-item ons-input markup: | */ /*~ name: Checkbox in List Item category: List elements: ons-list ons-list-item ons-input markup: | */ /*~ name: No border Checkbox in List Item category: List elements: ons-list ons-list-item ons-input markup: | */ /*~ name: Text Input in List Item category: List elements: ons-list ons-list-item ons-input markup: | */ /*~ name: Textarea in List Item category: List elements: ons-list ons-list-item markup: | */ /*~ name: Right Label in List Item category: List elements: ons-list ons-list-item markup: | */ .list-item__label { font-size: var(--font-size--mini); padding: 0 4px; opacity: 0.6; } /*~ name: List Item with Subtitle category: List elements: ons-list ons-list-item markup: | */ .list-item__title { flex-basis: 100%; align-self: flex-end; order: 0; } .list-item__subtitle { opacity: 0.75; font-size: var(--font-size--mini); order: 1; flex-basis: 100%; align-self: flex-start; } /*~ name: List Item with Thumbnail category: List elements: ons-list ons-list-item markup: | */ .list-item__thumbnail { width: 40px; height: 40px; border-radius: 6px; display: block; margin: 0; } /*~ name: List Item with Icon category: List elements: ons-list ons-list-item markup: | */ .list-item__icon { font-size: 22px; padding: 0 6px; } /*~ name: Material List category: List elements: ons-list ons-list-item markup: | */ .list--material { @apply(--material-font); background-image: none; background-color: var(--material-list-background-color); } .list-item--material { border: 0; padding: var(--material-list-item-padding); line-height: normal; } .list-item--material__subtitle { margin-top: 4px; } .list-item--material:first-child { box-shadow: none; } .list-item--material__left { padding: 14px 0; min-width: 56px; line-height: 1; min-height: var(--material-list-item-min-height); } .list-item--material__left:empty, .list-item--material__center { padding: 14px 6px 14px 0; border-color: var(--material-list-item-separator-color); @apply(--retina-material-list-item-border); min-height: var(--material-list-item-min-height); } .list-item--material__right { padding: 14px 16px 14px 0; line-height: 1; border-color: var(--material-list-item-separator-color); @apply(--retina-material-list-item-border); min-height: var(--material-list-item-min-height); } .list-item--material.list-item--expandable { border-bottom: 1px solid var(--material-list-item-separator-color); @apply(--retina-material-list-item-border); background-position-x: var(--material-list-item-side-padding); } .list-item--material.list-item--longdivider, .list-item--material.list-item--expandable.list-item--longdivider { border-bottom: 1px solid var(--material-list-item-separator-color); @apply(--retina-material-list-item-border); } /*~ name: Material List with Header category: List elements: ons-list ons-list-item markup: | */ .list-header--material { background: var(--list-background-color); border: none; font-size: 14px; text-transform: none; margin: -1px 0 0 0; color: var(--material-list-header-text-color); font-weight: 500; padding: 8px 16px; } .list-header--material:not(:first-of-type) { border-top: none; background-size: 100% 1px; background-repeat: no-repeat; background-position: top; background-image: linear-gradient(180deg, var(--material-list-item-separator-color), var(--material-list-item-separator-color) 100%); @media (--retina-query) { background-image: linear-gradient(180deg, var(--material-list-item-separator-color), var(--material-list-item-separator-color) 50%, transparent 50%); } padding-top: 16px; } /*~ name: Material List with Checkboxes category: List elements: ons-list ons-list-item ons-input markup: | */ /*~ name: Material List with Thumbnails category: List markup: | */ .list-item--material__thumbnail { width: 40px; height: 40px; border-radius: 100%; } /*~ name: Material List with Icons category: List markup: | */ .list-item--material__icon { font-size: 20px; padding: 0 4px; } /*~ name: List Item with Chevron category: List elements: ons-list ons-list-item markup: | */ .list-item--chevron:before, .list-item__expand-chevron { border-right: 2px solid var(--list-item-chevron-color); border-bottom: 2px solid var(--list-item-chevron-color); width: 7px; height: 7px; background-color: transparent; z-index: 5; } .list-item--chevron:before { position: absolute; content: ''; right: 16px; top: 50%; transform: translateY(-50%) rotate(-45deg); } .list-item__expand-chevron { transform: rotate(45deg); margin: 1px; /* this improves alignment with normal chevrons */ } .list-item--expandable.expanded .list-item__expand-chevron { transform: rotate(225deg); } .list-item--chevron__right { padding-right: 30px; } /*~ name: Nodivider List Item with Chevron category: List elements: ons-list ons-list-item markup: | */ /*~ name: List item without divider category: List markup: | */ .list-item--nodivider__center, .list-item--nodivider__right, .list-item--nodivider.list-item--expandable, .list-item--expandable .list-item__center, .list-item--expandable .list-item__right { border: none; background-image: none; } /*~ name: List item with long divider category: List markup: | */ .list-item--longdivider { border-bottom: var(--list-border); @apply(--retina-list-item-border); } .list-item--longdivider:last-of-type { border: none; background-image: none; } .list-item--longdivider__center { border: none; background-image: none; } .list-item--longdivider__right { border: none; background-image: none; } /*~ name: List title category: List markup: |
List Title
*/ .list-title { @apply(--reset-base); @apply(--reset-cursor); @apply(--reset-font); display: block; color: var(--list-title-color); text-align: left; box-sizing: border-box; padding: var(--list-title-padding); margin: 0; font-size: var(--list-title-font-size); font-weight: var(--list-title-font-weight); line-height: var(--list-title-line-height); text-transform: uppercase; letter-spacing: 0.04em; } /*~ name: Material List Title category: List markup: |

LIST TITLE

*/ .list-title--material { @apply(--material-font); color: var(--material-list-title-color); font-size: var(--material-list-title-font-size); margin: 0; padding: var(--material-list-title-padding); font-weight: var(--material-list-title-font-weight); line-height: var(--material-list-title-line-height); }