JerLag commited on
Commit
4cdefd4
·
verified ·
1 Parent(s): 35dc834

Update verbatim.css

Browse files
Files changed (1) hide show
  1. verbatim.css +94 -137
verbatim.css CHANGED
@@ -1,6 +1,6 @@
1
  @import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;700;800&display=swap');
2
 
3
- /* ====== Forcer le mode clair + variables de thème EN NOIR ====== */
4
  :root,
5
  html[data-theme="dark"],
6
  body[data-theme="dark"],
@@ -10,12 +10,12 @@ body[data-theme="dark"],
10
  /* Palette */
11
  --vb-bg:#F8FAFC;
12
  --vb-card:#FFFFFF;
13
- --vb-text:#0F172A; /* NOIR unique */
14
  --vb-primary:#7C3AED;
15
  --vb-primary-2:#06B6D4;
16
  --vb-border:#E2E8F0;
17
 
18
- /* Tokens Gradio (tout en noir) */
19
  --body-background-fill:#F8FAFC;
20
  --panel-background-fill:#FFFFFF;
21
  --block-background-fill:#FFFFFF;
@@ -23,61 +23,79 @@ body[data-theme="dark"],
23
  --text-color:#0F172A;
24
  --secondary-text-color:#0F172A;
25
  --muted-text-color:#0F172A;
26
- --link-text-color:#0F172A; /* liens NOIRS */
27
  --input-background-fill:#FFFFFF;
28
  --input-text-color:#0F172A;
29
  --input-border-color:#E2E8F0;
 
30
  --button-primary-background-fill:#7C3AED;
31
- --button-primary-text-color:#0F172A; /* texte bouton NOIR */
32
  }
33
 
34
- /* ====== Règle coupe-feu : tout texte en noir, poids normal ====== */
35
- html, body, .gradio-container {
36
- background: var(--vb-bg) !important;
37
- font-family: Manrope, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif !important;
38
- color: var(--vb-text) !important;
39
- font-weight: 400 !important;
40
  }
41
- /* hérite aux descendants (texte), sans toucher aux backgrounds */
42
- .gradio-container, .gradio-container * {
43
- color: var(--vb-text) !important;
44
- font-weight: 400 !important;
45
  }
46
- /* liens explicitement noirs */
 
47
  .gradio-container a,
48
  .gradio-container a:visited,
49
  .gradio-container a:hover,
50
- .gradio-container a:active { color:#0F172A !important; text-decoration: underline; }
 
 
 
51
 
52
- /* Placeholders & états désactivés en noir */
53
- .gradio-container ::placeholder { color:#0F172A !important; opacity:1 !important; }
54
- .gradio-container [disabled], .gradio-container :disabled { color:#0F172A !important; opacity:1 !important; }
55
 
56
- /* Titres/markdown/label noirs */
57
- .gradio-container h1, .gradio-container h2, .gradio-container h3,
58
- .gradio-container h4, .gradio-container h5, .gradio-container h6,
59
- .gradio-container .prose, .gradio-container .gr-markdown,
60
  .gradio-container [data-testid="block-label"],
61
- .gradio-container .component-label, .gradio-container .label,
62
- .gradio-container .wrap > .label { color:#0F172A !important; font-weight:400 !important; }
 
 
 
63
 
64
- /* Supprimer rubans/pills automatiques */
65
  .gradio-container .wrap > div[class*="absolute"][class*="top-0"][class*="left-0"],
66
  .gradio-container [class*="absolute"][class*="top-0"][class*="left-0"][class*="rounded-b"],
67
  .gradio-container [class*="absolute"][class*="top-0"][class*="left-0"][class*="rounded-br"]{
68
  background:transparent !important; border:none !important; box-shadow:none !important;
69
  }
 
 
 
 
 
 
 
 
 
 
 
70
 
71
- /* ====== Encart / cartes (fond doux, pas de bordures noires épaisses) ====== */
72
- .gradio-container .block, .gradio-container .gr-block, .gradio-container .gr-box,
73
- .gradio-container .panel, .gradio-container .form, .gradio-container .group,
74
- .gradio-container .row, .gradio-container .column, .gradio-container .tabs,
75
- .gradio-container .tabitem, .gradio-container [class*="accordion"],
76
  .gradio-container [class*="box"]{
77
- background: linear-gradient(180deg, rgba(124,58,237,.10), rgba(6,182,212,.10)) !important;
78
- border: 1px solid transparent !important;
79
- border-radius: 14px !important;
80
- box-shadow: 0 10px 26px rgba(2,6,23,.08);
81
  }
82
 
83
  /* ====== Header ====== */
@@ -87,8 +105,8 @@ html, body, .gradio-container {
87
  background:linear-gradient(90deg, rgba(124,58,237,.18), rgba(6,182,212,.18));
88
  border:1px solid var(--vb-border);border-radius:14px;box-shadow:0 10px 26px rgba(2,6,23,.08);
89
  }
90
- .vb-hero .vb-title{font-size:22px;color:#0F172A !important;font-weight:400 !important}
91
- .vb-hero .vb-sub{font-size:13px;color:#0F172A !important;font-weight:400 !important}
92
 
93
  /* ====== Inputs ====== */
94
  .gradio-container input[type="text"],
@@ -107,16 +125,14 @@ html, body, .gradio-container {
107
  box-shadow:0 0 0 2px rgba(124,58,237,.35), 0 0 0 4px rgba(6,182,212,.25) !important;
108
  }
109
 
110
- /* ====== Checkboxes / radios (couleur du bouton pour l’icône) ====== */
111
  .gradio-container input[type="checkbox"],
112
  .gradio-container input[type="radio"]{
113
- accent-color: var(--vb-primary) !important;
114
  }
115
 
116
- /* ====== Sliders (barre violet→cyan, textes noirs déjà forcés) ====== */
117
- .gradio-container input[type="range"]{
118
- accent-color: var(--vb-primary) !important;
119
- }
120
  .gradio-container .noUi-target{ background:rgba(124,58,237,.18) !important; border:0 !important; box-shadow:none !important; }
121
  .gradio-container .noUi-connect{ background:linear-gradient(90deg, var(--vb-primary), var(--vb-primary-2)) !important; }
122
  .gradio-container .noUi-handle{
@@ -124,115 +140,56 @@ html, body, .gradio-container {
124
  box-shadow:0 2px 10px rgba(124,58,237,.3) !important;
125
  }
126
 
127
- /* ====== Bouton principal (texte NOIR) ====== */
128
  .vb-cta{
129
  background:linear-gradient(90deg, var(--vb-primary), var(--vb-primary-2)) !important;
130
- color:#0F172A !important; border:0 !important;
131
- font-weight:600 !important; font-size:16px !important; padding:14px 18px !important;
132
- border-radius:14px !important; box-shadow:0 10px 24px rgba(124,58,237,.28);
 
 
 
 
133
  }
134
  .vb-cta:hover{ transform:translateY(-1px); filter:brightness(1.04) }
135
 
136
  /* ====== DataFrames / Tables ====== */
137
- .gradio-container .table, .gradio-container .table * ,
138
- .gradio-container .svelte-virtual-table-viewport, .gradio-container .table-wrap{
139
  background:#fff !important; color:#0F172A !important; border-color:#E2E8F0 !important;
140
  }
141
- .gradio-container .table thead, .gradio-container .table thead tr, .gradio-container .table thead th{
142
  background:linear-gradient(90deg, rgba(124,58,237,.12), rgba(6,182,212,.12)) !important;
143
  color:#0F172A !important; border-bottom:1px solid #E2E8F0 !important; font-weight:400 !important;
144
  }
145
- .gradio-container .table thead th .header-button,
146
- .gradio-container .table thead th [class*="header-button"],
147
- .gradio-container .header-button{
148
- background:transparent !important; color:#0F172A !important; box-shadow:none !important; border:none !important;
149
- }
150
 
151
- /* ====== Plotly : textes des axes/légendes en noir ====== */
152
- .js-plotly-plot text, .js-plotly-plot .legend text { fill:#0F172A !important; color:#0F172A !important; }
153
- .js-plotly-plot .g-xtick text, .js-plotly-plot .g-ytick text { fill:#0F172A !important; }
154
- .js-plotly-plot .plotly .bg{fill:#fff !important}
155
- .js-plotly-plot .plotly .xgrid,.js-plotly-plot .plotly .ygrid{stroke:#E2E8F0 !important;opacity:1}
156
 
157
- /* ====== Footer ====== */
158
- .vb-footer{color:#0F172A !important;font-size:12px;text-align:center;margin:16px 0;font-weight:400 !important}
159
-
160
- /* Center the main CTA button */
161
- .gradio-container .vb-cta{
162
- width: fit-content !important; /* no more full-width button */
163
- display: block !important;
164
- margin: 0 auto !important; /* centers it */
165
- padding: 14px 22px !important; /* keeps the nice size */
166
- }
167
-
168
- /* Couleur de fond des blocs "empty … unpadded_box" = dégradé du logo */
169
- :root{
170
- /* (optionnel) variable de confort pour réutiliser ailleurs */
171
- --vb-secondary-bg: linear-gradient(180deg, rgba(124,58,237,.14), rgba(6,182,212,.14));
172
- }
173
-
174
- /* Cible robuste (la classe svelte hashée peut changer) */
175
  .gradio-container .empty[class*="unpadded_box"],
176
  .gradio-container [aria-label="Empty value"]{
177
  --background-fill-secondary: var(--vb-secondary-bg) !important;
178
  background: var(--background-fill-secondary) !important;
179
  border-color: transparent !important;
180
- color:#0F172A !important; /* texte bien noir */
181
- box-shadow: 0 10px 26px rgba(2,6,23,.08);
182
- }
183
-
184
- /* ---- Retire les rubans/étiquettes noirs en haut-gauche des blocs ---- */
185
- .gradio-container [data-testid="block-info"],
186
- .gradio-container [data-testid="block-label"],
187
- .gradio-container .block .label,
188
- .gradio-container .wrap > .label,
189
- .gradio-container .wrap [class*="label"],
190
- .gradio-container [class*="header-button"], /* boutons d'entêtes de tables */
191
- .gradio-container .table caption {
192
- color: #0F172A !important; /* texte noir */
193
- background: transparent !important;
194
- border: 0 !important;
195
- box-shadow: none !important;
196
- }
197
-
198
- /* Sécurité : si un style inline met quand même un fond sombre, on neutralise */
199
- .gradio-container span[data-testid="block-info"],
200
- .gradio-container .block .label::before,
201
- .gradio-container .block .label::after {
202
- color: #0F172A !important; /* texte noir */
203
- background: transparent !important;
204
- border: 0 !important;
205
- }
206
-
207
- /* Centrer le bouton "Lancer l'analyse" dans sa carte */
208
- .gradio-container .wrap:has(.vb-cta) {
209
- display: flex !important;
210
- align-items: center !important; /* centrage vertical */
211
- justify-content: center !important; /* centrage horizontal */
212
- min-height: 140px; /* donne de la hauteur pour bien centrer */
213
- padding: 12px 16px !important;
214
- }
215
-
216
- /* Le bouton lui-même : pas de marge parasite */
217
- .gradio-container button.vb-cta {
218
- margin: 0 !important;
219
- }
220
-
221
- /* Centrage parfait du bouton dans son bloc de droite */
222
- #vb-cta-cell {
223
- display: flex !important;
224
- align-items: center !important; /* centre verticalement */
225
- justify-content: center !important; /* centre horizontalement */
226
- min-height: 160px; /* donne de la hauteur au bloc */
227
- padding: 12px 16px !important;
228
- }
229
-
230
- #vb-cta-cell > .wrap { /* le wrapper Gradio du bouton */
231
- width: 100% !important;
232
- }
233
-
234
- #vb-cta-cell button.vb-cta {
235
- margin: 0 auto !important; /* centre le bouton */
236
- max-width: 380px; /* optionnel : limite la largeur */
237
- display: inline-flex !important;
238
  }
 
1
  @import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;700;800&display=swap');
2
 
3
+ /* ====== Forcer le mode clair + variables (texte NOIR partout) ====== */
4
  :root,
5
  html[data-theme="dark"],
6
  body[data-theme="dark"],
 
10
  /* Palette */
11
  --vb-bg:#F8FAFC;
12
  --vb-card:#FFFFFF;
13
+ --vb-text:#0F172A; /* noir unique */
14
  --vb-primary:#7C3AED;
15
  --vb-primary-2:#06B6D4;
16
  --vb-border:#E2E8F0;
17
 
18
+ /* Tokens Gradio forcés en noir */
19
  --body-background-fill:#F8FAFC;
20
  --panel-background-fill:#FFFFFF;
21
  --block-background-fill:#FFFFFF;
 
23
  --text-color:#0F172A;
24
  --secondary-text-color:#0F172A;
25
  --muted-text-color:#0F172A;
26
+ --link-text-color:#0F172A;
27
  --input-background-fill:#FFFFFF;
28
  --input-text-color:#0F172A;
29
  --input-border-color:#E2E8F0;
30
+
31
  --button-primary-background-fill:#7C3AED;
32
+ --button-primary-text-color:#0F172A; /* texte bouton en noir */
33
  }
34
 
35
+ /* ====== Coupe-feu : tout texte en noir, poids normal ====== */
36
+ html, body, .gradio-container{
37
+ background:var(--vb-bg) !important;
38
+ color:var(--vb-text) !important;
39
+ font-family:Manrope,system-ui,-apple-system,'Segoe UI',Roboto,Arial,sans-serif !important;
40
+ font-weight:400 !important;
41
  }
42
+ .gradio-container, .gradio-container *{
43
+ color:var(--vb-text) !important;
44
+ font-weight:400 !important;
 
45
  }
46
+
47
+ /* Liens explicitement noirs */
48
  .gradio-container a,
49
  .gradio-container a:visited,
50
  .gradio-container a:hover,
51
+ .gradio-container a:active{
52
+ color:#0F172A !important;
53
+ text-decoration: underline;
54
+ }
55
 
56
+ /* Placeholders & disabled en noir */
57
+ .gradio-container ::placeholder{ color:#0F172A !important; opacity:1 !important; }
58
+ .gradio-container [disabled], .gradio-container :disabled{ color:#0F172A !important; opacity:1 !important; }
59
 
60
+ /* Titres/labels noirs */
61
+ .gradio-container h1,.gradio-container h2,.gradio-container h3,
62
+ .gradio-container h4,.gradio-container h5,.gradio-container h6,
63
+ .gradio-container .prose,.gradio-container .gr-markdown,
64
  .gradio-container [data-testid="block-label"],
65
+ .gradio-container .component-label,.gradio-container .label,
66
+ .gradio-container .wrap > .label{
67
+ color:#0F172A !important;
68
+ font-weight:400 !important;
69
+ }
70
 
71
+ /* Retirer les rubans/pills automatiques et entêtes sombres */
72
  .gradio-container .wrap > div[class*="absolute"][class*="top-0"][class*="left-0"],
73
  .gradio-container [class*="absolute"][class*="top-0"][class*="left-0"][class*="rounded-b"],
74
  .gradio-container [class*="absolute"][class*="top-0"][class*="left-0"][class*="rounded-br"]{
75
  background:transparent !important; border:none !important; box-shadow:none !important;
76
  }
77
+ .gradio-container [data-testid="block-info"],
78
+ .gradio-container [data-testid="block-label"],
79
+ .gradio-container .block .label,
80
+ .gradio-container .wrap > .label,
81
+ .gradio-container [class*="header-button"],
82
+ .gradio-container .table caption{
83
+ background:transparent !important;
84
+ color:#0F172A !important;
85
+ border:0 !important;
86
+ box-shadow:none !important;
87
+ }
88
 
89
+ /* ====== Encart / cartes (dégradé doux, sans bordures noires) ====== */
90
+ .gradio-container .block,.gradio-container .gr-block,.gradio-container .gr-box,
91
+ .gradio-container .panel,.gradio-container .form,.gradio-container .group,
92
+ .gradio-container .row,.gradio-container .column,.gradio-container .tabs,
93
+ .gradio-container .tabitem,.gradio-container [class*="accordion"],
94
  .gradio-container [class*="box"]{
95
+ background:linear-gradient(180deg, rgba(124,58,237,.10), rgba(6,182,212,.10)) !important;
96
+ border:1px solid transparent !important;
97
+ border-radius:14px !important;
98
+ box-shadow:0 10px 26px rgba(2,6,23,.08);
99
  }
100
 
101
  /* ====== Header ====== */
 
105
  background:linear-gradient(90deg, rgba(124,58,237,.18), rgba(6,182,212,.18));
106
  border:1px solid var(--vb-border);border-radius:14px;box-shadow:0 10px 26px rgba(2,6,23,.08);
107
  }
108
+ .vb-hero .vb-title{font-size:22px !important; font-weight:400 !important; color:#0F172A !important}
109
+ .vb-hero .vb-sub{font-size:13px !important; font-weight:400 !important; color:#0F172A !important}
110
 
111
  /* ====== Inputs ====== */
112
  .gradio-container input[type="text"],
 
125
  box-shadow:0 0 0 2px rgba(124,58,237,.35), 0 0 0 4px rgba(6,182,212,.25) !important;
126
  }
127
 
128
+ /* ====== Checkboxes / radios en couleur bouton ====== */
129
  .gradio-container input[type="checkbox"],
130
  .gradio-container input[type="radio"]{
131
+ accent-color:var(--vb-primary) !important;
132
  }
133
 
134
+ /* ====== Sliders (plus d’orange) ====== */
135
+ .gradio-container input[type="range"]{ accent-color:var(--vb-primary) !important; }
 
 
136
  .gradio-container .noUi-target{ background:rgba(124,58,237,.18) !important; border:0 !important; box-shadow:none !important; }
137
  .gradio-container .noUi-connect{ background:linear-gradient(90deg, var(--vb-primary), var(--vb-primary-2)) !important; }
138
  .gradio-container .noUi-handle{
 
140
  box-shadow:0 2px 10px rgba(124,58,237,.3) !important;
141
  }
142
 
143
+ /* ====== Bouton principal (texte noir, non gras) ====== */
144
  .vb-cta{
145
  background:linear-gradient(90deg, var(--vb-primary), var(--vb-primary-2)) !important;
146
+ color:#0F172A !important;
147
+ border:0 !important;
148
+ font-weight:400 !important; /* pas en gras */
149
+ font-size:16px !important;
150
+ padding:14px 18px !important;
151
+ border-radius:14px !important;
152
+ box-shadow:0 10px 24px rgba(124,58,237,.28);
153
  }
154
  .vb-cta:hover{ transform:translateY(-1px); filter:brightness(1.04) }
155
 
156
  /* ====== DataFrames / Tables ====== */
157
+ .gradio-container .table,.gradio-container .table *,.gradio-container .svelte-virtual-table-viewport,.gradio-container .table-wrap{
 
158
  background:#fff !important; color:#0F172A !important; border-color:#E2E8F0 !important;
159
  }
160
+ .gradio-container .table thead,.gradio-container .table thead tr,.gradio-container .table thead th{
161
  background:linear-gradient(90deg, rgba(124,58,237,.12), rgba(6,182,212,.12)) !important;
162
  color:#0F172A !important; border-bottom:1px solid #E2E8F0 !important; font-weight:400 !important;
163
  }
 
 
 
 
 
164
 
165
+ /* ====== Plotly (textes en noir) ====== */
166
+ .js-plotly-plot text,.js-plotly-plot .legend text{ fill:#0F172A !important; color:#0F172A !important; }
167
+ .js-plotly-plot .g-xtick text,.js-plotly-plot .g-ytick text{ fill:#0F172A !important; }
168
+ .js-plotly-plot .plotly .bg{ fill:#fff !important; }
169
+ .js-plotly-plot .plotly .xgrid,.js-plotly-plot .plotly .ygrid{ stroke:#E2E8F0 !important; opacity:1; }
170
 
171
+ /* ====== Couleur des blocs "empty … unpadded_box" ====== */
172
+ :root{ --vb-secondary-bg: linear-gradient(180deg, rgba(124,58,237,.14), rgba(6,182,212,.14)); }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
173
  .gradio-container .empty[class*="unpadded_box"],
174
  .gradio-container [aria-label="Empty value"]{
175
  --background-fill-secondary: var(--vb-secondary-bg) !important;
176
  background: var(--background-fill-secondary) !important;
177
  border-color: transparent !important;
178
+ color:#0F172A !important;
179
+ box-shadow:0 10px 26px rgba(2,6,23,.08);
180
+ }
181
+
182
+ /* ====== Centrage parfait du bouton dans sa colonne #vb-cta-cell ====== */
183
+ #vb-cta-cell{
184
+ display:flex !important;
185
+ align-items:center !important; /* vertical */
186
+ justify-content:center !important; /* horizontal */
187
+ min-height:160px; /* hauteur pour bien centrer */
188
+ padding:12px 16px !important;
189
+ }
190
+ #vb-cta-cell > .wrap{ width:100% !important; }
191
+ #vb-cta-cell button.vb-cta{
192
+ display:inline-flex !important;
193
+ margin:0 auto !important;
194
+ max-width:380px;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
195
  }