Layout von Websiten mit Bootstrap und Foundation
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

_table-row.scss 794B

123456789101112131415161718192021222324252627282930313233343536373839
  1. // Tables
  2. @mixin table-row-variant($state, $background, $border: null) {
  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. @if $border != null {
  12. th,
  13. td,
  14. thead th,
  15. tbody + tbody {
  16. border-color: $border;
  17. }
  18. }
  19. }
  20. // Hover states for `.table-hover`
  21. // Note: this is not available for cells or rows within `thead` or `tfoot`.
  22. .table-hover {
  23. $hover-background: darken($background, 5%);
  24. .table-#{$state} {
  25. @include hover() {
  26. background-color: $hover-background;
  27. > td,
  28. > th {
  29. background-color: $hover-background;
  30. }
  31. }
  32. }
  33. }
  34. }