Spaces:
Sleeping
Sleeping
File size: 8,632 Bytes
0e8a03a 57f6cce ab5d575 57f6cce ab5d575 f17ba29 ab5d575 349b4c0 f17ba29 ed2dd1e 349b4c0 f17ba29 ed2dd1e ab5d575 f17ba29 349b4c0 ab5d575 f17ba29 349b4c0 ab5d575 f17ba29 671df1d f17ba29 ab5d575 f17ba29 ab5d575 f17ba29 ab5d575 f17ba29 ab5d575 f17ba29 ab5d575 f17ba29 ab5d575 ef959f8 ab5d575 f17ba29 ab5d575 ef959f8 f17ba29 ab5d575 f17ba29 daaf70d ab5d575 f17ba29 daaf70d f17ba29 ab5d575 daaf70d f17ba29 349b4c0 ab5d575 349b4c0 f17ba29 ab5d575 f17ba29 ab5d575 f17ba29 ab5d575 f17ba29 ab5d575 f17ba29 ab5d575 4cde644 f17ba29 ab5d575 f17ba29 ab5d575 f17ba29 b92da5d f17ba29 07bb213 be15be7 07bb213 be15be7 ab5d575 f22ca45 b92da5d be15be7 07bb213 be15be7 ab5d575 f17ba29 b92da5d 671df1d be15be7 671df1d 07bb213 be15be7 671df1d 07bb213 be15be7 671df1d 07bb213 671df1d 07bb213 be15be7 07bb213 b92da5d 671df1d 74bf559 671df1d e3d3b98 ab5d575 e3d3b98 84f9e30 8f0cd9c 1da1d97 8f0cd9c 1da1d97 8f0cd9c 671df1d 4cde644 671df1d ab5d575 84f9e30 ab5d575 fb877dd ab5d575 fb877dd ab5d575 fb877dd ab5d575 b92da5d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 |
/* ------------------------------------------------------------------
General body style
------------------------------------------------------------------ */
body {
font-family: Arial, sans-serif;
background-color: #FFFFFF;
margin: 20px;
color: #000000;
}
/* ------------------------------------------------------------------
Headings & Subtitle
------------------------------------------------------------------ */
h1, h2, h3, .subtitle, .variants_container {
color: #000000;
display: flex;
text-align: center;
justify-content: center;
}
h1 {
font-size: 2.3rem;
font-weight: 700;
margin-top: 2rem;
}
.subtitle {
margin-bottom: 50px;
color: #000000 !important;
}
/* ------------------------------------------------------------------
Variants Container (Filters)
------------------------------------------------------------------ */
.variants_container {
margin: 50px auto;
border-radius: 10px;
display: flex;
flex-direction: column;
justify-content: center;
padding: 15px;
width: fit-content;
color: #000000 !important;
background-color: #F5F5F5;
}
.variants_title {
font-size: 20px;
font-weight: 500;
color: #000000 !important;
}
/* Force all descendants of the variants container to be dark */
.variants_container,
.variants_container * {
color: #000000 !important;
}
/* ------------------------------------------------------------------
Table styling
------------------------------------------------------------------ */
table {
width: 100%;
/* border-collapse: separate; */
border-radius: 10px;
overflow: hidden;
margin-top: 20px;
}
table th {
background-color: #F0F0F0;
color: #000000;
font-weight: bold;
font-size: 18px;
border: 1px solid #CCCCCC;
}
table tr:not(:first-child):nth-child(odd) {
background-color: #F8F8F8;
}
table tr:not(:first-child):nth-child(even) {
background-color: #F0F0F0;
}
table tr:not(:first-child):nth-child(odd) td {
color: #000000;
border: 1px solid #CCCCCC;
}
table tr:not(:first-child):nth-child(even) td {
color: #000000;
border: 1px solid #CCCCCC;
}
th, td {
padding: 8px;
text-align: center;
border: 1px solid #DDDDDD;
}
/* ------------------------------------------------------------------
Buttons
------------------------------------------------------------------ */
button {
background-color: #c34700b6;
color: #000000;
border: none;
padding: 8px 12px;
border-radius: 4px;
cursor: pointer;
font-size: 14px;
transition: all 0.3s ease;
}
button:hover {
background-color: #c34800;
transform: translateY(-2px);
box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
/* Style the checkbox to have an orange checkmark */
input[type="checkbox"] {
accent-color: #F0F0F0;
}
/* Create a custom appearance for checked checkboxes */
input[type="checkbox"]:checked {
position: relative;
appearance: none;
background-color: #F0F0F0;
border: 1px solid #CCCCCC;
border-radius: 3px;
}
input[type="checkbox"]:checked::before {
content: '✓';
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
color: #c34700; /* Orange color for the checkmark */
font-size: 14px;
font-weight: bold;
}
/* ------------------------------------------------------------------
Sort‐info Banner
------------------------------------------------------------------ */
.sort-info {
text-align: center;
margin: 10px 0;
padding: 5px;
background-color: #F0F0F0;
border-radius: 5px;
font-size: 16px;
}
.sort-info,
.sort-info * {
color: #000000 !important;
}
/* ------------------------------------------------------------------
Checkboxes Container
------------------------------------------------------------------ */
.gradio-container .checkbox-container {
margin-right: 10px;
background-color: #F5F5F5;
padding: 8px;
border-radius: 5px;
}
/* ------------------------------------------------------------------
Search Input
------------------------------------------------------------------ */
input[type="text"] {
background-color: #FFFFFF;
color: #000000;
border: 1px solid #CCCCCC;
border-radius: 5px;
padding: 10px;
width: 100%;
margin-bottom: 15px;
font-size: 16px;
}
input[type="text"]:focus {
border-color: #000000;
outline: none;
box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}
/* ------------------------------------------------------------------
No‐results Message
------------------------------------------------------------------ */
.no-results {
color: #000000;
text-align: center;
padding: 30px;
background-color: #F5F5F5;
border-radius: 10px;
font-size: 18px;
margin-top: 20px;
}
/* ------------------------------------------------------------------
Checkbox Panel and Search Panel - High Specificity Rules
------------------------------------------------------------------ */
/* Only target the specific checkbox and search panels */
#checkbox-panel,
div.checkbox-panel,
div[id="checkbox-panel"],
.gradio-container div[id="checkbox-panel"],
.gradio-container .checkbox-panel {
background-color: #F0F0F0 !important;
padding: 12px !important;
border-radius: 6px !important;
margin-bottom: 1rem !important;
}
#search-panel,
div.search-panel,
div[id="search-panel"],
.gradio-container div[id="search-panel"],
.gradio-container .search-panel {
background-color: #F0F0F0 !important;
padding: 12px !important;
border-radius: 6px !important;
margin-bottom: 1rem !important;
}
/* Make inner components transparent to let background show through */
#checkbox-panel *, .checkbox-panel * {
background-color: transparent !important;
}
#search-panel *, .search-panel * {
background-color: transparent !important;
}
/* Override other styles that might be affecting the color */
div[class*="block"] {
background-color: initial; /* Reset to default */
}
/* Only make transparent what we need to be transparent */
.checkbox-panel .form,
.checkbox-panel .block,
.checkbox-panel .container,
.checkbox-panel input[type="checkbox"],
.search-panel .form,
.search-panel .block,
.search-panel .container,
.search-panel input[type="text"] {
background-color: transparent !important;
}
/* Make the textbox border visible with the same color as the text */
.search-panel input[type="text"] {
border: 2px solid #27272A !important;
background-color: #FFFFFF !important;
color: #27272A !important;
}
/* Target the specific textarea in the search panel */
.search-panel textarea,
textarea[data-testid="textbox"],
textarea.svelte-173056l {
color: #3d3d3d !important;
background-color: #FFFFFF !important;
border: 2px solid #cfcfcf !important;
}
/* Ensure input text and placeholder have consistent styling */
.search-panel input[type="text"],
.search-panel input[type="text"]::placeholder {
color: rgba(0,0,0,0.7) !important;
}
/* Ensure the search panel label is black */
.search-panel label,
.search-panel .label-wrap,
.search-panel .label-wrap span {
color: #000000 !important;
}
/* Override any Gradio specific label styling */
#search-panel label,
div[id="search-panel"] label,
.gradio-container #search-panel label {
color: #000000 !important;
}
/* Make sure the input text is black when user types */
#search-panel input[type="text"],
div[id="search-panel"] input[type="text"],
.search-panel input[type="text"] {
color: #000000 !important;
}
/* Style the checkbox labels to ensure they have black text */
.checkbox-panel label,
.checkbox-panel .label-wrap,
.checkbox-panel .label-wrap span {
color: #000000 !important;
}
/* Make the checkbox text fully opaque and sharp */
.checkbox-panel input[type="checkbox"] + label,
.checkbox-panel input[type="checkbox"] ~ label,
.checkbox-panel input[type="checkbox"] ~ div label {
color: #000000 !important;
opacity: 1 !important;
font-weight: normal;
}
/* Root level variable override */
:root {
--block-background-fill: transparent !important;
--panel-background-fill: #F0F0F0 !important;
}
/* Target the specific Gradio label element */
span[data-testid="block-info"],
.svelte-1gfkn6j,
span.svelte-1gfkn6j,
[data-testid="block-info"] {
color: #000000 !important;
}
/* Force all span elements in the search panel to be black */
.search-panel span,
#search-panel span,
div[id="search-panel"] span {
color: #000000 !important;
} |