From 429a53d7c8604ea92f02546055bc57e93734b7ea Mon Sep 17 00:00:00 2001 From: Hugo Thunnissen Date: Fri, 7 Feb 2020 21:55:37 +0100 Subject: [PATCH] Attempt to make fonts scale on high DPI --- blog.html | 2 +- generate-blog.bash | 2 +- index.html | 2 +- posts/introduction/index.html | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/blog.html b/blog.html index 4bd4229..4ca453e 100644 --- a/blog.html +++ b/blog.html @@ -24,7 +24,7 @@ @media only all and (pointer: fine) { body { - font-size: 20px; + font-size: calc(16px + 0.6vmin); min-width: 500px; max-width: 50em; } diff --git a/generate-blog.bash b/generate-blog.bash index fb747aa..1256632 100755 --- a/generate-blog.bash +++ b/generate-blog.bash @@ -60,7 +60,7 @@ blog_html="$here/blog.html" @media only all and (pointer: fine) { body { - font-size: 20px; + font-size: calc(16px + 0.6vmin); min-width: 500px; max-width: 50em; } diff --git a/index.html b/index.html index 35fa454..070ca22 100644 --- a/index.html +++ b/index.html @@ -25,7 +25,7 @@ @media only all and (pointer: fine) { body { - font-size: 20px; + font-size: calc(16px + 0.6vmin); min-width: 500px; max-width: 50em; } diff --git a/posts/introduction/index.html b/posts/introduction/index.html index 34f8d33..0740a33 100644 --- a/posts/introduction/index.html +++ b/posts/introduction/index.html @@ -25,7 +25,7 @@ @media only all and (pointer: fine) { body { - font-size: 20px; + font-size: calc(16px + 0.6vmin); min-width: 500px; max-width: 50em; }