Spaces:
Running
Running
Download lib/header.css from zermok/ebook2audiobook: direct link, hf CLI and curl.
- Browser
- Download file 33.2 kB
-
https://huggingface.co/spaces/zermok/ebook2audiobook/resolve/main/lib/header.css
- Command line
-
hf download hf://spaces/zermok/ebook2audiobook/lib/header.css
-
curl -L -o header.css https://huggingface.co/spaces/zermok/ebook2audiobook/resolve/main/lib/header.css
33.2 kB
| /* Global Scrollbar Customization */ | |
| /* The entire scrollbar */ | |
| ::-webkit-scrollbar { | |
| width: 6px ; | |
| height: 6px ; | |
| cursor: pointer ;; | |
| } | |
| /* The scrollbar track (background) */ | |
| ::-webkit-scrollbar-track { | |
| background: none transparent ; | |
| border-radius: 6px ; | |
| } | |
| /* The scrollbar thumb (scroll handle) */ | |
| ::-webkit-scrollbar-thumb { | |
| background: #c09340 ; | |
| border-radius: 6px ; | |
| } | |
| /* The scrollbar thumb on hover */ | |
| ::-webkit-scrollbar-thumb:hover { | |
| background: #ff8c00 ; | |
| } | |
| /* Firefox scrollbar styling */ | |
| html { | |
| scrollbar-width: thin ; | |
| scrollbar-color: #c09340 transparent | |
| } | |
| button:disabled { | |
| pointer-events: none; | |
| } | |
| button div.wrap span { | |
| display: none ; | |
| } | |
| /* gradio's "- or -" between "Drop File Here" and "Click to Upload": the rule above hid it with the icon span */ | |
| button div.wrap span.or { | |
| display: inline ; | |
| color: var(--body-text-color-subdued) ; | |
| } | |
| /* upload icon and text on one line: gradio stacks them in a column */ | |
| button div.wrap { | |
| flex-direction: row ; | |
| flex-wrap: wrap ; | |
| align-content: center ; | |
| column-gap: 0.35em ; | |
| } | |
| button div.wrap::after { | |
| content: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E90FF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/><polyline points='17 8 12 3 7 8'/><line x1='12' y1='3' x2='12' y2='15'/></svg>") ; | |
| width: 24px ; | |
| height: 24px ; | |
| display: inline-block ; | |
| vertical-align: middle ; | |
| /* on the text line, before the text: the drop zones are one line high */ | |
| order: -1 ; | |
| margin: 0 0.25em 0 0 ; | |
| } | |
| table.file-preview tr { | |
| padding: 0 ; | |
| } | |
| body:has(#gr_convert_btn:disabled) table.file-preview button.label-clear-button { | |
| display: none ; | |
| } | |
| span[data-testid="block-info"] { | |
| font-size: 12px ; | |
| } | |
| /* Classes */ | |
| .wrap-inner { | |
| border: 1px solid #666666; | |
| } | |
| .no-wrap { | |
| flex-wrap: nowrap ; | |
| } | |
| .selected { | |
| color: var(--secondary-500) ; | |
| text-shadow: 0.3px 0.3px 0.3px #303030; | |
| } | |
| .gr-glass-mask { | |
| z-index: 9999 ; | |
| position: fixed ; | |
| top: 0 ; | |
| left: 0 ; | |
| width: 100vw ; | |
| height: 100vh ; | |
| background: rgba(0,0,0,0.5) ; | |
| display: flex ; | |
| align-items: center ; | |
| justify-content: center ; | |
| font-size: 1.2rem ; | |
| color: #ffffff ; | |
| text-align: center ; | |
| border: none ; | |
| opacity: 1; | |
| pointer-events: all ; | |
| } | |
| .gr-glass-mask.hide { | |
| animation: fadeOut 2s ease-out 2s forwards ; | |
| } | |
| .small-btn-red, .small-btn-purple, .small-btn-green, .small-btn-orange, .small-btn-blue { | |
| background: var(--block-background-fill) ; | |
| font-size: 18px ; | |
| width: 60px ; | |
| height: 60px ; | |
| margin: 0 ; | |
| padding: 0 ; | |
| } | |
| .small-btn-green:hover { | |
| background: var(--button-primary-background-fill-hover) ; | |
| } | |
| .small-btn-red:hover { | |
| background: #ff5050 ; | |
| } | |
| .small-btn-purple:hover { | |
| background: #752eb2 ; | |
| } | |
| .small-btn-orange:hover { | |
| background: #ff8c1a ; | |
| } | |
| .small-btn-blue:hover { | |
| background: #2e7bff ; | |
| } | |
| /* icon color readable on each hover color (the emoji had their own colors) */ | |
| .small-btn-green:hover:not(:active) { | |
| color: var(--button-primary-text-color) ; | |
| } | |
| .small-btn-purple:hover:not(:active), .small-btn-blue:hover:not(:active) { | |
| color: #ffffff ; | |
| } | |
| .small-btn-orange:hover:not(:active), .gr-abs-search-btn:not(:active) { | |
| color: #1f2937 ; | |
| } | |
| .small-btn-green:active, .small-btn-red:active, .small-btn-purple:active, .small-btn-orange:active, .small-btn-blue:active { | |
| background: var(--body-text-color) ; | |
| color: var(--body-background-fill) ; | |
| } | |
| .micro-btn{ | |
| font-size: 16px ; | |
| background: var(--block-background-fill) ; | |
| width: 26px ; | |
| height: 26px ; | |
| margin: 0 ; | |
| padding: 0 ; | |
| border-radius: var(--radius-full) ; | |
| } | |
| .micro-btn:hover { | |
| background-color: #ff5050 ; | |
| } | |
| .micro-btn:active { | |
| background: var(--body-text-color) ; | |
| color: var(--body-background-fill) ; | |
| } | |
| .file-preview-holder { | |
| height: 116px ; | |
| overflow: auto ; | |
| } | |
| .progress-bar.svelte-ls20lj { | |
| background: var(--secondary-500) ; | |
| } | |
| .progress-level { | |
| flex-direction: column-reverse ; | |
| } | |
| .progress-level-inner { | |
| display: -webkit-box; | |
| -webkit-box-orient: vertical; | |
| -webkit-line-clamp: 3; | |
| height: 3lh; | |
| overflow: hidden; | |
| } | |
| .wrap:has(> .progress-level) { | |
| justify-content: flex-start ; | |
| padding-top: var(--size-2) ; | |
| } | |
| .file-preview-holder { | |
| height: auto ; | |
| min-height: 0 ; | |
| max-height: none ; | |
| } | |
| .gr-tab { | |
| padding: 0 3px 0 3px ; | |
| margin: 0 ; | |
| border: none ; | |
| } | |
| .gr-col { | |
| padding: 0 6px 0 6px ; | |
| margin: 0 ; | |
| border: none ; | |
| } | |
| .gr-group-main > div { | |
| background: none ; | |
| border-radius: var(--radius-md) ; | |
| } | |
| .gr-group > div { | |
| background: none ; | |
| padding: 0 ; | |
| margin: 0 ; | |
| border-radius: 0 var(--radius-md) var(--radius-md) var(--radius-md) ; | |
| } | |
| .gr-group-no-col{ | |
| background: none ; | |
| padding-right: 15px ; | |
| margin: 0 var(--size-2) 0 var(--size-2);; | |
| border-radius: 0 var(--radius-md) var(--radius-md) var(--radius-md) ; | |
| } | |
| .gr-group-convert-btn{ | |
| margin: var(--size-2) ;; | |
| padding-right: 15px ; | |
| border-radius: var(--radius-md) ; | |
| } | |
| .gr-label textarea[data-testid="textbox"]{ | |
| padding: 0 0 0 3px ; | |
| margin: 0 ; | |
| text-align: left ; | |
| font-weight: normal ; | |
| height: auto ; | |
| font-size: 12px ; | |
| border: none ; | |
| overflow-y: hidden ; | |
| line-height: 12px ; | |
| } | |
| .gr-markdown p { | |
| margin-top: 8px ; | |
| width: 90px ; | |
| padding: 0 ; | |
| border-radius: var(--radius-md) var(--radius-md) 0 0 ; | |
| background: var(--block-background-fill) ; | |
| display: flex ; | |
| align-items: center ; | |
| justify-content: center ; | |
| text-align: center ; | |
| } | |
| .gr-markdown-span { | |
| margin-top: 8px ; | |
| width: 90px ; | |
| padding: 0 ; | |
| border-radius: var(--radius-md) var(--radius-md) 0 0 ; | |
| background: var(--block-background-fill) ; | |
| display: flex ; | |
| align-items: center ; | |
| justify-content: center ; | |
| text-align: center ; | |
| } | |
| .gr-markdown-output-split-hours { | |
| overflow: hidden ; | |
| background: var(--block-background-fill) ; | |
| border-radius: 0 ; | |
| font-size: 12px ; | |
| text-align: center ; | |
| vertical-align: middle ; | |
| padding-top: 4px ; | |
| padding-bottom: 4px ; | |
| white-space: nowrap ; | |
| } | |
| /* TTS engine rating (lib/gradio.py _show_rating): on a narrow row the table goes on its own line above the | |
| tab label instead of breaking each cell in two. wrap-reverse swaps the cross axis: flex-start is the bottom */ | |
| .gr-rating { | |
| flex-wrap: wrap-reverse ; | |
| align-items: flex-start ; | |
| row-gap: 4px ; | |
| } | |
| .gr-rating table { | |
| margin-left: auto ; | |
| max-width: 100% ; | |
| } | |
| /* cells as a wrapping row: narrower than the table, the next cell goes to the line below, each cell kept whole */ | |
| .gr-rating table, .gr-rating tbody, .gr-rating tr { | |
| display: flex ; | |
| flex-wrap: wrap ; | |
| justify-content: flex-end ; | |
| align-items: flex-end ; | |
| } | |
| /* gradio's prose margins/padding on tr and td, inert in a table layout, not in a flex one */ | |
| .gr-rating tr, .gr-rating td { | |
| margin: 0 ; | |
| } | |
| .gr-rating tr { | |
| padding: 0 ; | |
| } | |
| .gr-rating td { | |
| white-space: nowrap ; | |
| } | |
| .gr-voice-player { | |
| margin: 0 ; | |
| padding: 0 ; | |
| width: 60px ; | |
| height: 60px ; | |
| background: var(--block-background-fill) ; | |
| } | |
| #gr_row_language { | |
| align-items: stretch ; | |
| } | |
| #gr_row_language > * { | |
| margin-top: 0 ; | |
| margin-bottom: 0 ; | |
| } | |
| #gr_translate_enabled { | |
| display: flex ; | |
| align-items: center ; | |
| justify-content: center ; | |
| padding: 0 ; | |
| } | |
| #gr_translate_enabled > *, | |
| #gr_translate_enabled label, | |
| #gr_translate_enabled .wrap { | |
| margin: 0 ; | |
| padding: 0 ; | |
| display: flex ; | |
| align-items: center ; | |
| justify-content: center ; | |
| width: 100% ; | |
| height: 100% ; | |
| } | |
| .play-pause-button:hover svg { | |
| fill: #ffab00 ; | |
| stroke: #ffab00 ; | |
| transform: scale(1.2) ; | |
| } | |
| .gr-convert-btn { | |
| font-size: 30px ; | |
| } | |
| .gr-convert-btn:hover { background-color: #34d058 ; } | |
| .gr-convert-btn:active{ | |
| background: var(--body-text-color) ; | |
| color: var(--body-background-fill) ; | |
| } | |
| .gr-abs-search-btn { | |
| background-color: #D68215 ; | |
| font-size: 18px ; | |
| width: 60px ; | |
| height: 60px ; | |
| margin: 0 ; | |
| padding: 0 ; | |
| } | |
| .gr-abs-search-btn:hover { | |
| background-color: #FF950D ; | |
| } | |
| .gr-abs-search-btn:active { | |
| background: var(--body-text-color) ; | |
| color: var(--body-background-fill) ; | |
| } | |
| .gr-abs-upload-btn { | |
| font-size: 30px ; | |
| } | |
| .gr-abs-upload-btn:hover { background-color: #34d058 ; } | |
| .gr-abs-upload-btn:active{ | |
| background: var(--body-text-color) ; | |
| color: var(--body-background-fill) ; | |
| } | |
| [id^="block_"]:has(input[type="checkbox"]:checked) { | |
| border-left: 3px solid #22c55e ; | |
| } | |
| [id^="block_"]:has(input[type="checkbox"]:checked) > div { | |
| background-color: rgba(34, 197, 94, 0.08) ; | |
| } | |
| [id^="block_"]:has(input[type="checkbox"]:not(:checked)) { | |
| border-left: 3px solid #ef4444 ; | |
| } | |
| [id^="block_"]:has(input[type="checkbox"]:not(:checked)) > div { | |
| background-color: rgba(239, 68, 68, 0.08) ; | |
| } | |
| /* Html elements */ | |
| #gr_ebook_textarea { | |
| height: auto ; | |
| min-height: 55px ; | |
| display: flex ; | |
| flex-direction: column ; | |
| align-items: center ; | |
| justify-content: center ; | |
| } | |
| #gr_ebook_textarea label, #gr_custom_model_file label { | |
| background: none ; | |
| border: none ; | |
| } | |
| #gr_audiobook_player label, #gr_audiobook_player div.top-panel, | |
| #gr_audiobook_edit_player label, #gr_audiobook_edit_player div.top-panel { | |
| display: none ; | |
| } | |
| #gr_ebook_src, #gr_custom_model_file, #gr_voice_file { | |
| height: auto ; | |
| min-height: 56px ; | |
| display: flex ; | |
| flex-direction: column ; | |
| align-items: center ; | |
| justify-content: center ; | |
| border-style: none ; | |
| } | |
| #gr_ebook_src button>div, #gr_ebook_textarea button>div, #gr_custom_model_file button>div, #gr_voice_file button>div { | |
| font-size: 14px ; | |
| } | |
| #gr_ebook_src .empty, #gr_ebook_textarea .empty, #gr_custom_model_file .empty, #gr_voice_file .empty, | |
| #gr_ebook_src .wrap, #gr_ebook_textarea .wrap, #gr_custom_model_file .wrap, #gr_voice_file .wrap { | |
| height: 100% ; | |
| min-height: 56px ; | |
| display: flex ; | |
| align-items: center ; | |
| justify-content: center ; | |
| } | |
| #gr_ebook_src button[aria-label="common.upload"], #gr_ebook_textarea button[aria-label="common.upload"], #gr_custom_model_file button[aria-label="common.upload"], #gr_voice_file button[aria-label="common.upload"] { | |
| display: none ; | |
| } | |
| #gr_ebook_src .file-preview-holder { | |
| padding-top: 16px ; | |
| } | |
| .gr-voice-highlight-css { display: none ; } | |
| #gr_ebook_src table.file-preview tbody > tr.file:hover { | |
| background: var(--color-accent-soft) ; | |
| } | |
| #gr_voice_selected_filename, #gr_custom_model_train_link { | |
| display: flex ; | |
| align-items: center ; | |
| margin: auto ; | |
| padding-left: 6px ; | |
| overflow: hidden ; | |
| text-overflow: ellipsis ; | |
| white-space: nowrap ; | |
| background: var(--block-background-fill) ; | |
| width: 100% ; | |
| height: 100% ; | |
| } | |
| #gr_voice_selected_filename p, #gr_custom_model_train_link p { | |
| margin: auto ; | |
| vertical-align: middle ; | |
| overflow: hidden ; | |
| text-overflow: ellipsis ; | |
| background: var(--block-background-fill) ; | |
| width: 100% ; | |
| height: 100% ; | |
| } | |
| #gr_voice_selected_filename a, #gr_custom_model_train_link a { | |
| text-decoration: none ; | |
| } | |
| /* the custom model upload label above its one line drop zone, not over it, at the left as before */ | |
| #gr_custom_model_file label[data-testid="block-label"] { | |
| position: static ; | |
| align-self: flex-start ; | |
| } | |
| #gr_custom_model_file [aria-label="Clear"], #gr_voice_file [aria-label="Clear"] { | |
| display: none ; | |
| } | |
| #gr_voice_list { | |
| height: 60px ; | |
| } | |
| #gr_row_output_split_hours { | |
| border-radius: 0 ; | |
| } | |
| #gr_audiobook_sentence textarea{ | |
| margin: auto ; | |
| text-align: center ; | |
| } | |
| #gr_audiobook_sentence textarea.interlude-cue{ | |
| font-style: italic ; | |
| } | |
| /* block and sentence of the cue playing (header.js show_cue_position): one line under the sentence. Its room is kept | |
| even empty or not created yet, the section does not move when a cue shows or goes */ | |
| #gr_audiobook_sentence :has(> textarea){ | |
| position: relative ; | |
| padding-bottom: 18px ; | |
| } | |
| #gr_audiobook_sentence .cue-position{ | |
| position: absolute; | |
| left: 0; | |
| right: 0; | |
| bottom: 0; | |
| padding: 0 10px; | |
| font-size: 11px; | |
| line-height: 16px; | |
| text-align: center; | |
| white-space: nowrap; | |
| overflow: hidden; | |
| text-overflow: ellipsis; | |
| opacity: 0.7; | |
| } | |
| #gr_audiobook_sentence .cue-position[hidden]{ | |
| display: none ; | |
| } | |
| #gr_session textarea, #gr_progress textarea, #gr_audiobook_sentence textarea { | |
| overflow: hidden ; | |
| overflow-y: auto ; | |
| scrollbar-width: none ; | |
| } | |
| #gr_group_progress .progress-bar, #gr_group_progress [role="progressbar"] > div { | |
| background-color: #ff007f ; | |
| background-image: none ; | |
| } | |
| #gr_progress { | |
| height: 100px ; | |
| min-height: 100px ; | |
| max-height: 100px ; | |
| resize: none; | |
| } | |
| #gr_session textarea::-webkit-scrollbar, #gr_progress textarea::-webkit-scrollbar { | |
| display: none ; | |
| } | |
| #gr_ebook_mode span[data-testid="block-info"], | |
| #gr_language span[data-testid="block-info"], | |
| #gr_voice_list span[data-testid="block-info"], | |
| #gr_device span[data-testid="block-info"], | |
| #gr_tts_engine_list span[data-testid="block-info"], | |
| #gr_output_split_hours span[data-testid="block-info"], | |
| #gr_session span[data-testid="block-info"], | |
| #gr_custom_model_list span[data-testid="block-info"], | |
| #gr_audiobook_sentence span[data-testid="block-info"], | |
| #gr_audiobook_list span[data-testid="block-info"], | |
| #gr_progress span[data-testid="block-info"], | |
| #gr_abs_library span[data-testid="block-info"] { | |
| display: none ; | |
| } | |
| #gr_row_ebook_mode { | |
| display: flex ; | |
| align-items: center ; | |
| } | |
| #gr_interlude_enabled { | |
| align-self: center ; | |
| overflow: visible ; | |
| padding: 20px 0 20px 30px ; | |
| } | |
| #gr_blocks_preview { | |
| align-self: center ; | |
| overflow: visible ; | |
| padding: 20px 0 20px 10px ; | |
| } | |
| /* gradio gives them min-width 0: on a narrow row they clipped their label instead of wrapping to the next line. | |
| min-content: at least their longest word, in any ui language (Kapitelvorschau, Zwischenspiel...) */ | |
| #gr_blocks_preview, #gr_interlude_enabled, #gr_translate_enabled { | |
| min-width: min-content ; | |
| } | |
| #gr_group_output_split { | |
| border-radius: 0 ; | |
| } | |
| /* split file as high as format and channel beside it (it left a gap under it) */ | |
| #gr_row_output_format { | |
| align-items: stretch ; | |
| } | |
| #gr_group_output_split > div, #gr_group_output_split .styler, #gr_group_output_split .styler > .form, #gr_output_split { | |
| flex-grow: 1 ; | |
| } | |
| #gr_output_split { | |
| display: flex ; | |
| align-items: center ; | |
| align-self: stretch ; | |
| margin-top: 0 ; | |
| margin-bottom: 0 ; | |
| } | |
| #gr_tts_rating { | |
| overflow: hidden ; | |
| } | |
| #gr_row_voice_player, #gr_row_custom_model_list, #gr_row_session, #gr_row_audiobook_list, #gr_row_audiobook_edit { | |
| height: 60px ; | |
| } | |
| #gr_audiobook_player, #gr_audiobook_edit_player { | |
| border-style: none ; | |
| } | |
| #gr_row_audiobook_edit { | |
| align-items: center ; | |
| } | |
| #gr_audiobook_sentence textarea:not(:disabled) { | |
| outline: 2px solid var(--button-primary-background-fill-hover) ; | |
| outline-offset: -2px ; | |
| caret-color: #ff007f ; | |
| } | |
| #gr_audiobook_sentence textarea:not(:disabled), | |
| #gr_audiobook_sentence:has(textarea:not(:disabled)), | |
| #gr_audiobook_sentence:has(textarea:not(:disabled)) label, | |
| #gr_row_audiobook_edit, | |
| #gr_row_audiobook_edit :is(.small-btn-green, .small-btn-red):not(:hover):not(:active) { | |
| background: color-mix(in srgb, var(--block-background-fill) 80%, #ff007f) ; | |
| } | |
| #gr_audiobook_edit_player, #gr_audiobook_edit_player :is(.block, .container) { | |
| background: transparent ; | |
| } | |
| #gr_audiobook_player :is(.volume, .empty, .source-selection, .control-wrapper, .settings-wrapper, label), | |
| #gr_audiobook_edit_player :is(.volume, .empty, .source-selection, .control-wrapper, .settings-wrapper, label), | |
| #gr_audiobook_player button[aria-label="Download"], | |
| #gr_audiobook_player button[aria-label="Share"], | |
| #gr_audiobook_player .download-button, | |
| #gr_audiobook_player .share-button, | |
| #gr_audiobook_files { | |
| border-style: none ; | |
| } | |
| #gr_audiobook_files label[data-testid="block-label"] { | |
| display: none ; | |
| } | |
| #gr_audiobook_player audio, #gr_audiobook_edit_player audio { | |
| width: 100% ; | |
| padding-top: 10px ; | |
| padding-bottom: 10px ; | |
| border-radius: 0px ; | |
| background-color: #ebedf0 ; | |
| color: #ffffff ; | |
| } | |
| #gr_audiobook_player audio::-webkit-media-controls-panel, #gr_audiobook_edit_player audio::-webkit-media-controls-panel { | |
| width: 100% ; | |
| padding-top: 10px ; | |
| padding-bottom: 10px ; | |
| border-radius: 0px ; | |
| background-color: #ebedf0 ; | |
| color: #ffffff ; | |
| } | |
| /* Firefox only: :-moz-read-only is Firefox's alias of :read-only (always true on audio/div), Chrome/Safari drop these rules. | |
| No @supports here: Gradio's prefix_css() silently discards @supports blocks from css_paths. */ | |
| #gr_audiobook_player audio:-moz-read-only, | |
| #gr_audiobook_edit_player audio:-moz-read-only, | |
| audio:-moz-read-only { | |
| background-color: var(--block-background-fill, #1f2937) ; | |
| border: none ; | |
| outline: none ; | |
| box-shadow: none ; | |
| } | |
| #gr_audiobook_player:-moz-read-only, | |
| #gr_audiobook_edit_player:-moz-read-only, | |
| #gr_audiobook_player .block:-moz-read-only, | |
| #gr_audiobook_player .container:-moz-read-only, | |
| #gr_audiobook_edit_player .block:-moz-read-only, | |
| #gr_audiobook_edit_player .container:-moz-read-only, | |
| #gr_voice_player_hidden:-moz-read-only { | |
| background-color: transparent ; | |
| border: none ; | |
| box-shadow: none ; | |
| } | |
| #gr_voice_player_hidden { | |
| z-index: -100 ; | |
| position: absolute ; | |
| overflow: hidden ; | |
| margin: 0 ; | |
| padding: 0 ; | |
| width: 60px ; | |
| height: 60px ; | |
| } | |
| #gr_session_update, #gr_restore_session, #gr_save_session, | |
| #gr_audiobook_vtt, #gr_playback_time, #gr_voice_player_hidden { | |
| display: none ; | |
| } | |
| #gr_blocks_nav { | |
| overflow:hidden ; | |
| display: flex ; | |
| align-items: center ; | |
| justify-content: center ; | |
| } | |
| #gr_blocks_nav p { | |
| white-space:nowrap ; | |
| overflow:hidden ; | |
| font-size: 16px ; | |
| text-align: center ; | |
| } | |
| #gr_row_buttons { | |
| justify-content: center ; | |
| gap: 100px ; | |
| } | |
| #gr_blocks_markdown { | |
| background: var(--body-background-fill) ; | |
| width: 100% ; | |
| text-align: center ; | |
| display: flex ; | |
| justify-content: center ; | |
| align-items: center ; | |
| padding-bottom: 20px ; | |
| } | |
| #gr_blocks_markdown p { | |
| background: var(--body-background-fill) ; | |
| width: 100% ; | |
| font-size: 18px ; | |
| font-weight: bold ; | |
| } | |
| /* Target the main container and all internal wrapper elements of the UI language and theme dropdowns */ | |
| #gr_ui_language, | |
| #gr_ui_language .wrap, | |
| #gr_ui_language .wrap-inner, | |
| #gr_ui_language .secondary-wrap, | |
| #gr_ui_language input, | |
| #gr_ui_language select, | |
| #gr_theme, | |
| #gr_theme .wrap, | |
| #gr_theme .wrap-inner, | |
| #gr_theme .secondary-wrap, | |
| #gr_theme input, | |
| #gr_theme select { | |
| margin: 0 ; | |
| padding: 0 ; | |
| min-height: 0 ; | |
| height: auto ; | |
| border: none ; | |
| box-shadow: none ; | |
| line-height: 1 ; | |
| } | |
| /* Labels beside their dropdown, not above (theme, output format and channel): at the size of the value beside them, | |
| the labels above a field (sliders...) stay small */ | |
| #gr_theme .container, #gr_output_format_list .container, #gr_output_channel_list .container { | |
| display: flex ; | |
| flex-direction: row ; | |
| align-items: center ; | |
| gap: 6px ; | |
| } | |
| #gr_output_format_list .container, #gr_output_channel_list .container { | |
| gap: 10px ; | |
| } | |
| #gr_theme span[data-testid="block-info"], #gr_output_format_list span[data-testid="block-info"], #gr_output_channel_list span[data-testid="block-info"] { | |
| flex: 0 0 auto ; | |
| margin: 0 ; | |
| font-size: var(--input-text-size) ; | |
| white-space: nowrap ; | |
| } | |
| #gr_theme .wrap, #gr_output_format_list .container > .wrap, #gr_output_channel_list .container > .wrap { | |
| flex: 1 1 auto ; | |
| min-width: 0 ; | |
| } | |
| /* Remove any default gap spacing in its parent row if needed */ | |
| #gr_row_ui_language { | |
| gap: 0 ; | |
| align-items: center ; | |
| } | |
| #gr_row_ui_left, #gr_row_ui_right { | |
| align-items: center ; | |
| } | |
| #gr_row_ui_right { | |
| justify-content: flex-end ; | |
| } | |
| /* gradio renders min-width: 0 on a Markdown: on a narrow screen the sides squeezed the version out */ | |
| #gr_version_markdown { | |
| min-width: 160px ; | |
| } | |
| #gr_tooltips, | |
| #gr_tooltips .wrap, | |
| #gr_tooltips .wrap-inner, | |
| #gr_tooltips .secondary-wrap { | |
| margin: 0 ; | |
| padding: 0 ; | |
| min-height: 0 ; | |
| height: auto ; | |
| border: none ; | |
| box-shadow: none ; | |
| line-height: 1 ; | |
| } | |
| /* Effects */ | |
| .fade-in { | |
| animation: fadeIn 1s ease-in ; | |
| display: inline-block ; | |
| } | |
| @keyframes fadeIn { | |
| from { | |
| opacity: 0; | |
| visibility: visible ; | |
| } | |
| to { | |
| opacity: 1; | |
| } | |
| } | |
| @keyframes fadeOut { | |
| from { | |
| opacity: 1; | |
| } | |
| to { | |
| opacity: 0; | |
| visibility: hidden; | |
| pointer-events: none; | |
| } | |
| } | |
| /* Modal */ | |
| #custom-gr-modal-container, | |
| #custom-gr-modal-container .gr-modal { | |
| position: fixed ; | |
| } | |
| .hide-elem { | |
| z-index: -1 ; | |
| position: absolute ; | |
| top: 0 ; | |
| left: 0 ; | |
| } | |
| .gr-modal { | |
| position: fixed ; | |
| top: 0 ; left: 0 ; | |
| width: 100% ; height: 100% ; | |
| background-color: rgba(0, 0, 0, 0.5) ; | |
| z-index: 9999 ; | |
| display: flex ; | |
| justify-content: center ; | |
| align-items: center ; | |
| } | |
| .gr-modal-content { | |
| background-color: #333 ; | |
| padding: 20px ; | |
| border-radius: 9px ; | |
| text-align: center ; | |
| max-width: 300px ; | |
| height: auto ; | |
| box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5) ; | |
| border: 2px solid #FFA500 ; | |
| color: white ; | |
| position: relative ; | |
| } | |
| .gr-modal-content p { | |
| overflow-wrap: break-word; | |
| word-break: break-word; | |
| white-space: normal; | |
| } | |
| .confirm-buttons { | |
| display: flex ; | |
| justify-content: space-evenly ; | |
| margin-top: 20px ; | |
| } | |
| .confirm-buttons button { | |
| padding: 10px 20px ; | |
| border: none ; | |
| border-radius: 6px ; | |
| font-size: 16px ; | |
| cursor: pointer ; | |
| } | |
| .accordion-block-even > button, .accordion-block-odd > button { | |
| padding: 10px 0 10px 0 ; | |
| } | |
| .accordion-block-even, .accordion-block-even div label textarea, .accordion-block-even .wrap { | |
| background: var(--table-even-background-fill) ; | |
| } | |
| .accordion-block-odd, .accordion-block-odd div label textarea, .accordion-block-odd .wrap { | |
| background: var(--table-odd-background-fill) ; | |
| } | |
| .accordion-block-even:hover, | |
| .accordion-block-odd:hover { | |
| background: rgba(255, 200, 50, 0.3) ; | |
| } | |
| .accordion-block-voice-list { | |
| margin: auto ; | |
| padding: 0 16px 0 0 ; | |
| } | |
| .gr-blocks-buttons { | |
| display: flex ; | |
| justify-content: space-evenly ; | |
| margin-top: 12px ; | |
| margin-bottom: 12px ; | |
| } | |
| .gr-blocks-buttons button { | |
| padding: 12px ; | |
| border: none ; | |
| border-radius: 9px ; | |
| font-size: 16px ; | |
| cursor: pointer ; | |
| } | |
| .gr-blocks-buttons:hover { background-color: #34d058 ; } | |
| .gr-blocks-buttons:active { | |
| background: var(--body-text-color) ; | |
| color: var(--body-background-fill) ; | |
| } | |
| .accordion-block-keep, .accordion-block-keep .wrap{ | |
| background: none ; | |
| } | |
| .accordion-block-reset { | |
| margin-left: 30px ; | |
| margin-right: 30px ; | |
| border-radius: 9px ; | |
| } | |
| .spinner { | |
| margin: 15px auto ; | |
| border: 4px solid rgba(255, 255, 255, 0.2) ; | |
| border-top: 4px solid #FFA500 ; | |
| border-radius: 50% ; | |
| width: 30px ; | |
| height: 30px ; | |
| animation: spin 1s linear infinite ; | |
| } | |
| @keyframes spin { | |
| 0% { transform: rotate(0deg); } | |
| 100% { transform: rotate(360deg); } | |
| } | |
| /* Icons: header.js gives a glyph button (▶ 🗑 🔒 ✔...) its data-icon and keeps it in step when the glyph changes. | |
| The glyph stays the button text (screen readers) but is hidden, the icon is a mask in the button text color, | |
| so it follows every theme. Last in the file: same specificity as the font sizes above, it comes after them */ | |
| button[data-icon], .confirm-buttons .btn[data-icon] { | |
| font-size: 0 ; | |
| /* the glyph, zero wide, stays a flex item: space-evenly (.gr-blocks-buttons) or a gap moved the icon off center */ | |
| justify-content: center ; | |
| gap: 0 ; | |
| } | |
| button[data-icon]::before, .confirm-buttons .btn[data-icon]::before { | |
| content: "" ; | |
| display: inline-block ; | |
| flex: 0 0 auto ; | |
| width: 24px ; | |
| height: 24px ; | |
| background-color: currentColor ; | |
| -webkit-mask: var(--e2a-icon) center / contain no-repeat ; | |
| mask: var(--e2a-icon) center / contain no-repeat ; | |
| } | |
| .micro-btn[data-icon]::before { | |
| width: 15px ; | |
| height: 15px ; | |
| } | |
| .accordion-block-reset[data-icon]::before { | |
| width: 20px ; | |
| height: 20px ; | |
| } | |
| #gr_blocks_nav button[data-icon]::before { | |
| width: 28px ; | |
| height: 28px ; | |
| } | |
| .gr-convert-btn[data-icon]::before, .gr-abs-upload-btn[data-icon]::before { | |
| width: 34px ; | |
| height: 34px ; | |
| } | |
| /* the e2a logo (tools/icons/appLogo.png) as a line icon: open book, text on a page, level bars on the other */ | |
| [data-icon="logo"] { | |
| --e2a-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M12 6.5C10 5 7 4.4 2.5 4.8v13.6c4.5-.4 7.5.2 9.5 1.6 2-1.4 5-2 9.5-1.6V4.8C17 4.4 14 5 12 6.5zM12 6.5V20'/><path d='M5 9h4.5M5 12h4.5M5 15h3.5'/><path d='M14.5 16v-2.5M17 16v-4.5M19.5 16V9'/></svg>"); | |
| } | |
| [data-icon="play"] { | |
| --e2a-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M7 4.5v15l12-7.5z'/></svg>"); | |
| } | |
| [data-icon="pause"] { | |
| --e2a-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M9 5v14M15 5v14'/></svg>"); | |
| } | |
| [data-icon="trash"] { | |
| --e2a-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M4 7h16M10 4h4M6 7l1 13h10l1-13M10 11v6M14 11v6'/></svg>"); | |
| } | |
| [data-icon="lock"] { | |
| --e2a-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><rect x='5' y='11' width='14' height='9' rx='2'/><path d='M8 11V8a4 4 0 0 1 8 0v3'/></svg>"); | |
| } | |
| [data-icon="key"] { | |
| --e2a-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><circle cx='8' cy='16' r='4'/><path d='M11 13l9-9M16 8l3 3M14 10l2 2'/></svg>"); | |
| } | |
| [data-icon="preview"] { | |
| --e2a-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='9'/><path d='M10 8.5v7l6-3.5z'/></svg>"); | |
| } | |
| [data-icon="check"] { | |
| --e2a-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12.5l4.5 4.5L19 7.5'/></svg>"); | |
| } | |
| [data-icon="x"] { | |
| --e2a-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M6 6l12 12M18 6L6 18'/></svg>"); | |
| } | |
| [data-icon="download"] { | |
| --e2a-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M12 4v11M7 10l5 5 5-5M5 20h14'/></svg>"); | |
| } | |
| [data-icon="edit"] { | |
| --e2a-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M4 20h4L19 9l-4-4L4 16z'/><path d='M13 7l4 4'/></svg>"); | |
| } | |
| [data-icon="rebuild"] { | |
| --e2a-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M20 11a8 8 0 0 0-14.3-4.9L4 8M4 4v4h4M4 13a8 8 0 0 0 14.3 4.9L20 16M20 20v-4h-4'/></svg>"); | |
| } | |
| [data-icon="reset"] { | |
| --e2a-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M4 12a8 8 0 1 0 2.3-5.7L4 8.6M4 4v4.6h4.6'/></svg>"); | |
| } | |
| [data-icon="search"] { | |
| --e2a-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='6.5'/><path d='M16 16l4 4'/></svg>"); | |
| } | |
| [data-icon="upload"] { | |
| --e2a-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M12 20V9M7 14l5-5 5 5M5 4h14'/></svg>"); | |
| } | |
| [data-icon="arrow-left"] { | |
| --e2a-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M19 12H5M11 6l-6 6 6 6'/></svg>"); | |
| } | |
| [data-icon="arrow-right"] { | |
| --e2a-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12h14M13 6l6 6-6 6'/></svg>"); | |
| } | |
| [data-icon="chevron-left"] { | |
| --e2a-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M15 6l-6 6 6 6'/></svg>"); | |
| } | |
| [data-icon="chevron-right"] { | |
| --e2a-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M9 6l6 6-6 6'/></svg>"); | |
| } | |