This commit is contained in:
Mateusz Gruszczyński committed 2026-11-28 00:46:49 +01:00
1 parent 51631810e1
commit e6176cfce3
28 files changed
+959 -506

No files matched your search

+270 -13
View File
@@ -368,12 +368,227 @@
border-bottom: 1px solid var(--row-line);
}
/* Collapsed Custom Location = one routing-table row. */
.location-summary {
display: grid;
grid-template-columns: 26px 12px minmax(0, 120px) 120px minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 1.3fr);
align-items: center;
gap: 4px 10px;
overflow-wrap: anywhere;
cursor: pointer;
padding: 10px 12px;
font: 600 11px/1.45 var(--mono);
padding: 9px 12px;
font: 400 12px/1.45 var(--sans);
color: var(--text);
list-style: none;
}
.location-summary::-webkit-details-marker {
display: none;
}
.location-summary:hover {
background: var(--panel2);
}
.loc-order {
color: var(--muted);
font: 600 11px var(--mono);
}
.loc-state {
width: 9px;
height: 9px;
border-radius: 50%;
background: var(--green);
}
.vh-location.is-disabled .loc-state {
background: var(--line);
}
.vh-location.is-disabled .location-summary {
color: var(--muted);
}
.loc-id,
.loc-path {
font: 600 11px var(--mono);
}
.loc-match {
justify-self: start;
padding: 2px 7px;
border: 1px solid var(--line);
border-radius: var(--rp-radius-control, 4px);
background: var(--panel2);
color: var(--muted);
font: 600 10px var(--mono);
white-space: nowrap;
}
.loc-match.is-internal {
border-color: var(--accent);
color: var(--accent);
}
.loc-chips {
display: flex;
flex-wrap: wrap;
gap: 4px;
min-width: 0;
}
.loc-chip {
padding: 1px 7px;
border: 1px solid var(--line);
border-radius: var(--rp-radius-control, 999px);
color: var(--muted);
font-size: 11px;
white-space: nowrap;
}
.loc-chip.is-fallback {
border-color: var(--accent);
color: var(--accent);
}
.vh-location[open]>.location-summary {
background: var(--panel2);
}
.location-headline {
margin: 0;
font: 600 12px/1.5 var(--mono);
overflow-wrap: anywhere;
}
.location-cards {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 10px;
}
.location-card,
.location-options {
min-width: 0;
border: 1px solid var(--line);
border-radius: var(--rp-radius-surface, 0px);
background: var(--panel);
}
.location-card {
padding: 10px 12px 12px;
}
.location-card-title {
display: flex;
align-items: center;
gap: 8px;
margin: 0 0 8px;
font-size: 12px;
}
.location-card-grid {
grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}
.location-step {
color: var(--accent);
font: 600 12px var(--mono);
}
.location-options-head {
display: flex;
flex-wrap: wrap;
align-items: flex-end;
gap: 4px 14px;
padding: 10px 12px 0;
border-bottom: 1px solid var(--line);
}
.location-options-head>.location-card-title {
margin-bottom: 9px;
}
.location-tabs {
display: flex;
flex-wrap: wrap;
gap: 2px;
}
.location-tab {
min-height: 0;
padding: 7px 10px;
border: 0;
border-bottom: 2px solid transparent;
border-radius: 0;
background: transparent;
color: var(--muted);
font-size: 12px;
}
.location-tab:hover,
.location-tab.is-set {
color: var(--text);
}
.location-tab.active {
border-bottom-color: var(--accent);
color: var(--text);
font-weight: 600;
}
.location-tab-state {
color: var(--muted);
font-weight: 400;
}
.location-tab-panel {
padding: 12px;
}
.location-add-menu {
position: relative;
}
.location-templates {
position: absolute;
z-index: 30;
top: calc(100% + 6px);
left: 0;
width: calc(min(560px, calc(100 * var(--rp-vw)) - 48px));
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 6px;
padding: 8px;
border: 1px solid var(--line);
border-radius: var(--rp-radius-surface, 6px);
background: var(--panel2);
box-shadow: 0 12px 30px var(--shadow-mid);
}
.location-templates[hidden] {
display: none;
}
.location-template {
display: grid;
gap: 3px;
min-height: 0;
padding: 8px 10px;
border: 1px solid var(--line);
background: var(--panel);
color: var(--text);
text-align: left;
}
.location-template:hover,
.location-template:focus-visible {
border-color: var(--accent);
}
.location-template>b {
font-size: 12px;
}
.vh-health-summary {
@@ -447,15 +662,10 @@
display: flex;
flex-direction: row;
margin-inline-start: 0;
gap: 3px;
position: sticky;
top: 29px;
z-index: 2;
background: var(--panel);
padding: 5px 0 8px;
border-bottom: 1px solid var(--line);
margin-bottom: 9px;
flex-wrap: nowrap;
overflow-x: auto;
overscroll-behavior-x: contain;
scrollbar-width: thin;
@@ -464,14 +674,10 @@
.vh-tabs button {
width: auto;
flex: 0 1 auto;
font-size: 10px;
padding: 6px 9px;
white-space: nowrap;
}
.vh-tabs button.active {
color: var(--text);
background: var(--nav-selected-bg);
border-color: var(--green);
}
@@ -2101,7 +2307,7 @@ html.app-loading,
min-width: 0;
}
.fine+:is(.switch-grid, .settings-tabs, .table-scroll, .soft-card, .appearance-settings-grid, .runtime-information-grid, details),
.fine+:is(.switch-grid, .settings-tabs, .table-scroll, .soft-card, .appearance-settings-grid, details),
.form-actions+.fine,
.table-scroll+:is(.empty, .fine),
.empty+.file-logs-pager {
@@ -2707,4 +2913,55 @@ h2+.fine {
.hdr-row.is-invalid .hdr-row-hint {
color: var(--red);
}
}
/* Error fallback status picker (vhost and Custom Location). */
.vh-error-fallback-statuses {
display: grid;
gap: 5px;
min-width: 0;
}
.vh-status-chips {
display: flex;
flex-wrap: wrap;
gap: 6px;
}
.vh-status-chip {
position: relative;
display: inline-flex;
align-items: center;
gap: 5px;
margin: 0;
padding: 3px 8px;
border: 1px solid var(--line);
border-radius: var(--rp-radius-control, 999px);
background: var(--panel2);
font: 600 11px var(--mono);
cursor: pointer;
}
.vh-status-chip>input {
position: absolute;
width: 1px;
height: 1px;
margin: 0;
opacity: 0;
pointer-events: none;
}
.vh-status-chip:has(input:checked) {
border-color: var(--accent);
color: var(--accent);
background: color-mix(in srgb, var(--accent) 12%, var(--panel2));
}
.vh-status-chip:has(input:focus-visible) {
outline: 2px solid var(--accent);
outline-offset: 2px;
}
.vh-error-fallback-statuses.is-inactive .vh-status-chip {
opacity: .55;
cursor: default;
}