alexkueck commited on
Commit
fc551a7
1 Parent(s): 34e4f8a

Create custom.css

Browse files
Files changed (1) hide show
  1. custom.css +197 -0
custom.css ADDED
@@ -0,0 +1,197 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ :root {
2
+ --chatbot-color-light: #F3F3F3;
3
+ --chatbot-color-dark: #121111;
4
+ }
5
+
6
+ /* status_display */
7
+ #status_display {
8
+ display: flex;
9
+ min-height: 2.5em;
10
+ align-items: flex-end;
11
+ justify-content: flex-end;
12
+ }
13
+ #status_display p {
14
+ font-size: .85em;
15
+ font-family: monospace;
16
+ color: var(--body-text-color-subdued);
17
+ }
18
+
19
+ #status_system_update {
20
+ color: red !important;
21
+ text-align: center;
22
+ font-size: 20px;
23
+ }
24
+
25
+
26
+
27
+ /* usage_display */
28
+ #usage_display {
29
+ height: 1em;
30
+ }
31
+ #usage_display p{
32
+ padding: 0 1em;
33
+ font-size: .85em;
34
+ font-family: monospace;
35
+ color: var(--body-text-color-subdued);
36
+ }
37
+ /* list */
38
+ ol:not(.options), ul:not(.options) {
39
+ padding-inline-start: 2em !important;
40
+ }
41
+
42
+ /* Thank @Keldos-Li for fixing it */
43
+ /* Light mode (default) : light*/
44
+ #chuanhu_chatbot {
45
+ background-color: var(--chatbot-color-dark) !important;
46
+ color: #000000 !important;
47
+ }
48
+ [data-testid = "bot"] {
49
+ //background-color: #FFFFFF !important;
50
+ }
51
+ [data-testid = "user"] {
52
+ //background-color: #95EC69 !important;
53
+ }
54
+
55
+ /* Dark mode */
56
+ .dark #chuanhu_chatbot {
57
+ background-color: var(--chatbot-color-dark) !important;
58
+ color: #FFFFFF !important;
59
+ }
60
+ .dark [data-testid = "bot"] {
61
+ //background-color: #2C2C2C !important;
62
+ }
63
+ .dark [data-testid = "user"] {
64
+ //background-color: #26B561 !important;
65
+ }
66
+
67
+ #chuanhu_chatbot {
68
+ height: 100%;
69
+ min-height: 400px;
70
+ }
71
+
72
+ [class *= "message"] {
73
+ border-radius: var(--radius-xl) !important;
74
+ border: none;
75
+ padding: var(--spacing-xl) !important;
76
+ font-size: var(--text-md) !important;
77
+ line-height: var(--line-md) !important;
78
+ min-height: calc(var(--text-md)*var(--line-md) + 2*var(--spacing-xl));
79
+ min-width: calc(var(--text-md)*var(--line-md) + 2*var(--spacing-xl));
80
+ }
81
+ [data-testid = "bot"] {
82
+ max-width: 85%;
83
+ border-bottom-left-radius: 0 !important;
84
+ }
85
+ [data-testid = "user"] {
86
+ max-width: 85%;
87
+ width: auto !important;
88
+ border-bottom-right-radius: 0 !important;
89
+ }
90
+ /* Table */
91
+ table {
92
+ margin: 1em 0;
93
+ border-collapse: collapse;
94
+ empty-cells: show;
95
+ }
96
+ td,th {
97
+ border: 1.2px solid var(--border-color-primary) !important;
98
+ padding: 0.2em;
99
+ }
100
+ thead {
101
+ background-color: rgba(175,184,193,0.2);
102
+ }
103
+ thead th {
104
+ padding: .5em .2em;
105
+ }
106
+ /* Inline code */
107
+ #chuanhu_chatbot code {
108
+ display: inline;
109
+ white-space: break-spaces;
110
+ border-radius: 6px;
111
+ margin: 0 2px 0 2px;
112
+ padding: .2em .4em .1em .4em;
113
+ background-color: rgba(175,184,193,0.2);
114
+ }
115
+ /* Code block */
116
+ #chuanhu_chatbot pre code {
117
+ display: block;
118
+ overflow: auto;
119
+ white-space: pre;
120
+ background-color: hsla(0, 0%, 0%, 80%)!important;
121
+ border-radius: 10px;
122
+ padding: 1.4em 1.2em 0em 1.4em;
123
+ margin: 1.2em 2em 1.2em 0.5em;
124
+ color: #FFF;
125
+ box-shadow: 6px 6px 16px hsla(0, 0%, 0%, 0.2);
126
+ }
127
+ /* Hightlight */
128
+ #chuanhu_chatbot .highlight { background-color: transparent }
129
+ #chuanhu_chatbot .highlight .hll { background-color: #49483e }
130
+ #chuanhu_chatbot .highlight .c { color: #75715e } /* Comment */
131
+ #chuanhu_chatbot .highlight .err { color: #960050; background-color: #1e0010 } /* Error */
132
+ #chuanhu_chatbot .highlight .k { color: #66d9ef } /* Keyword */
133
+ #chuanhu_chatbot .highlight .l { color: #ae81ff } /* Literal */
134
+ #chuanhu_chatbot .highlight .n { color: #f8f8f2 } /* Name */
135
+ #chuanhu_chatbot .highlight .o { color: #f92672 } /* Operator */
136
+ #chuanhu_chatbot .highlight .p { color: #f8f8f2 } /* Punctuation */
137
+ #chuanhu_chatbot .highlight .ch { color: #75715e } /* Comment.Hashbang */
138
+ #chuanhu_chatbot .highlight .cm { color: #75715e } /* Comment.Multiline */
139
+ #chuanhu_chatbot .highlight .cp { color: #75715e } /* Comment.Preproc */
140
+ #chuanhu_chatbot .highlight .cpf { color: #75715e } /* Comment.PreprocFile */
141
+ #chuanhu_chatbot .highlight .c1 { color: #75715e } /* Comment.Single */
142
+ #chuanhu_chatbot .highlight .cs { color: #75715e } /* Comment.Special */
143
+ #chuanhu_chatbot .highlight .gd { color: #f92672 } /* Generic.Deleted */
144
+ #chuanhu_chatbot .highlight .ge { font-style: italic } /* Generic.Emph */
145
+ #chuanhu_chatbot .highlight .gi { color: #a6e22e } /* Generic.Inserted */
146
+ #chuanhu_chatbot .highlight .gs { font-weight: bold } /* Generic.Strong */
147
+ #chuanhu_chatbot .highlight .gu { color: #75715e } /* Generic.Subheading */
148
+ #chuanhu_chatbot .highlight .kc { color: #66d9ef } /* Keyword.Constant */
149
+ #chuanhu_chatbot .highlight .kd { color: #66d9ef } /* Keyword.Declaration */
150
+ #chuanhu_chatbot .highlight .kn { color: #f92672 } /* Keyword.Namespace */
151
+ #chuanhu_chatbot .highlight .kp { color: #66d9ef } /* Keyword.Pseudo */
152
+ #chuanhu_chatbot .highlight .kr { color: #66d9ef } /* Keyword.Reserved */
153
+ #chuanhu_chatbot .highlight .kt { color: #66d9ef } /* Keyword.Type */
154
+ #chuanhu_chatbot .highlight .ld { color: #e6db74 } /* Literal.Date */
155
+ #chuanhu_chatbot .highlight .m { color: #ae81ff } /* Literal.Number */
156
+ #chuanhu_chatbot .highlight .s { color: #e6db74 } /* Literal.String */
157
+ #chuanhu_chatbot .highlight .na { color: #a6e22e } /* Name.Attribute */
158
+ #chuanhu_chatbot .highlight .nb { color: #f8f8f2 } /* Name.Builtin */
159
+ #chuanhu_chatbot .highlight .nc { color: #a6e22e } /* Name.Class */
160
+ #chuanhu_chatbot .highlight .no { color: #66d9ef } /* Name.Constant */
161
+ #chuanhu_chatbot .highlight .nd { color: #a6e22e } /* Name.Decorator */
162
+ #chuanhu_chatbot .highlight .ni { color: #f8f8f2 } /* Name.Entity */
163
+ #chuanhu_chatbot .highlight .ne { color: #a6e22e } /* Name.Exception */
164
+ #chuanhu_chatbot .highlight .nf { color: #a6e22e } /* Name.Function */
165
+ #chuanhu_chatbot .highlight .nl { color: #f8f8f2 } /* Name.Label */
166
+ #chuanhu_chatbot .highlight .nn { color: #f8f8f2 } /* Name.Namespace */
167
+ #chuanhu_chatbot .highlight .nx { color: #a6e22e } /* Name.Other */
168
+ #chuanhu_chatbot .highlight .py { color: #f8f8f2 } /* Name.Property */
169
+ #chuanhu_chatbot .highlight .nt { color: #f92672 } /* Name.Tag */
170
+ #chuanhu_chatbot .highlight .nv { color: #f8f8f2 } /* Name.Variable */
171
+ #chuanhu_chatbot .highlight .ow { color: #f92672 } /* Operator.Word */
172
+ #chuanhu_chatbot .highlight .w { color: #f8f8f2 } /* Text.Whitespace */
173
+ #chuanhu_chatbot .highlight .mb { color: #ae81ff } /* Literal.Number.Bin */
174
+ #chuanhu_chatbot .highlight .mf { color: #ae81ff } /* Literal.Number.Float */
175
+ #chuanhu_chatbot .highlight .mh { color: #ae81ff } /* Literal.Number.Hex */
176
+ #chuanhu_chatbot .highlight .mi { color: #ae81ff } /* Literal.Number.Integer */
177
+ #chuanhu_chatbot .highlight .mo { color: #ae81ff } /* Literal.Number.Oct */
178
+ #chuanhu_chatbot .highlight .sa { color: #e6db74 } /* Literal.String.Affix */
179
+ #chuanhu_chatbot .highlight .sb { color: #e6db74 } /* Literal.String.Backtick */
180
+ #chuanhu_chatbot .highlight .sc { color: #e6db74 } /* Literal.String.Char */
181
+ #chuanhu_chatbot .highlight .dl { color: #e6db74 } /* Literal.String.Delimiter */
182
+ #chuanhu_chatbot .highlight .sd { color: #e6db74 } /* Literal.String.Doc */
183
+ #chuanhu_chatbot .highlight .s2 { color: #e6db74 } /* Literal.String.Double */
184
+ #chuanhu_chatbot .highlight .se { color: #ae81ff } /* Literal.String.Escape */
185
+ #chuanhu_chatbot .highlight .sh { color: #e6db74 } /* Literal.String.Heredoc */
186
+ #chuanhu_chatbot .highlight .si { color: #e6db74 } /* Literal.String.Interpol */
187
+ #chuanhu_chatbot .highlight .sx { color: #e6db74 } /* Literal.String.Other */
188
+ #chuanhu_chatbot .highlight .sr { color: #e6db74 } /* Literal.String.Regex */
189
+ #chuanhu_chatbot .highlight .s1 { color: #e6db74 } /* Literal.String.Single */
190
+ #chuanhu_chatbot .highlight .ss { color: #e6db74 } /* Literal.String.Symbol */
191
+ #chuanhu_chatbot .highlight .bp { color: #f8f8f2 } /* Name.Builtin.Pseudo */
192
+ #chuanhu_chatbot .highlight .fm { color: #a6e22e } /* Name.Function.Magic */
193
+ #chuanhu_chatbot .highlight .vc { color: #f8f8f2 } /* Name.Variable.Class */
194
+ #chuanhu_chatbot .highlight .vg { color: #f8f8f2 } /* Name.Variable.Global */
195
+ #chuanhu_chatbot .highlight .vi { color: #f8f8f2 } /* Name.Variable.Instance */
196
+ #chuanhu_chatbot .highlight .vm { color: #f8f8f2 } /* Name.Variable.Magic */
197
+ #chuanhu_chatbot .highlight .il { color: #ae81ff } /* Literal.Number.Integer.Long */