Skip to content

Commit

Permalink
fix(next-release/main): update home page h1 and code block font size (#…
Browse files Browse the repository at this point in the history
…7117)

* update font sizes

* add text-size-adjust

* add webkit prefix, add comment

* update text-size-adjust fix

---------

Co-authored-by: Tim Nguyen <54393192+timngyn@users.noreply.github.com>
  • Loading branch information
hbuchel and timngyn committed Mar 26, 2024
1 parent 6450d16 commit a8e70d3
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/styles/code.scss
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,13 @@ code:not([class]) {
margin: var(--amplify-space-xs) 0;
padding-block: var(--amplify-space-xs);
font-size: var(--amplify-font-sizes-medium);
/*
Safari on iOS requires the webkit prefix for text-size-adjust.
text-size-adjust fixes some fonts from showing larger than normal in some browsers.
*/
text-size-adjust: 100%;
-webkit-text-size-adjust: 100%;

&:focus-visible {
outline: none;
box-shadow: 0 0 0 2px var(--amplify-colors-white) inset;
Expand Down
5 changes: 5 additions & 0 deletions src/styles/home.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@
z-index: 1;
&__heading {
font-family: var(--font-code);
font-size: var(--amplify-font-sizes-xxxl);
text-wrap: pretty;
@media (min-width: $mq-mobile) {
font-size: var(--amplify-components-heading-1-font-size);
}
}
&__text {
max-width: 580px;
Expand Down

0 comments on commit a8e70d3

Please sign in to comment.