From 8b52b04c03a34b2fc53c11b8535aaefac0490370 Mon Sep 17 00:00:00 2001 From: Nguyễn Gia Phong Date: Fri, 26 Nov 2021 23:24:44 +0700 Subject: Improve auto (and) scaling --- _css/style.css | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to '_css') diff --git a/_css/style.css b/_css/style.css index 283ac2e..dbd1874 100644 --- a/_css/style.css +++ b/_css/style.css @@ -39,7 +39,7 @@ html { background-color: var(--text-bg); box-sizing: border-box; color: var(--text-fg); - font-size: min(max(100%, 2vw), 24px); + font-size: min(max(100%, 2vw), 150%); margin: auto; max-width: 36rem; scrollbar-color: var(--fade-fg) var(--block-bg); @@ -117,11 +117,11 @@ body { margin: 0 1rem } } /* Images */ -.franklin-content img { width: 100% } -.franklin-content .img-small img { - width: 50%; - text-align: center; - padding-left: 20%; +.franklin-content img { + display: block; + margin: auto; + max-width: 100%; + width: auto; } /* KaTeX */ -- cgit 1.4.1