Download styles.css from grasant/proportio: direct link, hf CLI and curl.
- Browser
- Download file 4.03 kB
-
https://huggingface.co/spaces/grasant/proportio/resolve/main/styles.css
- Command line
-
hf download hf://spaces/grasant/proportio/styles.css
-
curl -L -o styles.css https://huggingface.co/spaces/grasant/proportio/resolve/main/styles.css
4.03 kB
| /* ---------- Proportio Minimal Theme ---------- */ | |
| :root{ | |
| --primary: #7c1212; | |
| --secondary: #a10907; | |
| --accent: #8f9190; | |
| } | |
| /* Logo visibility and alignment fix */ | |
| .gradio-row { | |
| display: flex ; | |
| align-items: center ; | |
| gap: 16px ; | |
| } | |
| .gradio-column { | |
| display: flex ; | |
| align-items: center ; | |
| height: auto ; | |
| } | |
| /* Target the first column (logo) */ | |
| .gradio-column:first-child { | |
| justify-content: center ; | |
| align-items: center ; | |
| } | |
| /* Target the second column (text) */ | |
| .gradio-column:last-child { | |
| justify-content: flex-start ; | |
| align-items: center ; | |
| } | |
| .gradio-image { | |
| display: flex ; | |
| align-items: center ; | |
| justify-content: center ; | |
| margin: 0 ; | |
| padding: 0 ; | |
| } | |
| .gradio-image img { | |
| display: block ; | |
| opacity: 1 ; | |
| visibility: visible ; | |
| } | |
| /* Ensure the brand section is vertically centered */ | |
| .p-brand { | |
| display: flex ; | |
| flex-direction: column ; | |
| justify-content: center ; | |
| margin: 0 ; | |
| padding: 0 ; | |
| } | |
| .p-title { | |
| margin: 0 ; | |
| line-height: 1.2 ; | |
| } | |
| .p-tagline { | |
| margin: 0 ; | |
| line-height: 1.2 ; | |
| } | |
| /* Override blue colors with primary red */ | |
| .gradio-tabs button { | |
| background-color: var(--primary) ; | |
| border-color: var(--primary) ; | |
| } | |
| .gradio-tabs button:hover { | |
| background-color: var(--secondary) ; | |
| border-color: var(--secondary) ; | |
| } | |
| .gradio-tabs button[aria-selected="true"] { | |
| background-color: var(--primary) ; | |
| border-color: var(--primary) ; | |
| color: var(--accent) ; | |
| } | |
| .gradio-tabs button[aria-selected="true"] span { | |
| color: var(--accent) ; | |
| } | |
| /* Override any blue accents */ | |
| .tab-nav button { | |
| background-color: var(--primary) ; | |
| border-color: var(--primary) ; | |
| } | |
| /* Target selected tab text colors */ | |
| button[role="tab"][aria-selected="true"] { | |
| color: var(--accent) ; | |
| } | |
| button[role="tab"][aria-selected="true"] span { | |
| color: var(--accent) ; | |
| } | |
| /* Override blue text in tabs */ | |
| .gradio-tabs button span { | |
| color: var(--accent) ; | |
| } | |
| /* Override blue underlines/borders on selected tabs */ | |
| .gradio-tabitem, | |
| .gradio-tabs .tab-nav button[aria-selected="true"]::after, | |
| .gradio-tabs button[aria-selected="true"]::after, | |
| button[role="tab"][aria-selected="true"]::after { | |
| border-bottom-color: var(--secondary) ; | |
| background-color: var(--secondary) ; | |
| } | |
| /* Target the tab indicator line - more specific selectors */ | |
| .gradio-tabs .tab-nav .tab-indicator, | |
| .gradio-tabs .selected-tab-indicator, | |
| .gradio-tabs button[aria-selected="true"] + .tab-indicator, | |
| .gradio-tabs button[aria-selected="true"]::before, | |
| .gradio-tabs button[data-selected="true"]::before, | |
| div[role="tablist"] button[aria-selected="true"]::before, | |
| div[role="tablist"] button[aria-selected="true"]::after, | |
| .gradio-tabs .tab-nav button::before, | |
| .gradio-tabs .tab-nav button::after { | |
| background-color: var(--secondary) ; | |
| border-color: var(--secondary) ; | |
| background: var(--secondary) ; | |
| } | |
| /* Override any remaining blue accents - comprehensive approach */ | |
| .gradio-tabs button[aria-selected="true"] { | |
| border-bottom: 2px solid var(--secondary) ; | |
| box-shadow: inset 0 -2px 0 var(--secondary) ; | |
| } | |
| /* Target Gradio's internal tab styling */ | |
| .gradio-tabs button[data-selected="true"], | |
| button[role="tab"][data-selected="true"] { | |
| border-bottom-color: var(--secondary) ; | |
| box-shadow: inset 0 -2px 0 var(--secondary) ; | |
| } | |
| /* Override blue focus states */ | |
| .gradio-tabs button:focus { | |
| outline-color: var(--secondary) ; | |
| border-color: var(--secondary) ; | |
| } |