From b5b9e68df001d2b9a97d143eaffb5d521756f969 Mon Sep 17 00:00:00 2001
From: Tanner Collin
Date: Sun, 30 May 2021 05:08:37 +0000
Subject: [PATCH] Remove darkmode selector
---
publishconf.py | 6 +--
themes/theme/templates/article.html | 3 --
themes/theme/templates/base.html | 51 ++++---------------
themes/theme/templates/index.html | 3 --
themes/theme/templates/style.css | 79 -----------------------------
5 files changed, 13 insertions(+), 129 deletions(-)
diff --git a/publishconf.py b/publishconf.py
index 1899c1b..21a0f56 100644
--- a/publishconf.py
+++ b/publishconf.py
@@ -54,10 +54,10 @@ AUTHORS_SAVE_AS = ''
CATEGORIES_SAVE_AS = ''
TAGS_SAVE_AS = ''
-INDEX_SAVE_AS = 'index.php'
+INDEX_SAVE_AS = 'index.html'
ARTICLE_URL = '{slug}/'
-ARTICLE_SAVE_AS = '{slug}/index.php'
+ARTICLE_SAVE_AS = '{slug}/index.html'
PAGE_URL = '{slug}/'
-PAGE_SAVE_AS = '{slug}/index.php'
+PAGE_SAVE_AS = '{slug}/index.html'
PROD = True
diff --git a/themes/theme/templates/article.html b/themes/theme/templates/article.html
index 9b51825..5a44cd8 100644
--- a/themes/theme/templates/article.html
+++ b/themes/theme/templates/article.html
@@ -31,9 +31,6 @@
-
- Light / Dark
-
{% endblock %}
{% block content %}
diff --git a/themes/theme/templates/base.html b/themes/theme/templates/base.html
index e39f30c..4bfe34a 100644
--- a/themes/theme/templates/base.html
+++ b/themes/theme/templates/base.html
@@ -36,53 +36,22 @@
-
-
- {% if PROD %}
-
- {% else %}
-
- {% endif %}
+
+
+
+ {% block info %}
+ {% endblock %}
+
-
-
- {% block info %}
+ {% block content %}
{% endblock %}
- {% block content %}
- {% endblock %}
-
-
-
- © 2012–2021 Tanner Collin
-
-
-
-
-
+
+ © 2012–2021 Tanner Collin
+
diff --git a/themes/theme/templates/index.html b/themes/theme/templates/index.html
index 53c5aa7..f82e078 100644
--- a/themes/theme/templates/index.html
+++ b/themes/theme/templates/index.html
@@ -16,9 +16,6 @@
-
- Light / Dark
-
{% endblock %}
diff --git a/themes/theme/templates/style.css b/themes/theme/templates/style.css
index fe6d1d6..64990de 100644
--- a/themes/theme/templates/style.css
+++ b/themes/theme/templates/style.css
@@ -46,12 +46,6 @@ pre {
text-align: center;
}
-.theme-select {
- font-size: 1rem;
- margin-bottom: 0;
- cursor: pointer;
-}
-
.toc {
float: right;
padding: 0.75rem;
@@ -184,14 +178,9 @@ pre {
height: 1.5rem;
margin-right: 1rem;
}
-
- .bar .theme-select {
- margin-top: 0.5rem;
- }
}
-
body {
background-color: #eee;
color: #000;
@@ -218,75 +207,7 @@ pre {
color: #555;
}
-body.dark {
- background-color: #000;
- color: #eee;
-}
-
-body.dark a {
- color: #eee;
- border-bottom: 1px solid #eee;
-}
-
-body.dark pre {
- background-color: #222;
-}
-
-body.dark :not(pre)>code {
- background-color: #222;
-}
-
-body.dark .toc {
- background-color: #222;
-}
-
-body.dark .content p.metadata {
- color: #aaa;
-}
-
-body.dark .content img {
- filter: brightness(75%);
-}
-
-body.dark .contact-icons img {
- filter: invert(1);
-}
-
@media (prefers-color-scheme: dark) {
- body.light {
- background-color: #eee;
- color: #000;
- }
-
- body.light a {
- color: #000;
- border-bottom: 1px solid #000;
- }
-
- body.light pre {
- background-color: #ddd;
- }
-
- body.light :not(pre)>code {
- background-color: #ddd;
- }
-
- body.light .toc {
- background-color: #ddd;
- }
-
- body.light .content p.metadata {
- color: #555;
- }
-
- body.light .contact-icons img {
- filter: none;
- }
-
- body.light .content img {
- filter: none;
- }
-
body {
background-color: #000;
color: #eee;