Sha256: 7f0a14f01b113b72e13b8c59ad5a4e2504f04bbbe9374c9d12be126b9bb35b35

Contents?: true

Size: 1.32 KB

Versions: 48

Compression:

Stored size: 1.32 KB

Contents

/* Overpass Mono helper mixins */

//-- This is a map of the current font weights, keyed on their file names
$supported-weights: (
    light:    300,
    regular:  400,
    semibold: 500,
    bold:     600
);

//-- This mixins will dynamically print the font-face declarations based on your levels of support
// * Weights can be limited to those your wish to incorporate in your styles; if left with defaults,
//   this will add support for all supported font variations
// * The weight map can be customized if you wish to set your own values
//   Example: To use `font-weight: bolder` instead of `font-weight: 600`, we create a custom map
//            that maps the key bold to the value bolder -> `bold: bolder`
// * The path to dist represents the location of the overpass font files relative to your architecture
@mixin print-overpass-mono-font-face(
    $weights: map-keys($supported-weights),
    $weight-map: $supported-weights,
    $path_to_dist: '../webfonts/'
) {
    @each $weight in $weights {
      @font-face {
        font-family: 'overpass-mono';
        src: url("#{$path_to_dist}overpass-mono-#{$weight}.woff2") format("woff2"), url("#{$path_to_dist}overpass-mono-#{$weight}.woff") format("woff");
        font-weight: map-get($weight-map, $weight);
        font-style: normal;
      }
    }
}

@include print-overpass-mono-font-face;

Version data entries

48 entries across 48 versions & 1 rubygems

Version Path
jekyll-theme-centos-2.3.0.beta.34 _sass/overpass-mono/_overpass-mono.scss
jekyll-theme-centos-2.3.0.beta.33 _sass/overpass-mono/_overpass-mono.scss
jekyll-theme-centos-2.3.0.beta.32 _sass/overpass-mono/_overpass-mono.scss
jekyll-theme-centos-2.3.0.beta.27 _sass/overpass-mono/_overpass-mono.scss
jekyll-theme-centos-2.3.0.beta.26 _sass/overpass-mono/_overpass-mono.scss
jekyll-theme-centos-2.3.0.beta.9 _sass/overpass-mono/_overpass-mono.scss
jekyll-theme-centos-2.3.0.beta.8 _sass/overpass-mono/_overpass-mono.scss
jekyll-theme-centos-2.3.0.beta.7 _sass/overpass-mono/_overpass-mono.scss
jekyll-theme-centos-2.3.0.beta.6 _sass/overpass-mono/_overpass-mono.scss
jekyll-theme-centos-2.3.0.beta.5 _sass/overpass-mono/_overpass-mono.scss
jekyll-theme-centos-2.3.0.beta.4 _sass/overpass-mono/_overpass-mono.scss
jekyll-theme-centos-2.3.0.beta.3 _sass/overpass-mono/_overpass-mono.scss
jekyll-theme-centos-2.3.0.beta.2 _sass/overpass-mono/_overpass-mono.scss
jekyll-theme-centos-2.3.0.beta.1 _sass/overpass-mono/_overpass-mono.scss
jekyll-theme-centos-2.2.1 _sass/overpass-mono/_overpass-mono.scss
jekyll-theme-centos-2.2.1.beta.1 _sass/overpass-mono/_overpass-mono.scss
jekyll-theme-centos-2.2.0 _sass/overpass-mono/_overpass-mono.scss
jekyll-theme-centos-2.2.0.beta.10 _sass/overpass-mono/_overpass-mono.scss
jekyll-theme-centos-2.2.0.beta.9 _sass/overpass-mono/_overpass-mono.scss
jekyll-theme-centos-2.2.0.beta.8 _sass/overpass-mono/_overpass-mono.scss