bfd12c4b673669b82de8f0a0cf977a837ab0df22.svn-base 647 B

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