]> git.ardis.lu - ard.is/commitdiff
Scale ASCII art based on viewport width
authorArdis Lu <ardisglu@gmail.com>
Thu, 8 Jun 2023 04:44:41 +0000 (21:44 -0700)
committerArdis Lu <ardisglu@gmail.com>
Thu, 8 Jun 2023 04:44:41 +0000 (21:44 -0700)
Better on mobile

index.html

index 712120203ae87809da58963f2b135c26a54ea4ac..86be2980c487d46471fed646ba33b4f1470abb3e 100644 (file)
@@ -17,7 +17,7 @@
     }
 
     #ascii-container {
-      font-size: 2rem;
+      font-size: clamp(1rem, 2.5dvi, 2rem);
     }
   </style>
 </head>
This page took 0.036834 seconds and 4 git commands to generate.