Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: enable dynamic font scaling #1805

Merged
merged 4 commits into from
Oct 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/app/app.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ ion-menu.md ion-list-header {
padding-right: 18px;
padding-left: 18px;

font-size: min(0.875rem, 32px);

font-weight: 450;

letter-spacing: .1em;
Expand Down Expand Up @@ -67,6 +69,8 @@ ion-menu.ios ion-list-header {

padding-right: 16px;
padding-left: 16px;

font-size: clamp(22px, 1.375rem, 40px);
}

ion-menu.ios ion-list {
Expand Down
8 changes: 8 additions & 0 deletions src/app/app.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,11 @@
/* stylelint-disable-next-line declaration-no-important */
display: none !important;
}

html {
/*
* For more information on dynamic font scaling, visit the documentation:
* https://ionicframework.com/docs/layout/dynamic-font-scaling
*/
--ion-dynamic-font: var(--ion-default-dynamic-font);
}
4 changes: 3 additions & 1 deletion src/app/pages/about/about.scss
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,15 @@ ion-toolbar ion-menu-button {
}

.about-info {
position: absolute;
position: relative;

margin-top: -10px;

border-radius: 10px;

background: var(--ion-background-color, #ffffff);

z-index: 2; // display rounded border above header image
}

.about-info h3 {
Expand Down
Loading