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.70 _sass/overpass-mono/_overpass-mono.scss
jekyll-theme-centos-2.3.0.beta.69 _sass/overpass-mono/_overpass-mono.scss
jekyll-theme-centos-2.3.0.beta.68 _sass/overpass-mono/_overpass-mono.scss
jekyll-theme-centos-2.3.0.beta.67 _sass/overpass-mono/_overpass-mono.scss
jekyll-theme-centos-2.3.0.beta.66 _sass/overpass-mono/_overpass-mono.scss
jekyll-theme-centos-2.3.0.beta.65 _sass/overpass-mono/_overpass-mono.scss
jekyll-theme-centos-2.3.0.beta.64 _sass/overpass-mono/_overpass-mono.scss
jekyll-theme-centos-2.3.0.beta.63 _sass/overpass-mono/_overpass-mono.scss
jekyll-theme-centos-2.3.0.beta.62 _sass/overpass-mono/_overpass-mono.scss
jekyll-theme-centos-2.3.0.beta.49 _sass/overpass-mono/_overpass-mono.scss
jekyll-theme-centos-2.3.0.beta.46 _sass/overpass-mono/_overpass-mono.scss
jekyll-theme-centos-2.3.0.beta.44 _sass/overpass-mono/_overpass-mono.scss
jekyll-theme-centos-2.3.0.beta.43 _sass/overpass-mono/_overpass-mono.scss
jekyll-theme-centos-2.3.0.beta.42 _sass/overpass-mono/_overpass-mono.scss
jekyll-theme-centos-2.3.0.beta.41 _sass/overpass-mono/_overpass-mono.scss
jekyll-theme-centos-2.3.0.beta.40 _sass/overpass-mono/_overpass-mono.scss
jekyll-theme-centos-2.3.0.beta.39 _sass/overpass-mono/_overpass-mono.scss
jekyll-theme-centos-2.3.0.beta.38 _sass/overpass-mono/_overpass-mono.scss
jekyll-theme-centos-2.3.0.beta.37 _sass/overpass-mono/_overpass-mono.scss
jekyll-theme-centos-2.3.0.beta.36 _sass/overpass-mono/_overpass-mono.scss