Sha256: 75553858fa095557f2fd9f0f35440f80b00fd213433244489c65f6760cdb0ab4

Contents?: true

Size: 759 Bytes

Versions: 2

Compression:

Stored size: 759 Bytes

Contents

// Desktop breakpoint
@mixin on-desktop {
    @media screen and (min-width: $breakpoint-mobile) {
        @content;
    }
}

// Page section mixin
@mixin page-section {
    display: block;
    margin: $spacing-3 auto;
}

// Color function
@function color-for($name) {
    @return map-get($theme-map, $name);
}

// Theme mixin
@mixin with-theme {
    // Set all colors for themes
    @each $theme, $map in $themes {
        // Apply all of the themes
        .#{$theme} &, &.#{$theme} {
            $theme-map: $map !global;
            @content;
            $theme-map: null !global;
        }
    }

    // Apply default theme
    $theme-map: map-get($themes, $default) !global;
    @content;
    $theme-map: null !global;
}

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
jekyll-theme-peaceful-gates-1.2.0 _sass/jekyll-theme-peaceful-gates/_util.scss
jekyll-theme-peaceful-gates-1.1.0 _sass/jekyll-theme-peaceful-gates/_util.scss