From 8524b5af13035f26ed58835667b57c3fe4a4db4d Mon Sep 17 00:00:00 2001 From: Nikolaos Karaolidis Date: Thu, 12 Sep 2024 13:57:52 +0300 Subject: [PATCH] Fix third-party lib css Signed-off-by: Nikolaos Karaolidis --- assets/css/lib/commento.css | 20 ++++++++++++-------- assets/css/lib/tocbot.css | 16 ++++++++-------- 2 files changed, 20 insertions(+), 16 deletions(-) diff --git a/assets/css/lib/commento.css b/assets/css/lib/commento.css index eff1f69..d625d3e 100644 --- a/assets/css/lib/commento.css +++ b/assets/css/lib/commento.css @@ -1,33 +1,37 @@ .commento-main-area :not(a) { - color: var(--primary-foreground-color); + color: var(--primary-foreground-color) !important; } .commento-root .commento-highlighted-card, .commento-main-area textarea, .commento-main-area input { - background: var(--secondary-subtle-color); + background: var(--secondary-subtle-color) !important; } .commento-main-area input[type="text"]::placeholder, .commento-main-area textarea::placeholder { - color: #868e96; + color: #868e96 !important; } .commento-root .commento-submit-button { - background: var(--ghost-accent-color); - color: var(--color-white); + background: var(--ghost-accent-color) !important; + color: var(--color-white) !important; } .commento-root .commento-name, .commento-mod-tools::before, .commento-sort-policy-button-selected { - color: var(--ghost-accent-color); + color: var(--ghost-accent-color) !important; } .commento-root .commento-card { - border-top: none; + border-top: none !important; } .commento-markdown-help { - border: none; + border: none !important; +} + +.commento-markdown-help pre { + padding: 0 !important; } diff --git a/assets/css/lib/tocbot.css b/assets/css/lib/tocbot.css index 07cdf4a..1f3067d 100644 --- a/assets/css/lib/tocbot.css +++ b/assets/css/lib/tocbot.css @@ -1,19 +1,19 @@ .toc ol { - counter-reset: item; - list-style: decimal; - line-height: 1.25; + counter-reset: item !important; + list-style: decimal !important; + line-height: 1.25 !important; } .toc li:before { - content: counters(item, ".") " "; - counter-increment: item; + content: counters(item, ".") " " !important; + counter-increment: item !important; } a.toc-link { - text-decoration: none; - font-weight: normal; + text-decoration: none !important; + font-weight: normal !important; } .toc>.toc-list li { - list-style: none + list-style: none !important; }