From 6cdec963edb508560aa67eaa8f98406c20be2e2f Mon Sep 17 00:00:00 2001 From: Nguyễn Gia Phong Date: Sat, 21 Oct 2023 08:45:53 +0900 Subject: Fix width for WebKit For some reason WebKit does not calculate rem from font-size of html. --- _css/style.css | 4 ++-- 1 file 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; } -- cgit 1.4.1