From 7e2e06662675541fbe8bc88dd28b142e7f0982ae Mon Sep 17 00:00:00 2001 From: Baize Date: Sat, 1 Apr 2023 11:09:59 +0000 Subject: [PATCH] Update assets/custom.css --- assets/custom.css | 44 ++------------------------------------------ 1 file changed, 2 insertions(+), 42 deletions(-) diff --git a/assets/custom.css b/assets/custom.css index aba9fbf..6c2d085 100644 --- a/assets/custom.css +++ b/assets/custom.css @@ -16,9 +16,6 @@ color: var(--body-text-color-subdued); } -#chuanhu_chatbot, #status_display { - transition: all 0.6s; -} /* usage_display */ #usage_display { @@ -35,45 +32,8 @@ ol:not(.options), ul:not(.options) { padding-inline-start: 2em !important; } -/* 亮色 */ -@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; - } -} -/* 暗色 */ -@media (prefers-color-scheme: dark) { - #chuanhu_chatbot { - background-color: var(--chatbot-color-dark) !important; - } - [data-testid = "bot"] { - background-color: #2C2C2C !important; - } - [data-testid = "user"] { - background-color: #26B561 !important; - } - body { - background-color: var(--neutral-950) !important; - } -} -/* 屏幕宽度大于等于500px的设备 */ -@media screen and (min-width: 500px) { - #chuanhu_chatbot { - height: calc(100vh - 280px); - } -} -/* 屏幕宽度小于500px的设备 */ -@media screen and (max-width: 499px) { - #chuanhu_chatbot { - height: calc(100vh - 140px); - } -} + + /* 对话气泡 */ [class *= "message"] { border-radius: var(--radius-xl) !important;