// List // ------------------------------- .list { position: relative; overflow: hidden; // No need to set list-style: none; since .list-item is block level margin-bottom: 20px; padding-top: $list-item-border-width; padding-bottom: $list-item-border-width; padding-left: 0; // reset padding because ul and ol // make room for the list item borders } // List Item // ------------------------------- .list-item { position: relative; z-index: 2; // Make sure the borders and stuff don't get hidden by children display: block; margin: $list-item-border-width * -1; border: none; background-color: $list-default-background; box-shadow: inset 0 0 $list-item-border-width #666; // 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 .list-item-heading { color: inherit; } } // Different themes for list items &.list-item-default { @include list-item-style-active($brand-default, $gray-dark, $gray-dark); } &.list-item-secondary { @include list-item-style-active($brand-default, $gray-dark, $gray-dark); } &.list-item-primary { @include list-item-style-active($brand-primary, $gray-dark, $white); } &.list-item-info { @include list-item-style-active($brand-info, $gray-dark, $white); } &.list-item-success { @include list-item-style-active($brand-success, $gray-dark, $white); } &.list-item-warning { @include list-item-style-active($brand-warning, $gray-dark, $white); } &.list-item-danger { @include list-item-style-active($brand-danger, $gray-dark, $white); } &.list-item-dark { @include list-item-style-active($brand-dark, $gray-dark, $white); } } // Linked list items a.list-item { color: $gray-dark; text-decoration: none; // Hover state &:hover, &:focus { text-decoration: none; } } /** * List editing styles. These trigger when the entire list goes into * "edit mode" */ .list-editing { .list-item-content { margin-right: 30px; margin-left: 30px; } .list-item-edit { left: 0px; opacity: 1; } } // List Item Content // ------------------------------- .list-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; overflow: hidden; padding: $list-item-padding (($list-item-padding * 3) - 5) $list-item-padding $list-item-padding; border: none; background-color: #fff; box-shadow: inset 0 0 $list-item-border-width #666; text-overflow: ellipsis; white-space: nowrap; 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; h1:last-child, h2:last-child, h3:last-child, h4:last-child, h5:last-child, h6:last-child, p:last-child { margin-bottom: 0; } } .list-item-text-wrap { overflow: auto; white-space: normal; } // List Icons // ------------------------------- .list-item-content i { position: absolute; top: 0; display: flex; height: 100%; font-size: $list-icon-font-size; align-items: center; } .list-icon-left .list-item-content { padding-left: ($list-item-padding * 3); i { left: $list-item-padding / 2; } } .list-icon-right .list-item-content i { right: $list-item-padding / 2; } .list-icon-left.list-icon-right .list-item-content i:last-child { left: auto; } a .list-item-content:after, button .list-item-content:after { /* By default, both and