// // Segmented controllers // -------------------------------------------------- .segmented-control { position: relative; display: table; padding: 0; overflow: hidden; font-size: 12px; font-weight: $font-weight-light; list-style: none; background-color: $chrome-color; border: 1px solid #ccc; border-radius: 4px; // Section within controller .control-item { display: table-cell; overflow: hidden; width: 1%; padding-top: 6px; padding-bottom: 7px; line-height: 1; color: #333; text-align: center; white-space: nowrap; text-overflow: ellipsis; border-left: 1px solid #ccc; // Remove border-left and shadow from first section &:first-child { border-left-width: 0; } // Active states of segmented controller &:active { background-color: #eee; } &.active { background-color: #ccc; } } } // Other segmented controller types // -------------------------------------------------- // Primary .segmented-control-primary { border: 1px solid $primary-color; .control-item { border-color: inherit; color: $primary-color; &:active { background-color: lighten($primary-color, 35%); } &.active { background-color: $primary-color; > a { color: #fff; } } } } // Positive .segmented-control-positive { border: 1px solid $positive-color; .control-item { border-color: inherit; color: $positive-color; &:active { background-color: lighten($positive-color, 35%); } &.active { background-color: $positive-color; > a { color: #fff; } } } } // Negative .segmented-control-negative { border: 1px solid $negative-color; .control-item { border-color: inherit; color: $negative-color; &:active { background-color: lighten($negative-color, 35%); } &.active { background-color: $negative-color; > a { color: #fff; } } } } .control-content { display: none; &.active { display: block; } }