/
githubmirror
/
ionic
Обзор
Документация
Войти
/
githubmirror
/
ionic
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
core/src/css/typography.scss
115 строк
2 KB
Liam DeBeasi
chore(theming): remove Sass default flags (#29401)
25 апр 2024, 22:59
Не верифицирован
25 апр 2024, 22:59
6e8bf49
Код
Авторство
О чём код?
@import "../themes/ionic.globals"; @import "../themes/ionic.mixins"; // Typography // -------------------------------------------------- /// @prop - Font weight of all headings $headings-font-weight: 500; /// @prop - Line height of all headings $headings-line-height: 1.2; /// @prop - Font size of heading level 1 $h1-font-size: dynamic-font(26px); /// @prop - Font size of heading level 2 $h2-font-size: dynamic-font(24px); /// @prop - Font size of heading level 3 $h3-font-size: dynamic-font(22px); /// @prop - Font size of heading level 4 $h4-font-size: dynamic-font(20px); /// @prop - Font size of heading level 5 $h5-font-size: dynamic-font(18px); /// @prop - Font size of heading level 6 $h6-font-size: dynamic-font(16px); html { font-family: var(--ion-font-family); } /** * Dynamic Type is an iOS-only feature, so * this should only be enabled on iOS devices. */ @supports (-webkit-touch-callout: none) { html { /** * Includes fallback if Dynamic Type is not enabled. */ font: var(--ion-dynamic-font, 16px var(--ion-font-family)); } } a { background-color: transparent; color: ion-color(primary, base); } h1, h2, h3, h4, h5, h6 { @include margin(16px, null, 10px, null); font-weight: $headings-font-weight; line-height: $headings-line-height; } h1 { @include margin(20px, null, null, null); font-size: $h1-font-size; } h2 { @include margin(18px, null, null, null); font-size: $h2-font-size; } h3 { font-size: $h3-font-size; } h4 { font-size: $h4-font-size; } h5 { font-size: $h5-font-size; } h6 { font-size: $h6-font-size; } small { font-size: 75%; } sub, sup { position: relative; font-size: 75%; line-height: 0; vertical-align: baseline; } sup { top: -.5em; } sub { bottom: -.25em; }