about summary refs log tree commit diff homepage
diff options
context:
space:
mode:
authorNguyễn Gia Phong <cnx@loang.net>2023-10-21 08:45:53 +0900
committerNguyễn Gia Phong <cnx@loang.net>2023-10-21 08:45:53 +0900
commit6cdec963edb508560aa67eaa8f98406c20be2e2f (patch)
tree92f668ade8a8d93fb87097e604c22d5618d436c3
parent923d8cd0a2b4978c8691853945347ada5d27bb40 (diff)
downloadsite-6cdec963edb508560aa67eaa8f98406c20be2e2f.tar.gz
Fix width for WebKit
For some reason WebKit does not calculate rem from font-size of html.
-rw-r--r--_css/style.css4
1 files changed, 2 insertions, 2 deletions
diff --git a/_css/style.css b/_css/style.css
index 4348f40..df2bd22 100644
--- a/_css/style.css
+++ b/_css/style.css
@@ -9,7 +9,7 @@ html {
     box-sizing: border-box;
     font-size: clamp(100%, 2vw, 150%);
     margin: auto;
-    max-width: 36rem;
+    max-width: 72ch;
 }
 
 body { margin: 0 1rem }
@@ -203,7 +203,7 @@ code, .hljs {
     color: ButtonText;
     display: flex;
     flex-direction: column;
-    flex: 1 1 12rem;
+    flex: 1 1 24ch;
     margin: 1ex;
     padding: 1ex;
 }