Sha256: 66cd667007762b56a1d8c26752d1c056b06e85e08429aa7843945f323652f206

Contents?: true

Size: 1.14 KB

Versions: 8

Compression:

Stored size: 1.14 KB

Contents

@import "compass/css3/font-face";

/* =font-utils
Sass functions and font related variables beyond standard font declarations
---------------------------------------------------------------------------- */

// map for all font-face declarations
$font-faces: () !default;

// declaration function that makes future changes easier to manage
@function set_fontface($id, $file, $style) {
  $font-faces: map-merge($font-faces, ($id: ($file, $style))) !global; // adds font-size declaration to global $font-sizes map
  @return $id;
}

// map for all font-size declarations
$font-sizes: () !default;

// declaration function that makes future changes easier to manage
@function set_fontsize($weight, $size) {
  $font-sizes: map-merge($font-sizes, ($weight: $size)) !global; // adds font-size declaration to global $font-sizes map
  @return $size;
}

// retrieves a font-size from the master font-size list
@function get_fontsize($key) {
  @if map-has-key($font-sizes, $key) {
    @return map-get($font-sizes, $key);
  }
  @warn "Unknown `#{$key}` in $font-sizes.";
  @return null;
}

// alias for get_fontsize
@function font-size($key) {
  @return get_fontsize($key);
}

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
forever_style_guide-1.2.11 app/assets/stylesheets/forever_style_guide/utils/_font-utils.scss
forever_style_guide-1.2.10 app/assets/stylesheets/forever_style_guide/utils/_font-utils.scss
forever_style_guide-1.2.9 app/assets/stylesheets/forever_style_guide/utils/_font-utils.scss
forever_style_guide-1.2.8 app/assets/stylesheets/forever_style_guide/utils/_font-utils.scss
forever_style_guide-1.2.7 app/assets/stylesheets/forever_style_guide/utils/_font-utils.scss
forever_style_guide-1.2.5 app/assets/stylesheets/forever_style_guide/utils/_font-utils.scss
forever_style_guide-1.2.4 app/assets/stylesheets/forever_style_guide/utils/_font-utils.scss
forever_style_guide-1.2.3 app/assets/stylesheets/forever_style_guide/utils/_font-utils.scss