From b24122a6044879d2305e65d30960dc03cd50ff17 Mon Sep 17 00:00:00 2001 From: Philipp Oppermann Date: Sun, 23 Jan 2022 17:30:06 +0100 Subject: [PATCH] Remove dark mode warning again There weren't any problems reported, so I guess it looks okay. --- blog/sass/css/edition-2/main.scss | 19 ------------------- blog/templates/edition-2/index.html | 2 -- blog/templates/edition-2/page.html | 2 -- blog/templates/snippets.html | 9 --------- 4 files changed, 32 deletions(-) diff --git a/blog/sass/css/edition-2/main.scss b/blog/sass/css/edition-2/main.scss index c398ac01..d90bb649 100644 --- a/blog/sass/css/edition-2/main.scss +++ b/blog/sass/css/edition-2/main.scss @@ -960,25 +960,6 @@ img { background-color: white; } -/* Note that dark mode is experimental */ - -.dark-mode-note { - display: none; -} -[data-theme="dark"] .dark-mode-note { - display: block; -} -@media (prefers-color-scheme: dark) { - /* defaults to dark theme */ - .dark-mode-note { - display: block; - } - /* Override dark mode with light mode styles if the user decides to swap */ - [data-theme="light"] .dark-mode-note { - display: none; - } -} - /* Manual switch between dark and light mode */ .theme-switch { diff --git a/blog/templates/edition-2/index.html b/blog/templates/edition-2/index.html index 38264785..e367d819 100644 --- a/blog/templates/edition-2/index.html +++ b/blog/templates/edition-2/index.html @@ -116,8 +116,6 @@

- - {{ snippets::dark_mode_note() }} {% endblock after_main %} diff --git a/blog/templates/edition-2/page.html b/blog/templates/edition-2/page.html index 0175a2c2..f7000823 100644 --- a/blog/templates/edition-2/page.html +++ b/blog/templates/edition-2/page.html @@ -130,8 +130,6 @@ {%- endif -%}{% endfor %} {%- endif %} - - {{ snippets::dark_mode_note() }} {% endblock main %} diff --git a/blog/templates/snippets.html b/blog/templates/snippets.html index 96dbcf57..452fed9a 100644 --- a/blog/templates/snippets.html +++ b/blog/templates/snippets.html @@ -45,12 +45,3 @@ Instead of authenticating the giscus application, you can also comment directly on GitHub.

{% endmacro giscus %} - -{% macro dark_mode_note() %} -
-

Dark Mode is Experimental

-

- We're still working on adjusting text colors, fixing images, and removing inconsistencies. If you have any problems, please file an issue. -

- -{% endmacro dark_mode_note %}