From ae58957b88902d6fb4645ff63ca6918f78b2cccc Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 16 Sep 2024 08:15:13 +0200 Subject: [PATCH] style: dark mode adjustments - lighter blue for - darker bg on docs/tutorial.html Reported-by: Julian K. Fixes #399 --- curl.css | 3 +++ docs/_tutorial.html | 11 ++++++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/curl.css b/curl.css index 4d4a8b033..a0d30bf63 100644 --- a/curl.css +++ b/curl.css @@ -600,4 +600,7 @@ p.level1 { div.sourceCode { background-color: #313131 !important; } + code { + color: #aaaaff; + } } diff --git a/docs/_tutorial.html b/docs/_tutorial.html index bc2432208..fc7a51c18 100644 --- a/docs/_tutorial.html +++ b/docs/_tutorial.html @@ -9,9 +9,18 @@ padding-left: 8px; padding-top: 4px; padding-bottom: 4px; - background-color: #e0e0e0; + background-color: #f0f0f0; } +@media (prefers-color-scheme: dark) { + pre { + margin-left: 1em; + padding-left: 8px; + padding-top: 4px; + padding-bottom: 4px; + background-color: #101010; + } +}