Sha256: e88483b5865d054d90b22be2ee9716aaf38b7af6d08dcb2fd20912c99b84b675

Contents?: true

Size: 594 Bytes

Versions: 1

Compression:

Stored size: 594 Bytes

Contents

$breakpoints: (
  "medium": 48em,
  "large":  85em,
);

@mixin breakpoint($size) {
  $width: map-get($breakpoints, $size);
  @if $size == 'small' {
    @content;
  }
  @else {
    @media all and (min-width: $width) {
      @content;
    } 
  }
}

@mixin generate-typography-properties($map) {
  @each $breakpoint, $attrs in $map {
    @include breakpoint($breakpoint) {
      :root {
        @each $attr, $values in $attrs {
          --typography-#{$attr}-fz: #{nth($values, 1)};
          --typography-#{$attr}-lh: #{nth($values, 2)};
        }
      }
    }
  }
}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
oscailte-3.0.1 _sass/oscailte/tools/_mixins.scss