Sha256: dc517666df074b24ff83f4c4e040bf2378fa983dd225d08e49294012ff394890

Contents?: true

Size: 477 Bytes

Versions: 6

Compression:

Stored size: 477 Bytes

Contents

@mixin table-row-variant($state, $background) {
  .table > thead > tr,
  .table > tbody > tr,
  .table > tfoot > tr {
    > td.#{$state},
    > th.#{$state},
    &.#{$state} > td,
    &.#{$state} > th {
      background-color: $background;
    }
  }

  .table-hover > tbody > tr {
    > td.#{$state}:hover,
    > th.#{$state}:hover,
    &.#{$state}:hover > td,
    &:hover > .#{$state},
    &.#{$state}:hover > th {
      background-color: lighten($background, 3%);
    }
  }
}

Version data entries

6 entries across 3 versions & 3 rubygems

Version Path
action_ui-0.0.1 vendor/assets/stylesheets/ld/ld/mixins/_table-row.scss
action_ui-0.0.1 vendor/assets/stylesheets/pd/pd/mixins/_table-row.scss
cre_pro-0.0.1 vendor/assets/stylesheets/ld/ld/mixins/_table-row.scss
cre_pro-0.0.1 vendor/assets/stylesheets/pd/pd/mixins/_table-row.scss
cre_pro-rails-0.0.1 vendor/assets/stylesheets/ld/ld/mixins/_table-row.scss
cre_pro-rails-0.0.1 vendor/assets/stylesheets/pd/pd/mixins/_table-row.scss