Нема описа

table-row.less 700B

12345678910111213141516171819202122232425262728
  1. // Tables
  2. .table-row-variant(@state; @background) {
  3. // Exact selectors below required to override `.table-striped` and prevent
  4. // inheritance to nested tables.
  5. .table > thead > tr,
  6. .table > tbody > tr,
  7. .table > tfoot > tr {
  8. > td.@{state},
  9. > th.@{state},
  10. &.@{state} > td,
  11. &.@{state} > th {
  12. background-color: @background;
  13. }
  14. }
  15. // Hover states for `.table-hover`
  16. // Note: this is not available for cells or rows within `thead` or `tfoot`.
  17. .table-hover > tbody > tr {
  18. > td.@{state}:hover,
  19. > th.@{state}:hover,
  20. &.@{state}:hover > td,
  21. &:hover > .@{state},
  22. &.@{state}:hover > th {
  23. background-color: darken(@background, 5%);
  24. }
  25. }
  26. }