|
:root { |
|
--chatbot-color-light: #F3F3F3; |
|
--chatbot-color-dark: #121111; |
|
} |
|
|
|
|
|
#status_display { |
|
display: flex; |
|
min-height: 2.5em; |
|
align-items: flex-end; |
|
justify-content: flex-end; |
|
} |
|
#status_display p { |
|
font-size: .85em; |
|
font-family: monospace; |
|
color: var(--body-text-color-subdued); |
|
} |
|
|
|
|
|
|
|
|
|
#usage_display { |
|
height: 1em; |
|
} |
|
#usage_display p{ |
|
padding: 0 1em; |
|
font-size: .85em; |
|
font-family: monospace; |
|
color: var(--body-text-color-subdued); |
|
} |
|
|
|
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) { |
|
.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; |
|
} |
|
} |
|
|
|
#chuanhu_chatbot { |
|
height: 100%; |
|
min-height: 400px; |
|
} |
|
|
|
[class *= "message"] { |
|
border-radius: var(--radius-xl) !important; |
|
border: none; |
|
padding: var(--spacing-xl) !important; |
|
font-size: var(--text-md) !important; |
|
line-height: var(--line-md) !important; |
|
min-height: calc(var(--text-md)*var(--line-md) + 2*var(--spacing-xl)); |
|
min-width: calc(var(--text-md)*var(--line-md) + 2*var(--spacing-xl)); |
|
} |
|
[data-testid = "bot"] { |
|
max-width: 85%; |
|
border-bottom-left-radius: 0 !important; |
|
} |
|
[data-testid = "user"] { |
|
max-width: 85%; |
|
width: auto !important; |
|
border-bottom-right-radius: 0 !important; |
|
} |
|
|
|
table { |
|
margin: 1em 0; |
|
border-collapse: collapse; |
|
empty-cells: show; |
|
} |
|
td,th { |
|
border: 1.2px solid var(--border-color-primary) !important; |
|
padding: 0.2em; |
|
} |
|
thead { |
|
background-color: rgba(175,184,193,0.2); |
|
} |
|
thead th { |
|
padding: .5em .2em; |
|
} |
|
|
|
code { |
|
display: inline; |
|
white-space: break-spaces; |
|
border-radius: 6px; |
|
margin: 0 2px 0 2px; |
|
padding: .2em .4em .1em .4em; |
|
background-color: rgba(175,184,193,0.2); |
|
} |
|
|
|
pre code { |
|
display: block; |
|
overflow: auto; |
|
white-space: pre; |
|
background-color: hsla(0, 0%, 0%, 80%)!important; |
|
border-radius: 10px; |
|
padding: 1.4em 1.2em 0em 1.4em; |
|
margin: 1.2em 2em 1.2em 0.5em; |
|
color: #FFF; |
|
box-shadow: 6px 6px 16px hsla(0, 0%, 0%, 0.2); |
|
} |
|
|
|
.highlight .hll { background-color: #49483e } |
|
.highlight .c { color: #75715e } |
|
.highlight .err { color: #960050; background-color: #1e0010 } |
|
.highlight .k { color: #66d9ef } |
|
.highlight .l { color: #ae81ff } |
|
.highlight .n { color: #f8f8f2 } |
|
.highlight .o { color: #f92672 } |
|
.highlight .p { color: #f8f8f2 } |
|
.highlight .ch { color: #75715e } |
|
.highlight .cm { color: #75715e } |
|
.highlight .cp { color: #75715e } |
|
.highlight .cpf { color: #75715e } |
|
.highlight .c1 { color: #75715e } |
|
.highlight .cs { color: #75715e } |
|
.highlight .gd { color: #f92672 } |
|
.highlight .ge { font-style: italic } |
|
.highlight .gi { color: #a6e22e } |
|
.highlight .gs { font-weight: bold } |
|
.highlight .gu { color: #75715e } |
|
.highlight .kc { color: #66d9ef } |
|
.highlight .kd { color: #66d9ef } |
|
.highlight .kn { color: #f92672 } |
|
.highlight .kp { color: #66d9ef } |
|
.highlight .kr { color: #66d9ef } |
|
.highlight .kt { color: #66d9ef } |
|
.highlight .ld { color: #e6db74 } |
|
.highlight .m { color: #ae81ff } |
|
.highlight .s { color: #e6db74 } |
|
.highlight .na { color: #a6e22e } |
|
.highlight .nb { color: #f8f8f2 } |
|
.highlight .nc { color: #a6e22e } |
|
.highlight .no { color: #66d9ef } |
|
.highlight .nd { color: #a6e22e } |
|
.highlight .ni { color: #f8f8f2 } |
|
.highlight .ne { color: #a6e22e } |
|
.highlight .nf { color: #a6e22e } |
|
.highlight .nl { color: #f8f8f2 } |
|
.highlight .nn { color: #f8f8f2 } |
|
.highlight .nx { color: #a6e22e } |
|
.highlight .py { color: #f8f8f2 } |
|
.highlight .nt { color: #f92672 } |
|
.highlight .nv { color: #f8f8f2 } |
|
.highlight .ow { color: #f92672 } |
|
.highlight .w { color: #f8f8f2 } |
|
.highlight .mb { color: #ae81ff } |
|
.highlight .mf { color: #ae81ff } |
|
.highlight .mh { color: #ae81ff } |
|
.highlight .mi { color: #ae81ff } |
|
.highlight .mo { color: #ae81ff } |
|
.highlight .sa { color: #e6db74 } |
|
.highlight .sb { color: #e6db74 } |
|
.highlight .sc { color: #e6db74 } |
|
.highlight .dl { color: #e6db74 } |
|
.highlight .sd { color: #e6db74 } |
|
.highlight .s2 { color: #e6db74 } |
|
.highlight .se { color: #ae81ff } |
|
.highlight .sh { color: #e6db74 } |
|
.highlight .si { color: #e6db74 } |
|
.highlight .sx { color: #e6db74 } |
|
.highlight .sr { color: #e6db74 } |
|
.highlight .s1 { color: #e6db74 } |
|
.highlight .ss { color: #e6db74 } |
|
.highlight .bp { color: #f8f8f2 } |
|
.highlight .fm { color: #a6e22e } |
|
.highlight .vc { color: #f8f8f2 } |
|
.highlight .vg { color: #f8f8f2 } |
|
.highlight .vi { color: #f8f8f2 } |
|
.highlight .vm { color: #f8f8f2 } |
|
.highlight .il { color: #ae81ff } |
|
|