@import '../quasar.variables.scss';
/**
 *  font-size
 *  use: fs-10
 */
@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 80 {
  .fs-#{$size} {
    font-size: #{$size}px;
  }
}

// lib-flexible 在375宽度视口下定义rem像素大小
@for $size from 12 through 80 {
  .fs-rem-#{$size}px {
    font-size: #{($size * 0.5) / 18.75}rem;
  }
}
