This commit is contained in:
Mateusz Gruszczyński committed 2026-11-23 11:07:13 +01:00
1 parent 27b640a0df
commit aa27866531
46 files changed
+3368 -189

No files matched your search

+247 -1
View File
@@ -2183,4 +2183,250 @@ h2+.fine {
transform: rotate(90deg);
justify-self: start;
}
}
}
/* Load-balancing editor and distribution simulator (vhost and location). */
.lb-editor {
display: grid;
gap: 10px;
min-width: 0;
}
.lb-presets {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 6px;
}
.lb-presets-label,
.lb-equivalent>span,
.lb-sim-down>span,
.location-group-title {
color: var(--muted);
font: 600 10px var(--mono);
letter-spacing: .35px;
}
.lb-preset {
border-radius: 999px;
padding: 4px 10px;
font-size: 11px;
}
.lb-description {
margin: 0;
color: var(--text);
}
.lb-hash {
border-left: 2px solid var(--accent);
padding-left: 10px;
}
.lb-equivalent pre {
margin: 4px 0 0;
padding: 7px 9px;
background: var(--code-bg);
border: 1px solid var(--line);
font: 11px var(--mono);
white-space: pre-wrap;
}
.lb-simulator {
border: 1px solid var(--line);
background: var(--panel2);
}
.lb-simulator>summary {
cursor: pointer;
padding: 9px 10px;
font-weight: 600;
}
.lb-sim-body {
display: grid;
gap: 10px;
border-top: 1px solid var(--line);
padding: 10px;
}
.lb-sim-inputs {
display: grid;
grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
gap: 10px;
}
.lb-sim-down-list,
.location-group-list {
display: flex;
flex-wrap: wrap;
gap: 4px 12px;
margin-top: 6px;
}
.lb-bars {
display: grid;
gap: 4px;
}
.lb-bar {
display: grid;
grid-template-columns: minmax(70px, 160px) minmax(0, 1fr) 90px;
align-items: center;
gap: 8px;
font-size: 11px;
}
.lb-bar-label {
font-family: var(--mono);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.lb-bar-track {
height: 8px;
background: var(--field-bg);
border: 1px solid var(--line);
}
.lb-bar-fill {
display: block;
height: 100%;
background: var(--green);
}
.lb-bar-value {
color: var(--muted);
font-family: var(--mono);
text-align: right;
}
.lb-sim-summary {
margin: 0;
}
.lb-sim-table {
width: 100%;
border-collapse: collapse;
font-size: 11px;
}
.lb-sim-table :is(th, td) {
border-bottom: 1px solid var(--row-line);
padding: 4px 6px;
text-align: left;
overflow-wrap: anywhere;
}
.lb-sim-table tr.is-moved td {
background: var(--notice-bg);
}
.lb-sim-table tr.is-fallback td {
color: var(--muted);
}
.lb-moved {
color: var(--notice-text);
font-family: var(--mono);
}
.location-group {
border: 1px solid var(--line);
padding: 8px 10px;
}
/* Location conditions and routing tester. */
.rt-conditions {
display: grid;
gap: 8px;
}
.rt-condition-list {
display: grid;
gap: 6px;
}
.rt-condition {
display: grid;
grid-template-columns: minmax(110px, 150px) minmax(90px, 160px) minmax(120px, 170px) minmax(140px, 1fr) auto auto auto;
align-items: center;
gap: 6px;
}
.rt-condition :is(select, input[type=text], textarea) {
min-width: 0;
width: 100%;
}
.rt-condition textarea {
min-height: 32px;
resize: vertical;
font-family: var(--mono);
font-size: 11px;
}
.rt-flag {
white-space: nowrap;
font-size: 11px;
}
.rt-empty {
margin: 0;
}
.rt-tester {
border: 1px solid var(--accent);
background: var(--panel2);
}
.rt-tester>summary {
cursor: pointer;
padding: 9px 10px;
font-weight: 600;
}
.rt-tester-body {
display: grid;
gap: 10px;
border-top: 1px solid var(--line);
padding: 10px;
}
.rt-verdict {
display: flex;
flex-wrap: wrap;
align-items: baseline;
gap: 6px;
font-size: 13px;
}
.rt-target {
font-family: var(--mono);
}
.rt-badge {
border: 1px solid var(--notice-line);
padding: 1px 6px;
}
.rt-trace tr.is-winner td {
background: var(--nav-selected-bg);
}
.rt-ok {
color: var(--green);
font-weight: 700;
}
.rt-no,
.rt-error {
color: var(--red);
font-weight: 700;
}
.rt-cond {
font-family: var(--mono);
font-size: 11px;
}