// Item // ------------------------------- .item { position: relative; z-index: 2; // Make sure the borders and stuff don't get hidden by children display: block; margin: $item-border-width * -1; padding: $item-padding (($item-padding * 3) - 5) $item-padding $item-padding; border: none; background-color: $list-default-background; box-shadow: $item-box-shadow; font-size: $list-font-size; -webkit-transition: margin-left 0.2s ease-in-out, margin-right 0.2s ease-in-out, left 0.2s ease-in-out; h2 { margin: 0 0 4px 0; font-size: 16px; } h3 { margin: 0 0 4px 0; font-size: 14px; } h4 { margin: 0 0 4px 0; font-size: 12px; } h5, h6 { margin: 0 0 3px 0; font-size: 10px; } p { color: #666; font-size: 14px; } h1:last-child, h2:last-child, h3:last-child, h4:last-child, h5:last-child, h6:last-child, p:last-child { margin-bottom: 0; } // Align badges within list items .badge { float: right; } .badge + .badge { margin-right: 5px; } // Active class on item itself, not parent &.active, &.active:hover, &.active:focus { z-index: 2; // Force color to inherit for custom content .item-heading { color: inherit; } } // Different themes for list items &.item-default { @include item-style-active($brand-default, $gray-dark, $gray-dark); } &.item-secondary { @include item-style-active($brand-default, $gray-dark, $gray-dark); } &.item-primary { @include item-style-active($brand-primary, $gray-dark, $white); } &.item-info { @include item-style-active($brand-info, $gray-dark, $white); } &.item-success { @include item-style-active($brand-success, $gray-dark, $white); } &.item-warning { @include item-style-active($brand-warning, $gray-dark, $white); } &.item-danger { @include item-style-active($brand-danger, $gray-dark, $white); } &.item-dark { @include item-style-active($brand-dark, $gray-dark, $white); } } // Handle text overflow .item, .item h1, .item h2, .item h3, .item h4, .item h5, .item h6, .item p, .item-content, .item-content h1, .item-content h2, .item-content h3, .item-content h4, .item-content h5, .item-content h6, .item-content p { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } // Linked list items a.item { color: $gray-dark; text-decoration: none; // Hover state &:hover, &:focus { text-decoration: none; } } // Slidable Item Content // ------------------------------- .item-slider { padding: 0; } .item-slider .item-content, .item-radio .item-content { /** * The content area of a complex list item. This area can * Slide left and right and be dragged to support different * UI interactions. */ position: relative; z-index: 2; padding: $item-padding (($item-padding * 3) - 5) $item-padding $item-padding; border: none; background-color: $list-default-background; box-shadow: $item-box-shadow; -webkit-transition: margin-left 0.2s ease-in-out, margin-right 0.2s ease-in-out, left 0.2s ease-in-out; } .item-text-wrap, .item-text-wrap h1, .item-text-wrap h2, .item-text-wrap h3, .item-text-wrap h4, .item-text-wrap h5, .item-text-wrap h6, .item-text-wrap p, .item-slider.item-text-wrap .item-content, .item-body h1, .item-body h2, .item-body h3, .item-body h4, .item-body h5, .item-body h6, .item-body p { overflow: auto; white-space: normal; } .item-slider.item-text-wrap, .item-slider.item-text-wrap h1, .item-slider.item-text-wrap h2, .item-slider.item-text-wrap h3, .item-slider.item-text-wrap h4, .item-slider.item-text-wrap h5, .item-slider.item-text-wrap h6, .item-slider.item-text-wrap p { overflow: hidden; white-space: nowrap; } // List Icons // ------------------------------- .item i { @include display-flex(); @include align-items(center); position: absolute; top: 0; height: 100%; font-size: $item-icon-font-size; } .item .fill-icon { font-size: $item-icon-fill-font-size; } .item-icon-left { padding-left: ($item-padding * 3); i { left: $item-padding / 2; } } .item-slider.item-icon-left { padding-left: 0; .item-content { padding-left: ($item-padding * 3); } } .item-icon-right i { right: $item-padding / 2; } .item-icon-left.item-icon-right i:first-child { right: auto; } .item-icon-left.item-icon-right i:last-child { left: auto; } a.item:after, button.item:after { /* By default, both and