Sha256: 41502513f5d3e29f36cc9d0906f21c30cd8dd5bba0ad43c42a613ff8cadfadd4

Contents?: true

Size: 1.08 KB

Versions: 392

Compression:

Stored size: 1.08 KB

Contents

// scss-docs-start table-variant
@mixin table-variant($state, $background) {
  .table-#{$state} {
    $color: color-contrast(opaque($body-bg, $background));
    $hover-bg: mix($color, $background, percentage($table-hover-bg-factor));
    $striped-bg: mix($color, $background, percentage($table-striped-bg-factor));
    $active-bg: mix($color, $background, percentage($table-active-bg-factor));
    $table-border-color: mix($color, $background, percentage($table-border-factor));

    --#{$prefix}table-color: #{$color};
    --#{$prefix}table-bg: #{$background};
    --#{$prefix}table-border-color: #{$table-border-color};
    --#{$prefix}table-striped-bg: #{$striped-bg};
    --#{$prefix}table-striped-color: #{color-contrast($striped-bg)};
    --#{$prefix}table-active-bg: #{$active-bg};
    --#{$prefix}table-active-color: #{color-contrast($active-bg)};
    --#{$prefix}table-hover-bg: #{$hover-bg};
    --#{$prefix}table-hover-color: #{color-contrast($hover-bg)};

    color: var(--#{$prefix}table-color);
    border-color: var(--#{$prefix}table-border-color);
  }
}
// scss-docs-end table-variant

Version data entries

392 entries across 391 versions & 16 rubygems

Version Path
cm-admin-1.5.52 app/assets/stylesheets/cm_admin/dependency/bootstrap/scss/mixins/_table-variants.scss
cm-admin-1.5.51 app/assets/stylesheets/cm_admin/dependency/bootstrap/scss/mixins/_table-variants.scss
cm-admin-1.5.50 app/assets/stylesheets/cm_admin/dependency/bootstrap/scss/mixins/_table-variants.scss
cm-admin-1.5.49 app/assets/stylesheets/cm_admin/dependency/bootstrap/scss/mixins/_table-variants.scss
cm-admin-1.5.48 app/assets/stylesheets/cm_admin/dependency/bootstrap/scss/mixins/_table-variants.scss
cm-admin-1.5.47 app/assets/stylesheets/cm_admin/dependency/bootstrap/scss/mixins/_table-variants.scss
cm-admin-1.5.46 app/assets/stylesheets/cm_admin/dependency/bootstrap/scss/mixins/_table-variants.scss
cm-admin-1.5.45 app/assets/stylesheets/cm_admin/dependency/bootstrap/scss/mixins/_table-variants.scss
cm-admin-1.5.44 app/assets/stylesheets/cm_admin/dependency/bootstrap/scss/mixins/_table-variants.scss
cm-admin-1.5.43 app/assets/stylesheets/cm_admin/dependency/bootstrap/scss/mixins/_table-variants.scss
cm-admin-1.5.42 app/assets/stylesheets/cm_admin/dependency/bootstrap/scss/mixins/_table-variants.scss
elixir-toolkit-theme-3.1.1 _sass/bootstrap/mixins/_table-variants.scss
elixir-toolkit-theme-3.1.0 _sass/bootstrap/mixins/_table-variants.scss
cm-admin-1.5.41 app/assets/stylesheets/cm_admin/dependency/bootstrap/scss/mixins/_table-variants.scss
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/bootstrap-5.3.3/assets/stylesheets/bootstrap/mixins/_table-variants.scss
cm-admin-1.5.40 app/assets/stylesheets/cm_admin/dependency/bootstrap/scss/mixins/_table-variants.scss
cm-admin-1.5.39 app/assets/stylesheets/cm_admin/dependency/bootstrap/scss/mixins/_table-variants.scss
jekyll-theme-centos-2.51.1.beta.55 _sass/bootstrap/mixins/_table-variants.scss
cm-admin-1.5.38 app/assets/stylesheets/cm_admin/dependency/bootstrap/scss/mixins/_table-variants.scss
cm-admin-1.5.37 app/assets/stylesheets/cm_admin/dependency/bootstrap/scss/mixins/_table-variants.scss