Skip to content

Commit

Permalink
On mobile, reduce font size slightly
Browse files Browse the repository at this point in the history
  • Loading branch information
haukex committed Jul 20, 2024
1 parent 284cc30 commit 359ae86
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,14 @@ body > header h1 { margin: 0.5rem auto }
main { padding-top: 0 }
h1 { font-size: 2.0rem }
h2 { font-size: 1.8rem }
h3 { font-size: 1.5rem }
h3 { font-size: 1.4rem }
@media only screen and (max-width: 720px) { /* same condition as simple.css uses */
:root { font-size: calc(100%/1.15) }
body { grid-template-columns: 1fr 98% 1fr }
body > header { padding-bottom: 0.3rem }
body > header > :only-child { margin-block-start: 0.7rem }
h1 { font-size: 1.5rem }
h2 { font-size: 1.3rem }
h1 { font-size: 1.6rem }
h2 { font-size: 1.4rem }
h3 { font-size: 1.2rem }
}

Expand Down

0 comments on commit 359ae86

Please sign in to comment.