From 3dc90a272d0de0e6ad73720a97762c071508b857 Mon Sep 17 00:00:00 2001 From: Tanner Collin Date: Fri, 4 Sep 2020 00:46:03 +0000 Subject: [PATCH] Improve darkmode button contrast, fix fonts --- themes/theme/templates/fonts.css | 16 ++++++++-------- themes/theme/templates/style.css | 6 ++++++ 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/themes/theme/templates/fonts.css b/themes/theme/templates/fonts.css index 5c1dbfd..c5aeaf8 100644 --- a/themes/theme/templates/fonts.css +++ b/themes/theme/templates/fonts.css @@ -1,20 +1,20 @@ @font-face { font-family: 'Apparatus SIL'; - src: url('AppSILR.ttf') format('truetype'); + src: url('/theme/fonts/AppSILR.ttf') format('truetype'); font-display: swap; } @font-face { font-family: 'Apparatus SIL'; font-style: italic; - src: url('AppSILI.ttf') format('truetype'); + src: url('/theme/fonts/AppSILI.ttf') format('truetype'); font-display: swap; } @font-face { font-family: 'Apparatus SIL'; font-weight: bold; - src: url('AppSILB.ttf') format('truetype'); + src: url('/theme/fonts/AppSILB.ttf') format('truetype'); font-display: swap; } @@ -22,7 +22,7 @@ font-family: 'Apparatus SIL'; font-weight: bold; font-style: italic; - src: url('AppSILBI.ttf') format('truetype'); + src: url('/theme/fonts/AppSILBI.ttf') format('truetype'); font-display: swap; } @@ -30,7 +30,7 @@ font-family: 'Lato'; font-style: italic; font-weight: 400; - src: local('Lato Italic'), local('Lato-Italic'), url('Lato-Italic.ttf') format('truetype'); + src: local('Lato Italic'), local('Lato-Italic'), url('/theme/fonts/Lato-Italic.ttf') format('truetype'); font-display: swap; } @@ -38,7 +38,7 @@ font-family: 'Lato'; font-style: italic; font-weight: 700; - src: local('Lato Bold Italic'), local('Lato-BoldItalic'), url('Lato-BoldItalic.ttf') format('truetype'); + src: local('Lato Bold Italic'), local('Lato-BoldItalic'), url('/theme/fonts/Lato-BoldItalic.ttf') format('truetype'); font-display: swap; } @@ -46,7 +46,7 @@ font-family: 'Lato'; font-style: normal; font-weight: 400; - src: local('Lato Regular'), local('Lato-Regular'), url('Lato-Regular.ttf') format('truetype'); + src: local('Lato Regular'), local('Lato-Regular'), url('/theme/fonts/Lato-Regular.ttf') format('truetype'); font-display: swap; } @@ -54,6 +54,6 @@ font-family: 'Lato'; font-style: normal; font-weight: 700; - src: local('Lato Bold'), local('Lato-Bold'), url('Lato-Bold.ttf') format('truetype'); + src: local('Lato Bold'), local('Lato-Bold'), url('/theme/fonts/Lato-Bold.ttf') format('truetype'); font-display: swap; } diff --git a/themes/theme/templates/style.css b/themes/theme/templates/style.css index d5e40b3..8d3c5e0 100644 --- a/themes/theme/templates/style.css +++ b/themes/theme/templates/style.css @@ -165,6 +165,12 @@ pre { .darkmode-toggle { z-index: 500; + background: black !important; +} + +.darkmode-toggle--white { + z-index: 500; + background: grey !important; } .darkmode--activated .content img {