Sha256: 14d1259463eca06265593da11c83296d27483eda81b1cd166de687f8e1b9b4f4
Contents?: true
Size: 566 Bytes
Versions: 4
Compression:
Stored size: 566 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
4 entries across 4 versions & 1 rubygems