Spaces:
Running
Running
| /* ------------------------------------------------------------------ | |
| 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 ; | |
| } | |
| /* ------------------------------------------------------------------ | |
| 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 ; | |
| background-color: #F5F5F5; | |
| } | |
| .variants_title { | |
| font-size: 20px; | |
| font-weight: 500; | |
| color: #000000 ; | |
| } | |
| /* Force all descendants of the variants container to be dark */ | |
| .variants_container, | |
| .variants_container * { | |
| color: #000000 ; | |
| } | |
| /* ------------------------------------------------------------------ | |
| 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 ; | |
| } | |
| /* ------------------------------------------------------------------ | |
| 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 ; | |
| padding: 12px ; | |
| border-radius: 6px ; | |
| margin-bottom: 1rem ; | |
| } | |
| #search-panel, | |
| div.search-panel, | |
| div[id="search-panel"], | |
| .gradio-container div[id="search-panel"], | |
| .gradio-container .search-panel { | |
| background-color: #F0F0F0 ; | |
| padding: 12px ; | |
| border-radius: 6px ; | |
| margin-bottom: 1rem ; | |
| } | |
| /* Make inner components transparent to let background show through */ | |
| #checkbox-panel *, .checkbox-panel * { | |
| background-color: transparent ; | |
| } | |
| #search-panel *, .search-panel * { | |
| background-color: transparent ; | |
| } | |
| /* 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 ; | |
| } | |
| /* Make the textbox border visible with the same color as the text */ | |
| .search-panel input[type="text"] { | |
| border: 2px solid #27272A ; | |
| background-color: #FFFFFF ; | |
| color: #27272A ; | |
| } | |
| /* Target the specific textarea in the search panel */ | |
| .search-panel textarea, | |
| textarea[data-testid="textbox"], | |
| textarea.svelte-173056l { | |
| color: #3d3d3d ; | |
| background-color: #FFFFFF ; | |
| border: 2px solid #cfcfcf ; | |
| } | |
| /* 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) ; | |
| } | |
| /* Ensure the search panel label is black */ | |
| .search-panel label, | |
| .search-panel .label-wrap, | |
| .search-panel .label-wrap span { | |
| color: #000000 ; | |
| } | |
| /* Override any Gradio specific label styling */ | |
| #search-panel label, | |
| div[id="search-panel"] label, | |
| .gradio-container #search-panel label { | |
| color: #000000 ; | |
| } | |
| /* 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 ; | |
| } | |
| /* Style the checkbox labels to ensure they have black text */ | |
| .checkbox-panel label, | |
| .checkbox-panel .label-wrap, | |
| .checkbox-panel .label-wrap span { | |
| color: #000000 ; | |
| } | |
| /* 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 ; | |
| opacity: 1 ; | |
| font-weight: normal; | |
| } | |
| /* Root level variable override */ | |
| :root { | |
| --block-background-fill: transparent ; | |
| --panel-background-fill: #F0F0F0 ; | |
| } | |
| /* Target the specific Gradio label element */ | |
| span[data-testid="block-info"], | |
| .svelte-1gfkn6j, | |
| span.svelte-1gfkn6j, | |
| [data-testid="block-info"] { | |
| color: #000000 ; | |
| } | |
| /* Force all span elements in the search panel to be black */ | |
| .search-panel span, | |
| #search-panel span, | |
| div[id="search-panel"] span { | |
| color: #000000 ; | |
| } |