From 8a376ec7bd3bb0171f5c8eb84aba51011dafe005 Mon Sep 17 00:00:00 2001 From: Greenscreener Date: Thu, 23 Apr 2020 17:28:58 +0200 Subject: [PATCH 1/2] Added more specific selector for transition. This doesn't exactly solve the darkmode issue, it just makes it a little less noticable. --- themes/patek/assets/css/main.scss | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/themes/patek/assets/css/main.scss b/themes/patek/assets/css/main.scss index b0fd6c0..cdb605c 100644 --- a/themes/patek/assets/css/main.scss +++ b/themes/patek/assets/css/main.scss @@ -12,9 +12,8 @@ $primary: #0b2a37; @import "logo-generator"; // Custom styles - -* { - transition-duration: 0.2s; +a { + transition: color 0.2s, background-color 0.2s; } .big-logo { font-size: 80px; From 7bc21cb4341562dd293a0cce5344bb1ab844659e Mon Sep 17 00:00:00 2001 From: Greenscreener Date: Sun, 26 Apr 2020 21:04:24 +0200 Subject: [PATCH 2/2] Degeneralized darkmode and added some proper styling for it. Resolves #11 and #10 --- themes/patek/assets/css/main.scss | 25 +++++++++++++++---- .../layouts/shortcodes/logo-generator.html | 4 +-- 2 files changed, 22 insertions(+), 7 deletions(-) diff --git a/themes/patek/assets/css/main.scss b/themes/patek/assets/css/main.scss index cdb605c..dd89a0b 100644 --- a/themes/patek/assets/css/main.scss +++ b/themes/patek/assets/css/main.scss @@ -211,12 +211,27 @@ h2 a { margin-right: 0.3em; color: $link; } -.dark-mode, .dark-mode * { - background-color: $black-ter !important; - color: white !important; - a { - color: $link !important; +#content.dark-mode { + &, .box, .card, .card .navbar, .card .label, input, button:not(.is-primary) { + background-color: $black-ter; + color: white; + a { + color: $link; + &:hover { + color: lighten($link, 30) !important; + } + } } + h1, h2, h3, h4, h5, h6, ::placeholder { + color: white; + } + .container > .pageHeader > h2.pageTitle.title > a { + color: white; + } + button svg path { + fill: white; + } + } #content { min-height: 90vh; diff --git a/themes/patek/layouts/shortcodes/logo-generator.html b/themes/patek/layouts/shortcodes/logo-generator.html index f53066d..d1533a1 100644 --- a/themes/patek/layouts/shortcodes/logo-generator.html +++ b/themes/patek/layouts/shortcodes/logo-generator.html @@ -5,7 +5,7 @@ - + @@ -19,7 +19,7 @@