Update assets/custom.css
This commit is contained in:
parent
15a738f880
commit
7e2e066626
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue