From 4cdc067de67ed98673d524e5132297de2b753d8e Mon Sep 17 00:00:00 2001 From: Baize Date: Sat, 8 Apr 2023 17:27:09 +0000 Subject: [PATCH] Update assets/custom.css --- assets/custom.css | 47 ++++++++++++++++++++++------------------------- 1 file changed, 22 insertions(+), 25 deletions(-) diff --git a/assets/custom.css b/assets/custom.css index 8704159..f8e3e4e 100644 --- a/assets/custom.css +++ b/assets/custom.css @@ -33,32 +33,29 @@ ol:not(.options), ul:not(.options) { padding-inline-start: 2em !important; } -/* Light Mode */ -@media (prefers-color-scheme: light) { - #chuanhu_chatbot { - background-color: var(--chatbot-color-light) !important; - } - [data-testid = "bot"] { - background-color: #FFFFFF !important; - } - [data-testid = "user"] { - background-color: #95EC69 !important; - } +/* Thank @Keldos-Li for fixing it */ +/* Light mode (default) */ +#chuanhu_chatbot { + background-color: var(--chatbot-color-light) !important; + color: #000000 !important; } -/* Dark Mode */ -@media (prefers-color-scheme: dark) { - .dark #chuanhu_chatbot { - background-color: var(--chatbot-color-dark) !important; - } - .dark [data-testid = "bot"] { - background-color: #2C2C2C !important; - } - .dark [data-testid = "user"] { - background-color: #26B561 !important; - } - body { - background-color: var(--neutral-950) !important; - } +[data-testid = "bot"] { + background-color: #FFFFFF !important; +} +[data-testid = "user"] { + background-color: #95EC69 !important; +} + +/* Dark mode */ +.dark #chuanhu_chatbot { + background-color: var(--chatbot-color-dark) !important; + color: #FFFFFF !important; +} +.dark [data-testid = "bot"] { + background-color: #2C2C2C !important; +} +.dark [data-testid = "user"] { + background-color: #26B561 !important; } #chuanhu_chatbot {