Skip to content

Commit

Permalink
Reduce default font size, better scale responsively
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh Forisha committed Aug 24, 2022
1 parent 4a69448 commit 530ea5e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
18 changes: 13 additions & 5 deletions _index.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<link rel="mask-icon" href="./safari-pinned-tab.svg" color="#4C566A" />
<style>
:root {
font-size: 20px;
font-size: 18px;
line-height: 1.5;

/* Nord Colors */
Expand Down Expand Up @@ -144,7 +144,7 @@
background-color: var(--nord1);
border-radius: 5px;
display: block;
margin-top: 40px;
margin-top: 2.5rem;
padding: 10px;
}

Expand Down Expand Up @@ -266,13 +266,21 @@
padding-left: 0;
}

@media screen and (min-width: 768px) {
:root {
font-size: 20px;
}
}

@media screen and (min-width: 1024px) {
:root {
font-size: 24px;
font-size: 22px;
}
}

section {
margin-top: 80px;
@media screen and (min-width: 1440px) {
:root {
font-size: 24px;
}
}

Expand Down
Loading

0 comments on commit 530ea5e

Please sign in to comment.