Spaces:
Running
Running
Download style.css from Kapanther/manga-translator: direct link, hf CLI and curl.
- Browser
- Download file 6.5 kB
-
https://huggingface.co/spaces/Kapanther/manga-translator/resolve/main/style.css
- Command line
-
hf download hf://spaces/Kapanther/manga-translator/style.css
-
curl -L -o style.css https://huggingface.co/spaces/Kapanther/manga-translator/resolve/main/style.css
6.5 kB
| /* --- SETTINGS LAYOUT --- */ | |
| #settings-tab-container { padding-top: 15px; } | |
| /* --- NAVIGATION SIDEBAR --- */ | |
| #settings-nav { | |
| width: 15em ; padding: 10px 5px 10px 10px ; | |
| border-right: 1px solid var(--border-color-primary); min-width: 15em ; | |
| flex-grow: 0 ; flex-shrink: 0 ; | |
| } | |
| #settings-nav button.nav-button { | |
| display: block ; width: 100% ; border: none ; | |
| background: none ; text-align: left ; | |
| padding: 8px 10px ; | |
| margin-bottom: 4px ; | |
| border-radius: 4px ; | |
| color: var(--body-text-color) ; | |
| font-size: var(--text-lg) ; | |
| transition: background-color 0.1s ease, color 0.1s ease; | |
| font-weight: bold ; | |
| cursor: pointer; | |
| } | |
| #settings-nav button.nav-button:hover { | |
| background-color: var(--background-fill-secondary-hover) ; | |
| color: var(--body-text-color-hover) ; | |
| } | |
| #settings-nav button.nav-button-selected { | |
| background-color: var(--neutral-100) ; | |
| color: var(--neutral-800) ; | |
| } | |
| /* --- DARK THEME --- */ | |
| .dark #settings-nav button.nav-button-selected { | |
| background-color: var(--neutral-700) ; | |
| color: var(--primary-300) ; | |
| } | |
| /* --- SETTINGS CONTENT --- */ | |
| #config-content-area { | |
| padding-left: 20px; | |
| padding-right: 15px; | |
| } | |
| #config-content-area .settings-group { | |
| padding: 0; | |
| border: none; | |
| border-radius: 0; | |
| margin-bottom: 25px; | |
| background-color: transparent; | |
| } | |
| /* Style the subsection headers within groups */ | |
| #config-content-area .settings-group .prose h3 { | |
| margin-top: 0; | |
| margin-bottom: 1.25em; | |
| padding-bottom: 0.5em; | |
| border-bottom: 1px solid var(--border-color-primary); | |
| font-size: var(--text-lg); | |
| font-weight: bold; | |
| color: var(--body-text-color); | |
| } | |
| /* --- Core Reset for Gradio Component Blocks/Wrappers within settings --- */ | |
| #config-content-area .settings-group .block, | |
| #config-content-area .settings-group div.form, | |
| #config-content-area .settings-group div.styler { | |
| background: transparent ; | |
| border-width: 0 ; | |
| box-shadow: none ; | |
| padding: 0 ; | |
| margin-bottom: 1.3em; | |
| } | |
| /* --- Label Styling --- */ | |
| #config-content-area .settings-group .block > label, | |
| #config-content-area .settings-group div.styler > label { | |
| display: block; | |
| font-weight: bold ; | |
| font-size: var(--text-md) ; | |
| color: var(--body-text-color) ; | |
| margin-bottom: 0.6em ; | |
| padding: 0 ; | |
| } | |
| /* If labels have spans, target that */ | |
| #config-content-area .settings-group .block > label > span:not(.has-info), | |
| #config-content-area .settings-group div.styler > label > span:not(.has-info) { | |
| margin-bottom: 0.6em ; | |
| padding: 0 ; | |
| } | |
| /* --- Component-Specific Fine-tuning (Minimal) --- */ | |
| /* Sliders */ | |
| #config-content-area .settings-group .gradio-slider input[type="number"] { | |
| width: 5em; | |
| margin-left: 8px; | |
| border-width: 1px ; | |
| box-shadow: none ; | |
| } | |
| #config-content-area .settings-group .gradio-slider .wrap { | |
| padding: 0 ; | |
| } | |
| /* Dropdowns/Textboxes */ | |
| #config-content-area .settings-group .gradio-dropdown input, | |
| #config-content-area .settings-group .gradio-dropdown select, | |
| #config-content-area .settings-group .gradio-textbox input { | |
| width: 100%; | |
| border-width: none ; | |
| box-shadow: none ; | |
| } | |
| #config-content-area .settings-group .gradio-dropdown .wrap-inner, | |
| #config-content-area .settings-group .gradio-textbox .wrap-inner { | |
| padding: 0 ; | |
| border: none ; | |
| } | |
| /* Checkboxes */ | |
| #config-content-area .settings-group .gradio-checkbox label { | |
| display: flex ; | |
| align-items: center ; | |
| font-weight: normal ; | |
| margin-bottom: 0 ; | |
| } | |
| #config-content-area .settings-group .gradio-checkbox label span { | |
| font-weight: normal ; | |
| margin-bottom: 0 ; | |
| } | |
| #config-content-area .settings-group .gradio-checkbox input[type="checkbox"] { | |
| margin-right: 8px; | |
| width: 16px; | |
| height: 16px; | |
| accent-color: var(--primary-500); | |
| cursor: pointer; | |
| border-width: 1px ; | |
| box-shadow: none ; | |
| } | |
| /* Radio Buttons */ | |
| #config-content-area .settings-group .gradio-radio .radio-buttons { | |
| display: flex; | |
| flex-wrap: wrap; | |
| gap: 15px; | |
| margin-top: 5px; | |
| } | |
| #config-content-area .settings-group .gradio-radio .radio-buttons > label { | |
| display: flex ; | |
| align-items: center ; | |
| font-weight: normal ; | |
| margin-bottom: 0 ; | |
| cursor: pointer; | |
| } | |
| #config-content-area .settings-group .gradio-radio .radio-buttons label span { | |
| font-weight: normal ; | |
| margin-bottom: 0 ; | |
| } | |
| #config-content-area .settings-group .gradio-radio input[type="radio"] { | |
| margin-right: 5px; | |
| accent-color: var(--primary-500); | |
| cursor: pointer; | |
| border-width: 1px ; | |
| box-shadow: none ; | |
| } | |
| /* --- CONFIG BUTTON --- */ | |
| .config-button { | |
| margin-bottom: 20px ; | |
| font-weight: normal ; | |
| display: inline-block ; | |
| width: auto ; | |
| max-width: 170px ; | |
| font-size: 1.0em ; | |
| background-color: var(--neutral-100) ; | |
| color: var(--neutral-800) ; | |
| border: none ; | |
| padding: 8px 16px ; | |
| border-radius: 4px ; | |
| transition: background-color 0.2s ease, color 0.2s ease ; | |
| } | |
| .config-button:hover { | |
| background-color: var(--background-fill-secondary-hover) ; | |
| color: var(--body-text-color-hover) ; | |
| } | |
| .dark .config-button { | |
| background-color: var(--neutral-800) ; | |
| color: var(--body-text-color-hover) ; | |
| } | |
| .dark .config-button:hover { | |
| background-color: var(--neutral-900) ; | |
| } | |
| /* --- STATUS MESSAGES --- */ | |
| #config_status p, #config_status div.prose { | |
| margin: 0; | |
| padding-left: 5px; | |
| } | |
| /* --- CONFIG BUTTONS --- */ | |
| #config-button-row { | |
| margin-bottom: 5px; | |
| } | |
| /* Hide status message initially*/ | |
| #config_status { | |
| display: none; | |
| } | |
| /* --- IMAGE PREVIEW RESIZING --- */ | |
| #translator_input_image img, | |
| #translator_output_image img { | |
| display: block; | |
| max-height: 1152px; | |
| width: auto; | |
| max-width: 100%; | |
| height: auto; | |
| object-fit: contain; | |
| margin: auto; | |
| } | |