This commit is contained in:
Mateusz Gruszczyński committed 2026-11-16 21:06:27 +01:00
1 parent 6fe2aa137b
commit a977cf78a5
18 files changed
+182 -19

No files matched your search

+41
View File
@@ -80,6 +80,47 @@
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;
}
.vh-grid>.check,
.vh-backend-switches>.check {
margin-top: 0 !important;
}
.vh-grid>:not(.check)+.check {
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, .cache-rules-tester-grid>.cache-rule-field, .field-grid>label:not([class])) {
grid-row: span 2;
}
:is(.vh-grid>.vh-field, .cache-rules-tester-grid>.cache-rule-field, .field-grid>label:not([class])):has(>:nth-child(2):last-child) {
display: grid;
grid-template-rows: subgrid;
row-gap: 4px;
align-content: start;
}
:is(.vh-grid>.vh-field, .cache-rules-tester-grid>.cache-rule-field, .field-grid>label:not([class])):has(>:nth-child(2):last-child)>:first-child {
align-self: end;
}
.vh-grid>.vh-field:has(>textarea) {
grid-column: 1 / -1;
}
.vh-field input,
.vh-field select {
width: 100%;