Sha256: 75bab1633ef015f4390a76766c8e78abfbdf49a8a0ca79d86befd919605fd55f

Contents?: true

Size: 982 Bytes

Versions: 6

Compression:

Stored size: 982 Bytes

Contents

// Tables

@mixin table-row-variant($state, $background) {
  // Exact selectors below required to override `.table-striped` and prevent
  // inheritance to nested tables.
  .table > thead > tr, .table > .thead > .tr,
  .table > tbody > tr, .table > .tbody > .tr,
  .table > tfoot > tr, .table > .tfoot > .tr {
    > td.#{$state}, > .td.#{$state},
    > th.#{$state}, > .th.#{$state},
    &.#{$state} > td, &.#{$state} > .td,
    &.#{$state} > th, &.#{$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, .table-hover > .tbody > .tr {
    > td.#{$state}:hover, > .td.#{$state}:hover,
    > th.#{$state}:hover, > .th.#{$state}:hover,
    &.#{$state}:hover > td, &.#{$state}:hover > .td,
    &:hover > .#{$state},
    &.#{$state}:hover > th, &.#{$state}:hover > .th {
      background-color: darken($background, 5%);
    }
  }
}

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
card-1.21.0 mod/bootstrap/lib/stylesheets/bootstrap/mixins/_table-row.scss
card-1.20.4 mod/bootstrap/lib/stylesheets/bootstrap/mixins/_table-row.scss
card-1.20.3 mod/bootstrap/lib/stylesheets/bootstrap/mixins/_table-row.scss
card-1.20.2 mod/bootstrap/lib/stylesheets/bootstrap/mixins/_table-row.scss
card-1.20.1 mod/bootstrap/lib/stylesheets/bootstrap/mixins/_table-row.scss
card-1.20.0 mod/bootstrap/lib/stylesheets/bootstrap/mixins/_table-row.scss