/
githubmirror
/
brackets
Обзор
Документация
Войти
/
githubmirror
/
brackets
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
test/spec/CSSUtils-test-files/table&button.scss
75 строк
2 KB
RaymondLim
less and scss unit tests
12 сен 2014, 22:57
12 сен 2014, 22:57
812fe37
Код
Авторство
О чём код?
// Tables // ------------------------- @mixin table-row-variant($state, $background) { // Exact selectors below required to override `.table-striped` and prevent // inheritance to nested tables. .table { > thead, > tbody, > tfoot { > tr > .#{$state}, > .#{$state} > td, > .#{$state} > th { background-color: $background; } } } // Hover states for `.table-hover` // Note: this is not available for cells or rows within `thead` or `tfoot`. .table-hover > tbody { > tr > .#{$state}:hover, > .#{$state}:hover > td, > .#{$state}:hover > th { background-color: darken($background, 5%); } } } // Button variants // ------------------------- // Easily pump out default styles, as well as :hover, :focus, :active, // and disabled options for all buttons @mixin button-variant($color, $background, $border) { color: $color; background-color: $background; border-color: $border; &:hover, &:focus, &:active, &.active { color: $color; background-color: darken($background, 8%); border-color: darken($border, 12%); } .open & { &.dropdown-toggle { color: $color; background-color: darken($background, 8%); border-color: darken($border, 12%); } } &:active, &.active { background-image: none; } .open & { &.dropdown-toggle { background-image: none; } } &.disabled, &[disabled], fieldset[disabled] & { &, &:hover, &:focus, &:active, &.active { background-color: $background; border-color: $border; } } .badge { color: $background; background-color: #fff; } }