This commit is contained in:
Mateusz Gruszczyński committed 2026-11-28 15:54:56 +01:00
1 parent 9a6c21fa04
commit 5b6d4a7903
41 files changed
+3299 -677

No files matched your search

+247 -132
View File
@@ -615,7 +615,6 @@
.acl-policy-condition span,
.listener-active-address,
.acl-profile-attached p,
.stream-backend-status-row>span:first-child,
.docker-agent-security .fine,
.docker-runtime .fine,
#panel-tls .certificate-operation-heading strong,
@@ -700,20 +699,22 @@
/* Vhost editor: heading and tabs stay on top, only the fields scroll and the
save bar is a plain footer. No sticky positioning inside the scrolled area,
so long Custom Location editors cannot push the bar into the content. */
#vhost-dialog[open] {
/* Tabbed editors: heading, summary and tabs stay on top, only the fields
scroll, and the save bar is the dialog footer. */
:is(#vhost-dialog, #redirect-dialog, #notfound-dialog, #stream-dialog)[open] {
display: flex;
flex-direction: column;
overflow: hidden;
}
#vhost-dialog>#vhost-form {
:is(#vhost-dialog, #redirect-dialog, #notfound-dialog, #stream-dialog)>form {
display: flex;
flex-direction: column;
flex: 0 1 auto;
min-height: 0;
}
#vhost-form>#vhost-fields {
:is(#vhost-fields, #redirect-fields, #notfound-fields, #stream-fields) {
flex: 0 1 auto;
min-height: 0;
overflow-y: auto;
@@ -721,16 +722,12 @@
overscroll-behavior: contain;
}
#vhost-form>.card-heading,
#vhost-form>.vh-tabs,
#vhost-form>.vh-live-summary,
#vhost-form>.form-actions,
#vhost-form>.fine {
:is(#vhost-form, #redirect-form, #notfound-form, #stream-form)>:is(.card-heading, .vh-tabs, .vh-live-summary, .form-actions, .fine) {
flex: none;
position: static;
}
#vhost-form>.form-actions {
:is(#vhost-form, #redirect-form, #notfound-form, #stream-form)>.form-actions {
margin-top: 8px;
}
@@ -1277,6 +1274,7 @@ p,
}
.vh-www-choice {
border-radius: var(--rp-radius-surface, 0px);
min-width: 0;
display: flex;
align-items: flex-start;
@@ -1398,34 +1396,129 @@ p,
grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.redirect-rules,
.stream-backend-list {
display: grid;
gap: 1rem;
}
.redirect-rule {
border: 1px solid var(--line);
border-radius: var(--rp-radius-surface, 12px);
padding: 1rem;
margin: 0;
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(4, minmax(0, 1fr));
}
/* Redirect rule rows reuse the Custom location routing table. */
.redirect-rule-cards {
grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
}
.redirect-target-choices {
grid-template-columns: repeat(3, minmax(0, 1fr));
}
.redirect-target-choices .vh-www-choice {
padding: 8px 10px;
}
.redirect-target-choices small {
color: var(--muted);
font-size: 11px;
}
.redirect-rule-toolbar {
justify-content: flex-start;
}
.redirect-rule-toolbar>p {
flex: 1 1 320px;
margin: 0;
}
.redirect-tester {
display: grid;
gap: 6px;
margin-top: 12px;
padding: 10px 12px;
border: 1px dashed var(--line);
}
.redirect-tester input {
font-family: var(--mono);
}
.redirect-test-result {
display: flex;
flex-wrap: wrap;
align-items: baseline;
gap: 4px;
margin: 0;
min-height: 18px;
font-size: 12px;
overflow-wrap: anywhere;
}
.redirect-test-result.is-match strong {
color: var(--green);
}
.redirect-test-result code {
font: 600 12px var(--mono);
}
.redirect-rule-table {
display: grid;
margin-top: 10px;
border: 1px solid var(--line);
}
.redirect-rule-line {
display: grid;
grid-template-columns: 22px 10px 76px minmax(0, 1fr) 40px minmax(0, 1.6fr) minmax(0, .9fr);
align-items: center;
gap: 4px 10px;
padding: 7px 12px;
font-size: 12px;
overflow-wrap: anywhere;
}
.redirect-rule-line+.redirect-rule-line {
border-top: 1px solid var(--line);
}
.redirect-rule-line.is-disabled {
color: var(--muted);
}
.redirect-rule-line.is-disabled .loc-state,
.loc-state.is-off {
background: var(--line);
}
.redirect-rule-status {
color: var(--accent);
font: 600 11px var(--mono);
}
.redirect-rule-target {
font: 11px var(--mono);
}
.redirect-rule-more {
display: block;
color: var(--muted);
}
.entity-actions button.danger-quiet {
color: var(--red);
border-color: var(--danger-line-strong);
}
.vh-tab-count {
color: var(--muted);
font-family: var(--mono);
}
.frontend-protocol-controls {
margin-block-start: 16px;
padding-block-start: 12px;
@@ -1816,38 +1909,6 @@ html[data-dashboard-density=ultra] #panel-overview .dashboard-overview-grid>.car
font-size: 12px;
}
.stream-backend-pool {
display: grid;
gap: .8rem;
min-width: 0;
}
.stream-backend-row {
min-width: 0;
border: 1px solid var(--line, #454d59);
border-radius: var(--rp-radius-surface, .65rem);
padding: .85rem;
}
.stream-backend-row>.quiet {
margin-top: .6rem;
}
.stream-backend-status {
display: grid;
gap: .4rem;
padding: .75rem 0;
}
.stream-backend-status-row {
display: flex;
flex-wrap: wrap;
gap: .5rem;
align-items: center;
justify-content: space-between;
font-size: .85em;
}
.vh-enable-control.vh-enable-no-hint {
grid-template-rows: auto;
}
@@ -2306,10 +2367,6 @@ html.app-loading,
gap: 10px;
}
.stream-backend-row>.vh-grid {
gap: 12px;
}
.vh-form :is(input, select, textarea):disabled {
opacity: .55;
cursor: not-allowed;
@@ -2421,93 +2478,103 @@ h2+.fine {
}
}
.redirect-flow {
/* Stream backends: routing-table rows in the editor and the card. */
.stream-backend-toolbar {
align-items: end;
justify-content: flex-start;
}
.stream-backend-toolbar>label {
min-width: min(280px, 100%);
}
.stream-health-list {
display: grid;
grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.4fr);
gap: 12px;
align-items: center;
margin-top: 12px;
padding: 10px 12px;
gap: 10px;
}
.stream-health-backend {
margin-left: 6px;
color: var(--accent);
font: 600 12px var(--mono);
}
.stream-backend-status .redirect-rule-line {
grid-template-columns: 22px 10px minmax(0, .8fr) minmax(0, 1fr) 46px minmax(0, 1.4fr) minmax(0, .8fr);
}
.loc-state.is-unknown {
background: var(--muted);
opacity: .55;
}
.loc-state.is-ok {
background: var(--green);
}
.loc-state.is-bad {
background: var(--red);
}
.stream-backend-live {
color: var(--muted);
font-size: 11px;
}
/* 404 host response choice cards and sandboxed preview. */
.notfound-kinds {
grid-template-columns: repeat(2, minmax(0, 1fr));
margin-bottom: 10px;
}
.notfound-kinds small {
color: var(--muted);
font-size: 11px;
}
.notfound-kind-wide {
grid-column: 1 / -1;
}
.notfound-preview {
display: grid;
gap: 6px;
margin-top: 10px;
padding: 10px;
border: 1px solid var(--line);
border-radius: var(--rp-radius-surface, 0);
background: var(--bg);
}
.redirect-flow-from,
.redirect-flow-to {
.notfound-preview-head {
display: flex;
flex-wrap: wrap;
gap: 6px;
min-width: 0;
align-items: center;
justify-content: space-between;
gap: 8px;
}
.redirect-flow-to {
flex-direction: column;
align-items: flex-start;
gap: 3px;
}
.redirect-flow-arrow {
color: var(--muted);
font-size: 16px;
line-height: 1;
}
.redirect-host-chip {
max-width: 100%;
padding: 2px 6px;
.notfound-preview-head a {
padding: 3px 9px;
border: 1px solid var(--line);
border-radius: var(--rp-radius-control, 0);
font: 11px/1.45 var(--mono);
color: var(--text);
overflow-wrap: anywhere;
}
.redirect-target {
font: 12px/1.45 var(--mono);
font-weight: 600;
color: var(--green);
overflow-wrap: anywhere;
min-width: 0;
}
.redirect-target-more {
font-size: 11px;
color: var(--muted);
text-decoration: none;
}
.redirect-meta {
display: flex;
flex-wrap: wrap;
gap: 4px 18px;
margin-top: 10px;
font-size: 11px;
color: var(--muted);
.notfound-preview iframe {
width: 100%;
height: 320px;
border: 1px solid var(--line);
background: #fff;
}
.redirect-meta-item {
.notfound-preview iframe[hidden] {
display: none;
}
.entity-actions a.notfound-card-preview {
display: inline-flex;
gap: 6px;
min-width: 0;
}
.redirect-meta-item b {
color: var(--text);
font-weight: 600;
overflow-wrap: anywhere;
}
@media (max-width: 760px) {
.redirect-flow {
grid-template-columns: minmax(0, 1fr);
gap: 6px;
}
.redirect-flow-arrow {
transform: rotate(90deg);
justify-self: start;
}
align-items: center;
text-decoration: none;
}
.lb-editor {
@@ -3002,3 +3069,51 @@ h2+.fine {
opacity: .55;
cursor: default;
}
/* Web Service type and FastCGI source choices reuse the Vhost www cards. */
.web-service-kinds {
grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}
.web-service-php-sources {
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.web-service-kinds .web-service-php-app {
margin-top: 4px;
}
.vh-www-choice.is-disabled {
opacity: .5;
cursor: not-allowed;
}
.web-service-php-profile-summary {
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}
.web-service-php-profile-actions {
display: flex;
flex-wrap: wrap;
gap: 8px;
}
/* Editor dialogs: the title row is followed directly by the tabs. Live
summaries are shown inside the relevant tab (Backend health, Backends);
the identifier is in the title pill and hostnames in the Frontend tab. */
:is(#vhost-form, #redirect-form, #notfound-form, #stream-form)>.vh-live-summary {
display: none;
}
.vh-live-summary.vh-live-summary-tab {
margin: 0 0 8px;
padding: 7px 10px;
border: 1px solid var(--line);
border-radius: var(--rp-radius-surface, 0px);
background: var(--panel2);
font-size: 11px;
}
.vh-live-summary.vh-live-summary-tab[hidden] {
display: none;
}