KNACSS/sass/utils/_utils-font-sizes.scss

20 lines
354 B
SCSS
Raw Normal View History

2021-03-11 08:20:15 +01:00
/* Font sizes utility classes */
// loop for each font-size
@each $key, $value in $font-size {
.text-#{$key} {
font-size: $value;
}
}
// loop for each breakpoint
@each $key, $value in $font-size {
@each $bp, $bpv in $breakpoints {
@media (min-width: #{$bpv}) {
.#{$bp}\:text-#{$key} {
font-size: $value;
}
}
}
}