/
githubmirror
/
ionic
Обзор
Документация
Войти
/
githubmirror
/
ionic
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
core/src/components/chip/chip.vars.scss
13 строк
534 B
Liam DeBeasi
feat(a11y): add dynamic font scaling (#28314)
11 окт 2023, 00:38
Не верифицирован
11 окт 2023, 00:38
f806781
Код
Авторство
О чём код?
@use "sass:math"; /// @prop - Unitless font size of the chip before scaling $chip-base-font-size: 14; /// @prop - Font size of the chip in rem before scaling $chip-base-font-size-rem: #{math.div($chip-base-font-size, 16)}rem; /// @prop - Size of an icon within a chip (in em to scale as the font size of the chip scales) $chip-icon-size: math.div(20em, $chip-base-font-size); /// @prop - Size of an avatar within a chip (in em to scale as the font size of the chip scales) $chip-avatar-size: math.div(24em, $chip-base-font-size);