Address a few comments from from PR

This commit is contained in:
Sumner Evans 2020-04-16 09:00:25 -06:00
parent ec1acb115a
commit 0d047f7327
No known key found for this signature in database
GPG key ID: 8904527AB50022FD
2 changed files with 6 additions and 9 deletions

View file

@ -32,13 +32,13 @@
<link rel="stylesheet" type="text/css" href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/stylesheet/style.min.css"> <link rel="stylesheet" type="text/css" href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/stylesheet/style.min.css">
{% endif %} {% endif %}
<!-- DARK THEME STYLES --> {# DARK THEME STYLES #}
{% if not THEME_COLOR_AUTO_DETECT_BROWSER_PREFERENCE and not THEME_COLOR_ENABLE_USER_OVERRIDE and THEME_COLOR == "dark" %} {% if not THEME_COLOR_AUTO_DETECT_BROWSER_PREFERENCE and not THEME_COLOR_ENABLE_USER_OVERRIDE and THEME_COLOR == "dark" %}
<link rel="stylesheet" type="text/css" <link rel="stylesheet" type="text/css"
href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/stylesheet/dark-theme-not-overridden.min.css"> href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/stylesheet/dark-theme-not-overridden.min.css">
{% endif %} {% endif %}
{% if THEME_COLOR_AUTO_DETECT_BROWSER_PREFERENCE %} {% if THEME_COLOR_AUTO_DETECT_BROWSER_PREFERENCE %}
<!-- Enable dark mode when media query matches and .light-theme class does not exist on <html> tag --> {# Enable dark mode when media query matches and .light-theme class does not exist on <html> tag #}
<link rel="stylesheet" type="text/css" <link rel="stylesheet" type="text/css"
{% if THEME_COLOR|default("light") == "dark" %} {% if THEME_COLOR|default("light") == "dark" %}
media="(prefers-color-scheme: dark), (prefers-color-scheme: no-preference)" media="(prefers-color-scheme: dark), (prefers-color-scheme: no-preference)"
@ -48,12 +48,12 @@
href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/stylesheet/dark-theme-not-overridden.min.css"> href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/stylesheet/dark-theme-not-overridden.min.css">
{% endif %} {% endif %}
{% if THEME_COLOR_ENABLE_USER_OVERRIDE %} {% if THEME_COLOR_ENABLE_USER_OVERRIDE %}
<!-- Enable dark mode when .dark-theme class exists on <html> tag --> {# Enable dark mode when .dark-theme class exists on <html> tag #}
<link rel="stylesheet" type="text/css" <link rel="stylesheet" type="text/css"
href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/stylesheet/dark-theme-has-class.min.css"> href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/stylesheet/dark-theme-has-class.min.css">
{% endif %} {% endif %}
<!-- PYGMENTS STYLES --> {# PYGMENTS STYLES #}
{% if THEME_COLOR_AUTO_DETECT_BROWSER_PREFERENCE or THEME_COLOR == "dark" %} {% if THEME_COLOR_AUTO_DETECT_BROWSER_PREFERENCE or THEME_COLOR == "dark" %}
<link rel="stylesheet" type="text/css" <link rel="stylesheet" type="text/css"
{% if THEME_COLOR_AUTO_DETECT_BROWSER_PREFERENCE %} {% if THEME_COLOR_AUTO_DETECT_BROWSER_PREFERENCE %}

View file

@ -11,12 +11,9 @@
dark dark
</a>|<a href="javascript:void(0)" onclick="switchTheme('light')"> </a>|<a href="javascript:void(0)" onclick="switchTheme('light')">
light light
</a> </a>|<a href="javascript:void(0)" onclick="switchTheme('browser')">
{% if THEME_COLOR_AUTO_DETECT_BROWSER_PREFERENCE %}
|<a href="javascript:void(0)" onclick="switchTheme('browser')">
browser browser
</a> </a>
{% endif %}
theme theme
{% endif %} {% endif %}
</p> </p>