From d9851908ace1574c7328813ccdcbc85a552aff6d Mon Sep 17 00:00:00 2001 From: Robin Whittleton Date: Tue, 15 Oct 2019 22:10:33 +0200 Subject: [PATCH] =?UTF-8?q?Add=20some=20fallbacks=20for=20browsers=20that?= =?UTF-8?q?=20don=E2=80=99t=20support=20custom=20properties?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This doesn’t restore the site back to its former glory there, but it’s still totally usable. Browsers that don’t support this new feature is Edge <= 14, IE, iOS <= 8 and Firefox <= 51. --- www/css/core.css | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/www/css/core.css b/www/css/core.css index 2685822e..f816b233 100644 --- a/www/css/core.css +++ b/www/css/core.css @@ -93,13 +93,14 @@ } html{ + color: #222; /* fallback for IE */ color: var(--body-text); font-family: "Crimson Pro", Georgia, serif; -webkit-hyphens: auto; hyphens: auto; font-size: 22px; line-height: 1.5; - background: url('/images/paper.png') #fcf5dd; /* #faf5e3; */ + background: url('/images/paper.png') #fcf5dd; } @media (prefers-color-scheme: dark){ @@ -471,6 +472,7 @@ a[rel~="next"], aside.sort button{ font-style: normal; box-sizing: border-box; + background-color: #1d6878; /* fallback for IE */ background-color: var(--highlight); border-width: 0; border-radius: 5px; @@ -1466,6 +1468,7 @@ main.ebooks nav ol li a{ article nav ol li.highlighted a, main.ebooks nav ol li.highlighted a{ + background-color: #1d6878; /* fallback for IE */ background: var(--highlight); padding: 1.25rem; }