Files
douyi_guaji_main/webui/css/strict_ui_layout.css
T

404 lines
7.9 KiB
CSS

/* Strict UI app shell, header, overview, and navigation layout. */
.app {
display: grid;
grid-template-columns: var(--strict-rail) minmax(0, 1fr);
grid-template-rows: var(--strict-top) var(--strict-status) minmax(0, 1fr) 38px;
grid-template-areas:
"top top"
"rail overview"
"rail workspace"
"rail footer";
gap: 0;
width: 100%;
max-width: none;
min-height: 100vh;
margin: 0;
padding: 0;
animation: none;
overflow: hidden;
}
#topTemplatesMount {
display: contents;
}
.header {
grid-area: top;
position: sticky;
top: 0;
z-index: 40;
display: grid;
grid-template-columns: var(--strict-rail) minmax(0, 1fr);
gap: 0;
min-width: 0;
height: var(--strict-top);
padding: 0;
border: 0;
border-bottom: 1px solid var(--strict-border);
border-radius: 0;
background: rgba(255, 255, 255, 0.95);
box-shadow: none;
backdrop-filter: blur(16px) saturate(1.05);
}
.brandBlock {
display: flex;
align-items: center;
min-width: 0;
height: var(--strict-top);
padding: 0 26px;
border-right: 1px solid var(--strict-border);
}
.title {
color: #0f172a;
font-size: 24px;
font-weight: 800;
line-height: 1;
white-space: nowrap;
}
.header-actions {
display: flex;
align-items: center;
justify-content: center;
gap: 12px;
min-width: 0;
margin: 0;
padding: 0 24px;
overflow: hidden;
}
.actionGroup {
display: flex;
align-items: center;
flex-wrap: nowrap;
gap: 10px;
min-width: 0;
padding: 0;
}
.secondaryActions {
flex: 0 1 auto;
}
.primaryActions {
flex: 0 0 auto;
}
.btn {
position: relative;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 8px;
min-height: 42px;
min-width: 0;
padding: 0 16px;
border: 1px solid var(--strict-border-strong);
border-radius: var(--strict-radius);
color: var(--strict-text);
background: var(--strict-surface);
box-shadow: none;
font-size: 15px;
font-weight: 700;
line-height: 1;
white-space: nowrap;
transition: background 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease;
}
.btn:hover {
transform: translateY(-1px);
border-color: #b8c6d6;
background: #f8fbff;
box-shadow: var(--strict-shadow-soft);
}
.btn:focus-visible,
.input:focus-visible,
.small:focus-visible,
.logSearchBox:focus-visible,
textarea:focus-visible,
select:focus-visible,
input:focus-visible {
outline: none;
border-color: var(--strict-primary);
box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}
.btnIcon,
.btnIcon svg {
width: 18px;
height: 18px;
flex: 0 0 18px;
}
.btnPrimary,
#btnStart {
color: #ffffff;
border-color: var(--strict-primary);
background: var(--strict-primary);
}
.btnPrimary:hover,
#btnStart:hover {
border-color: var(--strict-primary-hover);
background: var(--strict-primary-hover);
}
.btnDanger,
.btnDangerSoft,
#btnStop,
#btnForceStop {
color: var(--strict-danger);
border-color: #fecdd3;
background: #ffffff;
}
#btnForceStop {
font-weight: 800;
}
.btnSoft,
.btnGhost {
color: #1f2937;
background: #ffffff;
}
.btnIconOnly,
#btnTheme {
width: 42px;
min-width: 42px;
padding: 0;
color: #111827;
}
.overview {
grid-area: overview;
position: relative;
z-index: 10;
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 22px;
height: var(--strict-status);
margin: 0;
padding: 22px 28px 16px;
border: 0;
background: transparent;
}
.overviewCard {
position: relative;
display: grid;
grid-template-columns: 58px minmax(0, 1fr);
grid-template-rows: auto auto;
column-gap: 16px;
row-gap: 6px;
min-width: 0;
min-height: 92px;
padding: 18px 22px;
border: 1px solid var(--strict-border);
border-radius: var(--strict-radius);
background: var(--strict-surface);
box-shadow: var(--strict-shadow-soft);
overflow: hidden;
}
.overviewCard:hover {
border-color: var(--strict-border-strong);
box-shadow: var(--strict-shadow);
}
.premiumMetricIcon {
grid-row: 1 / span 2;
grid-column: 1;
display: grid;
place-items: center;
width: 50px;
height: 50px;
align-self: center;
border-radius: 50%;
background: linear-gradient(135deg, #15b8a6, #0f9f8e);
color: #ffffff;
}
.premiumMetricIcon::before {
width: 24px;
height: 24px;
content: "";
background: currentColor;
mask: var(--metric-mask) center / contain no-repeat;
}
.premiumMetricIcon[data-tone="run"] {
--metric-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M5 13h3l2-7 4 14 2-7h3v2h-4.5l-.5 1.75L10 2.75 8.5 15H5z'/%3E%3C/svg%3E");
}
.premiumMetricIcon[data-tone="device"] {
--metric-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M7 2h10a2 2 0 0 1 2 2v16a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2m0 3v14h10V5zm4 15h2v1h-2z'/%3E%3C/svg%3E");
}
.premiumMetricIcon[data-tone="gift"] {
--metric-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M20 7h-2.2A3 3 0 0 0 12 5.8 3 3 0 0 0 6.2 7H4v6h1v8h14v-8h1zM9 5a1 1 0 0 1 1 1v1H9a1 1 0 0 1 0-2m6 0a1 1 0 0 1 0 2h-1V6a1 1 0 0 1 1-1M6 9h5v2H6zm7 0h5v2h-5zM7 13h4v6H7zm6 0h4v6h-4z'/%3E%3C/svg%3E");
}
.premiumMetricIcon[data-tone="log"] {
--metric-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M6 2h9l5 5v15H6zm8 2v4h4M8 12h8v2H8zm0 4h8v2H8z'/%3E%3C/svg%3E");
}
.overviewLabel,
.overviewValue,
.overviewMeta {
grid-column: 2;
min-width: 0;
}
.overviewLabel {
align-self: end;
color: var(--strict-text);
font-size: 17px;
font-weight: 800;
line-height: 1.15;
}
.overviewValue {
display: flex;
align-items: center;
gap: 7px;
max-width: 100%;
color: var(--strict-muted);
font-size: 14px;
font-weight: 650;
line-height: 1.2;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.overviewMeta {
color: var(--strict-teal);
font-size: 15px;
font-weight: 750;
line-height: 1.2;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.statusDot {
width: 8px;
height: 8px;
flex: 0 0 8px;
background: var(--strict-teal);
box-shadow: 0 0 0 4px rgba(15, 159, 142, 0.13);
}
.overviewSpark {
display: none;
}
.workspaceShell {
display: contents;
margin: 0;
}
.configRail {
grid-area: rail;
position: sticky;
top: var(--strict-top);
z-index: 20;
align-self: stretch;
width: var(--strict-rail);
max-height: none;
height: calc(100vh - var(--strict-top));
padding: 22px 14px;
border: 0;
border-right: 1px solid var(--strict-border);
border-radius: 0;
background: rgba(255, 255, 255, 0.82);
box-shadow: none;
overflow: auto;
}
.sideNav {
display: flex;
flex-direction: column;
gap: 6px;
margin: 0;
padding: 0;
border: 0;
border-radius: 0;
background: transparent;
box-shadow: none;
}
.sideNav::before,
.sideNav::after {
display: none;
}
.tabBtn {
display: grid;
grid-template-columns: 28px minmax(0, 1fr);
align-items: center;
gap: 10px;
width: 100%;
min-height: 48px;
padding: 0 13px;
border: 1px solid transparent;
border-radius: var(--strict-radius);
color: #334155;
background: transparent;
font-size: 15px;
font-weight: 700;
text-align: left;
box-shadow: none;
}
.tabBtn:hover {
color: var(--strict-primary);
background: #f5f8ff;
border-color: #e5edff;
}
.tabBtn.active,
.tabBtn[aria-selected="true"] {
color: var(--strict-primary);
border-color: #dce7ff;
background: linear-gradient(90deg, #eef4ff, #f4f7ff);
}
.tabIcon {
display: grid;
place-items: center;
width: 24px;
height: 24px;
color: currentColor;
}
.tabIcon svg {
width: 22px;
height: 22px;
stroke-width: 2.1;
}
.tabText {
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.configWorkspace {
grid-area: workspace;
min-width: 0;
height: calc(100vh - var(--strict-top) - var(--strict-status) - 38px);
padding: 0 28px 26px;
overflow: auto;
}
.panels {
display: block;
min-width: 0;
}