chansung commited on
Commit
e81baf6
1 Parent(s): b3ba7f9

Create styles.py

Browse files
Files changed (1) hide show
  1. styles.py +372 -0
styles.py ADDED
@@ -0,0 +1,372 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ PARENT_BLOCK_CSS = """
2
+ #col-container {
3
+ width: 95%;
4
+ height: 100%;
5
+ margin-left: auto;
6
+ margin-right: auto;
7
+ }
8
+
9
+ #chatbot {
10
+ height: 800px;
11
+ overflow: auto;
12
+ }
13
+
14
+ #chatbot > .wrap {
15
+ max-height: 780px;
16
+ }
17
+ """
18
+
19
+ MODEL_SELECTION_CSS = """
20
+
21
+ .template-txt {
22
+ text-align: center;
23
+ font-size: 15pt !important;
24
+ }
25
+
26
+ .message {
27
+ margin: 0px !important;
28
+ }
29
+
30
+ .load-mode-selector:nth-child(3) {
31
+ margin: auto !important;
32
+ text-align: center !important;
33
+ width: fit-content !important;
34
+ }
35
+
36
+ code {
37
+ white-space: break-spaces !important;
38
+ }
39
+
40
+ .progress-view {
41
+ background: transparent !important;
42
+ border-radius: 25px !important;
43
+ }
44
+
45
+ #landing-container {
46
+ width: 85%;
47
+ margin: auto;
48
+ }
49
+
50
+ .landing-btn {
51
+ font-size: 2.3vw !important;
52
+ margin-top: 25px !important;
53
+ border-radius: 25px !important;
54
+ height: 120px !important;
55
+
56
+ @media screen and (max-width: 1000px) {
57
+ font-size: 20px !important;
58
+ }
59
+ }
60
+
61
+ #landing-bottom {
62
+ margin-top: 20px !important;
63
+ }
64
+
65
+ .custom-btn {
66
+ border: none !important;
67
+ background: none !important;
68
+ box-shadow: none !important;
69
+ display: block !important;
70
+ text-align: left !important;
71
+ }
72
+ .custom-btn:hover {
73
+ background: rgb(243 244 246) !important;
74
+ }
75
+
76
+ .custom-btn-highlight {
77
+ border: none !important;
78
+ background: rgb(243 244 246) !important;
79
+ box-shadow: none !important;
80
+ display: block !important;
81
+ text-align: left !important;
82
+
83
+ @media (prefers-color-scheme: dark) {
84
+ background-color: rgba(17,24,39,255) !important;
85
+ }
86
+ }
87
+
88
+ #prompt-txt > label > span {
89
+ display: none !important;
90
+ }
91
+ #prompt-txt > label > textarea {
92
+ border: transparent;
93
+ border-radius: 20px;
94
+ }
95
+ #chatbot {
96
+ height: 800px !important;
97
+ overflow: auto;
98
+ box-shadow: none !important;
99
+ border: none !important;
100
+ }
101
+ #chatbot > .wrap {
102
+ max-height: 780px !important;
103
+ }
104
+ #chatbot + div {
105
+ border-radius: 35px !important;
106
+ width: 80% !important;
107
+ margin: auto !important;
108
+ }
109
+
110
+ #left-pane {
111
+ background-color: #f9fafb;
112
+ border-radius: 15px;
113
+ padding: 10px;
114
+
115
+ @media (prefers-color-scheme: dark) {
116
+ background-color: rgba(31,41,55,255) !important;
117
+ }
118
+ }
119
+
120
+ #left-top {
121
+ padding-left: 10px;
122
+ padding-right: 10px;
123
+ text-align: center;
124
+ font-weight: bold;
125
+ font-size: large;
126
+ }
127
+
128
+ #chat-history-accordion {
129
+ background: transparent;
130
+ border: 0.8px !important;
131
+ }
132
+
133
+ #right-pane {
134
+ margin-left: 20px;
135
+ margin-right: 20px;
136
+ background: white;
137
+ border-radius: 20px;
138
+
139
+ @media (prefers-color-scheme: dark) {
140
+ background-color: rgba(31,41,55,255) !important;
141
+ }
142
+
143
+ @media screen and (max-width: 1000px) {
144
+ margin: 0px !important;
145
+ }
146
+ }
147
+
148
+ #initial-popup {
149
+ z-index: 100;
150
+ position: absolute;
151
+ width: 50%;
152
+ top: 50%;
153
+ height: 50%;
154
+ left: 50%;
155
+ transform: translate(-50%, -50%);
156
+ border-radius: 35px;
157
+ padding: 15px;
158
+ }
159
+
160
+ #initial-popup-title {
161
+ text-align: center;
162
+ font-size: 18px;
163
+ font-weight: bold;
164
+ }
165
+
166
+ #initial-popup-left-pane {
167
+ min-width: 150px !important;
168
+ }
169
+
170
+ #initial-popup-right-pane {
171
+ text-align: right;
172
+ }
173
+
174
+ .example-btn {
175
+ padding-top: 20px !important;
176
+ padding-bottom: 20px !important;
177
+ padding-left: 5px !important;
178
+ padding-right: 5px !important;
179
+ background: linear-gradient(to bottom right, #f7faff, #ffffff) !important;
180
+ box-shadow: none !important;
181
+ border-radius: 20px !important;
182
+
183
+ @media (prefers-color-scheme: dark) {
184
+ background: rgba(70,79,86,255) !important;
185
+ }
186
+ }
187
+
188
+ .example-btn:hover {
189
+ box-shadow: 0.3px 0.3px 0.3px gray !important;
190
+
191
+ @media (prefers-color-scheme: dark) {
192
+ background: rgba(34,37,42,255) !important;
193
+ }
194
+ }
195
+
196
+ .example-btn:active {
197
+ @media (prefers-color-scheme: dark) {
198
+ background: rgba(70,79,86,255) !important;
199
+ }
200
+ }
201
+
202
+ #example-title {
203
+ margin-bottom: 15px;
204
+ }
205
+
206
+ #aux-btns-popup {
207
+ z-index: 200;
208
+ position: absolute !important;
209
+ bottom: 75px !important;
210
+ right: 40px !important;
211
+ }
212
+
213
+ #aux-btns-popup > div {
214
+ flex-wrap: nowrap;
215
+ width: fit-content;
216
+ margin: auto;
217
+ }
218
+
219
+ .aux-btn {
220
+ height: 30px !important;
221
+ flex-wrap: initial !important;
222
+ flex: none !important;
223
+ min-width: min(100px,100%) !important;
224
+ font-weight: unset !important;
225
+ font-size: 10pt !important;
226
+
227
+ background: linear-gradient(to bottom right, #f7faff, #ffffff) !important;
228
+ box-shadow: none !important;
229
+ border-radius: 20px !important;
230
+
231
+ opacity: 0.5;
232
+ border-width: 0.5px;
233
+ border-color: grey;
234
+
235
+ @media (prefers-color-scheme: dark) {
236
+ opacity: 0.2 !important;
237
+ color: black !important;
238
+ }
239
+ }
240
+
241
+ .aux-btn:hover {
242
+ opacity: 1.0;
243
+ box-shadow: 0.3px 0.3px 0.3px gray !important;
244
+
245
+ @media (prefers-color-scheme: dark) {
246
+ opacity: 1.0 !important;
247
+ box-shadow: 0.3px 0.3px 0.3px gray !important;
248
+ }
249
+ }
250
+
251
+ #aux-viewer {
252
+ position: absolute !important;
253
+ border-style: solid !important;
254
+ overflow: visible !important;
255
+ border: none !important;
256
+ box-shadow: none !important;
257
+ z-index: 1000 !important;
258
+ opacity: 0.0 !important;
259
+ width: 75% !important;
260
+ right: 1px !important;
261
+ transition: all 0.5s;
262
+ }
263
+
264
+ #aux-viewer:hover {
265
+ opacity: 1.0 !important;
266
+ box-shadow: 0px 0.5px 0px 0px gray !important;
267
+ }
268
+
269
+ #aux-viewer > .label-wrap {
270
+ justify-content: end;
271
+ }
272
+
273
+ #aux-viewer > .label-wrap > span {
274
+ margin-right: 10px;
275
+ }
276
+
277
+ #aux-viewer-inspector {
278
+ padding: 0px;
279
+ }
280
+
281
+ #aux-viewer-inspector > label > span {
282
+ display: none !important;
283
+ }
284
+
285
+ #aux-viewer-inspector > label > textarea {
286
+ box-shadow: none;
287
+ border-color: transparent;
288
+ }
289
+
290
+ #global-context > label > span {
291
+ display: none !important;
292
+ }
293
+
294
+ #chat-back-btn {
295
+ background: transparent !important;
296
+ }
297
+
298
+ #chat-back-btn:hover {
299
+ @media (prefers-color-scheme: dark) {
300
+ background: rgb(75,85,99) !important;
301
+ }
302
+ }
303
+
304
+ #chat-back-btn:active {
305
+ @media (prefers-color-scheme: dark) {
306
+ background: transparent !important;
307
+ }
308
+ }
309
+
310
+ #col-container {
311
+ max-width: 70%;
312
+ height: 100%;
313
+ margin-left: auto;
314
+ margin-right: auto;
315
+ }
316
+
317
+
318
+ #container {
319
+ max-width: 70%;
320
+ margin: auto;
321
+ }
322
+
323
+ #container2 {
324
+ max-width: 60%;
325
+ margin: auto;
326
+ }
327
+
328
+ #container3 {
329
+ max-width: 60%;
330
+ margin: auto;
331
+ }
332
+
333
+ .square {
334
+ height: 100px;
335
+
336
+ @media (prefers-color-scheme: dark) {
337
+ background-color: rgba(70,79,86,255) !important;
338
+ }
339
+ }
340
+
341
+ .square:hover {
342
+ @media (prefers-color-scheme: dark) {
343
+ background-color: rgba(34,37,42,255) !important;
344
+ }
345
+ }
346
+
347
+ .square:active {
348
+ @media (prefers-color-scheme: dark) {
349
+ background-color: rgba(70,79,86,255) !important;
350
+ }
351
+ }
352
+
353
+ .placeholders {
354
+ min-width: max-content !important;
355
+ }
356
+
357
+ .placeholders > button {
358
+ border-color: transparent !important;
359
+ background-color: transparent !important;
360
+ box-shadow: none !important;
361
+ cursor: default !important;
362
+ }
363
+
364
+ .center {
365
+ text-align: center;
366
+ overflow: hidden;
367
+ }
368
+
369
+ .sub-container > div {
370
+ min-width: max-content !important;
371
+ }
372
+ """