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