From 24fa2210ca47100ccc50a17c3df7f38d7983e5e1 Mon Sep 17 00:00:00 2001 From: Holly Cummins Date: Thu, 18 Apr 2024 14:33:32 +0100 Subject: [PATCH] Disable dark mode and correct code block colour --- _sass/colormode.scss | 6 ++++-- _sass/quarkus.scss | 3 ++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/_sass/colormode.scss b/_sass/colormode.scss index 6680aa610bf..0435a73aa9b 100644 --- a/_sass/colormode.scss +++ b/_sass/colormode.scss @@ -6,7 +6,8 @@ html { --main-background-color: #FFFFFF; --main-text-color: #121212; --main-code-color: #943000; - --sec-background-color: #B5B5B5; + --sec-border-color: #aaa; + --sec-background-color: #EFEFEF; --title-background-color: #0d1c2c; --breadcrumb-background-color: #4695EB; @@ -16,7 +17,8 @@ html { } -@media (prefers-color-scheme: dark) { +/* @media (prefers-color-scheme: dark) { */ +@media screen and (max-width: 1px) { html { --link-color: #9BCAFA; --link-color-hover: #CC0000; diff --git a/_sass/quarkus.scss b/_sass/quarkus.scss index 465f31c844e..e31ac26ebad 100644 --- a/_sass/quarkus.scss +++ b/_sass/quarkus.scss @@ -449,6 +449,7 @@ dl dt:not(:first-child) { /* Over gray in text */ code { color: var(--main-code-color); + background-color: var(--main-code-background-color); } /* Over black in code blocks */ @@ -478,7 +479,7 @@ pre { } pre.highlight, .literalblock pre, .listingblock > .content > pre { - border: 1px solid var(--sec-background-color); + border: 1px solid var(--sec-border-color); padding: 1rem; line-height: 1.2em; overflow-x: auto;