gowtham0992 Codex commited on
Commit
b8b47ad
·
1 Parent(s): 55d074a

Fix Gradio dark text leakage

Browse files

Co-authored-by: Codex <codex@openai.com>

Files changed (1) hide show
  1. style.css +19 -21
style.css CHANGED
@@ -2,6 +2,12 @@
2
  --body-background-fill: #fafaf7 !important;
3
  --background-fill-primary: #ffffff !important;
4
  --background-fill-secondary: #fafaf7 !important;
 
 
 
 
 
 
5
  --jb-bg: #fafaf7;
6
  --jb-warm: #fff8ea;
7
  --jb-surface: #ffffff;
@@ -32,30 +38,26 @@
32
  --body-background-fill: #fafaf7 !important;
33
  --background-fill-primary: #ffffff !important;
34
  --background-fill-secondary: #fafaf7 !important;
 
 
 
 
 
 
35
  color-scheme: light !important;
36
  }
37
 
38
- /* Keep Gradio callback states from dimming the app or adding progress chrome. */
39
- .gradio-container .wrap.translucent,
40
- .gradio-container .wrap[style*="opacity"],
41
- .gradio-container .block.translucent,
42
- .gradio-container [class*="pending"],
43
- .gradio-container [class*="generating"],
44
- .gradio-container .block:has(> .wrap),
45
  .gradio-container .block,
46
- .gradio-container .block *,
47
- .gradio-container .html,
48
- .gradio-container .html * {
49
  opacity: 1 !important;
 
50
  }
51
 
52
- .gradio-container .block:has(> .wrap) {
53
- pointer-events: auto !important;
54
- }
55
-
56
- .gradio-container .progress-bar,
57
- .gradio-container [class*="progress"] {
58
- display: none !important;
59
  }
60
 
61
  html,
@@ -97,10 +99,6 @@ body.dark {
97
  color: var(--jb-text) !important;
98
  }
99
 
100
- .gradio-container label span.svelte-jdcl7l {
101
- color: #ffffff !important;
102
- }
103
-
104
  .hero {
105
  display: flex;
106
  align-items: center;
 
2
  --body-background-fill: #fafaf7 !important;
3
  --background-fill-primary: #ffffff !important;
4
  --background-fill-secondary: #fafaf7 !important;
5
+ --text-color: #1d1d1f !important;
6
+ --body-text-color: #1d1d1f !important;
7
+ --block-label-text-color: #1d1d1f !important;
8
+ --block-title-text-color: #1d1d1f !important;
9
+ --input-text-color: #1d1d1f !important;
10
+ --neutral-950: #1d1d1f !important;
11
  --jb-bg: #fafaf7;
12
  --jb-warm: #fff8ea;
13
  --jb-surface: #ffffff;
 
38
  --body-background-fill: #fafaf7 !important;
39
  --background-fill-primary: #ffffff !important;
40
  --background-fill-secondary: #fafaf7 !important;
41
+ --text-color: #1d1d1f !important;
42
+ --body-text-color: #1d1d1f !important;
43
+ --block-label-text-color: #1d1d1f !important;
44
+ --block-title-text-color: #1d1d1f !important;
45
+ --input-text-color: #1d1d1f !important;
46
+ --neutral-950: #1d1d1f !important;
47
  color-scheme: light !important;
48
  }
49
 
50
+ /* Kill Gradio loading opacity completely. */
 
 
 
 
 
 
51
  .gradio-container .block,
52
+ .gradio-container .wrap,
53
+ .gradio-container .block.pending,
54
+ .gradio-container .block.generating {
55
  opacity: 1 !important;
56
+ transition: none !important;
57
  }
58
 
59
+ .gradio-container [style*="opacity"] {
60
+ opacity: 1 !important;
 
 
 
 
 
61
  }
62
 
63
  html,
 
99
  color: var(--jb-text) !important;
100
  }
101
 
 
 
 
 
102
  .hero {
103
  display: flex;
104
  align-items: center;