styling
Browse files- src/display/css_html_js.py +95 -95
src/display/css_html_js.py
CHANGED
@@ -119,101 +119,101 @@
|
|
119 |
|
120 |
# """
|
121 |
|
122 |
-
custom_css = """
|
123 |
-
/* 1) Load Karbon Font: Make sure this points to your actual font files */
|
124 |
-
@font-face {
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
}
|
131 |
-
|
132 |
-
/* 2) Global Container */
|
133 |
-
body, .gradio-container {
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
}
|
140 |
-
|
141 |
-
.gradio-container {
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
}
|
146 |
-
|
147 |
-
/* 3) Headings, with brand color #eb088a */
|
148 |
-
h1, h2, h3, h4, h5, h6 {
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
}
|
153 |
-
|
154 |
-
/* 4) Intro Block for a slight highlight */
|
155 |
-
.intro-block {
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
}
|
162 |
-
|
163 |
-
/* 5) Tab styling - remove default orange styling */
|
164 |
-
.tab-buttons {
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
}
|
169 |
-
.tab-buttons > .tabitem {
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
-
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
-
|
179 |
-
}
|
180 |
-
.tab-buttons > .tabitem.selected {
|
181 |
-
|
182 |
-
|
183 |
-
}
|
184 |
-
.tab-buttons > .tabitem:hover {
|
185 |
-
|
186 |
-
|
187 |
-
}
|
188 |
-
|
189 |
-
/* 6) Dataframe Styling */
|
190 |
-
.gr-dataframe table {
|
191 |
-
|
192 |
-
|
193 |
-
|
194 |
-
|
195 |
-
}
|
196 |
-
.gr-dataframe th {
|
197 |
-
|
198 |
-
|
199 |
-
|
200 |
-
|
201 |
-
|
202 |
-
}
|
203 |
-
.gr-dataframe td {
|
204 |
-
|
205 |
-
|
206 |
-
}
|
207 |
-
.gr-dataframe tr:nth-child(even) {
|
208 |
-
|
209 |
-
}
|
210 |
-
|
211 |
-
/* 7) Make default markdown text nice */
|
212 |
-
.markdown-text p {
|
213 |
-
|
214 |
-
|
215 |
-
}
|
216 |
-
"""
|
217 |
|
218 |
|
219 |
get_window_url_params = """
|
|
|
119 |
|
120 |
# """
|
121 |
|
122 |
+
# custom_css = """
|
123 |
+
# /* 1) Load Karbon Font: Make sure this points to your actual font files */
|
124 |
+
# @font-face {
|
125 |
+
# font-family: 'Karbon';
|
126 |
+
# src: url('path/to/Karbon.woff2') format('woff2'),
|
127 |
+
# url('path/to/Karbon.woff') format('woff');
|
128 |
+
# font-weight: normal;
|
129 |
+
# font-style: normal;
|
130 |
+
# }
|
131 |
+
|
132 |
+
# /* 2) Global Container */
|
133 |
+
# body, .gradio-container {
|
134 |
+
# font-family: 'Karbon', sans-serif;
|
135 |
+
# margin: 0;
|
136 |
+
# padding: 0;
|
137 |
+
# background-color: #fafafa; /* Light background */
|
138 |
+
# color: #000000;
|
139 |
+
# }
|
140 |
+
|
141 |
+
# .gradio-container {
|
142 |
+
# max-width: 1200px;
|
143 |
+
# margin: 0 auto;
|
144 |
+
# padding: 2rem 1rem;
|
145 |
+
# }
|
146 |
+
|
147 |
+
# /* 3) Headings, with brand color #eb088a */
|
148 |
+
# h1, h2, h3, h4, h5, h6 {
|
149 |
+
# color: #000000;
|
150 |
+
# margin-bottom: 1rem;
|
151 |
+
# font-weight: 600;
|
152 |
+
# }
|
153 |
+
|
154 |
+
# /* 4) Intro Block for a slight highlight */
|
155 |
+
# .intro-block {
|
156 |
+
# background-color: #ffe2f1; /* lighter tint of #eb088a */
|
157 |
+
# padding: 1.5rem;
|
158 |
+
# border-radius: 8px;
|
159 |
+
# border: 1px solid #f8badb;
|
160 |
+
# margin-bottom: 2rem;
|
161 |
+
# }
|
162 |
+
|
163 |
+
# /* 5) Tab styling - remove default orange styling */
|
164 |
+
# .tab-buttons {
|
165 |
+
# margin-top: 1rem;
|
166 |
+
# margin-bottom: 1rem;
|
167 |
+
# display: flex;
|
168 |
+
# }
|
169 |
+
# .tab-buttons > .tabitem {
|
170 |
+
# padding: 0.6rem 1.2rem;
|
171 |
+
# background-color: #ffffff;
|
172 |
+
# border: 1px solid #eb088a;
|
173 |
+
# border-radius: 6px;
|
174 |
+
# color: #eb088a;
|
175 |
+
# margin-right: 5px;
|
176 |
+
# cursor: pointer;
|
177 |
+
# transition: background-color 0.2s ease, color 0.2s ease;
|
178 |
+
# font-weight: 500;
|
179 |
+
# }
|
180 |
+
# .tab-buttons > .tabitem.selected {
|
181 |
+
# background-color: #eb088a;
|
182 |
+
# color: #ffffff;
|
183 |
+
# }
|
184 |
+
# .tab-buttons > .tabitem:hover {
|
185 |
+
# background-color: #eb088a;
|
186 |
+
# color: #ffffff;
|
187 |
+
# }
|
188 |
+
|
189 |
+
# /* 6) Dataframe Styling */
|
190 |
+
# .gr-dataframe table {
|
191 |
+
# width: 100%;
|
192 |
+
# border-collapse: collapse;
|
193 |
+
# border: 1px solid #cccccc;
|
194 |
+
# margin-bottom: 2rem;
|
195 |
+
# }
|
196 |
+
# .gr-dataframe th {
|
197 |
+
# background-color: #eb088a;
|
198 |
+
# color: #ffffff;
|
199 |
+
# padding: 0.6rem;
|
200 |
+
# text-align: left;
|
201 |
+
# font-weight: 600;
|
202 |
+
# }
|
203 |
+
# .gr-dataframe td {
|
204 |
+
# padding: 0.6rem;
|
205 |
+
# border-bottom: 1px solid #e0e0e0;
|
206 |
+
# }
|
207 |
+
# .gr-dataframe tr:nth-child(even) {
|
208 |
+
# background-color: #fdfdfd;
|
209 |
+
# }
|
210 |
+
|
211 |
+
# /* 7) Make default markdown text nice */
|
212 |
+
# .markdown-text p {
|
213 |
+
# margin-bottom: 1rem;
|
214 |
+
# line-height: 1.6;
|
215 |
+
# }
|
216 |
+
# """
|
217 |
|
218 |
|
219 |
get_window_url_params = """
|