Update verbatim.css
Browse files- verbatim.css +71 -59
verbatim.css
CHANGED
|
@@ -1,19 +1,21 @@
|
|
| 1 |
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;700;800&display=swap');
|
| 2 |
|
| 3 |
-
/* ====== Forcer le mode clair
|
| 4 |
:root,
|
| 5 |
html[data-theme="dark"],
|
| 6 |
body[data-theme="dark"],
|
| 7 |
.dark, .theme-dark {
|
| 8 |
color-scheme: light !important;
|
|
|
|
|
|
|
| 9 |
--vb-bg:#F8FAFC;
|
| 10 |
--vb-card:#FFFFFF;
|
| 11 |
-
--vb-text:#0F172A;
|
| 12 |
--vb-primary:#7C3AED;
|
| 13 |
--vb-primary-2:#06B6D4;
|
| 14 |
--vb-border:#E2E8F0;
|
| 15 |
|
| 16 |
-
/* Tokens Gradio */
|
| 17 |
--body-background-fill:#F8FAFC;
|
| 18 |
--panel-background-fill:#FFFFFF;
|
| 19 |
--block-background-fill:#FFFFFF;
|
|
@@ -21,33 +23,56 @@ body[data-theme="dark"],
|
|
| 21 |
--text-color:#0F172A;
|
| 22 |
--secondary-text-color:#0F172A;
|
| 23 |
--muted-text-color:#0F172A;
|
| 24 |
-
--link-text-color:#
|
| 25 |
--input-background-fill:#FFFFFF;
|
| 26 |
--input-text-color:#0F172A;
|
| 27 |
--input-border-color:#E2E8F0;
|
| 28 |
--button-primary-background-fill:#7C3AED;
|
| 29 |
-
--button-primary-text-color:#
|
| 30 |
}
|
| 31 |
|
| 32 |
-
|
|
|
|
| 33 |
background: var(--vb-bg) !important;
|
| 34 |
-
color: var(--vb-text) !important;
|
| 35 |
font-family: Manrope, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif !important;
|
| 36 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 37 |
}
|
| 38 |
|
| 39 |
-
/* ====== Encart / cartes (
|
| 40 |
-
.gradio-container .block,
|
| 41 |
-
.gradio-container .
|
| 42 |
-
.gradio-container .
|
| 43 |
-
.gradio-container .
|
| 44 |
-
.gradio-container .form,
|
| 45 |
-
.gradio-container .group,
|
| 46 |
-
.gradio-container .row,
|
| 47 |
-
.gradio-container .column,
|
| 48 |
-
.gradio-container .tabs,
|
| 49 |
-
.gradio-container .tabitem,
|
| 50 |
-
.gradio-container [class*="accordion"],
|
| 51 |
.gradio-container [class*="box"]{
|
| 52 |
background: linear-gradient(180deg, rgba(124,58,237,.10), rgba(6,182,212,.10)) !important;
|
| 53 |
border: 1px solid transparent !important;
|
|
@@ -62,19 +87,8 @@ html, body, .gradio-container {
|
|
| 62 |
background:linear-gradient(90deg, rgba(124,58,237,.18), rgba(6,182,212,.18));
|
| 63 |
border:1px solid var(--vb-border);border-radius:14px;box-shadow:0 10px 26px rgba(2,6,23,.08);
|
| 64 |
}
|
| 65 |
-
.vb-hero .vb-title{font-size:22px;color:#0F172A;font-weight:
|
| 66 |
-
.vb-hero .vb-sub{font-size:13px;color:#0F172A}
|
| 67 |
-
|
| 68 |
-
/* ====== Labels noirs – suppression des rubans/pills auto ====== */
|
| 69 |
-
.gradio-container [data-testid="block-label"],
|
| 70 |
-
.gradio-container .component-label,
|
| 71 |
-
.gradio-container .label,
|
| 72 |
-
.gradio-container .wrap > .label,
|
| 73 |
-
.gradio-container .wrap [class*="label"]{
|
| 74 |
-
color:#0F172A !important; background:transparent !important; border:none !important;
|
| 75 |
-
box-shadow:none !important; padding:0 !important; font-weight:500 !important;
|
| 76 |
-
}
|
| 77 |
-
.gradio-container .wrap > div[class*="absolute"][class*="top-0"][class*="left-0"]{ display:none !important; }
|
| 78 |
|
| 79 |
/* ====== Inputs ====== */
|
| 80 |
.gradio-container input[type="text"],
|
|
@@ -87,23 +101,22 @@ html, body, .gradio-container {
|
|
| 87 |
border:1px solid #E2E8F0 !important; border-radius:12px !important;
|
| 88 |
box-shadow:none !important;
|
| 89 |
}
|
| 90 |
-
.gradio-container input::placeholder,
|
| 91 |
-
.gradio-container textarea::placeholder{color:#0F172A !important}
|
| 92 |
.gradio-container input:focus,
|
| 93 |
.gradio-container textarea:focus{
|
| 94 |
border-color:transparent !important;
|
| 95 |
box-shadow:0 0 0 2px rgba(124,58,237,.35), 0 0 0 4px rgba(6,182,212,.25) !important;
|
| 96 |
}
|
| 97 |
|
| 98 |
-
/* ====== Checkboxes / radios
|
| 99 |
.gradio-container input[type="checkbox"],
|
| 100 |
-
.gradio-container input[type="radio"]
|
| 101 |
-
.gradio-container [data-testid="checkbox"] input[type="checkbox"]{
|
| 102 |
accent-color: var(--vb-primary) !important;
|
| 103 |
}
|
| 104 |
|
| 105 |
-
/* ====== Sliders (
|
| 106 |
-
.gradio-container input[type="range"]{
|
|
|
|
|
|
|
| 107 |
.gradio-container .noUi-target{ background:rgba(124,58,237,.18) !important; border:0 !important; box-shadow:none !important; }
|
| 108 |
.gradio-container .noUi-connect{ background:linear-gradient(90deg, var(--vb-primary), var(--vb-primary-2)) !important; }
|
| 109 |
.gradio-container .noUi-handle{
|
|
@@ -111,36 +124,35 @@ html, body, .gradio-container {
|
|
| 111 |
box-shadow:0 2px 10px rgba(124,58,237,.3) !important;
|
| 112 |
}
|
| 113 |
|
| 114 |
-
/* ====== Bouton principal ====== */
|
| 115 |
-
.
|
| 116 |
background:linear-gradient(90deg, var(--vb-primary), var(--vb-primary-2)) !important;
|
| 117 |
-
color:#
|
| 118 |
-
font-
|
| 119 |
-
box-shadow:0 10px 24px rgba(124,58,237,.28);
|
| 120 |
}
|
| 121 |
-
.
|
| 122 |
|
| 123 |
-
/* ====== DataFrames ====== */
|
| 124 |
-
.gradio-container .table,
|
| 125 |
-
.gradio-container .table
|
| 126 |
-
.gradio-container .svelte-virtual-table-viewport,
|
| 127 |
-
.gradio-container .table-wrap{
|
| 128 |
background:#fff !important; color:#0F172A !important; border-color:#E2E8F0 !important;
|
| 129 |
}
|
| 130 |
-
.gradio-container .table thead,
|
| 131 |
-
.gradio-container .table thead tr,
|
| 132 |
-
.gradio-container .table thead th{
|
| 133 |
background:linear-gradient(90deg, rgba(124,58,237,.12), rgba(6,182,212,.12)) !important;
|
| 134 |
-
color:#0F172A !important; border-bottom:1px solid #E2E8F0 !important; font-weight:
|
| 135 |
}
|
| 136 |
.gradio-container .table thead th .header-button,
|
| 137 |
.gradio-container .table thead th [class*="header-button"],
|
| 138 |
-
.gradio-container .header-button{
|
|
|
|
|
|
|
| 139 |
|
| 140 |
-
/* ====== Plotly ====== */
|
|
|
|
|
|
|
| 141 |
.js-plotly-plot .plotly .bg{fill:#fff !important}
|
| 142 |
.js-plotly-plot .plotly .xgrid,.js-plotly-plot .plotly .ygrid{stroke:#E2E8F0 !important;opacity:1}
|
| 143 |
-
.js-plotly-plot .plotly .legend text{font-weight:500 !important}
|
| 144 |
|
| 145 |
/* ====== Footer ====== */
|
| 146 |
-
.vb-footer{color:#0F172A;font-size:12px;text-align:center;margin:16px 0;font-weight:
|
|
|
|
| 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"],
|
| 7 |
.dark, .theme-dark {
|
| 8 |
color-scheme: light !important;
|
| 9 |
+
|
| 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 |
--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;
|
|
|
|
| 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"],
|
|
|
|
| 101 |
border:1px solid #E2E8F0 !important; border-radius:12px !important;
|
| 102 |
box-shadow:none !important;
|
| 103 |
}
|
|
|
|
|
|
|
| 104 |
.gradio-container input:focus,
|
| 105 |
.gradio-container textarea:focus{
|
| 106 |
border-color:transparent !important;
|
| 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 |
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}
|