Mercurial > minori
comparison dep/fmt/doc/bootstrap/mixins/table-row.less @ 343:1faa72660932
*: transfer back to cmake from autotools
autotools just made lots of things more complicated than
they should have and many things broke (i.e. translations)
| author | Paper <paper@paper.us.eu.org> |
|---|---|
| date | Thu, 20 Jun 2024 05:56:06 -0400 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| 342:adb79bdde329 | 343:1faa72660932 |
|---|---|
| 1 // Tables | |
| 2 | |
| 3 .table-row-variant(@state; @background) { | |
| 4 // Exact selectors below required to override `.table-striped` and prevent | |
| 5 // inheritance to nested tables. | |
| 6 .table > thead > tr, | |
| 7 .table > tbody > tr, | |
| 8 .table > tfoot > tr { | |
| 9 > td.@{state}, | |
| 10 > th.@{state}, | |
| 11 &.@{state} > td, | |
| 12 &.@{state} > th { | |
| 13 background-color: @background; | |
| 14 } | |
| 15 } | |
| 16 | |
| 17 // Hover states for `.table-hover` | |
| 18 // Note: this is not available for cells or rows within `thead` or `tfoot`. | |
| 19 .table-hover > tbody > tr { | |
| 20 > td.@{state}:hover, | |
| 21 > th.@{state}:hover, | |
| 22 &.@{state}:hover > td, | |
| 23 &:hover > .@{state}, | |
| 24 &.@{state}:hover > th { | |
| 25 background-color: darken(@background, 5%); | |
| 26 } | |
| 27 } | |
| 28 } |
