diff options
author | Nguyễn Gia Phong <cnx@loang.net> | 2023-10-21 08:45:53 +0900 |
---|---|---|
committer | Nguyễn Gia Phong <cnx@loang.net> | 2023-10-21 08:45:53 +0900 |
commit | 6cdec963edb508560aa67eaa8f98406c20be2e2f (patch) | |
tree | 92f668ade8a8d93fb87097e604c22d5618d436c3 | |
parent | 923d8cd0a2b4978c8691853945347ada5d27bb40 (diff) | |
download | site-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.css | 4 |
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; } |