Download src/static/css/gradio_styles.css from Pteclub/Mock-app: direct link, hf CLI and curl.
- Browser
- Download file 14 kB
-
https://huggingface.co/spaces/Pteclub/Mock-app/resolve/main/src/static/css/gradio_styles.css
- Command line
-
hf download hf://spaces/Pteclub/Mock-app/src/static/css/gradio_styles.css
-
curl -L -o gradio_styles.css https://huggingface.co/spaces/Pteclub/Mock-app/resolve/main/src/static/css/gradio_styles.css
14 kB
| /* | |
| * PTEra β Gradio Component Overrides | |
| * Complements the base design system in PROFESSIONAL_CSS (main.py). | |
| * All Streamlit (.st*) rules removed β they have no effect in Gradio. | |
| * | |
| * Design tokens (--gold, --ink, --teal, etc.) are defined in main.py | |
| * and cascade here automatically. | |
| */ | |
| /* βββ GRADIO SHELL βββββββββββββββββββββββββββββββββββββββββββββ */ | |
| /* Remove Gradio's default white page wrapper */ | |
| .gradio-container, | |
| .gradio-container .main, | |
| .gradio-container .wrap { | |
| background: transparent ; | |
| box-shadow: none ; | |
| border: none ; | |
| max-width: 1280px ; | |
| margin: 0 auto ; | |
| padding: 0 1.25rem ; | |
| } | |
| /* Hide Gradio branding footer */ | |
| footer, | |
| .gradio-container > footer, | |
| .svelte-1ax1toq { | |
| display: none ; | |
| } | |
| /* βββ GRADIO PANELS & BLOCKS βββββββββββββββββββββββββββββββββββ */ | |
| .gr-panel, | |
| .gr-box, | |
| .gr-form, | |
| .gr-column, | |
| .gr-group { | |
| background: transparent ; | |
| border: none ; | |
| box-shadow: none ; | |
| padding: 0 ; | |
| } | |
| /* Block-level container spacing */ | |
| .gr-block.gr-box { | |
| gap: 1rem ; | |
| } | |
| /* βββ GRADIO TABS ββββββββββββββββββββββββββββββββββββββββββββββ */ | |
| /* Hide the default Gradio tab bar everywhere except where we explicitly show it */ | |
| .gr-tab-nav, | |
| .tabs > .tab-nav { | |
| display: none ; | |
| } | |
| /* Active tab content pane β no extra chrome */ | |
| .gr-tab-item, | |
| .tabitem { | |
| background: transparent ; | |
| border: none ; | |
| padding: 0 ; | |
| } | |
| /* βββ GRADIO TEXTBOX βββββββββββββββββββββββββββββββββββββββββββ */ | |
| .gr-textbox, | |
| .gr-text-input { | |
| background: rgba(255,255,255,0.05) ; | |
| border: 1px solid rgba(255,255,255,0.10) ; | |
| border-radius: 14px ; | |
| color: #e2e8f0 ; | |
| font-size: 0.95rem ; | |
| transition: border-color 0.18s ease, box-shadow 0.18s ease ; | |
| } | |
| .gr-textbox:focus-within, | |
| .gr-text-input:focus-within { | |
| border-color: var(--gold, #c9a84c) ; | |
| box-shadow: 0 0 0 3px rgba(201,168,76,0.18) ; | |
| } | |
| .gr-textbox textarea, | |
| .gr-textbox input { | |
| background: transparent ; | |
| border: none ; | |
| color: #e2e8f0 ; | |
| font-size: 0.95rem ; | |
| caret-color: var(--gold, #c9a84c) ; | |
| padding: 0.85rem 1.1rem ; | |
| } | |
| .gr-textbox textarea::placeholder, | |
| .gr-textbox input::placeholder { | |
| color: #475569 ; | |
| } | |
| /* Character count / label row */ | |
| .gr-textbox .gr-block-label, | |
| .gr-text-input .gr-block-label { | |
| color: #64748b ; | |
| font-size: 0.72rem ; | |
| font-weight: 600 ; | |
| letter-spacing: 0.08em ; | |
| text-transform: uppercase ; | |
| } | |
| /* βββ GRADIO DROPDOWN / SELECT βββββββββββββββββββββββββββββββββ */ | |
| .gr-dropdown, | |
| .gr-dropdown .wrap-inner { | |
| background: rgba(255,255,255,0.05) ; | |
| border: 1px solid rgba(255,255,255,0.10) ; | |
| border-radius: 14px ; | |
| color: #e2e8f0 ; | |
| } | |
| .gr-dropdown:focus-within { | |
| border-color: var(--gold, #c9a84c) ; | |
| box-shadow: 0 0 0 3px rgba(201,168,76,0.18) ; | |
| } | |
| /* Dropdown popup panel */ | |
| .gr-dropdown ul, | |
| .gr-dropdown .options { | |
| background: #1a1d26 ; | |
| border: 1px solid rgba(255,255,255,0.10) ; | |
| border-radius: 12px ; | |
| box-shadow: 0 16px 40px rgba(0,0,0,0.45) ; | |
| overflow: hidden ; | |
| } | |
| .gr-dropdown li, | |
| .gr-dropdown .item { | |
| color: #94a3b8 ; | |
| font-size: 0.9rem ; | |
| padding: 0.75rem 1.1rem ; | |
| transition: background 0.14s ease, color 0.14s ease ; | |
| } | |
| .gr-dropdown li:hover, | |
| .gr-dropdown .item:hover { | |
| background: rgba(201,168,76,0.10) ; | |
| color: var(--gold-light, #e2c46a) ; | |
| } | |
| .gr-dropdown li.selected, | |
| .gr-dropdown .item.selected { | |
| background: rgba(201,168,76,0.15) ; | |
| color: var(--gold-light, #e2c46a) ; | |
| font-weight: 600 ; | |
| } | |
| /* βββ GRADIO RADIO βββββββββββββββββββββββββββββββββββββββββββββ */ | |
| .gr-radio-row, | |
| .gr-radio { | |
| gap: 0.5rem ; | |
| } | |
| /* Individual radio item container */ | |
| .gr-radio label, | |
| .gr-radio .label-wrap { | |
| background: rgba(255,255,255,0.03) ; | |
| border: 1px solid rgba(255,255,255,0.08) ; | |
| border-radius: 10px ; | |
| padding: 0.85rem 1.1rem ; | |
| color: #94a3b8 ; | |
| font-size: 0.9rem ; | |
| font-weight: 500 ; | |
| cursor: pointer ; | |
| transition: all 0.16s ease ; | |
| } | |
| .gr-radio label:hover { | |
| background: rgba(201,168,76,0.07) ; | |
| border-color: rgba(201,168,76,0.22) ; | |
| color: var(--gold-light, #e2c46a) ; | |
| transform: translateX(3px) ; | |
| } | |
| /* Checked state */ | |
| .gr-radio input[type="radio"]:checked + label, | |
| .gr-radio .selected { | |
| background: rgba(201,168,76,0.12) ; | |
| border-color: rgba(201,168,76,0.35) ; | |
| color: var(--gold-light, #e2c46a) ; | |
| font-weight: 600 ; | |
| } | |
| /* Native radio dot β hide in favour of the border highlight */ | |
| .gr-radio input[type="radio"] { | |
| accent-color: var(--gold, #c9a84c) ; | |
| } | |
| /* βββ GRADIO SLIDER ββββββββββββββββββββββββββββββββββββββββββββ */ | |
| .gr-slider input[type="range"] { | |
| accent-color: var(--gold, #c9a84c) ; | |
| } | |
| .gr-slider .output-class { | |
| color: var(--gold-light, #e2c46a) ; | |
| font-weight: 600 ; | |
| } | |
| /* βββ GRADIO CHECKBOX ββββββββββββββββββββββββββββββββββββββββββ */ | |
| .gr-checkbox input[type="checkbox"] { | |
| accent-color: var(--gold, #c9a84c) ; | |
| } | |
| .gr-checkbox label { | |
| color: #94a3b8 ; | |
| font-size: 0.9rem ; | |
| } | |
| /* βββ GRADIO MARKDOWN OUTPUT βββββββββββββββββββββββββββββββββββ */ | |
| .gr-markdown, | |
| .gr-markdown p, | |
| .prose p { | |
| color: #94a3b8 ; | |
| font-size: 0.95rem ; | |
| line-height: 1.72 ; | |
| } | |
| .gr-markdown h1, .gr-markdown h2, .gr-markdown h3, | |
| .gr-markdown h4, .gr-markdown h5, .gr-markdown h6 { | |
| font-family: 'DM Serif Display', Georgia, serif ; | |
| color: #e2e8f0 ; | |
| -webkit-text-fill-color: #e2e8f0 ; | |
| background: none ; | |
| } | |
| .gr-markdown strong, .gr-markdown b { | |
| color: var(--gold-light, #e2c46a) ; | |
| font-weight: 700 ; | |
| } | |
| .gr-markdown em, .gr-markdown i { | |
| color: #cbd5e1 ; | |
| } | |
| .gr-markdown code { | |
| background: rgba(255,255,255,0.07) ; | |
| border: 1px solid rgba(255,255,255,0.10) ; | |
| border-radius: 5px ; | |
| padding: 0.15em 0.45em ; | |
| font-family: 'JetBrains Mono', monospace ; | |
| font-size: 0.85em ; | |
| color: var(--teal, #2dd4bf) ; | |
| } | |
| .gr-markdown pre { | |
| background: rgba(13,15,20,0.8) ; | |
| border: 1px solid rgba(255,255,255,0.08) ; | |
| border-radius: 12px ; | |
| padding: 1.25rem ; | |
| } | |
| .gr-markdown ul, | |
| .gr-markdown ol { | |
| padding-left: 1.4rem ; | |
| } | |
| .gr-markdown li { | |
| color: #94a3b8 ; | |
| margin-bottom: 0.4rem ; | |
| } | |
| .gr-markdown a { | |
| color: var(--gold-light, #e2c46a) ; | |
| text-decoration: none ; | |
| border-bottom: 1px solid rgba(201,168,76,0.3) ; | |
| transition: border-color 0.14s ease ; | |
| } | |
| .gr-markdown a:hover { | |
| border-bottom-color: var(--gold-light, #e2c46a) ; | |
| } | |
| .gr-markdown hr { | |
| border: none ; | |
| border-top: 1px solid rgba(255,255,255,0.08) ; | |
| margin: 1.5rem 0 ; | |
| } | |
| .gr-markdown blockquote { | |
| border-left: 3px solid var(--gold, #c9a84c) ; | |
| background: rgba(201,168,76,0.05) ; | |
| padding: 0.75rem 1.25rem ; | |
| border-radius: 0 8px 8px 0 ; | |
| margin: 1rem 0 ; | |
| color: #cbd5e1 ; | |
| } | |
| /* βββ GRADIO AUDIO COMPONENT βββββββββββββββββββββββββββββββββββ */ | |
| .gr-audio, | |
| .gr-audio audio { | |
| background: rgba(255,255,255,0.04) ; | |
| border: 1px solid rgba(255,255,255,0.08) ; | |
| border-radius: 14px ; | |
| padding: 0.75rem ; | |
| width: 100% ; | |
| } | |
| .gr-audio .controls { | |
| filter: invert(1) hue-rotate(180deg) ; | |
| } | |
| /* βββ GRADIO FILE / IMAGE UPLOAD βββββββββββββββββββββββββββββββ */ | |
| .gr-file, | |
| .gr-image { | |
| background: rgba(255,255,255,0.03) ; | |
| border: 1px dashed rgba(255,255,255,0.12) ; | |
| border-radius: 14px ; | |
| transition: border-color 0.18s ease ; | |
| } | |
| .gr-file:hover, | |
| .gr-image:hover { | |
| border-color: rgba(201,168,76,0.35) ; | |
| background: rgba(201,168,76,0.04) ; | |
| } | |
| .gr-file .upload-text, | |
| .gr-image .upload-text { | |
| color: #475569 ; | |
| } | |
| /* βββ GRADIO DATAFRAME / TABLE βββββββββββββββββββββββββββββββββ */ | |
| .gr-dataframe table { | |
| border-collapse: collapse ; | |
| width: 100% ; | |
| } | |
| .gr-dataframe th { | |
| background: rgba(201,168,76,0.10) ; | |
| color: var(--gold-light, #e2c46a) ; | |
| font-size: 0.75rem ; | |
| font-weight: 700 ; | |
| letter-spacing: 0.08em ; | |
| text-transform: uppercase ; | |
| padding: 0.75rem 1rem ; | |
| border-bottom: 1px solid rgba(201,168,76,0.2) ; | |
| } | |
| .gr-dataframe td { | |
| color: #94a3b8 ; | |
| padding: 0.7rem 1rem ; | |
| border-bottom: 1px solid rgba(255,255,255,0.05) ; | |
| font-size: 0.88rem ; | |
| } | |
| .gr-dataframe tr:hover td { | |
| background: rgba(255,255,255,0.025) ; | |
| color: #e2e8f0 ; | |
| } | |
| /* βββ GRADIO PROGRESS / LOADING ββββββββββββββββββββββββββββββββ */ | |
| /* Spinner */ | |
| .gr-loading .loader { | |
| border-color: rgba(255,255,255,0.12) ; | |
| border-top-color: var(--gold, #c9a84c) ; | |
| } | |
| /* Generation progress bar (streaming) */ | |
| .generating { | |
| border: none ; | |
| background: linear-gradient(90deg, var(--gold, #c9a84c), var(--teal, #2dd4bf)) ; | |
| height: 2px ; | |
| } | |
| /* βββ GRADIO ROW SPACING βββββββββββββββββββββββββββββββββββββββ */ | |
| .gr-row { | |
| gap: 1rem ; | |
| align-items: stretch ; | |
| } | |
| /* βββ GRADIO ACCORDION βββββββββββββββββββββββββββββββββββββββββ */ | |
| .gr-accordion { | |
| background: rgba(255,255,255,0.03) ; | |
| border: 1px solid rgba(255,255,255,0.08) ; | |
| border-radius: 14px ; | |
| overflow: hidden ; | |
| } | |
| .gr-accordion .label-wrap { | |
| padding: 1rem 1.25rem ; | |
| color: #94a3b8 ; | |
| font-weight: 600 ; | |
| font-size: 0.9rem ; | |
| transition: background 0.16s ease ; | |
| } | |
| .gr-accordion .label-wrap:hover { | |
| background: rgba(201,168,76,0.07) ; | |
| color: var(--gold-light, #e2c46a) ; | |
| } | |
| .gr-accordion .inner { | |
| padding: 1rem 1.25rem 1.25rem ; | |
| border-top: 1px solid rgba(255,255,255,0.07) ; | |
| } | |
| /* βββ SCROLLBAR ββββββββββββββββββββββββββββββββββββββββββββββββ */ | |
| ::-webkit-scrollbar { width: 6px; height: 6px; } | |
| ::-webkit-scrollbar-track { background: rgba(255,255,255,0.03); border-radius: 3px; } | |
| ::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 3px; } | |
| ::-webkit-scrollbar-thumb:hover { background: rgba(201,168,76,0.35); } | |
| /* βββ SELECTION HIGHLIGHT ββββββββββββββββββββββββββββββββββββββ */ | |
| ::selection { | |
| background: rgba(201,168,76,0.28) ; | |
| color: #f0f2f7 ; | |
| } | |
| /* βββ FOCUS RING (accessibility) βββββββββββββββββββββββββββββββ */ | |
| *:focus-visible { | |
| outline: 2px solid var(--gold, #c9a84c) ; | |
| outline-offset: 2px ; | |
| } | |
| /* βββ RESPONSIVE βββββββββββββββββββββββββββββββββββββββββββββββ */ | |
| @media (max-width: 768px) { | |
| .gradio-container, | |
| .gradio-container .main { | |
| padding: 0 0.75rem ; | |
| } | |
| .gr-row { | |
| flex-direction: column ; | |
| } | |
| } |