Update assets/custom.css

This commit is contained in:
Baize 2023-04-01 11:09:59 +00:00 committed by huggingface-web
parent 15a738f880
commit 7e2e066626
1 changed files with 2 additions and 42 deletions

View File

@ -16,9 +16,6 @@
color: var(--body-text-color-subdued); color: var(--body-text-color-subdued);
} }
#chuanhu_chatbot, #status_display {
transition: all 0.6s;
}
/* usage_display */ /* usage_display */
#usage_display { #usage_display {
@ -35,45 +32,8 @@ ol:not(.options), ul:not(.options) {
padding-inline-start: 2em !important; 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"] { [class *= "message"] {
border-radius: var(--radius-xl) !important; border-radius: var(--radius-xl) !important;