Sha256: 9e147373be8b1e82a732412adfb97a30ad6146d345e858032bc6aa97e9c8c352

Contents?: true

Size: 677 Bytes

Versions: 4

Compression:

Stored size: 677 Bytes

Contents

// Tables

@mixin table-row-variant($state, $background) {
  // Exact selectors below required to override `.table-striped` and prevent
  // inheritance to nested tables.
  .table-#{$state} {
    &,
    > th,
    > td {
      background-color: $background;
    }
  }

  // Hover states for `.table-hover`
  // Note: this is not available for cells or rows within `thead` or `tfoot`.
  .table-hover {
    $hover-background: darken($background, 5%);

    .table-#{$state} {
      @include hover {
        background-color: $hover-background;

        > td,
        > th {
          background-color: $hover-background;
        }
      }
    }
  }
}

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
optimacms-0.3.12 app/assets/stylesheets/bootstrap4/mixins/_table-row.scss
optimacms-0.3.11 app/assets/stylesheets/bootstrap4/mixins/_table-row.scss
optimacms-0.3.4 app/assets/stylesheets/bootstrap4/mixins/_table-row.scss
optimacms-0.3.3 app/assets/stylesheets/bootstrap4/mixins/_table-row.scss