about summary refs log tree commit diff homepage
diff options
context:
space:
mode:
authorNguyễn Gia Phong <mcsinyx@disroot.org>2022-12-15 15:34:24 +0900
committerNguyễn Gia Phong <mcsinyx@disroot.org>2022-12-15 15:55:37 +0900
commitcd07645af510a6e16d132c6ec96c49707bbceb23 (patch)
treefb226b5b72b7cb5bb4f455c89eaee3a041d392aa
parentb6f13b126acb62f036fa508cfc05120a718aea16 (diff)
downloadphylactery-cd07645af510a6e16d132c6ec96c49707bbceb23.tar.gz
Use new CSS stuff
-rw-r--r--static/archive.css1
-rw-r--r--static/base.css2
2 files changed, 2 insertions, 1 deletions
diff --git a/static/archive.css b/static/archive.css
index 628461e..5ca766f 100644
--- a/static/archive.css
+++ b/static/archive.css
@@ -14,6 +14,7 @@ nav > a:hover { font-weight: bold }
 #next { background-color: #204a87 }
 
 img {
+    content-visibility: auto;
     display: block;
     margin: auto;
     max-width: 100%;
diff --git a/static/base.css b/static/base.css
index 5f63e67..038afdc 100644
--- a/static/base.css
+++ b/static/base.css
@@ -1,6 +1,6 @@
 html {
     background-color: black;
-    font-size: min(max(100%, 2vw), 150%);
+    font-size: clamp(100%, 2vw, 150%);
     margin: auto;
 }