From 256859b2ff71409d75e5951bc331a3d725cf06ce Mon Sep 17 00:00:00 2001 From: Aevann Date: Mon, 9 Oct 2023 20:07:01 +0300 Subject: [PATCH] fix post-flair --- files/assets/css/main.css | 7 ++++++- files/assets/events/homoween/css/main_homoween.css | 4 ++++ files/templates/post.html | 4 ++-- files/templates/post_listing.html | 2 +- 4 files changed, 13 insertions(+), 4 deletions(-) diff --git a/files/assets/css/main.css b/files/assets/css/main.css index 5a917a5fa..7bc192d5c 100644 --- a/files/assets/css/main.css +++ b/files/assets/css/main.css @@ -5178,11 +5178,16 @@ span.green { .text-info { color: var(--primary) !important; } -.patron { +.patron, .post-flair { padding: 2px 5px 3px 5px !important; border-radius: 5px !important; color: white !important; } +.post-flair { + background-color: var(--primary); + font-size: 12px; + line-height: 2; +} .patron[style*="background-color:#ffffff"] { color: black !important; } diff --git a/files/assets/events/homoween/css/main_homoween.css b/files/assets/events/homoween/css/main_homoween.css index 2cd020f57..13536a66f 100644 --- a/files/assets/events/homoween/css/main_homoween.css +++ b/files/assets/events/homoween/css/main_homoween.css @@ -805,3 +805,7 @@ body::after { width: 16px; height: 16px; } + +.post-flair { + padding-top: 5px; +} diff --git a/files/templates/post.html b/files/templates/post.html index f864ba931..691f67bd3 100644 --- a/files/templates/post.html +++ b/files/templates/post.html @@ -98,11 +98,11 @@

{% if p.realurl(v) and not v_forbid_deleted %} - {% if p.flair %}{{p.flair | safe}}{% endif %} + {% if p.flair %}{{p.flair | safe}}{% endif %} {{p.realtitle(v) | safe}} {% else %} - {% if p.flair %}{{p.flair | safe}}{% endif %} + {% if p.flair %}{{p.flair | safe}}{% endif %} {{p.realtitle(v) | safe}} {% endif %}

diff --git a/files/templates/post_listing.html b/files/templates/post_listing.html index 1d3a40aa2..08277bac9 100644 --- a/files/templates/post_listing.html +++ b/files/templates/post_listing.html @@ -97,7 +97,7 @@
- {% if p.flair %}{{p.flair | safe}}{% endif %} + {% if p.flair %}{{p.flair | safe}}{% endif %} {{p.realtitle(v) | safe}}