ankban commited on
Commit
9bf619b
·
verified ·
1 Parent(s): f9dcf8f

Update light_mode_chatter_owl.css

Browse files
Files changed (1) hide show
  1. light_mode_chatter_owl.css +84 -272
light_mode_chatter_owl.css CHANGED
@@ -1,204 +1,3 @@
1
-
2
- :root {
3
- --primary-color: #FFA726;
4
- --text-color: #333333;
5
- --bg-color: #ffffff;
6
- --card-bg: #f9f9f9;
7
- --border-radius: 12px;
8
- --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
9
- }
10
-
11
- body, html {
12
- margin: 0;
13
- padding: 0;
14
- width: 100%;
15
- overflow-x: hidden;
16
- }
17
-
18
- .gradio-container {
19
- background-color: var(--bg-color);
20
- max-width: 100% !important;
21
- font-family: 'Segoe UI', 'Helvetica Neue', sans-serif;
22
- color: var(--text-color);
23
- padding: 1.5em;
24
- }
25
-
26
- #header img {
27
- border-radius: 50%;
28
- width: 120px;
29
- box-shadow: var(--shadow);
30
- margin-bottom: 1em;
31
- animation: float 3s ease-in-out infinite;
32
- }
33
-
34
- h1, h2 {
35
- color: var(--primary-color);
36
- text-align: center;
37
- }
38
-
39
- .gr-button {
40
- background-color: var(--primary-color) !important;
41
- color: white !important;
42
- border-radius: var(--border-radius) !important;
43
- padding: 0.75em 1.5em;
44
- font-weight: bold;
45
- font-size: 1.1em;
46
- border: none;
47
- box-shadow: var(--shadow);
48
- }
49
-
50
- .gr-textbox textarea {
51
- border-radius: var(--border-radius);
52
- border: 1px solid #ccc;
53
- padding: 1em;
54
- font-size: 1.1em;
55
- background-color: var(--card-bg);
56
- }
57
-
58
- .gr-audio label {
59
- font-size: 1em;
60
- font-weight: 500;
61
- color: var(--primary-color);
62
- }
63
-
64
- .text_area {
65
- font-size: 16px;
66
- line-height: 1.6;
67
- font-family: Arial, sans-serif;
68
- }
69
-
70
- .high-contrast {
71
- color: white;
72
- background-color: black;
73
- }
74
-
75
- .gr-box {
76
- box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
77
- border-radius: 8px;
78
- padding: 16px;
79
- margin-bottom: 16px;
80
- background-color: white;
81
- }
82
-
83
- #module-wrapper {
84
- box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
85
- border-radius: 8px;
86
- padding: 16px;
87
- background-color: white;
88
- }
89
-
90
- #sidebar {
91
- position: fixed;
92
- top: 0;
93
- left: 0;
94
- width: 250px;
95
- height: 100vh;
96
- background-color: #f7f7f7;
97
- padding: 16px;
98
- overflow-y: auto;
99
- border-right: 1px solid #ddd;
100
- z-index: 999;
101
- }
102
-
103
- /* Push right content to avoid being overlapped */
104
- .main-content {
105
- margin-left: 254px; /* slightly more than sidebar width */
106
- padding: 16px;
107
- }
108
-
109
- /* TOP CONTROL BAR (for language, goal, focus) */
110
- .top-control-row .gr-column {
111
- min-width: 160px;
112
- margin-right: 16px;
113
- }
114
-
115
- .top-control-row {
116
- display: flex;
117
- flex-wrap: wrap;
118
- align-items: flex-start;
119
- gap: 12px;
120
- margin-bottom: 20px;
121
- }
122
-
123
- /* AUDIO BOXES SIDE-BY-SIDE */
124
- .audio-row {
125
- display: flex;
126
- gap: 20px;
127
- flex-wrap: wrap;
128
- }
129
-
130
- .audio-row .gr-audio {
131
- flex: 1;
132
- min-width: 300px;
133
- }
134
-
135
- /* CLEANER TEXTBOX WRAPPING */
136
- .text-columns {
137
- display: flex;
138
- flex-wrap: wrap;
139
- gap: 20px;
140
- }
141
-
142
- .text-columns .gr-textbox {
143
- flex: 1;
144
- min-width: 300px;
145
- }
146
-
147
- /* PLACING MODULE CARD STYLES */
148
- .gr-module-card {
149
- background-color: var(--card-bg);
150
- border-radius: var(--border-radius);
151
- box-shadow: var(--shadow);
152
- padding: 20px;
153
- margin-bottom: 24px;
154
- }
155
-
156
- /* CONSISTENT WIDTH & SPACING */
157
- #main-column {
158
- overflow-y: auto;
159
- max-height: 85vh;
160
- padding-right: 8px;
161
- }
162
-
163
-
164
- /* Make sure charts and plots don’t overflow */
165
- .gr-plot, .gr-plot canvas {
166
- width: 100% !important;
167
- height: auto !important;
168
- }
169
-
170
- /* Optional: tighter header spacing */
171
- #header h2 {
172
- margin-bottom: 0.5em;
173
- }
174
-
175
- /* Optional: lighter shadow feel for cards */
176
- .gr-box {
177
- box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
178
- border-radius: 10px;
179
- padding: 16px;
180
- margin-bottom: 20px;
181
- }
182
-
183
- #brand-header {
184
- text-align: center;
185
- margin-bottom: 1.5em;
186
- }
187
-
188
- #brand-header h1 {
189
- font-size: 1.6em;
190
- margin: 0;
191
- color: var(--primary-color);
192
- font-weight: 700;
193
- font-family: 'Segoe UI', 'Helvetica Neue', sans-serif;
194
- letter-spacing: 0.5px;
195
- }
196
-
197
- #brand-header img {
198
- border-radius: 50%;
199
- box-shadow: var(--shadow);
200
- }
201
-
202
  :root {
203
  --primary-color: #FFA726;
204
  --text-color: #333333;
@@ -228,22 +27,29 @@ body, html {
228
  justify-content: space-between;
229
  align-items: center;
230
  height: 48px;
231
- padding: 0 16px;
232
  background-color: var(--bg-color);
233
  border-bottom: 1px solid #ddd;
234
  position: fixed;
235
  top: 0;
236
- left: 250px; /* sidebar width */
237
  right: 0;
238
  z-index: 1000;
 
 
239
  }
240
 
241
- #collapse-left, #dark-mode-toggle {
242
- font-size: 1.2em;
243
  cursor: pointer;
 
244
  user-select: none;
245
  }
246
 
 
 
 
 
 
247
  #sidebar {
248
  position: fixed;
249
  top: 0;
@@ -251,16 +57,54 @@ body, html {
251
  width: 250px;
252
  height: 100vh;
253
  background-color: #f7f7f7;
254
- padding: 16px;
255
  overflow-y: auto;
256
  border-right: 1px solid #ddd;
257
  z-index: 999;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
258
  }
259
 
260
  #main-column {
261
- overflow-y: auto;
262
- max-height: 80vh;
263
- padding-right: 8px;
 
 
 
264
  }
265
 
266
  #module-wrapper {
@@ -270,11 +114,6 @@ body, html {
270
  background-color: white;
271
  }
272
 
273
- #main-content {
274
- margin-left: 250px; /* Sidebar width */
275
- padding: 16px;
276
- }
277
-
278
  .gr-box {
279
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
280
  border-radius: 12px;
@@ -283,22 +122,19 @@ body, html {
283
  background-color: white;
284
  }
285
 
286
- body.dark-mode {
287
- --bg-color: #1e1e1e;
288
- --text-color: #f0f0f0;
289
- --card-bg: #2a2a2a;
290
- --primary-color: #ffb74d;
291
  }
292
 
293
- body.dark .main-content,
294
- body.dark {
295
- --bg-color: #1e1e1e;
296
- --text-color: #f0f0f0;
297
- --card-bg: #2a2a2a;
298
- --primary-color: #ffb74d;
299
  }
300
 
301
- /* === Dark Mode Styles === */
302
  body.dark-mode {
303
  --bg-color: #1e1e1e;
304
  --text-color: #f0f0f0;
@@ -306,7 +142,6 @@ body.dark-mode {
306
  --primary-color: #ffb74d;
307
  }
308
 
309
- /* Apply text and background colors */
310
  body.dark-mode,
311
  body.dark-mode .main-content,
312
  body.dark-mode .gradio-container {
@@ -314,14 +149,12 @@ body.dark-mode .gradio-container {
314
  color: var(--text-color) !important;
315
  }
316
 
317
- /* Boxes */
318
  body.dark-mode .gr-box,
319
  body.dark-mode #module-wrapper {
320
  background-color: var(--card-bg);
321
  color: var(--text-color);
322
  }
323
 
324
- /* Textboxes */
325
  body.dark-mode textarea,
326
  body.dark-mode input[type="text"],
327
  body.dark-mode .gr-textbox textarea {
@@ -330,14 +163,12 @@ body.dark-mode .gr-textbox textarea {
330
  border: 1px solid #555;
331
  }
332
 
333
- /* Buttons */
334
  body.dark-mode .gr-button {
335
  background-color: var(--primary-color);
336
  color: black;
337
  border: none;
338
  }
339
 
340
- /* Dropdowns, checkboxes */
341
  body.dark-mode select,
342
  body.dark-mode .gr-dropdown select,
343
  body.dark-mode .gr-checkbox label {
@@ -345,63 +176,44 @@ body.dark-mode .gr-checkbox label {
345
  color: var(--text-color);
346
  }
347
 
348
- /* Audio & plot */
349
  body.dark-mode .gr-audio,
350
  body.dark-mode .gr-plot {
351
  background-color: var(--card-bg);
352
  }
353
 
354
- /* Top bar adjustments */
355
  body.dark-mode #top-bar {
356
  background-color: var(--card-bg);
357
  border-color: #444;
358
  }
359
 
360
- /* Sidebar base */
361
- #sidebar {
362
- font-size: 0.95em;
363
- font-family: 'Segoe UI', sans-serif;
364
- background-color: #f5f5f5;
365
- padding: 20px;
366
- }
367
-
368
- /* Sidebar headers */
369
- #sidebar h1, #sidebar h2, #sidebar h3 {
370
- font-size: 1.2em;
371
- margin-bottom: 1em;
372
- font-weight: 600;
373
- color: var(--primary-color);
374
  }
375
 
376
- /* Nav buttons */
377
- .sidebar-btn {
378
- display: block;
379
- width: 100%;
380
- margin-bottom: 10px;
381
- padding: 10px 14px;
382
- text-align: left;
383
- border: none;
384
- background-color: #fff;
385
- color: var(--text-color);
386
- font-weight: 500;
387
- border-radius: 8px;
388
- box-shadow: 0 1px 2px rgba(0,0,0,0.05);
389
- transition: all 0.2s ease;
390
  }
391
 
392
- .sidebar-btn:hover {
393
- background-color: #ffe3c1;
 
 
 
 
 
394
  }
395
 
396
- .sidebar-btn.active {
397
- background-color: var(--primary-color);
398
- color: #fff;
399
- font-weight: bold;
400
- box-shadow: none;
401
  }
402
 
403
  @keyframes float {
404
- 0% { transform: translateY(0px); }
405
- 50% { transform: translateY(-8px); }
406
- 100% { transform: translateY(0px); }
407
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  :root {
2
  --primary-color: #FFA726;
3
  --text-color: #333333;
 
27
  justify-content: space-between;
28
  align-items: center;
29
  height: 48px;
30
+ padding: 0 20px;
31
  background-color: var(--bg-color);
32
  border-bottom: 1px solid #ddd;
33
  position: fixed;
34
  top: 0;
35
+ left: 250px;
36
  right: 0;
37
  z-index: 1000;
38
+ font-size: 1.2em;
39
+ font-weight: bold;
40
  }
41
 
42
+ #collapse-left, #dark-toggle {
 
43
  cursor: pointer;
44
+ color: var(--text-color);
45
  user-select: none;
46
  }
47
 
48
+ #collapse-left:hover,
49
+ #dark-toggle:hover {
50
+ color: var(--primary-color);
51
+ }
52
+
53
  #sidebar {
54
  position: fixed;
55
  top: 0;
 
57
  width: 250px;
58
  height: 100vh;
59
  background-color: #f7f7f7;
60
+ padding: 20px;
61
  overflow-y: auto;
62
  border-right: 1px solid #ddd;
63
  z-index: 999;
64
+ font-size: 0.95em;
65
+ font-family: 'Segoe UI', sans-serif;
66
+ }
67
+
68
+ #sidebar h1, #sidebar h2, #sidebar h3 {
69
+ font-size: 1.2em;
70
+ margin-bottom: 1em;
71
+ font-weight: 600;
72
+ color: var(--primary-color);
73
+ }
74
+
75
+ .sidebar-btn {
76
+ display: block;
77
+ width: 100%;
78
+ margin-bottom: 10px;
79
+ padding: 10px 14px;
80
+ text-align: left;
81
+ border: none;
82
+ background-color: #fff;
83
+ color: var(--text-color);
84
+ font-weight: 500;
85
+ border-radius: 8px;
86
+ box-shadow: 0 1px 2px rgba(0,0,0,0.05);
87
+ transition: all 0.2s ease;
88
+ }
89
+
90
+ .sidebar-btn:hover {
91
+ background-color: #ffe3c1;
92
+ }
93
+
94
+ .sidebar-btn.active {
95
+ background-color: var(--primary-color);
96
+ color: #fff;
97
+ font-weight: bold;
98
+ box-shadow: none;
99
  }
100
 
101
  #main-column {
102
+ padding: 0;
103
+ }
104
+
105
+ .main-content {
106
+ margin-left: 250px;
107
+ padding: 0;
108
  }
109
 
110
  #module-wrapper {
 
114
  background-color: white;
115
  }
116
 
 
 
 
 
 
117
  .gr-box {
118
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
119
  border-radius: 12px;
 
122
  background-color: white;
123
  }
124
 
125
+ /* Text Inputs */
126
+ .text_area {
127
+ font-size: 16px;
128
+ line-height: 1.6;
129
+ font-family: Arial, sans-serif;
130
  }
131
 
132
+ .high-contrast {
133
+ color: white;
134
+ background-color: black;
 
 
 
135
  }
136
 
137
+ /* Dark Mode */
138
  body.dark-mode {
139
  --bg-color: #1e1e1e;
140
  --text-color: #f0f0f0;
 
142
  --primary-color: #ffb74d;
143
  }
144
 
 
145
  body.dark-mode,
146
  body.dark-mode .main-content,
147
  body.dark-mode .gradio-container {
 
149
  color: var(--text-color) !important;
150
  }
151
 
 
152
  body.dark-mode .gr-box,
153
  body.dark-mode #module-wrapper {
154
  background-color: var(--card-bg);
155
  color: var(--text-color);
156
  }
157
 
 
158
  body.dark-mode textarea,
159
  body.dark-mode input[type="text"],
160
  body.dark-mode .gr-textbox textarea {
 
163
  border: 1px solid #555;
164
  }
165
 
 
166
  body.dark-mode .gr-button {
167
  background-color: var(--primary-color);
168
  color: black;
169
  border: none;
170
  }
171
 
 
172
  body.dark-mode select,
173
  body.dark-mode .gr-dropdown select,
174
  body.dark-mode .gr-checkbox label {
 
176
  color: var(--text-color);
177
  }
178
 
 
179
  body.dark-mode .gr-audio,
180
  body.dark-mode .gr-plot {
181
  background-color: var(--card-bg);
182
  }
183
 
 
184
  body.dark-mode #top-bar {
185
  background-color: var(--card-bg);
186
  border-color: #444;
187
  }
188
 
189
+ /* Plot responsiveness */
190
+ .gr-plot, .gr-plot canvas {
191
+ width: 100% !important;
192
+ height: auto !important;
 
 
 
 
 
 
 
 
 
 
193
  }
194
 
195
+ /* Brand Header */
196
+ #brand-header {
197
+ text-align: center;
198
+ margin-bottom: 1.5em;
 
 
 
 
 
 
 
 
 
 
199
  }
200
 
201
+ #brand-header h1 {
202
+ font-size: 1.6em;
203
+ margin: 0;
204
+ color: var(--primary-color);
205
+ font-weight: 700;
206
+ font-family: 'Segoe UI', 'Helvetica Neue', sans-serif;
207
+ letter-spacing: 0.5px;
208
  }
209
 
210
+ #brand-header img {
211
+ border-radius: 50%;
212
+ box-shadow: var(--shadow);
 
 
213
  }
214
 
215
  @keyframes float {
216
+ 0% { transform: translateY(0px); }
217
+ 50% { transform: translateY(-8px); }
218
+ 100% { transform: translateY(0px); }
219
+ }