Spaces:
Running on Zero
Running on Zero
Fix layout
Browse files- app.py +8 -6
- app/explorer.css +176 -175
- app/explorer.js +9 -0
- app/theme.css +33 -33
- inversion/explorer.py +2 -1
app.py
CHANGED
|
@@ -252,16 +252,18 @@ def _after_run(img):
|
|
| 252 |
# --------------------------------------------------------------------------- layout
|
| 253 |
|
| 254 |
with gr.Blocks(title="Prompt Reverse Engineer") as demo:
|
| 255 |
-
gr.HTML(HEADER_HTML)
|
| 256 |
|
| 257 |
with gr.Row(equal_height=False):
|
| 258 |
with gr.Column(scale=1, min_width=320):
|
| 259 |
with gr.Group(elem_classes="pre-group"):
|
| 260 |
-
gr.HTML('<p class="pre-step-title">1 · Original image</p>', elem_classes="pre-group-title"
|
|
|
|
| 261 |
image = gr.Image(type="pil", label="Original image", show_label=False,
|
| 262 |
sources=["upload", "clipboard"], height=320, elem_classes="pre-image")
|
| 263 |
with gr.Group(elem_classes="pre-group"):
|
| 264 |
-
gr.HTML('<p class="pre-step-title">2 · Stopping rule</p>', elem_classes="pre-group-title"
|
|
|
|
| 265 |
max_iters = gr.Slider(1, 8, value=3, step=1, label="Max iterations")
|
| 266 |
vqa_gate = gr.Slider(0.5, 1.0, value=0.82, step=0.01, label="Min. predicate agreement (S_VQA)")
|
| 267 |
dino_gate = gr.Slider(0.0, 1.0, value=0.65, step=0.01, label="Min. layout similarity (S_DINO)",
|
|
@@ -275,12 +277,12 @@ with gr.Blocks(title="Prompt Reverse Engineer") as demo:
|
|
| 275 |
ground = gr.Checkbox(value=True, label="Ground predicates on the original",
|
| 276 |
info="Removes facts the scorer rejects on the original image.")
|
| 277 |
run_button = gr.Button("Invert image", variant="primary", size="lg", interactive=False)
|
| 278 |
-
hint = gr.HTML('<p class="pre-hint">Upload an image to start.</p>')
|
| 279 |
|
| 280 |
with gr.Column(scale=3, min_width=560):
|
| 281 |
-
intro = gr.HTML(INTRO_HTML)
|
| 282 |
with gr.Column(visible=False) as results:
|
| 283 |
-
explorer = gr.HTML(js_on_load=EXPLORER_JS)
|
| 284 |
best_prompt = gr.Textbox(label="Verified prompt", visible=False)
|
| 285 |
report = gr.File(label="Run report (JSON)", visible=False)
|
| 286 |
|
|
|
|
| 252 |
# --------------------------------------------------------------------------- layout
|
| 253 |
|
| 254 |
with gr.Blocks(title="Prompt Reverse Engineer") as demo:
|
| 255 |
+
gr.HTML(HEADER_HTML, apply_default_css=False)
|
| 256 |
|
| 257 |
with gr.Row(equal_height=False):
|
| 258 |
with gr.Column(scale=1, min_width=320):
|
| 259 |
with gr.Group(elem_classes="pre-group"):
|
| 260 |
+
gr.HTML('<p class="pre-step-title">1 · Original image</p>', elem_classes="pre-group-title",
|
| 261 |
+
apply_default_css=False)
|
| 262 |
image = gr.Image(type="pil", label="Original image", show_label=False,
|
| 263 |
sources=["upload", "clipboard"], height=320, elem_classes="pre-image")
|
| 264 |
with gr.Group(elem_classes="pre-group"):
|
| 265 |
+
gr.HTML('<p class="pre-step-title">2 · Stopping rule</p>', elem_classes="pre-group-title",
|
| 266 |
+
apply_default_css=False)
|
| 267 |
max_iters = gr.Slider(1, 8, value=3, step=1, label="Max iterations")
|
| 268 |
vqa_gate = gr.Slider(0.5, 1.0, value=0.82, step=0.01, label="Min. predicate agreement (S_VQA)")
|
| 269 |
dino_gate = gr.Slider(0.0, 1.0, value=0.65, step=0.01, label="Min. layout similarity (S_DINO)",
|
|
|
|
| 277 |
ground = gr.Checkbox(value=True, label="Ground predicates on the original",
|
| 278 |
info="Removes facts the scorer rejects on the original image.")
|
| 279 |
run_button = gr.Button("Invert image", variant="primary", size="lg", interactive=False)
|
| 280 |
+
hint = gr.HTML('<p class="pre-hint">Upload an image to start.</p>', apply_default_css=False)
|
| 281 |
|
| 282 |
with gr.Column(scale=3, min_width=560):
|
| 283 |
+
intro = gr.HTML(INTRO_HTML, apply_default_css=False)
|
| 284 |
with gr.Column(visible=False) as results:
|
| 285 |
+
explorer = gr.HTML(js_on_load=EXPLORER_JS, apply_default_css=False)
|
| 286 |
best_prompt = gr.Textbox(label="Verified prompt", visible=False)
|
| 287 |
report = gr.File(label="Run report (JSON)", visible=False)
|
| 288 |
|
app/explorer.css
CHANGED
|
@@ -6,224 +6,225 @@
|
|
| 6 |
--pre-accent-strong:#A9C1F5;--pre-pass-fill:#3FAF7A;--pre-pass-line:#24533F;--pre-pass-tint:#13261E;
|
| 7 |
--pre-warn-fill:#E08A45;--pre-warn-line:#5A3A1E;--pre-warn-tint:#271B11;--pre-solid:#2B59C3;--pre-info-bg:#1D2A45}
|
| 8 |
|
| 9 |
-
.pre-hint{font-size:12px;color:var(--pre-muted);text-align:center;margin:-4px 0 0}
|
| 10 |
|
| 11 |
-
.pre-x{display:flex;flex-direction:column;gap:16px;color:var(--pre-text);font-size:14px;line-height:1.5}
|
| 12 |
-
.pre-x [hidden]{display:none !important}
|
| 13 |
-
.pre-x .mono{font-family:var(--font-mono)}
|
| 14 |
-
.pre-x .muted{color:var(--pre-muted)}
|
| 15 |
-
.pre-x h2,.pre-x h3,.pre-x p{margin:0}
|
| 16 |
-
.pre-x button:focus-visible,.pre-x a:focus-visible{outline:2px solid var(--pre-accent);outline-offset:2px}
|
| 17 |
|
| 18 |
/* header: status, controls, navigator */
|
| 19 |
-
.pre-x-head,.pre-x-stage{background:var(--pre-card);border:1px solid var(--pre-line);border-radius:12px}
|
| 20 |
-
.pre-x-head{padding:18px 24px 16px;display:flex;flex-direction:column;gap:16px}
|
| 21 |
-
.pre-x-headrow{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px}
|
| 22 |
-
.pre-x-headstatus{display:flex;flex-wrap:wrap;align-items:center;gap:12px;min-width:0}
|
| 23 |
-
.pre-x-status{color:var(--pre-muted)}
|
| 24 |
-
.pre-x-pulse{width:7px;height:7px;border-radius:999px;background:currentColor;animation:pre-pulse 1.2s ease-in-out infinite}
|
| 25 |
-
.pre-x-controls{display:flex;align-items:center;gap:8px}
|
| 26 |
-
.pre-x-counter{font-size:12px;color:var(--pre-muted);margin-right:4px}
|
| 27 |
-
.pre-x-icon,.pre-x-play{height:44px;display:inline-flex;align-items:center;justify-content:center;
|
| 28 |
border:1px solid var(--pre-input-line);border-radius:8px;background:var(--pre-card);color:var(--pre-text);cursor:pointer}
|
| 29 |
-
.pre-x-icon{width:44px}
|
| 30 |
-
.pre-x-icon:disabled{opacity:.4;cursor:default}
|
| 31 |
-
.pre-x-play{min-width:104px;gap:8px;padding:0 14px;font-size:13px;font-weight:600}
|
| 32 |
-
.pre-x-play .i-pause,.pre-x-play .i-play,.pre-x-play .i-replay{display:none;line-height:0}
|
| 33 |
-
.pre-x
|
| 34 |
-
.pre-x-play[data-state="
|
|
|
|
| 35 |
|
| 36 |
-
.pre-x-nav{overflow-x:auto}
|
| 37 |
-
.pre-x-groups{display:flex;gap:20px
|
| 38 |
-
.pre-x-group{display:flex;flex-direction:column;gap:6px;min-width:0}
|
| 39 |
-
.pre-x-glabel{font-size:11px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--pre-muted)}
|
| 40 |
-
.pre-x-group.active .pre-x-glabel{color:var(--pre-accent)}
|
| 41 |
-
.pre-x-group ol{list-style:none;margin:0;padding:0;display:grid;gap:8px}
|
| 42 |
-
.pre-x-group li{margin:0;min-width:0}
|
| 43 |
-
.pre-x-step{display:flex;flex-direction:column;gap:6px;width:100%;min-height:44px;padding:4px 0;background:none;
|
| 44 |
border:0;text-align:left;cursor:pointer;font:inherit;color:inherit}
|
| 45 |
-
.pre-x-step:disabled{cursor:default}
|
| 46 |
-
.pre-x-track{position:relative;display:block;height:4px;border-radius:999px;overflow:hidden;background:var(--pre-line)}
|
| 47 |
-
.pre-x-fill{position:absolute;inset:0;border-radius:999px;background:var(--pre-accent);transform-origin:left center;transform:scaleX(0)}
|
| 48 |
-
.pre-x-step.done .pre-x-track{background:var(--pre-accent)}
|
| 49 |
-
.pre-x-step.live .pre-x-track{background:var(--pre-accent);opacity:.45;animation:pre-pulse 1.2s ease-in-out infinite}
|
| 50 |
-
.pre-x.replaying .pre-x-step .pre-x-track{background:var(--pre-line);opacity:1;animation:none}
|
| 51 |
-
.pre-x.replaying .pre-x-step.before .pre-x-track{background:var(--pre-accent)}
|
| 52 |
-
.pre-x-step.is-timed .pre-x-fill{animation:pre-x-seg var(--pre-x-dwell,3200ms) linear both}
|
| 53 |
-
.pre-x-stepnum{font-family:var(--font-mono);font-size:12px;color:var(--pre-muted)}
|
| 54 |
-
.pre-x-steplabel{font-size:13px;line-height:1.3;font-weight:500}
|
| 55 |
-
.pre-x-step.pending .pre-x-steplabel{color:var(--pre-muted)}
|
| 56 |
-
.pre-x-step.is-current .pre-x-stepnum{color:var(--pre-accent)}
|
| 57 |
-
.pre-x-step.is-current .pre-x-steplabel{font-weight:600}
|
| 58 |
|
| 59 |
/* stage panel */
|
| 60 |
-
.pre-x-stage{overflow:hidden}
|
| 61 |
-
.pre-x-stage.pre-x-enter{animation:pre-x-in .28s ease-out both}
|
| 62 |
-
.pre-x-shead{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;gap:12px;
|
| 63 |
padding:18px 24px;border-bottom:1px solid var(--pre-line)}
|
| 64 |
-
.pre-x-shead>div:first-child{display:flex;flex-direction:column;gap:2px;min-width:0}
|
| 65 |
-
.pre-x-kicker{font-size:12px;color:var(--pre-muted)}
|
| 66 |
-
.pre-x-shead h2{font-size:18px;font-weight:600;line-height:1.3}
|
| 67 |
-
.pre-x-shead p{font-size:13px;color:var(--pre-muted);max-width:70ch}
|
| 68 |
-
.pre-x-chip{padding:4px 10px;border:1px solid var(--pre-line);border-radius:999px;font-size:12px;color:var(--pre-muted);white-space:nowrap}
|
| 69 |
-
.pre-x-chip-plain{font-size:12px;color:var(--pre-muted)}
|
| 70 |
-
.pre-x-verdict{display:inline-flex;align-items:center;gap:6px;padding:4px 10px;border-radius:999px;font-size:13px;font-weight:600;white-space:nowrap}
|
| 71 |
-
.pre-x-verdict.ok{background:var(--pre-pass-bg);color:var(--pre-pass)}
|
| 72 |
-
.pre-x-verdict.warn{background:var(--pre-warn-bg);color:var(--pre-warn)}
|
| 73 |
-
.pre-x-body{padding:24px}
|
| 74 |
-
.pre-x-foot{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;padding:14px 24px;
|
| 75 |
border-top:1px solid var(--pre-line);background:var(--pre-subtle);font-size:13px;color:var(--pre-muted)}
|
| 76 |
-
.pre-x-next{min-height:40px;display:inline-flex;align-items:center;gap:6px;padding:0 14px;border:0;border-radius:8px;
|
| 77 |
background:var(--pre-solid);color:#FFFFFF;font-size:13px;font-weight:600;cursor:pointer}
|
| 78 |
-
.pre-x-next:disabled{background:var(--pre-neutral-bg);color:var(--pre-muted);cursor:default}
|
| 79 |
-
.pre-x-btn{min-height:40px;display:inline-flex;align-items:center;gap:8px;padding:0 14px;border:1px solid var(--pre-input-line);
|
| 80 |
border-radius:8px;background:var(--pre-card);color:var(--pre-text);font-size:13px;font-weight:500;cursor:pointer;text-decoration:none}
|
| 81 |
-
.pre-x-btn.sm{min-height:36px;padding:0 12px;align-self:flex-end}
|
| 82 |
-
.pre-x-actions{display:flex;flex-wrap:wrap;gap:8px}
|
| 83 |
-
.pre-x-link{display:inline-flex;align-items:center;gap:6px;min-height:36px;padding:0;background:none;border:0;
|
| 84 |
color:var(--pre-accent);font-size:13px;font-weight:500;cursor:pointer}
|
| 85 |
-
.pre-x-link svg{transition:transform .15s}
|
| 86 |
-
.pre-x-link[aria-expanded="true"] svg{transform:rotate(180deg)}
|
| 87 |
|
| 88 |
/* layouts */
|
| 89 |
-
.pre-x-split{display:flex;flex-wrap:wrap;gap:24px}
|
| 90 |
-
.pre-x-split>.pre-x-fig{flex:1 1 260px;max-width:360px;min-width:0}
|
| 91 |
-
.pre-x-col{flex:1 1 300px;min-width:0;display:flex;flex-direction:column;gap:16px}
|
| 92 |
-
.pre-x-stack{display:flex;flex-direction:column;gap:20px}
|
| 93 |
-
.pre-x-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;max-width:720px}
|
| 94 |
-
.pre-x-cmp{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:16px}
|
| 95 |
|
| 96 |
/* figures and grid overlays */
|
| 97 |
-
.pre-x-fig{margin:0;display:flex;flex-direction:column;gap:8px}
|
| 98 |
-
.pre-x-imgbox{position:relative;width:100%;border-radius:8px;overflow:hidden;background:var(--pre-subtle);border:1px solid var(--pre-line)}
|
| 99 |
-
.pre-x-fig.current .pre-x-imgbox{border:2px solid var(--pre-solid)}
|
| 100 |
-
.pre-x-imgbox img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;display:block}
|
| 101 |
-
.pre-x-wait{position:absolute;inset:0;display:flex;align-items:center;justify-content:center}
|
| 102 |
-
.pre-x-wait .pre-x-skel{border:0;background:none}
|
| 103 |
-
.pre-x-fig figcaption{font-size:13px}
|
| 104 |
-
.pre-x-cap{display:flex;justify-content:space-between;gap:8px}
|
| 105 |
-
.pre-x-cmp .pre-x-cap{flex-direction:column;gap:2px}
|
| 106 |
-
.pre-x-best{position:absolute;top:8px;left:8px;padding:2px 8px;border-radius:999px;background:var(--pre-solid);color:#FFFFFF;font-size:11px;font-weight:600}
|
| 107 |
-
.pre-x-cell{position:absolute;width:33.3333%;height:33.3333%;box-sizing:border-box}
|
| 108 |
-
.pre-x-cell.node{border:1.5px dashed var(--pre-solid);background:rgba(43,89,195,.06)}
|
| 109 |
-
.pre-x-cell.from{border:2px dashed #8A92A1}
|
| 110 |
-
.pre-x-cell.to{border:2px solid var(--pre-solid);background:rgba(43,89,195,.10)}
|
| 111 |
-
.pre-x-tag{position:absolute;left:4px;top:4px;max-width:calc(100% - 8px);padding:1px 6px;border-radius:4px;background:var(--pre-solid);
|
| 112 |
color:#FFFFFF;font-family:var(--font-mono);font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
|
| 113 |
-
.pre-x-cell.from .pre-x-tag{background:#FFFFFF;color:#3F4552}
|
| 114 |
-
.pre-x-cell.to .pre-x-tag{top:auto;bottom:4px}
|
| 115 |
-
.pre-x-gl{position:absolute;background:rgba(20,23,31,.22)}
|
| 116 |
-
.pre-x-gl.v{top:0;bottom:0;width:1px}
|
| 117 |
-
.pre-x-gl.h{left:0;right:0;height:1px}
|
| 118 |
|
| 119 |
/* text blocks */
|
| 120 |
-
.pre-x-dl{margin:0;display:grid;grid-template-columns:96px minmax(0,1fr);gap:10px 16px;font-size:13px}
|
| 121 |
-
.pre-x-dl dt{color:var(--pre-muted)}
|
| 122 |
-
.pre-x-dl dd{margin:0;overflow-wrap:anywhere}
|
| 123 |
-
.pre-x-chips{display:flex;flex-wrap:wrap;gap:6px}
|
| 124 |
-
.pre-x-chiplet{padding:2px 8px;border:1px solid var(--pre-line);border-radius:999px;font-size:12px}
|
| 125 |
-
.pre-x-json{margin:8px 0 0;padding:14px 16px;border:1px solid var(--pre-line);border-radius:8px;font-family:var(--font-mono);
|
| 126 |
font-size:12px;line-height:1.6;background:var(--pre-subtle);color:var(--pre-text);overflow:auto;white-space:pre;max-height:420px}
|
| 127 |
-
.pre-x-block{display:flex;flex-direction:column;gap:8px}
|
| 128 |
-
.pre-x-block-head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:12px}
|
| 129 |
-
.pre-x-block-head h3{font-size:13px;font-weight:600}
|
| 130 |
-
.pre-x-block-head span{font-size:12px}
|
| 131 |
-
.pre-x-prompt{padding:14px 16px;border:1px solid var(--pre-line);border-radius:8px;background:var(--pre-subtle);
|
| 132 |
font-size:14px;line-height:1.7;max-width:78ch;white-space:pre-wrap;overflow-wrap:anywhere}
|
| 133 |
-
.pre-x-prompt ins{text-decoration:none;background:var(--pre-pass-bg);color:var(--pre-pass);border-radius:3px;padding:1px 2px}
|
| 134 |
-
.pre-x-prompt del{background:var(--pre-warn-bg);color:var(--pre-warn);border-radius:3px;padding:1px 2px}
|
| 135 |
-
.pre-x-final{font-size:15px;line-height:1.7;max-width:78ch;white-space:pre-wrap;overflow-wrap:anywhere}
|
| 136 |
-
.pre-x-note-box{padding:12px 14px;border:1px dashed var(--pre-line);border-radius:8px;color:var(--pre-muted);font-size:13px}
|
| 137 |
-
.pre-x-fine{font-size:12px;color:var(--pre-muted)}
|
| 138 |
-
.pre-x-error{padding:12px 14px;border-radius:8px;background:var(--pre-warn-bg);color:var(--pre-warn);font-size:13px;overflow-wrap:anywhere}
|
| 139 |
|
| 140 |
/* rows, badges, counts */
|
| 141 |
-
.pre-x-rows{display:flex;flex-direction:column;gap:8px}
|
| 142 |
-
.pre-x-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;
|
| 143 |
border:1px solid var(--pre-line);border-radius:8px}
|
| 144 |
-
.pre-x-row-text{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1 1 240px}
|
| 145 |
-
.pre-x-row-title{font-weight:500;overflow-wrap:anywhere}
|
| 146 |
-
.pre-x-row-text>span:last-child{font-size:12px;color:var(--pre-muted);overflow-wrap:anywhere}
|
| 147 |
-
.pre-x-row-text>span.warn{color:var(--pre-warn)}
|
| 148 |
-
.pre-x-b{display:inline-block;padding:2px 8px;border-radius:999px;font-size:12px;font-weight:600;white-space:nowrap}
|
| 149 |
-
.pre-x-b.pass{background:var(--pre-pass-bg);color:var(--pre-pass)}
|
| 150 |
-
.pre-x-b.fail{background:var(--pre-warn-bg);color:var(--pre-warn)}
|
| 151 |
-
.pre-x-b.blocked,.pre-x-b.removed{background:var(--pre-neutral-bg);color:var(--pre-neutral-fg)}
|
| 152 |
-
.pre-x-b.moved{background:var(--pre-info-bg);color:var(--pre-accent-strong)}
|
| 153 |
-
.pre-x-counts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
|
| 154 |
-
.pre-x-count{border:1px solid var(--pre-line);border-radius:10px;padding:10px 12px;display:flex;flex-direction:column}
|
| 155 |
-
.pre-x-count span{font-size:12px;color:var(--pre-muted)}
|
| 156 |
-
.pre-x-count b{font-family:var(--font-mono);font-size:22px;font-weight:600}
|
| 157 |
-
.pre-x-count.kept{border-color:var(--pre-solid);background:var(--pre-info-bg)}
|
| 158 |
-
.pre-x-count.kept span,.pre-x-count.kept b{color:var(--pre-accent-strong)}
|
| 159 |
|
| 160 |
/* tables */
|
| 161 |
-
.pre-x-tablewrap{border:1px solid var(--pre-line);border-radius:10px;overflow-x:auto}
|
| 162 |
-
.pre-x-table{width:100%;border-collapse:collapse;font-size:13px;min-width:520px;margin:0;border:0}
|
| 163 |
-
.pre-x-table thead,.pre-x-table tbody,.pre-x-table tr{border:0;background:none}
|
| 164 |
-
.pre-x-table th{text-align:left;font-weight:500;font-size:12px;color:var(--pre-muted);background:var(--pre-subtle);padding:10px 12px;border:0}
|
| 165 |
-
.pre-x-table td{padding:10px 12px;border:0;border-top:1px solid var(--pre-line);vertical-align:top;overflow-wrap:anywhere}
|
| 166 |
-
.pre-x-table td.muted{color:var(--pre-muted)}
|
| 167 |
-
.pre-x-tablefoot{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;margin-top:-8px}
|
| 168 |
|
| 169 |
/* metric tiles with gate colors and ? popovers */
|
| 170 |
-
.pre-x-tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
|
| 171 |
-
.pre-x-tile{position:relative;border:1px solid var(--pre-line);background:var(--pre-card);border-radius:10px;padding:14px 16px;
|
| 172 |
display:flex;flex-direction:column;gap:8px}
|
| 173 |
-
.pre-x-tile.ok{border-color:var(--pre-pass-line);background:var(--pre-pass-tint)}
|
| 174 |
-
.pre-x-tile.warn{border-color:var(--pre-warn-line);background:var(--pre-warn-tint)}
|
| 175 |
-
.pre-x-tile-top{display:flex;align-items:center;justify-content:space-between;gap:8px}
|
| 176 |
-
.pre-x-tile-label{font-size:12px;color:var(--pre-muted)}
|
| 177 |
-
.pre-x-help{width:44px;height:44px;margin:-14px -12px -14px 0;padding:0;background:none;border:0;display:flex;
|
| 178 |
align-items:center;justify-content:center;cursor:pointer;flex:none}
|
| 179 |
-
.pre-x-help span{width:20px;height:20px;border-radius:999px;box-sizing:border-box;display:flex;align-items:center;
|
| 180 |
justify-content:center;font-size:12px;font-weight:600;border:1.5px solid var(--pre-muted);background:var(--pre-card);color:var(--pre-text)}
|
| 181 |
-
.pre-x-help[aria-expanded="true"] span{border-color:var(--pre-solid);background:var(--pre-solid);color:#FFFFFF}
|
| 182 |
-
.pre-x-tile-val{display:flex;align-items:baseline;gap:8px}
|
| 183 |
-
.pre-x-num{font-family:var(--font-mono);font-size:28px;font-weight:600;letter-spacing:-.02em}
|
| 184 |
-
.pre-x-tile.ok .pre-x-num{color:var(--pre-pass)}
|
| 185 |
-
.pre-x-tile.warn .pre-x-num{color:var(--pre-warn)}
|
| 186 |
-
.pre-x-note{font-size:12px;color:var(--pre-muted)}
|
| 187 |
-
.pre-x-meter{position:relative;height:6px;border-radius:999px;background:var(--pre-track)}
|
| 188 |
-
.pre-x-meter-fill{position:absolute;left:0;top:0;bottom:0;border-radius:999px;background:var(--pre-accent)}
|
| 189 |
-
.pre-x-tile.ok .pre-x-meter-fill{background:var(--pre-pass-fill)}
|
| 190 |
-
.pre-x-tile.warn .pre-x-meter-fill{background:var(--pre-warn-fill)}
|
| 191 |
-
.pre-x-meter-gate{position:absolute;top:-3px;width:2px;height:12px;background:var(--pre-text)}
|
| 192 |
-
.pre-x-pill{display:inline-flex;align-items:center;gap:6px;align-self:flex-start;padding:3px 8px;border-radius:999px;
|
| 193 |
font-size:12px;font-weight:600;background:var(--pre-neutral-bg);color:var(--pre-text)}
|
| 194 |
-
.pre-x-tile.ok .pre-x-pill{background:var(--pre-pass-bg);color:var(--pre-pass)}
|
| 195 |
-
.pre-x-tile.warn .pre-x-pill{background:var(--pre-warn-bg);color:var(--pre-warn)}
|
| 196 |
-
.pre-x-pop{position:absolute;z-index:10;top:44px;right:8px;width:264px;max-width:calc(100vw - 48px);box-sizing:border-box;
|
| 197 |
background:var(--pre-card);border:1px solid var(--pre-input-line);border-radius:10px;padding:14px 16px;
|
| 198 |
box-shadow:0 8px 24px rgba(20,23,31,.14);display:flex;flex-direction:column;gap:8px}
|
| 199 |
-
.pre-x-pop-title{font-size:13px;font-weight:600}
|
| 200 |
-
.pre-x-pop p{font-size:13px;line-height:1.5}
|
| 201 |
-
.pre-x-pop-gate{font-size:12px;color:var(--pre-muted);font-family:var(--font-mono)}
|
| 202 |
-
.pre-x-legend{display:flex;flex-wrap:wrap;gap:4px 14px;font-size:12px;font-weight:500}
|
| 203 |
-
.pre-x-legend span{display:inline-flex;align-items:center;gap:6px}
|
| 204 |
-
.pre-x-legend .ok{color:var(--pre-pass)}
|
| 205 |
-
.pre-x-legend .warn{color:var(--pre-warn)}
|
| 206 |
-
.pre-x-legend i{width:8px;height:8px;border-radius:999px;display:inline-block}
|
| 207 |
-
.pre-x-legend .ok i{background:var(--pre-pass-fill)}
|
| 208 |
-
.pre-x-legend .warn i{background:var(--pre-warn-fill)}
|
| 209 |
|
| 210 |
/* waiting states */
|
| 211 |
-
.pre-x-skel{display:flex;align-items:center;gap:10px;padding:16px;border:1px dashed var(--pre-line);border-radius:10px;
|
| 212 |
color:var(--pre-muted);font-size:13px}
|
| 213 |
-
.pre-x-spin{width:14px;height:14px;border-radius:999px;border:2px solid var(--pre-line);border-top-color:var(--pre-accent);
|
| 214 |
animation:pre-x-spin .8s linear infinite;flex:none}
|
| 215 |
|
| 216 |
@keyframes pre-x-spin{to{transform:rotate(360deg)}}
|
| 217 |
@keyframes pre-x-in{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
|
| 218 |
@keyframes pre-x-seg{from{transform:scaleX(0)}to{transform:scaleX(1)}}
|
| 219 |
-
@media (prefers-reduced-motion:reduce){.pre-x,.pre-x *{animation:none !important;transition:none !important}}
|
| 220 |
|
| 221 |
@media (max-width:720px){
|
| 222 |
-
.pre-x-head{padding:16px}
|
| 223 |
-
.pre-x-shead,.pre-x-body{padding:16px}
|
| 224 |
-
.pre-x-foot{padding:12px 16px}
|
| 225 |
-
.pre-x-controls{width:100%;justify-content:flex-end}
|
| 226 |
-
.pre-x-tiles{grid-template-columns:minmax(0,1fr);gap:8px}
|
| 227 |
-
.pre-x-num{font-size:24px}
|
| 228 |
-
.pre-x-counts{grid-template-columns:repeat(2,minmax(0,1fr))}
|
| 229 |
}
|
|
|
|
| 6 |
--pre-accent-strong:#A9C1F5;--pre-pass-fill:#3FAF7A;--pre-pass-line:#24533F;--pre-pass-tint:#13261E;
|
| 7 |
--pre-warn-fill:#E08A45;--pre-warn-line:#5A3A1E;--pre-warn-tint:#271B11;--pre-solid:#2B59C3;--pre-info-bg:#1D2A45}
|
| 8 |
|
| 9 |
+
.gradio-container .pre-hint{font-size:12px;color:var(--pre-muted);text-align:center;margin:-4px 0 0}
|
| 10 |
|
| 11 |
+
.gradio-container .pre-x{display:flex;flex-direction:column;gap:16px;color:var(--pre-text);font-size:14px;line-height:1.5}
|
| 12 |
+
.gradio-container .pre-x [hidden]{display:none !important}
|
| 13 |
+
.gradio-container .pre-x .mono{font-family:var(--font-mono)}
|
| 14 |
+
.gradio-container .pre-x .muted{color:var(--pre-muted)}
|
| 15 |
+
.gradio-container .pre-x h2,.gradio-container .pre-x h3,.gradio-container .pre-x p{margin:0}
|
| 16 |
+
.gradio-container .pre-x button:focus-visible,.gradio-container .pre-x a:focus-visible{outline:2px solid var(--pre-accent);outline-offset:2px}
|
| 17 |
|
| 18 |
/* header: status, controls, navigator */
|
| 19 |
+
.gradio-container .pre-x .pre-x-head,.gradio-container .pre-x .pre-x-stage{background:var(--pre-card);border:1px solid var(--pre-line);border-radius:12px}
|
| 20 |
+
.gradio-container .pre-x .pre-x-head{padding:18px 24px 16px;display:flex;flex-direction:column;gap:16px}
|
| 21 |
+
.gradio-container .pre-x .pre-x-headrow{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px}
|
| 22 |
+
.gradio-container .pre-x .pre-x-headstatus{display:flex;flex-wrap:wrap;align-items:center;gap:12px;min-width:0}
|
| 23 |
+
.gradio-container .pre-x .pre-x-status{color:var(--pre-muted)}
|
| 24 |
+
.gradio-container .pre-x .pre-x-pulse{width:7px;height:7px;border-radius:999px;background:currentColor;animation:pre-pulse 1.2s ease-in-out infinite}
|
| 25 |
+
.gradio-container .pre-x .pre-x-controls{display:flex;align-items:center;gap:8px}
|
| 26 |
+
.gradio-container .pre-x .pre-x-counter{font-size:12px;color:var(--pre-muted);margin-right:4px}
|
| 27 |
+
.gradio-container .pre-x .pre-x-icon,.gradio-container .pre-x .pre-x-play{height:44px;display:inline-flex;align-items:center;justify-content:center;
|
| 28 |
border:1px solid var(--pre-input-line);border-radius:8px;background:var(--pre-card);color:var(--pre-text);cursor:pointer}
|
| 29 |
+
.gradio-container .pre-x .pre-x-icon{width:44px}
|
| 30 |
+
.gradio-container .pre-x .pre-x-icon:disabled{opacity:.4;cursor:default}
|
| 31 |
+
.gradio-container .pre-x .pre-x-play{min-width:104px;gap:8px;padding:0 14px;font-size:13px;font-weight:600}
|
| 32 |
+
.gradio-container .pre-x .pre-x-play .i-pause,.gradio-container .pre-x .pre-x-play .i-play,.gradio-container .pre-x .pre-x-play .i-replay{display:none;line-height:0}
|
| 33 |
+
.gradio-container .pre-x .pre-x-play[data-state="pause"] .i-pause,
|
| 34 |
+
.gradio-container .pre-x .pre-x-play[data-state="play"] .i-play,
|
| 35 |
+
.gradio-container .pre-x .pre-x-play[data-state="replay"] .i-replay{display:inline-flex}
|
| 36 |
|
| 37 |
+
.gradio-container .pre-x .pre-x-nav{overflow-x:auto}
|
| 38 |
+
.gradio-container .pre-x .pre-x-groups{display:flex;gap:20px}
|
| 39 |
+
.gradio-container .pre-x .pre-x-group{display:flex;flex-direction:column;gap:6px;min-width:0}
|
| 40 |
+
.gradio-container .pre-x .pre-x-glabel{font-size:11px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--pre-muted)}
|
| 41 |
+
.gradio-container .pre-x .pre-x-group.active .pre-x-glabel{color:var(--pre-accent)}
|
| 42 |
+
.gradio-container .pre-x .pre-x-group ol{list-style:none;margin:0;padding:0;display:grid;gap:8px}
|
| 43 |
+
.gradio-container .pre-x .pre-x-group li{margin:0;min-width:0}
|
| 44 |
+
.gradio-container .pre-x .pre-x-step{display:flex;flex-direction:column;gap:6px;width:100%;min-height:44px;padding:4px 0;background:none;
|
| 45 |
border:0;text-align:left;cursor:pointer;font:inherit;color:inherit}
|
| 46 |
+
.gradio-container .pre-x .pre-x-step:disabled{cursor:default}
|
| 47 |
+
.gradio-container .pre-x .pre-x-track{position:relative;display:block;height:4px;border-radius:999px;overflow:hidden;background:var(--pre-line)}
|
| 48 |
+
.gradio-container .pre-x .pre-x-fill{position:absolute;inset:0;border-radius:999px;background:var(--pre-accent);transform-origin:left center;transform:scaleX(0)}
|
| 49 |
+
.gradio-container .pre-x .pre-x-step.done .pre-x-track{background:var(--pre-accent)}
|
| 50 |
+
.gradio-container .pre-x .pre-x-step.live .pre-x-track{background:var(--pre-accent);opacity:.45;animation:pre-pulse 1.2s ease-in-out infinite}
|
| 51 |
+
.gradio-container .pre-x.replaying .pre-x-step .pre-x-track{background:var(--pre-line);opacity:1;animation:none}
|
| 52 |
+
.gradio-container .pre-x.replaying .pre-x-step.before .pre-x-track{background:var(--pre-accent)}
|
| 53 |
+
.gradio-container .pre-x .pre-x-step.is-timed .pre-x-fill{animation:pre-x-seg var(--pre-x-dwell,3200ms) linear both}
|
| 54 |
+
.gradio-container .pre-x .pre-x-stepnum{font-family:var(--font-mono);font-size:12px;color:var(--pre-muted)}
|
| 55 |
+
.gradio-container .pre-x .pre-x-steplabel{font-size:13px;line-height:1.3;font-weight:500}
|
| 56 |
+
.gradio-container .pre-x .pre-x-step.pending .pre-x-steplabel{color:var(--pre-muted)}
|
| 57 |
+
.gradio-container .pre-x .pre-x-step.is-current .pre-x-stepnum{color:var(--pre-accent)}
|
| 58 |
+
.gradio-container .pre-x .pre-x-step.is-current .pre-x-steplabel{font-weight:600}
|
| 59 |
|
| 60 |
/* stage panel */
|
| 61 |
+
.gradio-container .pre-x .pre-x-stage{overflow:hidden}
|
| 62 |
+
.gradio-container .pre-x .pre-x-stage.pre-x-enter{animation:pre-x-in .28s ease-out both}
|
| 63 |
+
.gradio-container .pre-x .pre-x-shead{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;gap:12px;
|
| 64 |
padding:18px 24px;border-bottom:1px solid var(--pre-line)}
|
| 65 |
+
.gradio-container .pre-x .pre-x-shead>div:first-child{display:flex;flex-direction:column;gap:2px;min-width:0}
|
| 66 |
+
.gradio-container .pre-x .pre-x-kicker{font-size:12px;color:var(--pre-muted)}
|
| 67 |
+
.gradio-container .pre-x .pre-x-shead h2{font-size:18px;font-weight:600;line-height:1.3}
|
| 68 |
+
.gradio-container .pre-x .pre-x-shead p{font-size:13px;color:var(--pre-muted);max-width:70ch}
|
| 69 |
+
.gradio-container .pre-x .pre-x-chip{padding:4px 10px;border:1px solid var(--pre-line);border-radius:999px;font-size:12px;color:var(--pre-muted);white-space:nowrap}
|
| 70 |
+
.gradio-container .pre-x .pre-x-chip-plain{font-size:12px;color:var(--pre-muted)}
|
| 71 |
+
.gradio-container .pre-x .pre-x-verdict{display:inline-flex;align-items:center;gap:6px;padding:4px 10px;border-radius:999px;font-size:13px;font-weight:600;white-space:nowrap}
|
| 72 |
+
.gradio-container .pre-x .pre-x-verdict.ok{background:var(--pre-pass-bg);color:var(--pre-pass)}
|
| 73 |
+
.gradio-container .pre-x .pre-x-verdict.warn{background:var(--pre-warn-bg);color:var(--pre-warn)}
|
| 74 |
+
.gradio-container .pre-x .pre-x-body{padding:24px}
|
| 75 |
+
.gradio-container .pre-x .pre-x-foot{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;padding:14px 24px;
|
| 76 |
border-top:1px solid var(--pre-line);background:var(--pre-subtle);font-size:13px;color:var(--pre-muted)}
|
| 77 |
+
.gradio-container .pre-x .pre-x-next{min-height:40px;display:inline-flex;align-items:center;gap:6px;padding:0 14px;border:0;border-radius:8px;
|
| 78 |
background:var(--pre-solid);color:#FFFFFF;font-size:13px;font-weight:600;cursor:pointer}
|
| 79 |
+
.gradio-container .pre-x .pre-x-next:disabled{background:var(--pre-neutral-bg);color:var(--pre-muted);cursor:default}
|
| 80 |
+
.gradio-container .pre-x .pre-x-btn{min-height:40px;display:inline-flex;align-items:center;gap:8px;padding:0 14px;border:1px solid var(--pre-input-line);
|
| 81 |
border-radius:8px;background:var(--pre-card);color:var(--pre-text);font-size:13px;font-weight:500;cursor:pointer;text-decoration:none}
|
| 82 |
+
.gradio-container .pre-x .pre-x-btn.sm{min-height:36px;padding:0 12px;align-self:flex-end}
|
| 83 |
+
.gradio-container .pre-x .pre-x-actions{display:flex;flex-wrap:wrap;gap:8px}
|
| 84 |
+
.gradio-container .pre-x .pre-x-link{display:inline-flex;align-items:center;gap:6px;min-height:36px;padding:0;background:none;border:0;
|
| 85 |
color:var(--pre-accent);font-size:13px;font-weight:500;cursor:pointer}
|
| 86 |
+
.gradio-container .pre-x .pre-x-link svg{transition:transform .15s}
|
| 87 |
+
.gradio-container .pre-x .pre-x-link[aria-expanded="true"] svg{transform:rotate(180deg)}
|
| 88 |
|
| 89 |
/* layouts */
|
| 90 |
+
.gradio-container .pre-x .pre-x-split{display:flex;flex-wrap:wrap;gap:24px}
|
| 91 |
+
.gradio-container .pre-x .pre-x-split>.pre-x-fig{flex:1 1 260px;max-width:360px;min-width:0}
|
| 92 |
+
.gradio-container .pre-x .pre-x-col{flex:1 1 300px;min-width:0;display:flex;flex-direction:column;gap:16px}
|
| 93 |
+
.gradio-container .pre-x .pre-x-stack{display:flex;flex-direction:column;gap:20px}
|
| 94 |
+
.gradio-container .pre-x .pre-x-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;max-width:720px}
|
| 95 |
+
.gradio-container .pre-x .pre-x-cmp{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:16px}
|
| 96 |
|
| 97 |
/* figures and grid overlays */
|
| 98 |
+
.gradio-container .pre-x .pre-x-fig{margin:0;display:flex;flex-direction:column;gap:8px}
|
| 99 |
+
.gradio-container .pre-x .pre-x-imgbox{position:relative;width:100%;border-radius:8px;overflow:hidden;background:var(--pre-subtle);border:1px solid var(--pre-line)}
|
| 100 |
+
.gradio-container .pre-x .pre-x-fig.current .pre-x-imgbox{border:2px solid var(--pre-solid)}
|
| 101 |
+
.gradio-container .pre-x .pre-x-imgbox img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;display:block}
|
| 102 |
+
.gradio-container .pre-x .pre-x-wait{position:absolute;inset:0;display:flex;align-items:center;justify-content:center}
|
| 103 |
+
.gradio-container .pre-x .pre-x-wait .pre-x-skel{border:0;background:none}
|
| 104 |
+
.gradio-container .pre-x .pre-x-fig figcaption{font-size:13px}
|
| 105 |
+
.gradio-container .pre-x .pre-x-cap{display:flex;justify-content:space-between;gap:8px}
|
| 106 |
+
.gradio-container .pre-x .pre-x-cmp .pre-x-cap{flex-direction:column;gap:2px}
|
| 107 |
+
.gradio-container .pre-x .pre-x-best{position:absolute;top:8px;left:8px;padding:2px 8px;border-radius:999px;background:var(--pre-solid);color:#FFFFFF;font-size:11px;font-weight:600}
|
| 108 |
+
.gradio-container .pre-x .pre-x-cell{position:absolute;width:33.3333%;height:33.3333%;box-sizing:border-box}
|
| 109 |
+
.gradio-container .pre-x .pre-x-cell.node{border:1.5px dashed var(--pre-solid);background:rgba(43,89,195,.06)}
|
| 110 |
+
.gradio-container .pre-x .pre-x-cell.from{border:2px dashed #8A92A1}
|
| 111 |
+
.gradio-container .pre-x .pre-x-cell.to{border:2px solid var(--pre-solid);background:rgba(43,89,195,.10)}
|
| 112 |
+
.gradio-container .pre-x .pre-x-tag{position:absolute;left:4px;top:4px;max-width:calc(100% - 8px);padding:1px 6px;border-radius:4px;background:var(--pre-solid);
|
| 113 |
color:#FFFFFF;font-family:var(--font-mono);font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
|
| 114 |
+
.gradio-container .pre-x .pre-x-cell.from .pre-x-tag{background:#FFFFFF;color:#3F4552}
|
| 115 |
+
.gradio-container .pre-x .pre-x-cell.to .pre-x-tag{top:auto;bottom:4px}
|
| 116 |
+
.gradio-container .pre-x .pre-x-gl{position:absolute;background:rgba(20,23,31,.22)}
|
| 117 |
+
.gradio-container .pre-x .pre-x-gl.v{top:0;bottom:0;width:1px}
|
| 118 |
+
.gradio-container .pre-x .pre-x-gl.h{left:0;right:0;height:1px}
|
| 119 |
|
| 120 |
/* text blocks */
|
| 121 |
+
.gradio-container .pre-x .pre-x-dl{margin:0;display:grid;grid-template-columns:96px minmax(0,1fr);gap:10px 16px;font-size:13px}
|
| 122 |
+
.gradio-container .pre-x .pre-x-dl dt{color:var(--pre-muted)}
|
| 123 |
+
.gradio-container .pre-x .pre-x-dl dd{margin:0;overflow-wrap:anywhere}
|
| 124 |
+
.gradio-container .pre-x .pre-x-chips{display:flex;flex-wrap:wrap;gap:6px}
|
| 125 |
+
.gradio-container .pre-x .pre-x-chiplet{padding:2px 8px;border:1px solid var(--pre-line);border-radius:999px;font-size:12px}
|
| 126 |
+
.gradio-container .pre-x .pre-x-json{margin:8px 0 0;padding:14px 16px;border:1px solid var(--pre-line);border-radius:8px;font-family:var(--font-mono);
|
| 127 |
font-size:12px;line-height:1.6;background:var(--pre-subtle);color:var(--pre-text);overflow:auto;white-space:pre;max-height:420px}
|
| 128 |
+
.gradio-container .pre-x .pre-x-block{display:flex;flex-direction:column;gap:8px}
|
| 129 |
+
.gradio-container .pre-x .pre-x-block-head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:12px}
|
| 130 |
+
.gradio-container .pre-x .pre-x-block-head h3{font-size:13px;font-weight:600}
|
| 131 |
+
.gradio-container .pre-x .pre-x-block-head span{font-size:12px}
|
| 132 |
+
.gradio-container .pre-x .pre-x-prompt{padding:14px 16px;border:1px solid var(--pre-line);border-radius:8px;background:var(--pre-subtle);
|
| 133 |
font-size:14px;line-height:1.7;max-width:78ch;white-space:pre-wrap;overflow-wrap:anywhere}
|
| 134 |
+
.gradio-container .pre-x .pre-x-prompt ins{text-decoration:none;background:var(--pre-pass-bg);color:var(--pre-pass);border-radius:3px;padding:1px 2px}
|
| 135 |
+
.gradio-container .pre-x .pre-x-prompt del{background:var(--pre-warn-bg);color:var(--pre-warn);border-radius:3px;padding:1px 2px}
|
| 136 |
+
.gradio-container .pre-x .pre-x-final{font-size:15px;line-height:1.7;max-width:78ch;white-space:pre-wrap;overflow-wrap:anywhere}
|
| 137 |
+
.gradio-container .pre-x .pre-x-note-box{padding:12px 14px;border:1px dashed var(--pre-line);border-radius:8px;color:var(--pre-muted);font-size:13px}
|
| 138 |
+
.gradio-container .pre-x .pre-x-fine{font-size:12px;color:var(--pre-muted)}
|
| 139 |
+
.gradio-container .pre-x .pre-x-error{padding:12px 14px;border-radius:8px;background:var(--pre-warn-bg);color:var(--pre-warn);font-size:13px;overflow-wrap:anywhere}
|
| 140 |
|
| 141 |
/* rows, badges, counts */
|
| 142 |
+
.gradio-container .pre-x .pre-x-rows{display:flex;flex-direction:column;gap:8px}
|
| 143 |
+
.gradio-container .pre-x .pre-x-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;
|
| 144 |
border:1px solid var(--pre-line);border-radius:8px}
|
| 145 |
+
.gradio-container .pre-x .pre-x-row-text{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1 1 240px}
|
| 146 |
+
.gradio-container .pre-x .pre-x-row-title{font-weight:500;overflow-wrap:anywhere}
|
| 147 |
+
.gradio-container .pre-x .pre-x-row-text>span:last-child{font-size:12px;color:var(--pre-muted);overflow-wrap:anywhere}
|
| 148 |
+
.gradio-container .pre-x .pre-x-row-text>span.warn{color:var(--pre-warn)}
|
| 149 |
+
.gradio-container .pre-x .pre-x-b{display:inline-block;padding:2px 8px;border-radius:999px;font-size:12px;font-weight:600;white-space:nowrap}
|
| 150 |
+
.gradio-container .pre-x .pre-x-b.pass{background:var(--pre-pass-bg);color:var(--pre-pass)}
|
| 151 |
+
.gradio-container .pre-x .pre-x-b.fail{background:var(--pre-warn-bg);color:var(--pre-warn)}
|
| 152 |
+
.gradio-container .pre-x .pre-x-b.blocked,.gradio-container .pre-x .pre-x-b.removed{background:var(--pre-neutral-bg);color:var(--pre-neutral-fg)}
|
| 153 |
+
.gradio-container .pre-x .pre-x-b.moved{background:var(--pre-info-bg);color:var(--pre-accent-strong)}
|
| 154 |
+
.gradio-container .pre-x .pre-x-counts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
|
| 155 |
+
.gradio-container .pre-x .pre-x-count{border:1px solid var(--pre-line);border-radius:10px;padding:10px 12px;display:flex;flex-direction:column}
|
| 156 |
+
.gradio-container .pre-x .pre-x-count span{font-size:12px;color:var(--pre-muted)}
|
| 157 |
+
.gradio-container .pre-x .pre-x-count b{font-family:var(--font-mono);font-size:22px;font-weight:600}
|
| 158 |
+
.gradio-container .pre-x .pre-x-count.kept{border-color:var(--pre-solid);background:var(--pre-info-bg)}
|
| 159 |
+
.gradio-container .pre-x .pre-x-count.kept span,.gradio-container .pre-x .pre-x-count.kept b{color:var(--pre-accent-strong)}
|
| 160 |
|
| 161 |
/* tables */
|
| 162 |
+
.gradio-container .pre-x .pre-x-tablewrap{border:1px solid var(--pre-line);border-radius:10px;overflow-x:auto}
|
| 163 |
+
.gradio-container .pre-x .pre-x-table{width:100%;border-collapse:collapse;font-size:13px;min-width:520px;margin:0;border:0}
|
| 164 |
+
.gradio-container .pre-x .pre-x-table thead,.gradio-container .pre-x .pre-x-table tbody,.gradio-container .pre-x .pre-x-table tr{border:0;background:none}
|
| 165 |
+
.gradio-container .pre-x .pre-x-table th{text-align:left;font-weight:500;font-size:12px;color:var(--pre-muted);background:var(--pre-subtle);padding:10px 12px;border:0}
|
| 166 |
+
.gradio-container .pre-x .pre-x-table td{padding:10px 12px;border:0;border-top:1px solid var(--pre-line);vertical-align:top;overflow-wrap:anywhere}
|
| 167 |
+
.gradio-container .pre-x .pre-x-table td.muted{color:var(--pre-muted)}
|
| 168 |
+
.gradio-container .pre-x .pre-x-tablefoot{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;margin-top:-8px}
|
| 169 |
|
| 170 |
/* metric tiles with gate colors and ? popovers */
|
| 171 |
+
.gradio-container .pre-x .pre-x-tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
|
| 172 |
+
.gradio-container .pre-x .pre-x-tile{position:relative;border:1px solid var(--pre-line);background:var(--pre-card);border-radius:10px;padding:14px 16px;
|
| 173 |
display:flex;flex-direction:column;gap:8px}
|
| 174 |
+
.gradio-container .pre-x .pre-x-tile.ok{border-color:var(--pre-pass-line);background:var(--pre-pass-tint)}
|
| 175 |
+
.gradio-container .pre-x .pre-x-tile.warn{border-color:var(--pre-warn-line);background:var(--pre-warn-tint)}
|
| 176 |
+
.gradio-container .pre-x .pre-x-tile-top{display:flex;align-items:center;justify-content:space-between;gap:8px}
|
| 177 |
+
.gradio-container .pre-x .pre-x-tile-label{font-size:12px;color:var(--pre-muted)}
|
| 178 |
+
.gradio-container .pre-x .pre-x-help{width:44px;height:44px;margin:-14px -12px -14px 0;padding:0;background:none;border:0;display:flex;
|
| 179 |
align-items:center;justify-content:center;cursor:pointer;flex:none}
|
| 180 |
+
.gradio-container .pre-x .pre-x-help span{width:20px;height:20px;border-radius:999px;box-sizing:border-box;display:flex;align-items:center;
|
| 181 |
justify-content:center;font-size:12px;font-weight:600;border:1.5px solid var(--pre-muted);background:var(--pre-card);color:var(--pre-text)}
|
| 182 |
+
.gradio-container .pre-x .pre-x-help[aria-expanded="true"] span{border-color:var(--pre-solid);background:var(--pre-solid);color:#FFFFFF}
|
| 183 |
+
.gradio-container .pre-x .pre-x-tile-val{display:flex;align-items:baseline;gap:8px}
|
| 184 |
+
.gradio-container .pre-x .pre-x-num{font-family:var(--font-mono);font-size:28px;font-weight:600;letter-spacing:-.02em}
|
| 185 |
+
.gradio-container .pre-x .pre-x-tile.ok .pre-x-num{color:var(--pre-pass)}
|
| 186 |
+
.gradio-container .pre-x .pre-x-tile.warn .pre-x-num{color:var(--pre-warn)}
|
| 187 |
+
.gradio-container .pre-x .pre-x-note{font-size:12px;color:var(--pre-muted)}
|
| 188 |
+
.gradio-container .pre-x .pre-x-meter{position:relative;height:6px;border-radius:999px;background:var(--pre-track)}
|
| 189 |
+
.gradio-container .pre-x .pre-x-meter-fill{position:absolute;left:0;top:0;bottom:0;border-radius:999px;background:var(--pre-accent)}
|
| 190 |
+
.gradio-container .pre-x .pre-x-tile.ok .pre-x-meter-fill{background:var(--pre-pass-fill)}
|
| 191 |
+
.gradio-container .pre-x .pre-x-tile.warn .pre-x-meter-fill{background:var(--pre-warn-fill)}
|
| 192 |
+
.gradio-container .pre-x .pre-x-meter-gate{position:absolute;top:-3px;width:2px;height:12px;background:var(--pre-text)}
|
| 193 |
+
.gradio-container .pre-x .pre-x-pill{display:inline-flex;align-items:center;gap:6px;align-self:flex-start;padding:3px 8px;border-radius:999px;
|
| 194 |
font-size:12px;font-weight:600;background:var(--pre-neutral-bg);color:var(--pre-text)}
|
| 195 |
+
.gradio-container .pre-x .pre-x-tile.ok .pre-x-pill{background:var(--pre-pass-bg);color:var(--pre-pass)}
|
| 196 |
+
.gradio-container .pre-x .pre-x-tile.warn .pre-x-pill{background:var(--pre-warn-bg);color:var(--pre-warn)}
|
| 197 |
+
.gradio-container .pre-x .pre-x-pop{position:absolute;z-index:10;top:44px;right:8px;width:264px;max-width:calc(100vw - 48px);box-sizing:border-box;
|
| 198 |
background:var(--pre-card);border:1px solid var(--pre-input-line);border-radius:10px;padding:14px 16px;
|
| 199 |
box-shadow:0 8px 24px rgba(20,23,31,.14);display:flex;flex-direction:column;gap:8px}
|
| 200 |
+
.gradio-container .pre-x .pre-x-pop-title{font-size:13px;font-weight:600}
|
| 201 |
+
.gradio-container .pre-x .pre-x-pop p{font-size:13px;line-height:1.5}
|
| 202 |
+
.gradio-container .pre-x .pre-x-pop-gate{font-size:12px;color:var(--pre-muted);font-family:var(--font-mono)}
|
| 203 |
+
.gradio-container .pre-x .pre-x-legend{display:flex;flex-wrap:wrap;gap:4px 14px;font-size:12px;font-weight:500}
|
| 204 |
+
.gradio-container .pre-x .pre-x-legend span{display:inline-flex;align-items:center;gap:6px}
|
| 205 |
+
.gradio-container .pre-x .pre-x-legend .ok{color:var(--pre-pass)}
|
| 206 |
+
.gradio-container .pre-x .pre-x-legend .warn{color:var(--pre-warn)}
|
| 207 |
+
.gradio-container .pre-x .pre-x-legend i{width:8px;height:8px;border-radius:999px;display:inline-block}
|
| 208 |
+
.gradio-container .pre-x .pre-x-legend .ok i{background:var(--pre-pass-fill)}
|
| 209 |
+
.gradio-container .pre-x .pre-x-legend .warn i{background:var(--pre-warn-fill)}
|
| 210 |
|
| 211 |
/* waiting states */
|
| 212 |
+
.gradio-container .pre-x .pre-x-skel{display:flex;align-items:center;gap:10px;padding:16px;border:1px dashed var(--pre-line);border-radius:10px;
|
| 213 |
color:var(--pre-muted);font-size:13px}
|
| 214 |
+
.gradio-container .pre-x .pre-x-spin{width:14px;height:14px;border-radius:999px;border:2px solid var(--pre-line);border-top-color:var(--pre-accent);
|
| 215 |
animation:pre-x-spin .8s linear infinite;flex:none}
|
| 216 |
|
| 217 |
@keyframes pre-x-spin{to{transform:rotate(360deg)}}
|
| 218 |
@keyframes pre-x-in{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
|
| 219 |
@keyframes pre-x-seg{from{transform:scaleX(0)}to{transform:scaleX(1)}}
|
| 220 |
+
@media (prefers-reduced-motion:reduce){.gradio-container .pre-x,.gradio-container .pre-x *{animation:none !important;transition:none !important}}
|
| 221 |
|
| 222 |
@media (max-width:720px){
|
| 223 |
+
.gradio-container .pre-x .pre-x-head{padding:16px}
|
| 224 |
+
.gradio-container .pre-x .pre-x-shead,.gradio-container .pre-x .pre-x-body{padding:16px}
|
| 225 |
+
.gradio-container .pre-x .pre-x-foot{padding:12px 16px}
|
| 226 |
+
.gradio-container .pre-x .pre-x-controls{width:100%;justify-content:flex-end}
|
| 227 |
+
.gradio-container .pre-x .pre-x-tiles{grid-template-columns:minmax(0,1fr);gap:8px}
|
| 228 |
+
.gradio-container .pre-x .pre-x-num{font-size:24px}
|
| 229 |
+
.gradio-container .pre-x .pre-x-counts{grid-template-columns:repeat(2,minmax(0,1fr))}
|
| 230 |
}
|
app/explorer.js
CHANGED
|
@@ -48,6 +48,15 @@ function apply() {
|
|
| 48 |
b.classList.toggle('is-timed', on && S.replay);
|
| 49 |
});
|
| 50 |
$$('.pre-x-group').forEach((g) => g.classList.toggle('active', !!g.querySelector('.is-current')));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 51 |
const num = $('[data-role="stepnum"]');
|
| 52 |
if (num) num.textContent = String(S.cur + 1);
|
| 53 |
const prev = $('[data-act="prev"]');
|
|
|
|
| 48 |
b.classList.toggle('is-timed', on && S.replay);
|
| 49 |
});
|
| 50 |
$$('.pre-x-group').forEach((g) => g.classList.toggle('active', !!g.querySelector('.is-current')));
|
| 51 |
+
// Keep the current step visible in a horizontally scrolling navigator (without scrolling the page).
|
| 52 |
+
const navEl = $('.pre-x-nav');
|
| 53 |
+
const curBtn = $('.pre-x-step.is-current');
|
| 54 |
+
if (navEl && curBtn && navEl.scrollWidth > navEl.clientWidth) {
|
| 55 |
+
const left = curBtn.offsetLeft - navEl.offsetLeft;
|
| 56 |
+
if (left < navEl.scrollLeft || left + curBtn.offsetWidth > navEl.scrollLeft + navEl.clientWidth) {
|
| 57 |
+
navEl.scrollLeft = Math.max(0, left - 24);
|
| 58 |
+
}
|
| 59 |
+
}
|
| 60 |
const num = $('[data-role="stepnum"]');
|
| 61 |
if (num) num.textContent = String(S.cur + 1);
|
| 62 |
const prev = $('[data-act="prev"]');
|
app/theme.css
CHANGED
|
@@ -35,7 +35,7 @@ footer {
|
|
| 35 |
display: none !important
|
| 36 |
}
|
| 37 |
|
| 38 |
-
.pre-header {
|
| 39 |
display: flex;
|
| 40 |
flex-wrap: wrap;
|
| 41 |
align-items: center;
|
|
@@ -44,13 +44,13 @@ footer {
|
|
| 44 |
padding: 8px 0 4px
|
| 45 |
}
|
| 46 |
|
| 47 |
-
.pre-brand {
|
| 48 |
display: flex;
|
| 49 |
align-items: center;
|
| 50 |
gap: 12px
|
| 51 |
}
|
| 52 |
|
| 53 |
-
.pre-logo {
|
| 54 |
width: 32px;
|
| 55 |
height: 32px;
|
| 56 |
border-radius: 8px;
|
|
@@ -60,36 +60,36 @@ footer {
|
|
| 60 |
justify-content: center
|
| 61 |
}
|
| 62 |
|
| 63 |
-
.pre-logo svg {
|
| 64 |
stroke: var(--pre-card)
|
| 65 |
}
|
| 66 |
|
| 67 |
-
.pre-title {
|
| 68 |
font-weight: 600;
|
| 69 |
font-size: 15px;
|
| 70 |
line-height: 1.2;
|
| 71 |
color: var(--pre-text)
|
| 72 |
}
|
| 73 |
|
| 74 |
-
.pre-sub {
|
| 75 |
font-size: 12px;
|
| 76 |
color: var(--pre-muted)
|
| 77 |
}
|
| 78 |
|
| 79 |
-
.pre-nav {
|
| 80 |
display: flex;
|
| 81 |
align-items: center;
|
| 82 |
gap: 20px;
|
| 83 |
font-size: 13px
|
| 84 |
}
|
| 85 |
|
| 86 |
-
.pre-nav a {
|
| 87 |
text-decoration: none;
|
| 88 |
font-weight: 500;
|
| 89 |
color: var(--pre-accent)
|
| 90 |
}
|
| 91 |
|
| 92 |
-
.pre-chip {
|
| 93 |
display: inline-flex;
|
| 94 |
align-items: center;
|
| 95 |
gap: 6px;
|
|
@@ -100,14 +100,14 @@ footer {
|
|
| 100 |
font-size: 12px
|
| 101 |
}
|
| 102 |
|
| 103 |
-
.pre-dot {
|
| 104 |
width: 6px;
|
| 105 |
height: 6px;
|
| 106 |
border-radius: 999px;
|
| 107 |
background: #1F8A5B
|
| 108 |
}
|
| 109 |
|
| 110 |
-
.pre-step-title {
|
| 111 |
margin: 0 0 2px;
|
| 112 |
font-size: 12px;
|
| 113 |
font-weight: 600;
|
|
@@ -116,7 +116,7 @@ footer {
|
|
| 116 |
color: var(--pre-muted)
|
| 117 |
}
|
| 118 |
|
| 119 |
-
.pre-card {
|
| 120 |
background: var(--pre-card);
|
| 121 |
border: 1px solid var(--pre-line);
|
| 122 |
border-radius: 12px;
|
|
@@ -124,7 +124,7 @@ footer {
|
|
| 124 |
color: var(--pre-text)
|
| 125 |
}
|
| 126 |
|
| 127 |
-
.pre-badge {
|
| 128 |
display: inline-flex;
|
| 129 |
align-items: center;
|
| 130 |
gap: 6px;
|
|
@@ -134,18 +134,18 @@ footer {
|
|
| 134 |
font-weight: 600
|
| 135 |
}
|
| 136 |
|
| 137 |
-
.pre-badge.ok {
|
| 138 |
background: var(--pre-pass-bg);
|
| 139 |
color: var(--pre-pass)
|
| 140 |
}
|
| 141 |
|
| 142 |
-
.pre-badge.warn {
|
| 143 |
background: var(--pre-warn-bg);
|
| 144 |
color: var(--pre-warn)
|
| 145 |
}
|
| 146 |
|
| 147 |
-
.pre-badge.run {
|
| 148 |
-
background: var(--pre-accent-soft);
|
| 149 |
color: var(--pre-accent)
|
| 150 |
}
|
| 151 |
|
|
@@ -155,13 +155,13 @@ footer {
|
|
| 155 |
}
|
| 156 |
}
|
| 157 |
|
| 158 |
-
.pre-n {
|
| 159 |
font-family: var(--font-mono);
|
| 160 |
font-size: 12px;
|
| 161 |
color: var(--pre-muted)
|
| 162 |
}
|
| 163 |
|
| 164 |
-
.pre-intro h1 {
|
| 165 |
margin: 0 0 8px;
|
| 166 |
font-size: 26px;
|
| 167 |
line-height: 1.25;
|
|
@@ -169,14 +169,14 @@ footer {
|
|
| 169 |
letter-spacing: -.01em
|
| 170 |
}
|
| 171 |
|
| 172 |
-
.pre-intro p {
|
| 173 |
margin: 0;
|
| 174 |
max-width: 62ch;
|
| 175 |
font-size: 15px;
|
| 176 |
color: var(--pre-muted)
|
| 177 |
}
|
| 178 |
|
| 179 |
-
.pre-how {
|
| 180 |
list-style: none;
|
| 181 |
margin: 24px 0 0;
|
| 182 |
padding: 0;
|
|
@@ -185,7 +185,7 @@ footer {
|
|
| 185 |
gap: 16px
|
| 186 |
}
|
| 187 |
|
| 188 |
-
.pre-how li {
|
| 189 |
border: 1px solid var(--pre-line);
|
| 190 |
border-radius: 10px;
|
| 191 |
padding: 18px;
|
|
@@ -195,21 +195,21 @@ footer {
|
|
| 195 |
margin: 0
|
| 196 |
}
|
| 197 |
|
| 198 |
-
.pre-how .pre-n {
|
| 199 |
color: var(--pre-accent);
|
| 200 |
font-weight: 500
|
| 201 |
}
|
| 202 |
|
| 203 |
-
.pre-how b {
|
| 204 |
font-weight: 600
|
| 205 |
}
|
| 206 |
|
| 207 |
-
.pre-how span {
|
| 208 |
font-size: 13px;
|
| 209 |
color: var(--pre-muted)
|
| 210 |
}
|
| 211 |
|
| 212 |
-
.pre-placeholder {
|
| 213 |
margin-top: 16px;
|
| 214 |
border: 1.5px dashed var(--pre-line);
|
| 215 |
border-radius: 12px;
|
|
@@ -223,30 +223,30 @@ footer {
|
|
| 223 |
padding: 32px
|
| 224 |
}
|
| 225 |
|
| 226 |
-
.pre-placeholder span {
|
| 227 |
font-size: 13px;
|
| 228 |
color: var(--pre-muted);
|
| 229 |
max-width: 46ch
|
| 230 |
}
|
| 231 |
|
| 232 |
/* Gradio component polish */
|
| 233 |
-
.pre-group {
|
| 234 |
border-radius: 12px !important;
|
| 235 |
overflow: hidden
|
| 236 |
}
|
| 237 |
|
| 238 |
-
.pre-group-title {
|
| 239 |
background: var(--block-background-fill) !important;
|
| 240 |
padding: 0 !important;
|
| 241 |
min-height: 0 !important
|
| 242 |
}
|
| 243 |
|
| 244 |
-
.pre-group-title .pre-step-title {
|
| 245 |
margin: 0;
|
| 246 |
padding: 14px 12px 8px
|
| 247 |
}
|
| 248 |
|
| 249 |
-
.pre-image {
|
| 250 |
border: 1.5px dashed var(--pre-drop) !important;
|
| 251 |
border-radius: 8px !important
|
| 252 |
}
|
|
@@ -260,11 +260,11 @@ footer {
|
|
| 260 |
}
|
| 261 |
|
| 262 |
@media (max-width:720px) {
|
| 263 |
-
.pre-how {
|
| 264 |
grid-template-columns: repeat(1, minmax(0, 1fr))
|
| 265 |
}
|
| 266 |
|
| 267 |
-
.pre-card {
|
| 268 |
padding: 16px
|
| 269 |
}
|
| 270 |
}
|
|
|
|
| 35 |
display: none !important
|
| 36 |
}
|
| 37 |
|
| 38 |
+
.gradio-container .pre-header {
|
| 39 |
display: flex;
|
| 40 |
flex-wrap: wrap;
|
| 41 |
align-items: center;
|
|
|
|
| 44 |
padding: 8px 0 4px
|
| 45 |
}
|
| 46 |
|
| 47 |
+
.gradio-container .pre-brand {
|
| 48 |
display: flex;
|
| 49 |
align-items: center;
|
| 50 |
gap: 12px
|
| 51 |
}
|
| 52 |
|
| 53 |
+
.gradio-container .pre-logo {
|
| 54 |
width: 32px;
|
| 55 |
height: 32px;
|
| 56 |
border-radius: 8px;
|
|
|
|
| 60 |
justify-content: center
|
| 61 |
}
|
| 62 |
|
| 63 |
+
.gradio-container .pre-logo svg {
|
| 64 |
stroke: var(--pre-card)
|
| 65 |
}
|
| 66 |
|
| 67 |
+
.gradio-container .pre-title {
|
| 68 |
font-weight: 600;
|
| 69 |
font-size: 15px;
|
| 70 |
line-height: 1.2;
|
| 71 |
color: var(--pre-text)
|
| 72 |
}
|
| 73 |
|
| 74 |
+
.gradio-container .pre-sub {
|
| 75 |
font-size: 12px;
|
| 76 |
color: var(--pre-muted)
|
| 77 |
}
|
| 78 |
|
| 79 |
+
.gradio-container .pre-nav {
|
| 80 |
display: flex;
|
| 81 |
align-items: center;
|
| 82 |
gap: 20px;
|
| 83 |
font-size: 13px
|
| 84 |
}
|
| 85 |
|
| 86 |
+
.gradio-container .pre-nav a {
|
| 87 |
text-decoration: none;
|
| 88 |
font-weight: 500;
|
| 89 |
color: var(--pre-accent)
|
| 90 |
}
|
| 91 |
|
| 92 |
+
.gradio-container .pre-chip {
|
| 93 |
display: inline-flex;
|
| 94 |
align-items: center;
|
| 95 |
gap: 6px;
|
|
|
|
| 100 |
font-size: 12px
|
| 101 |
}
|
| 102 |
|
| 103 |
+
.gradio-container .pre-dot {
|
| 104 |
width: 6px;
|
| 105 |
height: 6px;
|
| 106 |
border-radius: 999px;
|
| 107 |
background: #1F8A5B
|
| 108 |
}
|
| 109 |
|
| 110 |
+
.gradio-container .pre-step-title {
|
| 111 |
margin: 0 0 2px;
|
| 112 |
font-size: 12px;
|
| 113 |
font-weight: 600;
|
|
|
|
| 116 |
color: var(--pre-muted)
|
| 117 |
}
|
| 118 |
|
| 119 |
+
.gradio-container .pre-card {
|
| 120 |
background: var(--pre-card);
|
| 121 |
border: 1px solid var(--pre-line);
|
| 122 |
border-radius: 12px;
|
|
|
|
| 124 |
color: var(--pre-text)
|
| 125 |
}
|
| 126 |
|
| 127 |
+
.gradio-container .pre-badge {
|
| 128 |
display: inline-flex;
|
| 129 |
align-items: center;
|
| 130 |
gap: 6px;
|
|
|
|
| 134 |
font-weight: 600
|
| 135 |
}
|
| 136 |
|
| 137 |
+
.gradio-container .pre-badge.ok {
|
| 138 |
background: var(--pre-pass-bg);
|
| 139 |
color: var(--pre-pass)
|
| 140 |
}
|
| 141 |
|
| 142 |
+
.gradio-container .pre-badge.warn {
|
| 143 |
background: var(--pre-warn-bg);
|
| 144 |
color: var(--pre-warn)
|
| 145 |
}
|
| 146 |
|
| 147 |
+
.gradio-container .pre-badge.run {
|
| 148 |
+
background: var(--pre-info-bg, var(--pre-accent-soft));
|
| 149 |
color: var(--pre-accent)
|
| 150 |
}
|
| 151 |
|
|
|
|
| 155 |
}
|
| 156 |
}
|
| 157 |
|
| 158 |
+
.gradio-container .pre-n {
|
| 159 |
font-family: var(--font-mono);
|
| 160 |
font-size: 12px;
|
| 161 |
color: var(--pre-muted)
|
| 162 |
}
|
| 163 |
|
| 164 |
+
.gradio-container .pre-intro h1 {
|
| 165 |
margin: 0 0 8px;
|
| 166 |
font-size: 26px;
|
| 167 |
line-height: 1.25;
|
|
|
|
| 169 |
letter-spacing: -.01em
|
| 170 |
}
|
| 171 |
|
| 172 |
+
.gradio-container .pre-intro p {
|
| 173 |
margin: 0;
|
| 174 |
max-width: 62ch;
|
| 175 |
font-size: 15px;
|
| 176 |
color: var(--pre-muted)
|
| 177 |
}
|
| 178 |
|
| 179 |
+
.gradio-container .pre-how {
|
| 180 |
list-style: none;
|
| 181 |
margin: 24px 0 0;
|
| 182 |
padding: 0;
|
|
|
|
| 185 |
gap: 16px
|
| 186 |
}
|
| 187 |
|
| 188 |
+
.gradio-container .pre-how li {
|
| 189 |
border: 1px solid var(--pre-line);
|
| 190 |
border-radius: 10px;
|
| 191 |
padding: 18px;
|
|
|
|
| 195 |
margin: 0
|
| 196 |
}
|
| 197 |
|
| 198 |
+
.gradio-container .pre-how .pre-n {
|
| 199 |
color: var(--pre-accent);
|
| 200 |
font-weight: 500
|
| 201 |
}
|
| 202 |
|
| 203 |
+
.gradio-container .pre-how b {
|
| 204 |
font-weight: 600
|
| 205 |
}
|
| 206 |
|
| 207 |
+
.gradio-container .pre-how span {
|
| 208 |
font-size: 13px;
|
| 209 |
color: var(--pre-muted)
|
| 210 |
}
|
| 211 |
|
| 212 |
+
.gradio-container .pre-placeholder {
|
| 213 |
margin-top: 16px;
|
| 214 |
border: 1.5px dashed var(--pre-line);
|
| 215 |
border-radius: 12px;
|
|
|
|
| 223 |
padding: 32px
|
| 224 |
}
|
| 225 |
|
| 226 |
+
.gradio-container .pre-placeholder span {
|
| 227 |
font-size: 13px;
|
| 228 |
color: var(--pre-muted);
|
| 229 |
max-width: 46ch
|
| 230 |
}
|
| 231 |
|
| 232 |
/* Gradio component polish */
|
| 233 |
+
.gradio-container .pre-group {
|
| 234 |
border-radius: 12px !important;
|
| 235 |
overflow: hidden
|
| 236 |
}
|
| 237 |
|
| 238 |
+
.gradio-container .pre-group-title {
|
| 239 |
background: var(--block-background-fill) !important;
|
| 240 |
padding: 0 !important;
|
| 241 |
min-height: 0 !important
|
| 242 |
}
|
| 243 |
|
| 244 |
+
.gradio-container .pre-group-title .pre-step-title {
|
| 245 |
margin: 0;
|
| 246 |
padding: 14px 12px 8px
|
| 247 |
}
|
| 248 |
|
| 249 |
+
.gradio-container .pre-image {
|
| 250 |
border: 1.5px dashed var(--pre-drop) !important;
|
| 251 |
border-radius: 8px !important
|
| 252 |
}
|
|
|
|
| 260 |
}
|
| 261 |
|
| 262 |
@media (max-width:720px) {
|
| 263 |
+
.gradio-container .pre-how {
|
| 264 |
grid-template-columns: repeat(1, minmax(0, 1fr))
|
| 265 |
}
|
| 266 |
|
| 267 |
+
.gradio-container .pre-card {
|
| 268 |
padding: 16px
|
| 269 |
}
|
| 270 |
}
|
inversion/explorer.py
CHANGED
|
@@ -601,7 +601,8 @@ def render_explorer(run: InversionRun, *, og_url: str, og_size: tuple[int, int],
|
|
| 601 |
f'<span class="i-pause">{ICON_PAUSE}</span><span class="i-play">{ICON_PLAY}</span>'
|
| 602 |
f'<span class="i-replay">{ICON_REPLAY}</span><span data-role="playlabel">{play_label}</span></button>'
|
| 603 |
f'<button type="button" class="pre-x-icon" data-act="next-top" aria-label="Next stage">{ICON_NEXT}</button>'
|
| 604 |
-
f'</div></div><nav class="pre-x-nav" aria-label="Run stages">
|
|
|
|
| 605 |
f"</div></nav></section>"
|
| 606 |
)
|
| 607 |
|
|
|
|
| 601 |
f'<span class="i-pause">{ICON_PAUSE}</span><span class="i-play">{ICON_PLAY}</span>'
|
| 602 |
f'<span class="i-replay">{ICON_REPLAY}</span><span data-role="playlabel">{play_label}</span></button>'
|
| 603 |
f'<button type="button" class="pre-x-icon" data-act="next-top" aria-label="Next stage">{ICON_NEXT}</button>'
|
| 604 |
+
f'</div></div><nav class="pre-x-nav" aria-label="Run stages">'
|
| 605 |
+
f'<div class="pre-x-groups" style="min-width:{total * 84 + (len(groups) - 1) * 20}px">{"".join(nav)}'
|
| 606 |
f"</div></nav></section>"
|
| 607 |
)
|
| 608 |
|