From c80b47fa92613fdb8aace578178933a7273003d5 Mon Sep 17 00:00:00 2001 From: daudix Date: Thu, 4 Apr 2024 07:06:17 +0300 Subject: [PATCH] Use warning icon instead of a glyph, move QR styles to comments -since it's not used anywhere else at the moment --- sass/_comments.scss | 13 +++++++++++++ sass/_qrcode.scss | 12 ------------ sass/_variables.scss | 4 ++-- sass/style.scss | 1 - templates/blog.html | 6 +++--- templates/page.html | 2 +- templates/partials/nav.html | 2 +- 7 files changed, 20 insertions(+), 20 deletions(-) delete mode 100644 sass/_qrcode.scss diff --git a/sass/_comments.scss b/sass/_comments.scss index 675c7b5..5d80932 100644 --- a/sass/_comments.scss +++ b/sass/_comments.scss @@ -1,4 +1,17 @@ section#comments { + #qrcode { + float: right; + margin: 3rem 0 0 1rem; + background-color: white; + padding: 12.5px; + width: 150px; + height: 150px; + + @media only screen and (max-width: 720px) { + display: none; + } + } + #load-comments { cursor: pointer; } diff --git a/sass/_qrcode.scss b/sass/_qrcode.scss deleted file mode 100644 index 0236bec..0000000 --- a/sass/_qrcode.scss +++ /dev/null @@ -1,12 +0,0 @@ -#qrcode { - float: right; - margin: 3rem 0 0 1rem; - background-color: white; - padding: 12.5px; - width: 150px; - height: 150px; - - @media only screen and (max-width: 720px) { - display: none; - } -} diff --git a/sass/_variables.scss b/sass/_variables.scss index a174282..cfea8ac 100644 --- a/sass/_variables.scss +++ b/sass/_variables.scss @@ -45,8 +45,6 @@ } @media (prefers-color-scheme: dark) { - color-scheme: dark; - // COLORS --bg-color: var(--bg-color-d); --fg-color: rgb(255, 255, 255); @@ -64,5 +62,7 @@ --red-fg: rgb(246, 97, 81); --yellow-bg: rgba(248, 228, 92, 0.1); --yellow-fg: rgb(248, 228, 92); + + color-scheme: dark; } } diff --git a/sass/style.scss b/sass/style.scss index 5989fee..016b2c9 100644 --- a/sass/style.scss +++ b/sass/style.scss @@ -21,6 +21,5 @@ @use "nav"; @use "not-found"; @use "post-nav"; -@use "qrcode"; @use "statements"; @use "tags"; diff --git a/templates/blog.html b/templates/blog.html index f899ce7..618fac3 100644 --- a/templates/blog.html +++ b/templates/blog.html @@ -29,21 +29,21 @@ {% if page.extra.archive %}
- ⚠ Archived + Archived {{ page.extra.archive | markdown | safe }}
{% endif %} {% if page.extra.trigger %}
- ⚠ Trigger Warning + Trigger Warning {{ page.extra.trigger | markdown | safe }}
{% endif %} {% if page.extra.disclaimer %}
- ⚠ Disclaimer(s) + Disclaimer(s) {{ page.extra.disclaimer | markdown | safe }}
{% endif %} diff --git a/templates/page.html b/templates/page.html index 008a06c..c46c4de 100644 --- a/templates/page.html +++ b/templates/page.html @@ -3,7 +3,7 @@ {% block content %} {% if page.extra.archive %}
- ⚠ Archived + Archived {{ page.extra.archive | markdown | safe }}
{% endif %} diff --git a/templates/partials/nav.html b/templates/partials/nav.html index 430650f..6cb82f2 100644 --- a/templates/partials/nav.html +++ b/templates/partials/nav.html @@ -19,7 +19,7 @@ {% if config.extra.nav.show_feed %}
  • - + Feed