Sha256: 536365aacc4848f47a053102d0d802c9407a15b7ca8724718ee970d22adb27e2

Contents?: true

Size: 493 Bytes

Versions: 5

Compression:

Stored size: 493 Bytes

Contents

@mixin themer($property, $values) {
    @if $site-ui-mode == 'auto' {
        @media (prefers-color-scheme: dark) {
            & {
                #{$property}: map-get($values, 'dark');
            }
        }

        @media (prefers-color-scheme: light) {
            & {
                #{$property}: map-get($values, 'light');
            }
        }
    }
    @else if $site-ui-mode == 'dark' or $site-ui-mode == 'light' {
        #{$property}: map-get($values, $site-ui-mode);
    }
}

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
jekyll-docs-theme-1.0.0 _sass/abstracts/_themer.scss
jekyll-docs-theme-1.0.0.pre.beta.4 _sass/abstracts/_themer.scss
jekyll-docs-theme-1.0.0.pre.beta.3 _sass/abstracts/_themer.scss
jekyll-docs-theme-1.0.0.pre.beta.2 _sass/abstracts/_themer.scss
jekyll-docs-theme-1.0.0.pre.beta.1 _sass/abstracts/_themer.scss