| :root { |
| --wangp-ui-scale: 0.9; |
| } |
|
|
| gradio-app { |
| width: 100%; |
| } |
|
|
| .postprocess div, |
| .postprocess span, |
| .postprocess label, |
| .postprocess input, |
| .postprocess select, |
| .postprocess textarea { |
| font-size: calc(12px * var(--wangp-ui-scale)) !important; |
| padding: 0px !important; |
| border: 5px !important; |
| border-radius: 0px !important; |
| --form-gap-width: 0px !important; |
| box-shadow: none !important; |
| --layout-gap: 0px !important; |
| } |
| .postprocess span {margin-top:4px;margin-bottom:4px} |
| #model_list, #family_list, #model_base_types_list { |
| background-color:black; |
| padding:1px} |
|
|
| #model_list,#model_base_types_list { padding-left:0px} |
|
|
| #model_list input, #family_list input, #model_base_types_list input { |
| font-size: calc(25px * var(--wangp-ui-scale))} |
|
|
| #family_list div div { |
| border-radius: 4px 0px 0px 4px; |
| } |
|
|
| #model_list div div { |
| border-radius: 0px 4px 4px 0px; |
| } |
|
|
| #model_base_types_list div div { |
| border-radius: 0px 0px 0px 0px; |
| } |
|
|
| .title-with-lines { |
| display: flex; |
| align-items: center; |
| margin: calc(25px * var(--wangp-ui-scale)) 0; |
| } |
| .line { |
| flex-grow: 1; |
| height: 1px; |
| background-color: #333; |
| } |
| h2 { |
| margin: 0 calc(20px * var(--wangp-ui-scale)); |
| white-space: nowrap; |
| } |
| #edit-tab-content { |
| max-width: 960px; |
| margin-left: auto; |
| margin-right: auto; |
| } |
| #edit_tab_apply_button { |
| background-color: #4535ec !important; |
| color: white !important; |
| transition: background-color 0.2s ease-in-out; |
| } |
| #edit_tab_apply_button:hover { |
| background-color: #3323d8 !important; |
| } |
| #edit_tab_cancel_button { |
| background-color: #7e73f2 !important; |
| color: white !important; |
| transition: background-color 0.2s ease-in-out; |
| } |
| #edit_tab_cancel_button:hover { |
| background-color: #5c50e2 !important; |
| } |
| #queue_html_container .pastel-row { |
| background-color: hsl(var(--item-hue, 0), 80%, 92%); |
| } |
| #queue_html_container .alternating-grey-row.even-row { |
| background-color: #F8FAFC; |
| } |
| @media (prefers-color-scheme: dark) { |
| #queue_html_container tr:hover td { |
| background-color: rgba(255, 255, 255, 0.1) !important; |
| } |
| #queue_html_container .pastel-row { |
| background-color: hsl(var(--item-hue, 0), 35%, 25%); |
| } |
| #queue_html_container .alternating-grey-row.even-row { |
| background-color: #2a3748; |
| } |
| #queue_html_container .alternating-grey-row { |
| background-color: transparent; |
| } |
| } |
| #queue_html_container table { |
| font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif; |
| width: 100%; |
| border-collapse: collapse; |
| font-size: calc(14px * var(--wangp-ui-scale)); |
| table-layout: fixed; |
| } |
| #queue_html_container th { |
| text-align: left; |
| padding: calc(10px * var(--wangp-ui-scale)) calc(8px * var(--wangp-ui-scale)); |
| border-bottom: 2px solid #4a5568; |
| font-weight: bold; |
| font-size: calc(11px * var(--wangp-ui-scale)); |
| text-transform: uppercase; |
| color: #a0aec0; |
| white-space: nowrap; |
| } |
| #queue_html_container td { |
| padding: calc(8px * var(--wangp-ui-scale)); |
| border-bottom: 1px solid #2d3748; |
| vertical-align: middle; |
| } |
| #queue_html_container tr:hover td { |
| background-color: rgba(255, 255, 255, 0.6); |
| } |
| #queue_html_container .prompt-cell { |
| white-space: nowrap; |
| overflow: hidden; |
| text-overflow: ellipsis; |
| } |
| #queue_html_container .action-button { |
| background: none; |
| border: none; |
| cursor: pointer; |
| font-size: 1.3em; |
| padding: 0; |
| color: #718096; |
| transition: color 0.2s; |
| line-height: 1; |
| } |
| #queue_html_container .action-button:hover { |
| color: #e2e8f0; |
| } |
| #queue_html_container .center-align { |
| text-align: center; |
| } |
| #queue_html_container .text-left { |
| text-align: left; |
| } |
| #queue_html_container .hover-image img { |
| max-width: calc(50px * var(--wangp-ui-scale)); |
| max-height: calc(50px * var(--wangp-ui-scale)); |
| object-fit: contain; |
| display: block; |
| margin: auto; |
| } |
| #queue_html_container .draggable-row { |
| cursor: grab; |
| } |
| #queue_html_container tr.dragging { |
| opacity: 0.5; |
| background: #2d3748; |
| } |
| #queue_html_container tr.drag-over-top { |
| border-top: 6px solid #4299e1; |
| } |
| #queue_html_container tr.drag-over-bottom { |
| border-bottom: 6px solid #4299e1; |
| } |
| #queue_html_container .action-button svg { |
| width: calc(20px * var(--wangp-ui-scale)); |
| height: calc(20px * var(--wangp-ui-scale)); |
| } |
|
|
| #queue_html_container .drag-handle svg { |
| width: calc(20px * var(--wangp-ui-scale)); |
| height: calc(20px * var(--wangp-ui-scale)); |
| } |
| #queue_html_container .action-button:hover svg { |
| fill: #e2e8f0; |
| } |
| #image-modal-container { |
| position: fixed; |
| top: 0; |
| left: 0; |
| width: 100%; |
| height: 100%; |
| background-color: rgba(0, 0, 0, 0.85); |
| z-index: 1000; |
| cursor: pointer; |
| } |
| #image-modal-container .modal-flex-container { |
| display: flex; |
| justify-content: center; |
| align-items: center; |
| width: 100%; |
| height: 100%; |
| padding: 2vh; |
| box-sizing: border-box; |
| } |
| #image-modal-container .modal-content-wrapper { |
| position: relative; |
| background: #1f2937; |
| padding: 0; |
| border-radius: 8px; |
| cursor: default; |
| display: flex; |
| flex-direction: column; |
| max-width: 95vw; |
| max-height: 95vh; |
| overflow: hidden; |
| } |
| #image-modal-container .modal-close-btn { |
| position: absolute; |
| top: calc(10px * var(--wangp-ui-scale)); |
| right: calc(10px * var(--wangp-ui-scale)); |
| width: calc(40px * var(--wangp-ui-scale)); |
| height: calc(40px * var(--wangp-ui-scale)); |
| background-color: rgba(0, 0, 0, 0.5); |
| border-radius: 50%; |
| color: #fff; |
| font-size: calc(1.8rem * var(--wangp-ui-scale)); |
| font-weight: bold; |
| display: flex; |
| justify-content: center; |
| align-items: center; |
| cursor: pointer; |
| line-height: 1; |
| z-index: 1002; |
| transition: background-color 0.2s, transform 0.2s; |
| text-shadow: 0 0 5px rgba(0,0,0,0.5); |
| } |
| #image-modal-container .modal-close-btn:hover { |
| background-color: rgba(0, 0, 0, 0.8); |
| transform: scale(1.1); |
| } |
| #image-modal-container .modal-label { |
| position: absolute; |
| top: calc(10px * var(--wangp-ui-scale)); |
| left: calc(15px * var(--wangp-ui-scale)); |
| background: rgba(0,0,0,0.7); |
| color: white; |
| padding: calc(5px * var(--wangp-ui-scale)) calc(10px * var(--wangp-ui-scale)); |
| font-size: calc(14px * var(--wangp-ui-scale)); |
| border-radius: 4px; |
| z-index: 1001; |
| } |
| #image-modal-container .modal-image { |
| width: 100%; |
| height: 100%; |
| object-fit: contain; |
| } |
| .progress-container-custom { |
| width: 100%; |
| background-color: #e9ecef; |
| border-radius: 0.375rem; |
| overflow: hidden; |
| height: calc(25px * var(--wangp-ui-scale)); |
| position: relative; |
| margin-top: 5px; |
| margin-bottom: 5px; |
| } |
| .progress-bar-custom { |
| height: 100%; |
| background-color: #0d6efd; |
| transition: width 0.3s ease-in-out; |
| display: flex; |
| align-items: center; |
| justify-content: center; |
| color: white; |
| font-size: 0.9em; |
| font-weight: bold; |
| white-space: nowrap; |
| overflow: hidden; |
| } |
| .progress-bar-custom.idle { |
| background-color: #6c757d; |
| } |
| .progress-bar-text { |
| position: absolute; |
| top: 0; |
| left: 0; |
| width: 100%; |
| height: 100%; |
| display: flex; |
| align-items: center; |
| justify-content: center; |
| color: white; |
| mix-blend-mode: difference; |
| font-size: 0.9em; |
| font-weight: bold; |
| white-space: nowrap; |
| z-index: 2; |
| pointer-events: none; |
| } |
|
|
| .hover-image { |
| cursor: pointer; |
| position: relative; |
| display: inline-block; |
| } |
|
|
| .hover-image .tooltip { |
| visibility: hidden; |
| opacity: 0; |
| position: absolute; |
| top: 100%; |
| left: 50%; |
| transform: translateX(-50%); |
| background-color: rgba(0, 0, 0, 0.8); |
| color: white; |
| padding: calc(4px * var(--wangp-ui-scale)) calc(6px * var(--wangp-ui-scale)); |
| border-radius: 2px; |
| font-size: calc(14px * var(--wangp-ui-scale)); |
| white-space: nowrap; |
| pointer-events: none; |
| z-index: 9999; |
| transition: visibility 0s linear 1s, opacity 0.3s linear 1s; |
| } |
| div.compact_tab , span.compact_tab |
| { padding: 0px !important; |
| } |
| .hover-image .tooltip2 { |
| visibility: hidden; |
| opacity: 0; |
| position: absolute; |
| top: 50%; |
| left: 0; |
| transform: translateY(-50%); |
| margin-left: -10px; |
| background-color: rgba(0, 0, 0, 0.8); |
| color: white; |
| padding: calc(8px * var(--wangp-ui-scale)) calc(12px * var(--wangp-ui-scale)); |
| border-radius: 4px; |
| font-size: calc(14px * var(--wangp-ui-scale)); |
| white-space: nowrap; |
| pointer-events: none; |
| z-index: 9999; |
| transition: visibility 0s linear 1s, opacity 0.3s linear 1s; |
| } |
|
|
| .hover-image:hover .tooltip, .hover-image:hover .tooltip2 { |
| visibility: visible; |
| opacity: 1; |
| transition: visibility 0s linear 1s, opacity 0.3s linear 1s; |
| } |
| .btn_centered {margin-top: calc(10px * var(--wangp-ui-scale)); text-wrap-mode: nowrap;} |
| .cbx_centered label {margin-top: calc(8px * var(--wangp-ui-scale)); text-wrap-mode: nowrap;} |
| .cbx_bottom label {padding-top: calc(48px * var(--wangp-ui-scale)); text-wrap-mode: nowrap;} |
| .copy-swap { |
| display: block; |
| max-width: 100%; |
| position: relative; |
| } |
| .copy-swap__trunc { |
| display: block; |
| white-space: nowrap; |
| overflow: hidden; |
| text-overflow: ellipsis; |
| } |
| .copy-swap__full { display: none; } |
| .copy-swap:hover .copy-swap__trunc, |
| .copy-swap:focus-within .copy-swap__trunc { visibility: hidden; } |
| .copy-swap:hover .copy-swap__full, |
| .copy-swap:focus-within .copy-swap__full { |
| display: block; |
| position: absolute; |
| left: 0; |
| top: 0; |
| z-index: 50; |
| min-width: 100%; |
| width: 100%; |
| box-sizing: border-box; |
| padding: calc(2px * var(--wangp-ui-scale)) calc(4px * var(--wangp-ui-scale)); |
| border: 1px solid var(--border-color-primary); |
| border-radius: 4px; |
| background: var(--background-fill-primary); |
| box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18); |
| white-space: normal; |
| overflow-wrap: anywhere; |
| user-select: text; |
| } |
| .compact_text {padding: calc(1px * var(--wangp-ui-scale))} |
| #video_input .video-container .container { |
| flex-direction: row !important; |
| display: flex !important; |
| } |
| #video_input .video-container .container .controls { |
| overflow: visible !important; |
| } |
| .tabitem {padding-top:0px} |
| .rule-row { margin-bottom: calc(8px * var(--wangp-ui-scale)); align-items: center !important; display: flex; gap: calc(8px * var(--wangp-ui-scale)); } |
| .rule-card { background-color: var(--background-fill-secondary); padding: calc(8px * var(--wangp-ui-scale)) calc(12px * var(--wangp-ui-scale)); border-radius: calc(6px * var(--wangp-ui-scale)); border: 1px solid var(--border-color-primary); flex-grow: 1; margin-bottom: 0 !important; } |
| .rule-card p { margin-bottom: 0 !important; } |
| .delete-btn { |
| min-width: calc(42px * var(--wangp-ui-scale)) !important; |
| max-width: calc(42px * var(--wangp-ui-scale)) !important; |
| height: calc(42px * var(--wangp-ui-scale)) !important; |
| padding: 0 !important; |
| align-self: center; |
| } |
| #refiner-input-row { align-items: center; } |
| .sam3-keyword-row { |
| align-items: stretch !important; |
| } |
| .sam3-keyword-row .sam3-keyword-button, |
| .sam3-keyword-row .sam3-keyword-button > button { |
| height: 100% !important; |
| min-height: 100% !important; |
| } |
|
|
| .header-markdown-group, |
| .header-markdown-group > div { |
| background: transparent !important; |
| border: none !important; |
| box-shadow: none !important; |
| } |
| .header-markdown-group { |
| padding: 0 !important; |
| } |
| .header-markdown-group .prose { |
| margin-top: 0 !important; |
| margin-bottom: 0 !important; |
| } |
|
|