mirror of
https://github.com/vladmandic/sdnext.git
synced 2026-01-27 15:02:48 +03:00
350 lines
22 KiB
CSS
350 lines
22 KiB
CSS
:root, .dark{ --checkbox-label-gap: 0.25em 0.1em; --section-header-text-size: 12pt; --block-background-fill: transparent;}
|
||
a { font-weight: bold; cursor: pointer; }
|
||
h2 { margin-top: 1em !important; font-size: 1.4em !important; }
|
||
div.gradio-container{ max-width: unset !important; padding: 8px !important; }
|
||
div.tabitem { padding: 0 !important; }
|
||
div.form { border-width: 0; box-shadow: none; background: transparent; overflow: visible; gap: 0.5em 1em; flex-grow: 1 !important; }
|
||
div.compact{ gap: 1em; }
|
||
div.gradio-html.min{ min-height: 0; }
|
||
.block.gradio-checkbox { margin: 0.75em 1.5em 0 0; align-self: center; }
|
||
.block.gradio-dropdown, .block.gradio-slider, .block.gradio-checkbox, .block.gradio-textbox, .block.gradio-radio, .block.gradio-checkboxgroup, .block.gradio-number, .block.gradio-colorpicker { border-width: 0 !important; box-shadow: none !important;}
|
||
.block.padded:not(.gradio-accordion) { padding: 0 !important; margin-right: 0; min-width: 90px !important; }
|
||
.compact{ background: transparent !important; padding: 0 !important; }
|
||
.dark .gradio-dropdown ul.options li.item:not(:has(.hide)) { background-color: var(--neutral-900); }
|
||
.gap.compact{ padding: 0; gap: 0.2em 0; }
|
||
.gradio-container .prose a, .gradio-container .prose a:visited{ color: unset; text-decoration: none; }
|
||
.gradio-dropdown .single-select{ white-space: nowrap; overflow: hidden; }
|
||
.gradio-dropdown .token-remove.remove-all.remove-all{ display: none; }
|
||
.gradio-dropdown div.wrap.wrap.wrap.wrap{ box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
|
||
.gradio-dropdown label span:not(.has-info), .gradio-textbox label span:not(.has-info), .gradio-number label span:not(.has-info) { margin-bottom: 0; }
|
||
.gradio-dropdown ul.options li.item { padding: 0.05em 0; }
|
||
.gradio-dropdown ul.options li.item:not(:has(.hide)) { background-color: var(--neutral-100); }
|
||
.gradio-dropdown ul.options { z-index: 3000; min-width: fit-content; max-height: 25vh !important; white-space: nowrap; }
|
||
.gradio-dropdown:not(.multiselect) .wrap-inner.wrap-inner.wrap-inner{ flex-wrap: unset; }
|
||
.gradio-dropdown.multiselect .token-remove.remove-all.remove-all{ display: flex; }
|
||
.gradio-dropdown.multiselect div.wrap-inner { overflow-x: hidden; overflow-y: auto; max-height: 50vh; overflow-wrap: anywhere; }
|
||
.gradio-html div.wrap{ height: 100%; }
|
||
.gradio-slider input[type="number"]{ width: 6em; margin-left: 0.5em; }
|
||
.gradio-accordion { padding-top: var(--spacing-md) !important; padding-right: 0 !important; padding-bottom: 0 !important; color: var(--body-text-color); }
|
||
.gradio-accordion .label-wrap .icon { color: var(--button-primary-border-color); }
|
||
.settings-accordion >div { flex-flow: wrap; }
|
||
.settings-accordion .gap { padding-right: 1000px; }
|
||
.small-accordion { width: fit-content !important; padding-left: 0 !important; }
|
||
.small-accordion .form { min-width: var(--left-column) !important; }
|
||
.small-accordion .label-wrap { padding: 16px 0px 8px 0px; margin: 0; border-top: 2px solid var(--button-secondary-border-color); }
|
||
.small-accordion .label-wrap .icon { margin-right: 1.6em; margin-left: 0.6em; color: var(--button-primary-border-color); }
|
||
.hidden { display: none; }
|
||
.flex-break { flex-basis: 100% !important; }
|
||
footer { display: none; }
|
||
table { overflow-x: auto !important; overflow-y: auto !important; }
|
||
td { border-bottom: none !important; padding: 0.1em 0.5em !important; }
|
||
tr { border-bottom: none !important; padding: 0.1em 0.5em !important; }
|
||
|
||
/* general styled components */
|
||
.gradio-button.tool { max-width: min-content; min-width: min-content !important; align-self: end; font-size: 1.4em; color: var(--body-text-color) !important; }
|
||
.gradio-button.secondary-down { background: var(--button-secondary-background-fill); color: var(--button-secondary-text-color); }
|
||
.gradio-button.secondary-down, .gradio-button.secondary-down:hover { box-shadow: 1px 1px 1px rgba(0,0,0,0.25) inset, 0px 0px 3px rgba(0,0,0,0.15) inset; }
|
||
.gradio-button.secondary-down:hover { background: var(--button-secondary-background-fill-hover); color: var(--button-secondary-text-color-hover); }
|
||
.checkboxes-row { margin-bottom: 1em; gap: 0 !important; justify-content: space-around; flex-wrap: unset !important; }
|
||
.checkboxes-row > div{ flex: 0; white-space: nowrap; min-width: auto; }
|
||
|
||
button.custom-button{
|
||
border-radius: var(--button-large-radius);
|
||
padding: var(--button-large-padding);
|
||
font-weight: var(--button-large-text-weight);
|
||
border: var(--button-border-width) solid var(--button-secondary-border-color);
|
||
background: var(--button-secondary-background-fill);
|
||
color: var(--button-secondary-text-color);
|
||
font-size: var(--button-large-text-size);
|
||
display: inline-flex;
|
||
justify-content: center;
|
||
align-items: center;
|
||
transition: var(--button-transition);
|
||
box-shadow: var(--button-shadow);
|
||
text-align: center;
|
||
}
|
||
|
||
/* themes */
|
||
.theme-preview { display: none; position: fixed; border: 4px solid var(--neutral-600); box-shadow: 2px 2px 2px 2px var(--neutral-700); top: 0; bottom: 0; left: 0; right: 0; margin: auto; max-width: 75vw; z-index: 999; }
|
||
|
||
/* txt2img/img2img specific */
|
||
.block.token-counter{ position: absolute; display: inline-block; right: 0; min-width: 0 !important; width: auto; z-index: 100; top: -0.75em; }
|
||
.block.token-counter span{ background: var(--input-background-fill) !important; box-shadow: 0 0 0.0 0.3em rgba(192,192,192,0.15), inset 0 0 0.6em rgba(192,192,192,0.075); border: 2px solid rgba(192,192,192,0.4) !important; }
|
||
.block.token-counter.error span{ box-shadow: 0 0 0.0 0.3em rgba(255,0,0,0.15), inset 0 0 0.6em rgba(255,0,0,0.075); border: 2px solid rgba(255,0,0,0.4) !important; }
|
||
.block.token-counter div{ display: inline; }
|
||
.block.token-counter span{ padding: 0.1em 0.75em; }
|
||
[id$=_subseed_show]{ min-width: auto !important; flex-grow: 0 !important; display: flex; }
|
||
[id$=_subseed_show] label{ margin-bottom: 0.5em; align-self: end; }
|
||
.performance { font-size: 0.85em; color: #444; }
|
||
.performance p { display: inline-block; color: var(--body-text-color-subdued) !important }
|
||
.performance .time { margin-right: 0; }
|
||
#txt2img_footer, #img2img_footer, #extras_footer { height: fit-content; }
|
||
#txt2img_footer, #img2img_footer { height: fit-content; display: none; }
|
||
#txt2img_generate_box, #img2img_generate_box { gap: 0.5em; flex-wrap: wrap-reverse; height: fit-content; }
|
||
#txt2img_actions_column, #img2img_actions_column { gap: 0.5em; height: fit-content; }
|
||
#txt2img_generate_box > button, #img2img_generate_box > button { min-height: 42px; max-height: 42px; }
|
||
#txt2img_generate_line2, #img2img_generate_line2, #txt2img_tools, #img2img_tools { display: flex; }
|
||
#txt2img_generate_line2 > button, #img2img_generate_line2 > button, #extras_generate_box > button, #txt2img_tools > button, #img2img_tools > button { height: 2.2em; line-height: 0; font-size: 1em; min-width: unset; display: block !important; }
|
||
#txt2img_prompt, #txt2img_neg_prompt, #img2img_prompt, #img2img_neg_prompt { display: contents; }
|
||
.interrogate-col{ min-width: 0 !important; max-width: fit-content; gap: 0.5em; }
|
||
.interrogate-col > button{ flex: 1; }
|
||
#sampler_selection_img2img { margin-top: 1em; }
|
||
#txtimg_hr_finalres{ min-height: 0 !important; }
|
||
#img2img_scale_resolution_preview.block{ display: flex; align-items: end; }
|
||
#txtimg_hr_finalres .resolution, #img2img_scale_resolution_preview .resolution{ font-weight: bold; }
|
||
div#extras_scale_to_tab div.form{ flex-direction: row; }
|
||
#img2img_unused_scale_by_slider { visibility: hidden; width: 0.5em; max-width: 0.5em; min-width: 0.5em; }
|
||
.inactive{ opacity: 0.5; }
|
||
div.dimensions-tools { min-width: 0 !important; max-width: fit-content; flex-direction: row; align-content: center; }
|
||
div#extras_scale_to_tab div.form{ flex-direction: row; }
|
||
#mode_img2img .gradio-image > div.fixed-height, #mode_img2img .gradio-image > div.fixed-height img{ height: 480px !important; max-height: 480px !important; min-height: 480px !important; }
|
||
#img2img_sketch, #img2maskimg, #inpaint_sketch { overflow: overlay !important; resize: auto; background: var(--panel-background-fill); z-index: 5; }
|
||
.image-buttons button{ min-width: auto; }
|
||
.infotext { overflow-wrap: break-word; }
|
||
|
||
.tooltip {
|
||
display: block;
|
||
position: fixed;
|
||
top: 1em;
|
||
right: 1em;
|
||
padding: 0.5em;
|
||
background: var(--input-background-fill);
|
||
color: var(--body-text-color);
|
||
border: 1pt solid var(--button-primary-border-color);
|
||
width: 22em;
|
||
min-height: 1.3em;
|
||
font-size: 0.8em;
|
||
transition: opacity 0.2s ease-in;
|
||
pointer-events: none;
|
||
opacity: 0;
|
||
z-index: var(--layer-2);
|
||
}
|
||
.tooltip-show { opacity: 0.9; }
|
||
|
||
/* settings */
|
||
#si-sparkline-memo, #si-sparkline-load { background-color: #111; }
|
||
.licenses { display: block !important; }
|
||
#quicksettings { width: fit-content; margin-top: 1em; }
|
||
#quicksettings > button { padding: 0 1em 0 0 }
|
||
|
||
#settings { display: flex; gap: var(--layout-gap); }
|
||
#settings div { border: none; gap: 0.5em; }
|
||
#settings > div.tab-content { flex: 10 0 75%; display: grid; }
|
||
|
||
#settings > div.tab-content > div { border: none; padding: 0; }
|
||
#settings > div.tab-content > div > div > div > div > div { flex-direction: unset; }
|
||
#settings > div.tab-nav { display: grid; grid-template-columns: repeat(auto-fill, .5em minmax(10em, 1fr)); flex: 1 0 auto; width: 12em; align-self: flex-start; gap: var(--spacing-lg); }
|
||
#settings > div.tab-nav button { display: block; border: none; text-align: left; white-space: initial; padding: 0; }
|
||
#settings > div.tab-nav > #settings_show_all_pages { padding: var(--size-2) var(--size-4); }
|
||
#settings .block.gradio-checkbox { margin: 0; width: auto; }
|
||
#settings .dirtyable { gap: .5em; }
|
||
#settings .dirtyable.hidden { display: none; }
|
||
#settings .modification-indicator { height: 1.2em; border-radius: 1em !important; padding: 0; width: 0; margin-right: 0.5em; }
|
||
#settings .modification-indicator:disabled { visibility: hidden; }
|
||
#settings .modification-indicator.saved { background: var(--color-accent-soft); width: 4px; }
|
||
#settings .modification-indicator.changed { background: var(--color-accent); width: 4px; }
|
||
#settings .modification-indicator.changed.unsaved { background-image: linear-gradient(var(--color-accent) 25%, var(--color-accent-soft) 75%); width: 4px; }
|
||
#settings_result { margin: 0 1.2em; }
|
||
|
||
/* live preview */
|
||
.progressDiv{ position: relative; height: 20px; background: #b4c0cc; margin-bottom: -3px; }
|
||
.dark .progressDiv{ background: #424c5b; }
|
||
.progressDiv .progress{ width: 0%; height: 20px; background: #0060df; color: white; font-weight: bold; line-height: 20px; padding: 0 8px 0 0; text-align: right; overflow: visible; white-space: nowrap; padding: 0 0.5em; }
|
||
.livePreview { position: absolute; z-index: 50; background-color: transparent; width: -moz-available; width: -webkit-fill-available; }
|
||
.livePreview img { position: absolute; object-fit: contain; width: 100%; height: 100%; }
|
||
.dark .livePreview { background-color: rgb(17 24 39 / var(--tw-bg-opacity)); }
|
||
.popup-metadata { color: white; background: #0000; display: inline-block; white-space: pre-wrap; font-size: 0.75em; }
|
||
.global-popup{ display: flex; position: fixed; z-index: 10001; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(20, 20, 20, 0.95);}
|
||
.global-popup-close:before { content: "×"; }
|
||
.global-popup-close{ position: fixed; right: 0.5em; top: 0; cursor: pointer; color: white; font-size: 32pt; }
|
||
.global-popup-inner{ display: inline-block; margin: auto; padding: 2em; }
|
||
|
||
/* fullpage image viewer */
|
||
|
||
#lightboxModal{
|
||
display: none;
|
||
position: fixed;
|
||
z-index: 1001;
|
||
left: 0;
|
||
top: 0;
|
||
width: 100%;
|
||
height: 100%;
|
||
overflow: auto;
|
||
background-color: rgba(20, 20, 20, 0.75);
|
||
backdrop-filter: blur(6px);
|
||
user-select: none;
|
||
-webkit-user-select: none;
|
||
flex-direction: row;
|
||
}
|
||
|
||
.modalControls { display: flex; justify-content: space-evenly; background-color: transparent; position: absolute; width: 99%; z-index: 1; }
|
||
.modalControls:hover { background-color: #50505050; }
|
||
.modalControls span { color: white; font-size: 2em; font-weight: bold; cursor: pointer; filter: grayscale(100%); }
|
||
.modalControls span:hover, .modalControls span:focus { color: var(--highlight-color); filter: none; }
|
||
.lightboxModalPreviewZone { display: flex; width: 100%; height: 100%; }
|
||
.lightboxModalPreviewZone:focus-visible { outline: none; }
|
||
.lightboxModalPreviewZone > img { display: block; margin: auto; width: auto; }
|
||
.lightboxModalPreviewZone > img.modalImageFullscreen{ object-fit: contain; height: 100%; width: 100%; min-height: 0; background: transparent; }
|
||
table.settings-value-table { background: white; border-collapse: collapse; margin: 1em; border: 4px solid white; }
|
||
table.settings-value-table td { padding: 0.4em; border: 1px solid #ccc; max-width: 36em; }
|
||
|
||
.modalPrev, .modalNext {
|
||
cursor: pointer;
|
||
position: relative;
|
||
z-index: 1;
|
||
top: 0;
|
||
width: auto;
|
||
height: 100vh;
|
||
line-height: 100vh;
|
||
text-align: center;
|
||
padding: 16px;
|
||
margin-top: -50px;
|
||
color: white;
|
||
font-weight: bold;
|
||
font-size: 20px;
|
||
transition: 0.6s ease;
|
||
user-select: none;
|
||
-webkit-user-select: none;
|
||
}
|
||
|
||
.modalNext { right: 0; }
|
||
.modalPrev:hover, .modalNext:hover { background-color: rgba(0, 0, 0, 0.8); }
|
||
#imageARPreview { position: absolute; top: 0px; left: 0px; border: 2px solid red; background: rgba(255, 0, 0, 0.3); z-index: 900; pointer-events: none; display: none; }
|
||
|
||
/* context menu (ie for the generate button) */
|
||
#context-menu { z-index:9999; position:absolute; display:block; padding:0px 0; border:2px solid #a55000; box-shadow:1px 1px 2px #CE6400; width: 200px; }
|
||
.context-menu-items{ list-style: none; margin: 0; padding: 0; }
|
||
.context-menu-items a { display:block; padding:5px; cursor:pointer; }
|
||
.context-menu-items a:hover { background: #a55000; }
|
||
|
||
/* extensions */
|
||
#tab_extensions table, #tab_config table{ border-collapse: collapse; }
|
||
#tab_extensions table td, #tab_extensions table th, #tab_config table td, #tab_config table th { border: 1px solid #ccc; padding: 0.25em 0.5em; }
|
||
#tab_extensions table input[type="checkbox"] { margin-right: 0.5em; appearance: checkbox; }
|
||
#tab_extensions button{ max-width: 16em; }
|
||
#tab_extensions input[disabled="disabled"]{ opacity: 0.5; }
|
||
.extension-tag{ font-weight: bold; font-size: 95%; }
|
||
.extension-button { font-size: 95% !important; width: 6em; }
|
||
#extensions .name{ font-size: 1.1rem }
|
||
#extensions .type{ opacity: 0.5; font-size: 90%; text-align: center; }
|
||
#extensions .version{ opacity: 0.7; }
|
||
#extensions .info{ margin: 0; }
|
||
#extensions .date{ opacity: 0.85; font-size: 90%; }
|
||
|
||
/* extra networks */
|
||
.extra-networks > div { margin: 0; gap: 0.2em; border-bottom: none !important; }
|
||
.extra-networks .second-line { display: flex; width: -moz-available; width: -webkit-fill-available; gap: 0.3em; box-shadow: var(--input-shadow); }
|
||
.extra-networks .search { flex: 1; }
|
||
.extra-networks .description { flex: 3; }
|
||
.extra-networks .tab-nav > button { margin-right: 0; height: 24px; padding: 2px 4px 2px 4px; }
|
||
.extra-networks .buttons { position: absolute; right: 0; margin: -4px; }
|
||
.extra-networks .custom-button { width: 120px; width: 100%; background: none; justify-content: left; text-align: left; padding: 2px 8px 2px 16px; text-indent: -8px; box-shadow: none; line-break: auto; }
|
||
.extra-networks .custom-button:hover { background: var(--button-primary-background-fill) }
|
||
.extra-networks-tab { padding: 0 !important; }
|
||
.extra-network-subdirs { background: var(--input-background-fill); overflow-x: hidden; overflow-y: auto; min-width: max(15%, 120px); padding-top: 0.5em; }
|
||
.extra-networks-page { display: flex }
|
||
.extra-network-cards { display: flex; flex-wrap: wrap; overflow-y: auto; overflow-x: hidden; align-content: flex-start; width: -moz-available; width: -webkit-fill-available; }
|
||
.extra-network-cards .card { height: fit-content; margin: 0 0 0.5em 0.5em; position: relative; scroll-snap-align: start; scroll-margin-top: 0; }
|
||
.extra-network-cards .card .overlay { position: absolute; bottom: 0; padding: 0.2em; z-index: 10; width: 100%; background: none; }
|
||
.extra-network-cards .card .overlay .name { font-size: 1.1em; font-weight: bold; text-shadow: 1px 1px black; color: white; overflow-wrap: break-word; }
|
||
.extra-network-cards .card .preview { box-shadow: var(--button-shadow); min-height: 30px; }
|
||
.extra-network-cards .card:hover .overlay { background: rgba(0, 0, 0, 0.40); }
|
||
.extra-network-cards .card:hover .preview { box-shadow: none; filter: grayscale(100%); }
|
||
.extra-network-cards .card:hover .overlay { background: rgba(0, 0, 0, 0.40); }
|
||
.extra-network-cards .card .overlay .tags { margin: 4px; display: none; overflow-wrap: break-word; }
|
||
.extra-network-cards .card .overlay .tag { padding: 2px; margin: 2px; background: var(--neutral-700); cursor: pointer; display: inline-block; }
|
||
.extra-network-cards .card .actions > span { padding: 4px; }
|
||
.extra-network-cards .card:hover .actions { display: block; }
|
||
.extra-network-cards .card:hover .overlay .tags { display: block; }
|
||
.extra-network-cards .card .actions {
|
||
font-size: 3em;
|
||
display: none;
|
||
text-align-last: right;
|
||
cursor: pointer;
|
||
font-variant: unicase;
|
||
position: absolute;
|
||
z-index: 100;
|
||
right: 0;
|
||
height: 0.7em;
|
||
width: 100%;
|
||
background: rgba(0, 0, 0, 0.40);
|
||
}
|
||
#txt2img_description, #img2img_description { max-height: 63px; overflow-y: auto !important; }
|
||
#txt2img_description > label > textarea, #img2img_description > label > textarea { font-size: 0.9em }
|
||
#txt2img_extra_details, #img2img_extra_details {
|
||
position: fixed;
|
||
bottom: 50%;
|
||
left: 50%;
|
||
transform: translate(-50%, 50%);
|
||
padding: 0.8em;
|
||
border: var(--block-border-width) solid var(--highlight-color) !important;
|
||
z-index: 100;
|
||
box-shadow: var(--button-shadow);
|
||
}
|
||
#txt2img_extra_details > div, #img2img_extra_details > div { overflow-y: auto; min-height: 40vh; max-height: 80vh; align-self: flex-start; }
|
||
#txt2img_extra_details td:first-child, #img2img_extra_details td:first-child { font-weight: bold; vertical-align: top; }
|
||
|
||
/* controlnet
|
||
.controlnet_control_type .controlnet_control_type_filter_group .wrap:last-of-type { display: grid; grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); }
|
||
fieldset.controlnet_resize_mode_radio .wrap:last-of-type, fieldset.controlnet_control_mode_radio .wrap:last-of-type { flex-direction: column; }
|
||
div.controlnet_preprocessor_model { display: grid; grid-auto-flow: row; grid-template-columns: 1fr max-content; }
|
||
div.controlnet_preprocessor_model button.gradio-button { align-self: center; }
|
||
div.controlnet_weight_steps > div.form { display: grid; grid-template: repeat(2, 1fr) / repeat(2, 1fr); }
|
||
div.controlnet_weight_steps .controlnet_control_weight_slider { grid-column: 1 / -1; }
|
||
div.controlnet_image_controls { display: grid; grid-template-columns: repeat(4, 1fr); }
|
||
div.controlnet_image_controls .controlnet_invert_warning { grid-column: 1 / -1; }
|
||
div.controlnet_image_controls button { justify-self: center; }
|
||
div.controlnet_main_options { display: grid; grid-template-columns: 1fr 1fr; grid-auto-flow: row; }
|
||
*/
|
||
|
||
/* specific elements */
|
||
#modelmerger_interp_description { margin-top: 1em; margin-bottom: 1em; }
|
||
#scripts_alwayson_txt2img, #scripts_alwayson_img2img { display: grid; padding: 0 }
|
||
#scripts_alwayson_txt2img > .label-wrap, #scripts_alwayson_img2img > .label-wrap { background: var(--input-background-fill); padding: 0; margin: 0; border-radius: var(--radius-lg); }
|
||
#scripts_alwayson_txt2img > .label-wrap > span, #scripts_alwayson_img2img > .label-wrap > span { padding: var(--spacing-xxl); }
|
||
#script_txt2img_agent_scheduler { display: none; }
|
||
#extras_generate, #extras_interrupt, #extras_skip { display: block !important; position: relative; height: 36px; }
|
||
#extras_upscale { margin-top: 10px }
|
||
#refresh_tac_refreshTempFiles { display: none; }
|
||
#train_tab { flex-flow: row-reverse; }
|
||
#models_tab { flex-flow: row-reverse; }
|
||
#swap_axes > button { min-width: 100px; font-size: 1em; }
|
||
#ui_defaults_review { margin: 1em; }
|
||
|
||
.log-monitor { display: none; justify-content: unset !important; overflow: hidden; padding: 0; margin-top: auto; font-family: monospace; font-size: 0.85em; }
|
||
.log-monitor td, .log-monitor th { padding-left: 1em; }
|
||
|
||
/* changelog */
|
||
.md h2 { background-color: var(--background-fill-primary); padding: 0.5em; }
|
||
.md ul { list-style-type: square !important; text-indent: 1em; margin-left: 4em; }
|
||
.md li { list-style-position: outside !important; text-indent: 0; }
|
||
.md p { margin-left: 2em; }
|
||
|
||
/* custom component */
|
||
.folder-selector textarea { height: 2em !important; padding: 6px !important; }
|
||
|
||
/* Workaround for Gradio dropdowns capturing clicks during and after fadeout */
|
||
.gradio-dropdown > label > div > div:first-child:not(.showOptions) ~ ul.options { pointer-events: none; }
|
||
|
||
.splash { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: 1000; display: block; text-align: center; }
|
||
.splash-img { margin: 10% auto 0 auto; width: 512px; background-repeat: no-repeat; height: 512px; animation: color 10s infinite alternate; }
|
||
.loading { color: white; position: absolute; top: 20%; left: 50%; transform: translateX(-50%); }
|
||
.loader { width: 300px; height: 300px; border: var(--spacing-md) solid transparent; border-radius: 50%; border-top: var(--spacing-md) solid var(--primary-600); animation: spin 4s linear infinite; position: relative; }
|
||
.loader::before, .loader::after { content: ""; position: absolute; top: 6px; bottom: 6px; left: 6px; right: 6px; border-radius: 50%; border: var(--spacing-md) solid transparent; }
|
||
.loader::before { border-top-color: var(--primary-900); animation: 3s spin linear infinite; }
|
||
.loader::after { border-top-color: var(--primary-300); animation: spin 1.5s linear infinite; }
|
||
|
||
@keyframes move {
|
||
from { background-position-x: 0, -40px; }
|
||
to { background-position-x: 0, 40px; }
|
||
}
|
||
@keyframes spin {
|
||
from { transform: rotate(0deg); }
|
||
to { transform: rotate(360deg); }
|
||
}
|
||
|
||
@keyframes color {
|
||
from { filter: hue-rotate(0deg) }
|
||
to { filter: hue-rotate(360deg) }
|
||
}
|