mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 14:27:49 +00:00
Add a note that dark mode is experimental
This commit is contained in:
@@ -820,6 +820,10 @@ div.warning p:last-child {
|
|||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
div.warning h2 {
|
||||||
|
margin-top: 0rem;
|
||||||
|
}
|
||||||
|
|
||||||
form.subscribe {
|
form.subscribe {
|
||||||
margin: 1rem;
|
margin: 1rem;
|
||||||
}
|
}
|
||||||
@@ -956,3 +960,21 @@ a strong {
|
|||||||
img {
|
img {
|
||||||
background-color: white;
|
background-color: white;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.dark-mode-note {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
body.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 */
|
||||||
|
body.light .dark-mode-note {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
@@ -118,6 +118,8 @@
|
|||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
{{ snippets::dark_mode_note() }}
|
||||||
</aside>
|
</aside>
|
||||||
|
|
||||||
{% endblock after_main %}
|
{% endblock after_main %}
|
||||||
|
|||||||
@@ -130,6 +130,8 @@
|
|||||||
{% endfor %}</ul>
|
{% endfor %}</ul>
|
||||||
</div>
|
</div>
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
|
||||||
|
{{ snippets::dark_mode_note() }}
|
||||||
</aside>
|
</aside>
|
||||||
|
|
||||||
{% endblock main %}
|
{% endblock main %}
|
||||||
|
|||||||
@@ -45,3 +45,12 @@
|
|||||||
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>.
|
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>
|
</p>
|
||||||
{% endmacro giscus %}
|
{% 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 %}
|
||||||
|
|||||||
Reference in New Issue
Block a user