mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
feat: add dynamic type variables (#27745)
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -13,6 +13,7 @@ html.md {
|
||||
}
|
||||
|
||||
html {
|
||||
--ion-default-dynamic-font: -apple-system-body;
|
||||
--ion-font-family: var(--ion-default-font);
|
||||
}
|
||||
|
||||
|
||||
@@ -32,6 +32,16 @@ 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 {
|
||||
font: var(--ion-dynamic-type);
|
||||
}
|
||||
}
|
||||
|
||||
a {
|
||||
background-color: transparent;
|
||||
color: ion-color(primary, base);
|
||||
|
||||
Reference in New Issue
Block a user