From fba84938c8ec1c54eef6bdb18258aa4c8c7549ae Mon Sep 17 00:00:00 2001 From: c0de Date: Fri, 29 Dec 2023 11:55:55 -0600 Subject: [PATCH] Add inverted theme classes --- templates/card.html | 2 +- templates/static/gallery.css | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/templates/card.html b/templates/card.html index 23e440f..02f2037 100644 --- a/templates/card.html +++ b/templates/card.html @@ -39,7 +39,7 @@ {# Only show counter if more than 2 people gave the same reaction #} {% if reaction_count|int >= 2 %} - + {# Don't render reaction counts larger than 1000 #} {{ reaction_count if reaction_count <= 999 else '1K+' }} diff --git a/templates/static/gallery.css b/templates/static/gallery.css index 013e21b..401055a 100644 --- a/templates/static/gallery.css +++ b/templates/static/gallery.css @@ -74,3 +74,15 @@ .bd-mode-toggle .dropdown-menu .active .bi { display: block !important; } + +/* + Surprised this doesn't exist by default. + Inverted colors for the current theme; works with the color switcher +*/ +.bg-body-inverted { + background-color: var(--bs-body-color); +} + +.text-body-inverted { + color: var(--bs-body-bg); +}