This commit is contained in:
Mateusz Gruszczyński committed 2026-11-26 08:50:30 +01:00
1 parent 167861fc16
commit aa0a271a1c
38 files changed
+3642 -1058

No files matched your search

+112 -19
View File
@@ -80,9 +80,6 @@
gap: 7px;
}
/* Switches never share a row with ordinary fields: a field after a switch
and a switch after a field each start a new row. Consecutive switches
still sit side by side (for example TLS 1.2 / TLS 1.3). */
.vh-grid>.check+:not(.check),
.vh-grid>:not(.check)+.check {
grid-column-start: 1;
@@ -97,26 +94,32 @@
margin-top: 6px !important;
}
/* Fields in one row line up: each field spans a caption row and a control
row of the editor grid, and a plain caption + control field uses those
rows as a subgrid, so a caption that wraps to more lines makes the whole
caption row taller and every control in the row still starts on the same
line. Multi-line text areas take the whole row instead of a narrow column. */
:is(.vh-grid>.vh-field, .field-grid>label:not([class])) {
:is(.vh-grid, .field-grid)>:is(.vh-field, label:not([class]), .auto-id-field) {
grid-row: span 2;
}
:is(.vh-grid>.vh-field, .field-grid>label:not([class])):has(>:nth-child(2):last-child) {
:is(.vh-grid, .field-grid)>:is(.vh-field, label:not([class]), .auto-id-field):is(:has(>:nth-child(2):last-child), .auto-id-field.is-compact) {
display: grid;
grid-template-rows: subgrid;
row-gap: 4px;
align-content: start;
}
:is(.vh-grid>.vh-field, .field-grid>label:not([class])):has(>:nth-child(2):last-child)>:first-child {
:is(.vh-grid, .field-grid)>:is(.vh-field, label:not([class]), .auto-id-field):is(:has(>:nth-child(2):last-child), .auto-id-field.is-compact)>:first-child {
align-self: end;
}
:is(.vh-grid, .field-grid):has(>.auto-id-field:not(.is-compact))>:is(.vh-field, label:not([class]), .auto-id-field) {
grid-template-rows: none;
}
:is(.vh-grid, .field-grid)>.auto-id-field:not(.is-compact) {
display: grid;
align-content: start;
gap: 4px;
}
.vh-grid>.vh-field:has(>textarea) {
grid-column: 1 / -1;
}
@@ -144,6 +147,78 @@
font-family: var(--mono);
}
.vh-json-editor {
min-width: 0;
border: 1px solid var(--line);
border-radius: var(--rp-radius-surface, 0px);
background: var(--panel2);
}
.vh-json-editor>summary {
padding: 10px 12px;
cursor: pointer;
font-size: 12px;
font-weight: 600;
}
.vh-json-status {
display: inline-block;
margin-left: 10px;
color: var(--muted);
font-size: 11px;
font-weight: 400;
}
.vh-json-editor.has-json-draft {
border-color: var(--accent);
}
.vh-json-editor.has-json-draft .vh-json-status {
color: var(--accent);
}
.vh-json-body {
padding: 12px;
border-top: 1px solid var(--line);
gap: 12px;
}
.vh-json-body>textarea[hidden] {
display: none !important;
}
.vh-json-body>.vh-field {
grid-column: 1 / -1;
}
.vh-json-source {
min-height: 180px;
line-height: 1.5;
tab-size: 2;
}
.vh-json-toolbar {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 8px;
}
.vh-json-toolbar>button {
width: auto;
margin: 0;
}
.vh-json-message {
margin: 0;
overflow-wrap: anywhere;
color: var(--green);
}
.vh-json-message.is-error {
color: var(--red);
}
.vh-check {
font-size: 11px;
min-height: 28px;
@@ -407,7 +482,7 @@
display: block;
}
.vh-form .form-actions {
.vh-form>.form-actions {
position: sticky;
bottom: -14px;
background: var(--panel);
@@ -437,10 +512,11 @@
}
.listener-choices {
flex-wrap: wrap;
display: grid;
grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
align-items: stretch;
gap: 8px;
min-width: 0;
}
.listener-choices>.fine {
@@ -455,11 +531,21 @@
border-radius: var(--rp-radius-control, 4px);
font-size: 11px;
display: flex;
min-width: 0;
min-height: 44px;
align-items: center;
margin: 0;
}
.listener-choices>.check {
margin: 0 !important;
}
.listener-choices>.check>span {
min-width: 0;
overflow-wrap: anywhere;
}
dialog.vhost-dialog,
dialog.audit-dialog,
dialog.config-history-dialog,
@@ -1083,6 +1169,16 @@ p,
min-width: 0;
}
.redirect-rule-actions {
display: flex;
align-items: center;
justify-content: flex-end;
flex-wrap: wrap;
gap: 8px;
padding-top: 8px;
border-top: 1px solid var(--line);
}
.redirect-card .vhost-detail-strip {
grid-template-columns: repeat(3, minmax(0, 1fr));
}
@@ -2170,7 +2266,7 @@ h2+.fine {
justify-self: start;
}
}
/* Load-balancing editor and distribution simulator (vhost and location). */
.lb-editor {
display: grid;
gap: 10px;
@@ -2323,7 +2419,6 @@ h2+.fine {
padding: 8px 10px;
}
/* Location conditions and routing tester. */
.rt-conditions {
display: grid;
gap: 8px;
@@ -2417,7 +2512,6 @@ h2+.fine {
font-size: 11px;
}
/* Header value variables and diagnostic header presets. */
.hdr-vars,
.hdr-presets {
display: flex;
@@ -2439,7 +2533,6 @@ h2+.fine {
font: 11px var(--mono);
}
/* Headers tab: live preview, diagnostic cards and compact header rules. */
.hdr-preview {
display: grid;
gap: 10px;
@@ -2614,4 +2707,4 @@ h2+.fine {
.hdr-row.is-invalid .hdr-row-hint {
color: var(--red);
}
}