Sha256: 9a808a3e3f41221f6327aec48a5877540bebb588247b068f40e02b89768c3c85

Contents?: true

Size: 447 Bytes

Versions: 292

Compression:

Stored size: 447 Bytes

Contents

// scss-docs-start color-mode-mixin
@mixin color-mode($mode: light, $root: false) {
  @if $color-mode-type == "media-query" {
    @if $root == true {
      @media (prefers-color-scheme: $mode) {
        :root {
          @content;
        }
      }
    } @else {
      @media (prefers-color-scheme: $mode) {
        @content;
      }
    }
  } @else {
    [data-bs-theme="#{$mode}"] {
      @content;
    }
  }
}
// scss-docs-end color-mode-mixin

Version data entries

292 entries across 292 versions & 13 rubygems

Version Path
bootstrap-5.3.3 assets/stylesheets/bootstrap/mixins/_color-mode.scss
jekyll-theme-centos-2.51.1.beta.48 _sass/bootstrap/mixins/_color-mode.scss
jekyll-theme-centos-2.51.1.beta.47 _sass/bootstrap/mixins/_color-mode.scss
jekyll-theme-centos-2.51.1.beta.46 _sass/bootstrap/mixins/_color-mode.scss
jekyll-theme-centos-2.51.1.beta.45 _sass/bootstrap/mixins/_color-mode.scss
jekyll-theme-centos-2.51.1.beta.44 _sass/bootstrap/mixins/_color-mode.scss
cm-admin-1.4.9 app/assets/stylesheets/cm_admin/dependency/bootstrap/scss/mixins/_color-mode.scss
cm-admin-1.4.8 app/assets/stylesheets/cm_admin/dependency/bootstrap/scss/mixins/_color-mode.scss
cm-admin-1.4.7 app/assets/stylesheets/cm_admin/dependency/bootstrap/scss/mixins/_color-mode.scss
jekyll-theme-centos-2.51.1.beta.43 _sass/bootstrap/mixins/_color-mode.scss
jekyll-theme-centos-2.51.1.beta.42 _sass/bootstrap/mixins/_color-mode.scss
jekyll-theme-centos-2.51.1.beta.41 _sass/bootstrap/mixins/_color-mode.scss
jekyll-theme-centos-2.51.1.beta.40 _sass/bootstrap/mixins/_color-mode.scss
jekyll-theme-centos-2.51.1.beta.39 _sass/bootstrap/mixins/_color-mode.scss
jekyll-theme-centos-2.51.1.beta.38 _sass/bootstrap/mixins/_color-mode.scss
jekyll-theme-centos-2.51.1.beta.37 _sass/bootstrap/mixins/_color-mode.scss
jekyll-theme-centos-2.51.1.beta.35 _sass/bootstrap/mixins/_color-mode.scss
jekyll-theme-centos-2.51.1.beta.34 _sass/bootstrap/mixins/_color-mode.scss
jekyll-theme-centos-2.51.1.beta.33 _sass/bootstrap/mixins/_color-mode.scss
jekyll-theme-centos-2.51.1.beta.32 _sass/bootstrap/mixins/_color-mode.scss