Remove dark mode warning again

There weren't any problems reported, so I guess it looks okay.
This commit is contained in:
Philipp Oppermann
2022-01-23 17:30:06 +01:00
parent a26eeae82e
commit b24122a604
4 changed files with 0 additions and 32 deletions

View File

@@ -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 {

View File

@@ -116,8 +116,6 @@
</p>
</div>
</div>
{{ snippets::dark_mode_note() }}
</aside>
{% endblock after_main %}

View File

@@ -130,8 +130,6 @@
{%- endif -%}{% endfor %}</ul>
</div>
{%- endif %}
{{ snippets::dark_mode_note() }}
</aside>
{% endblock main %}

View File

@@ -45,12 +45,3 @@
Instead of authenticating the <a href="https://giscus.app">giscus</a> application, you can also comment directly <a href="{{ discussion_url }}"><em>on GitHub</em></a>.
</p>
{% endmacro giscus %}
{% macro dark_mode_note() %}
<div class="dark-mode-note warning">
<h2>Dark Mode is Experimental</h2>
<p>
We're still working on adjusting text colors, fixing images, and removing inconsistencies. If you have any problems, please <a href="https://github.com/phil-opp/blog_os/issues">file an issue</a>.
</p>
</aside>
{% endmacro dark_mode_note %}