Skip to content

Commit

Permalink
Make the text size vaguely responsive
Browse files Browse the repository at this point in the history
  • Loading branch information
chichilatte authored Oct 25, 2024
1 parent cb78b20 commit 2d3e195
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
<script src="https://rawgit.com/paulirish/memory-stats.js/master/bookmarklet.js"></script>

<style>
html {
/* Scale the text to the window height. We want the text big, esp. on mobiles. */
font-size: clamp(1rem, calc(4dvh), 3.5rem);
}
body {
padding: 20px;
}
Expand Down

0 comments on commit 2d3e195

Please sign in to comment.