粒子研究院前台前端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
817 B

3 years ago
@import "var";
@for $size from 0 through $font-size-em-through {
.fs-em-#{$size} {
font-size: #{$size}em;
}
@if $size <= $font-size-em-decimal-through {
@for $i from 0 to 10 {
.fs-em-#{$size}_#{$i} {
font-size: #{$size}#{'.'}#{$i}em;
}
}
} @else {
.fs-em-#{$size}_5 {
font-size: #{$size}#{'.5'}em;
}
}
}
@for $size from 0 through $font-size-rem-through {
.fs-rem-#{$size} {
font-size: #{$size}rem;
}
@if $size <= $font-size-rem-decimal-through {
@for $i from 0 to 10 {
.fs-rem-#{$size}_#{$i} {
font-size: #{$size}#{'.'}#{$i}rem;
}
}
} @else {
.fs-rem-#{$size}_5 {
font-size: #{$size}#{'.5'}rem;
}
}
}
@for $size from 12 through $font-size-px-through {
.fs-#{$size} {
font-size: #{$size}px;
}
}