decompose structure
This commit is contained in:
@@ -1,543 +1,3 @@
|
||||
.panel-eyebrow,
|
||||
.page-kicker {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
color: var(--accent-soft);
|
||||
font-size: 0.72rem;
|
||||
font-weight: 700;
|
||||
letter-spacing: 0.12em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.icon-button,
|
||||
.segmented button,
|
||||
.ghost-button {
|
||||
min-height: 38px;
|
||||
border: 1px solid var(--line);
|
||||
border-radius: var(--radius);
|
||||
background: rgba(201, 122, 61, 0.08);
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.icon-button {
|
||||
width: 38px;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.ghost-button {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
padding: 0 12px;
|
||||
color: #cbd5e1;
|
||||
}
|
||||
|
||||
.segmented {
|
||||
display: inline-flex;
|
||||
padding: 3px;
|
||||
border: 1px solid rgba(148, 163, 184, 0.16);
|
||||
border-radius: var(--radius);
|
||||
background: rgba(2, 6, 23, 0.35);
|
||||
}
|
||||
|
||||
.view-switch {
|
||||
display: inline-flex;
|
||||
flex: 0 0 auto;
|
||||
padding: 3px;
|
||||
border: 1px solid rgba(148, 163, 184, 0.16);
|
||||
border-radius: var(--radius);
|
||||
background: rgba(2, 6, 23, 0.35);
|
||||
}
|
||||
|
||||
.segmented button {
|
||||
border-color: transparent;
|
||||
padding: 0 10px;
|
||||
}
|
||||
|
||||
.view-switch button {
|
||||
min-height: 36px;
|
||||
padding: 0 12px;
|
||||
border: 1px solid transparent;
|
||||
border-radius: calc(var(--radius) - 3px);
|
||||
background: transparent;
|
||||
color: var(--muted);
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.view-switch button:hover,
|
||||
.view-switch__button--active {
|
||||
border-color: rgba(212, 165, 116, 0.34);
|
||||
background: rgba(201, 122, 61, 0.14);
|
||||
color: #f8fafc;
|
||||
}
|
||||
|
||||
.segmented button:hover,
|
||||
.icon-button:hover {
|
||||
border-color: var(--line-strong);
|
||||
background: rgba(201, 122, 61, 0.18);
|
||||
}
|
||||
|
||||
.source-chip,
|
||||
.status-pill,
|
||||
.metric-card__state {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
min-height: 28px;
|
||||
padding: 0 10px;
|
||||
border-radius: 999px;
|
||||
font-size: 0.78rem;
|
||||
}
|
||||
|
||||
.source-chip {
|
||||
border: 1px solid var(--line);
|
||||
color: #cbd5e1;
|
||||
}
|
||||
|
||||
.status-pill--ok {
|
||||
border: 1px solid rgba(34, 197, 94, 0.36);
|
||||
background: rgba(34, 197, 94, 0.12);
|
||||
color: #86efac;
|
||||
}
|
||||
|
||||
.status-pill--warn {
|
||||
border: 1px solid rgba(245, 158, 11, 0.36);
|
||||
background: rgba(245, 158, 11, 0.12);
|
||||
color: #facc15;
|
||||
}
|
||||
|
||||
.status-pill--error {
|
||||
border: 1px solid rgba(239, 68, 68, 0.36);
|
||||
background: rgba(239, 68, 68, 0.12);
|
||||
color: #fca5a5;
|
||||
}
|
||||
|
||||
.status-pill--muted {
|
||||
border: 1px solid rgba(148, 163, 184, 0.22);
|
||||
background: rgba(148, 163, 184, 0.08);
|
||||
color: #cbd5e1;
|
||||
}
|
||||
|
||||
.search-box {
|
||||
min-width: min(320px, 100%);
|
||||
padding-left: 10px;
|
||||
border: 1px solid rgba(148, 163, 184, 0.18);
|
||||
border-radius: var(--radius);
|
||||
background: rgba(15, 23, 42, 0.72);
|
||||
}
|
||||
|
||||
.search-box input {
|
||||
flex: 1;
|
||||
border: 0;
|
||||
background: transparent;
|
||||
padding-left: 0;
|
||||
}
|
||||
|
||||
.empty-panel {
|
||||
min-height: 260px;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
color: var(--muted);
|
||||
border: 1px dashed rgba(148, 163, 184, 0.2);
|
||||
border-radius: var(--radius);
|
||||
}
|
||||
|
||||
.auth-screen {
|
||||
min-height: 100dvh;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
padding: 24px;
|
||||
background:
|
||||
radial-gradient(circle at 50% 18%, rgba(201, 122, 61, 0.16), transparent 36%),
|
||||
var(--bg);
|
||||
}
|
||||
|
||||
.auth-screen-card {
|
||||
width: min(420px, 100%);
|
||||
padding: 24px;
|
||||
border: 1px solid var(--line);
|
||||
border-radius: var(--radius);
|
||||
background:
|
||||
linear-gradient(180deg, rgba(255, 255, 255, 0.055), transparent 34%),
|
||||
rgba(10, 13, 18, 0.88);
|
||||
box-shadow:
|
||||
inset 0 1px 0 rgba(255, 255, 255, 0.07),
|
||||
0 22px 44px rgba(0, 0, 0, 0.34);
|
||||
}
|
||||
|
||||
.auth-screen-card h1 {
|
||||
margin: 0 0 10px;
|
||||
font-size: 1.4rem;
|
||||
}
|
||||
|
||||
.auth-screen-card p {
|
||||
margin: 0;
|
||||
color: var(--muted);
|
||||
}
|
||||
|
||||
.auth-screen-button {
|
||||
min-height: 38px;
|
||||
margin-top: 18px;
|
||||
padding: 0 14px;
|
||||
border: 1px solid var(--line);
|
||||
border-radius: var(--radius);
|
||||
background: rgba(201, 122, 61, 0.12);
|
||||
color: var(--text);
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.metric-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.metric-mosaic {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(82px, 1fr));
|
||||
gap: 7px;
|
||||
}
|
||||
|
||||
.metric-tile {
|
||||
position: relative;
|
||||
isolation: isolate;
|
||||
aspect-ratio: 1 / 0.86;
|
||||
min-height: 76px;
|
||||
min-width: 0;
|
||||
display: grid;
|
||||
align-content: space-between;
|
||||
gap: 7px;
|
||||
padding: 10px 9px 9px;
|
||||
border: 1px solid rgba(88, 103, 121, 0.5);
|
||||
border-radius: 6px;
|
||||
background:
|
||||
linear-gradient(180deg, rgba(255, 255, 255, 0.055), transparent 32%),
|
||||
repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 9px),
|
||||
linear-gradient(145deg, rgba(20, 27, 36, 0.96), rgba(5, 8, 13, 0.92));
|
||||
cursor: pointer;
|
||||
text-align: left;
|
||||
box-shadow:
|
||||
inset 0 1px 0 rgba(255, 255, 255, 0.08),
|
||||
inset 0 -1px 0 rgba(0, 0, 0, 0.55),
|
||||
0 8px 18px rgba(0, 0, 0, 0.18);
|
||||
transition:
|
||||
border-color 160ms ease,
|
||||
background 160ms ease,
|
||||
box-shadow 160ms ease,
|
||||
transform 160ms ease;
|
||||
}
|
||||
|
||||
.metric-tile::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
inset: 0 auto 0 0;
|
||||
z-index: -1;
|
||||
width: 4px;
|
||||
border-radius: 6px 0 0 6px;
|
||||
background: currentColor;
|
||||
box-shadow: 0 0 16px currentColor;
|
||||
opacity: 0.94;
|
||||
}
|
||||
|
||||
.metric-tile::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
inset: 5px;
|
||||
z-index: -1;
|
||||
border: 1px solid rgba(255, 255, 255, 0.045);
|
||||
border-radius: 4px;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.metric-tile:hover,
|
||||
.metric-tile--selected {
|
||||
border-color: rgba(232, 201, 160, 0.58);
|
||||
box-shadow:
|
||||
inset 0 1px 0 rgba(255, 255, 255, 0.1),
|
||||
inset 0 -1px 0 rgba(0, 0, 0, 0.6),
|
||||
0 10px 22px rgba(0, 0, 0, 0.26);
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
|
||||
.metric-tile--normal {
|
||||
color: #22c55e;
|
||||
}
|
||||
|
||||
.metric-tile--warning {
|
||||
color: #f59e0b;
|
||||
}
|
||||
|
||||
.metric-tile--critical {
|
||||
color: #ef4444;
|
||||
}
|
||||
|
||||
.metric-tile__status {
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
border: 1px solid rgba(255, 255, 255, 0.28);
|
||||
border-radius: 999px;
|
||||
background: currentColor;
|
||||
box-shadow:
|
||||
0 0 0 3px color-mix(in srgb, currentColor 13%, transparent),
|
||||
0 0 16px currentColor;
|
||||
}
|
||||
|
||||
.metric-tile__tag,
|
||||
.metric-tile strong {
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.metric-tile__tag {
|
||||
color: #cbd5e1;
|
||||
font-family: "Segoe UI", Inter, system-ui, sans-serif;
|
||||
font-size: 0.68rem;
|
||||
font-weight: 700;
|
||||
letter-spacing: 0.02em;
|
||||
}
|
||||
|
||||
.metric-tile strong {
|
||||
color: #f8fafc;
|
||||
font-size: 0.88rem;
|
||||
font-variant-numeric: tabular-nums;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.metric-card {
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
min-height: 184px;
|
||||
text-align: left;
|
||||
padding: 16px 15px 15px 17px;
|
||||
border: 1px solid rgba(88, 103, 121, 0.52);
|
||||
border-radius: 8px;
|
||||
background:
|
||||
linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 30%),
|
||||
repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 11px),
|
||||
linear-gradient(145deg, rgba(18, 25, 34, 0.95), rgba(5, 8, 13, 0.92));
|
||||
box-shadow:
|
||||
inset 0 1px 0 rgba(255, 255, 255, 0.08),
|
||||
inset 0 -1px 0 rgba(0, 0, 0, 0.52),
|
||||
0 14px 28px rgba(0, 0, 0, 0.2);
|
||||
cursor: pointer;
|
||||
transition:
|
||||
border-color 160ms ease,
|
||||
background 160ms ease,
|
||||
box-shadow 160ms ease,
|
||||
transform 160ms ease;
|
||||
}
|
||||
|
||||
.metric-card::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
inset: 0 auto 0 0;
|
||||
width: 5px;
|
||||
background: currentColor;
|
||||
box-shadow: 0 0 18px currentColor;
|
||||
}
|
||||
|
||||
.metric-card::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
inset: 7px;
|
||||
border: 1px solid rgba(255, 255, 255, 0.045);
|
||||
border-radius: 5px;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.metric-card:hover,
|
||||
.metric-card--selected {
|
||||
border-color: rgba(232, 201, 160, 0.58);
|
||||
background:
|
||||
linear-gradient(180deg, rgba(255, 255, 255, 0.07), transparent 30%),
|
||||
repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.032) 0 1px, transparent 1px 11px),
|
||||
linear-gradient(145deg, rgba(27, 35, 46, 0.98), rgba(11, 14, 20, 0.94));
|
||||
box-shadow:
|
||||
inset 0 1px 0 rgba(255, 255, 255, 0.1),
|
||||
inset 0 -1px 0 rgba(0, 0, 0, 0.58),
|
||||
0 18px 32px rgba(0, 0, 0, 0.28);
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
|
||||
.metric-card--normal {
|
||||
color: #22c55e;
|
||||
}
|
||||
|
||||
.metric-card--normal .metric-card__signal {
|
||||
color: #86efac;
|
||||
border-color: rgba(34, 197, 94, 0.24);
|
||||
background: rgba(34, 197, 94, 0.08);
|
||||
}
|
||||
|
||||
.metric-card--warning {
|
||||
color: #f59e0b;
|
||||
}
|
||||
|
||||
.metric-card--warning .metric-card__signal {
|
||||
color: #facc15;
|
||||
border-color: rgba(245, 158, 11, 0.28);
|
||||
background: rgba(245, 158, 11, 0.08);
|
||||
}
|
||||
|
||||
.metric-card--critical {
|
||||
color: #ef4444;
|
||||
}
|
||||
|
||||
.metric-card--critical .metric-card__signal {
|
||||
color: #fca5a5;
|
||||
border-color: rgba(239, 68, 68, 0.3);
|
||||
background: rgba(239, 68, 68, 0.1);
|
||||
}
|
||||
|
||||
.metric-card__header {
|
||||
display: grid;
|
||||
grid-template-columns: auto minmax(0, 1fr) auto;
|
||||
align-items: start;
|
||||
gap: 9px;
|
||||
}
|
||||
|
||||
.metric-card__footer {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: flex-end;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.metric-card__signal {
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
border: 1px solid rgba(212, 165, 116, 0.24);
|
||||
border-radius: 6px;
|
||||
color: var(--accent-soft);
|
||||
background:
|
||||
repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 7px),
|
||||
rgba(2, 6, 23, 0.42);
|
||||
}
|
||||
|
||||
.metric-card__tag {
|
||||
min-width: 0;
|
||||
color: #e5e7eb;
|
||||
font-size: 0.86rem;
|
||||
font-weight: 750;
|
||||
letter-spacing: 0.025em;
|
||||
}
|
||||
|
||||
.metric-card__tag span,
|
||||
.metric-card__tag small {
|
||||
display: block;
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.metric-card__tag small {
|
||||
margin-top: 3px;
|
||||
color: var(--muted);
|
||||
font-size: 0.68rem;
|
||||
font-weight: 600;
|
||||
letter-spacing: 0;
|
||||
}
|
||||
|
||||
.metric-card__state {
|
||||
flex: 0 0 auto;
|
||||
padding: 0 8px;
|
||||
}
|
||||
|
||||
.metric-card__corner {
|
||||
display: inline-flex;
|
||||
align-items: flex-end;
|
||||
flex-direction: column;
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.metric-card__age {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 5px;
|
||||
color: #9aa8ba;
|
||||
font-size: 0.73rem;
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
|
||||
.metric-card__state.is-normal {
|
||||
border-color: rgba(34, 197, 94, 0.24);
|
||||
background: rgba(34, 197, 94, 0.1);
|
||||
color: #86efac;
|
||||
}
|
||||
|
||||
.metric-card__state.is-warning {
|
||||
border-color: rgba(245, 158, 11, 0.28);
|
||||
background: rgba(245, 158, 11, 0.1);
|
||||
color: #facc15;
|
||||
}
|
||||
|
||||
.metric-card__state.is-critical {
|
||||
border-color: rgba(239, 68, 68, 0.3);
|
||||
background: rgba(239, 68, 68, 0.12);
|
||||
color: #fca5a5;
|
||||
}
|
||||
|
||||
.metric-card__value {
|
||||
margin: 22px 0 16px;
|
||||
overflow: hidden;
|
||||
font-size: clamp(1.85rem, 4vw, 2.7rem);
|
||||
font-variant-numeric: tabular-nums;
|
||||
font-weight: 760;
|
||||
line-height: 1;
|
||||
color: #f8fafc;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
text-shadow: 0 0 18px color-mix(in srgb, currentColor 18%, transparent);
|
||||
}
|
||||
|
||||
.metric-card__footer {
|
||||
margin-top: 18px;
|
||||
padding-top: 12px;
|
||||
border-top: 1px solid rgba(148, 163, 184, 0.12);
|
||||
color: var(--muted);
|
||||
font-size: 0.78rem;
|
||||
}
|
||||
|
||||
.metric-card__footer span {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.metric-card__action {
|
||||
flex: 0 0 auto;
|
||||
color: var(--accent-soft);
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
@media (max-width: 680px) {
|
||||
.search-box {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.segmented {
|
||||
width: 100%;
|
||||
overflow-x: auto;
|
||||
}
|
||||
|
||||
.view-switch {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.view-switch button {
|
||||
flex: 1;
|
||||
}
|
||||
}
|
||||
@import './components/controls.css';
|
||||
@import './components/auth.css';
|
||||
@import './components/metrics.css';
|
||||
|
||||
43
src/styles/components/auth.css
Normal file
43
src/styles/components/auth.css
Normal file
@@ -0,0 +1,43 @@
|
||||
.auth-screen {
|
||||
min-height: 100dvh;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
padding: 24px;
|
||||
background:
|
||||
radial-gradient(circle at 50% 18%, rgba(201, 122, 61, 0.16), transparent 36%),
|
||||
var(--bg);
|
||||
}
|
||||
|
||||
.auth-screen-card {
|
||||
width: min(420px, 100%);
|
||||
padding: 24px;
|
||||
border: 1px solid var(--line);
|
||||
border-radius: var(--radius);
|
||||
background:
|
||||
linear-gradient(180deg, rgba(255, 255, 255, 0.055), transparent 34%),
|
||||
rgba(10, 13, 18, 0.88);
|
||||
box-shadow:
|
||||
inset 0 1px 0 rgba(255, 255, 255, 0.07),
|
||||
0 22px 44px rgba(0, 0, 0, 0.34);
|
||||
}
|
||||
|
||||
.auth-screen-card h1 {
|
||||
margin: 0 0 10px;
|
||||
font-size: 1.4rem;
|
||||
}
|
||||
|
||||
.auth-screen-card p {
|
||||
margin: 0;
|
||||
color: var(--muted);
|
||||
}
|
||||
|
||||
.auth-screen-button {
|
||||
min-height: 38px;
|
||||
margin-top: 18px;
|
||||
padding: 0 14px;
|
||||
border: 1px solid var(--line);
|
||||
border-radius: var(--radius);
|
||||
background: rgba(201, 122, 61, 0.12);
|
||||
color: var(--text);
|
||||
cursor: pointer;
|
||||
}
|
||||
158
src/styles/components/controls.css
Normal file
158
src/styles/components/controls.css
Normal file
@@ -0,0 +1,158 @@
|
||||
.panel-eyebrow,
|
||||
.page-kicker {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
color: var(--accent-soft);
|
||||
font-size: 0.72rem;
|
||||
font-weight: 700;
|
||||
letter-spacing: 0.12em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.icon-button,
|
||||
.segmented button,
|
||||
.ghost-button {
|
||||
min-height: 38px;
|
||||
border: 1px solid var(--line);
|
||||
border-radius: var(--radius);
|
||||
background: rgba(201, 122, 61, 0.08);
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.icon-button {
|
||||
width: 38px;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.ghost-button {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
padding: 0 12px;
|
||||
color: #cbd5e1;
|
||||
}
|
||||
|
||||
.segmented,
|
||||
.view-switch {
|
||||
display: inline-flex;
|
||||
flex: 0 0 auto;
|
||||
padding: 3px;
|
||||
border: 1px solid rgba(148, 163, 184, 0.16);
|
||||
border-radius: var(--radius);
|
||||
background: rgba(2, 6, 23, 0.35);
|
||||
}
|
||||
|
||||
.segmented button {
|
||||
border-color: transparent;
|
||||
padding: 0 10px;
|
||||
}
|
||||
|
||||
.view-switch button {
|
||||
min-height: 36px;
|
||||
padding: 0 12px;
|
||||
border: 1px solid transparent;
|
||||
border-radius: calc(var(--radius) - 3px);
|
||||
background: transparent;
|
||||
color: var(--muted);
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.view-switch button:hover,
|
||||
.view-switch__button--active {
|
||||
border-color: rgba(212, 165, 116, 0.34);
|
||||
background: rgba(201, 122, 61, 0.14);
|
||||
color: #f8fafc;
|
||||
}
|
||||
|
||||
.segmented button:hover,
|
||||
.icon-button:hover {
|
||||
border-color: var(--line-strong);
|
||||
background: rgba(201, 122, 61, 0.18);
|
||||
}
|
||||
|
||||
.source-chip,
|
||||
.status-pill,
|
||||
.metric-card__state {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
min-height: 28px;
|
||||
padding: 0 10px;
|
||||
border-radius: 999px;
|
||||
font-size: 0.78rem;
|
||||
}
|
||||
|
||||
.source-chip {
|
||||
border: 1px solid var(--line);
|
||||
color: #cbd5e1;
|
||||
}
|
||||
|
||||
.status-pill--ok {
|
||||
border: 1px solid rgba(34, 197, 94, 0.36);
|
||||
background: rgba(34, 197, 94, 0.12);
|
||||
color: #86efac;
|
||||
}
|
||||
|
||||
.status-pill--warn {
|
||||
border: 1px solid rgba(245, 158, 11, 0.36);
|
||||
background: rgba(245, 158, 11, 0.12);
|
||||
color: #facc15;
|
||||
}
|
||||
|
||||
.status-pill--error {
|
||||
border: 1px solid rgba(239, 68, 68, 0.36);
|
||||
background: rgba(239, 68, 68, 0.12);
|
||||
color: #fca5a5;
|
||||
}
|
||||
|
||||
.status-pill--muted {
|
||||
border: 1px solid rgba(148, 163, 184, 0.22);
|
||||
background: rgba(148, 163, 184, 0.08);
|
||||
color: #cbd5e1;
|
||||
}
|
||||
|
||||
.search-box {
|
||||
min-width: min(320px, 100%);
|
||||
padding-left: 10px;
|
||||
border: 1px solid rgba(148, 163, 184, 0.18);
|
||||
border-radius: var(--radius);
|
||||
background: rgba(15, 23, 42, 0.72);
|
||||
}
|
||||
|
||||
.search-box input {
|
||||
flex: 1;
|
||||
border: 0;
|
||||
background: transparent;
|
||||
padding-left: 0;
|
||||
}
|
||||
|
||||
.empty-panel {
|
||||
min-height: 260px;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
color: var(--muted);
|
||||
border: 1px dashed rgba(148, 163, 184, 0.2);
|
||||
border-radius: var(--radius);
|
||||
}
|
||||
|
||||
@media (max-width: 680px) {
|
||||
.search-box {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.segmented {
|
||||
width: 100%;
|
||||
overflow-x: auto;
|
||||
}
|
||||
|
||||
.view-switch {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.view-switch button {
|
||||
flex: 1;
|
||||
}
|
||||
}
|
||||
324
src/styles/components/metrics.css
Normal file
324
src/styles/components/metrics.css
Normal file
@@ -0,0 +1,324 @@
|
||||
.metric-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.metric-mosaic {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(82px, 1fr));
|
||||
gap: 7px;
|
||||
}
|
||||
|
||||
.metric-tile {
|
||||
position: relative;
|
||||
isolation: isolate;
|
||||
aspect-ratio: 1 / 0.86;
|
||||
min-height: 76px;
|
||||
min-width: 0;
|
||||
display: grid;
|
||||
align-content: space-between;
|
||||
gap: 7px;
|
||||
padding: 10px 9px 9px;
|
||||
border: 1px solid rgba(88, 103, 121, 0.5);
|
||||
border-radius: 6px;
|
||||
background:
|
||||
linear-gradient(180deg, rgba(255, 255, 255, 0.055), transparent 32%),
|
||||
repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 9px),
|
||||
linear-gradient(145deg, rgba(20, 27, 36, 0.96), rgba(5, 8, 13, 0.92));
|
||||
cursor: pointer;
|
||||
text-align: left;
|
||||
box-shadow:
|
||||
inset 0 1px 0 rgba(255, 255, 255, 0.08),
|
||||
inset 0 -1px 0 rgba(0, 0, 0, 0.55),
|
||||
0 8px 18px rgba(0, 0, 0, 0.18);
|
||||
transition:
|
||||
border-color 160ms ease,
|
||||
background 160ms ease,
|
||||
box-shadow 160ms ease,
|
||||
transform 160ms ease;
|
||||
}
|
||||
|
||||
.metric-tile::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
inset: 0 auto 0 0;
|
||||
z-index: -1;
|
||||
width: 4px;
|
||||
border-radius: 6px 0 0 6px;
|
||||
background: currentColor;
|
||||
box-shadow: 0 0 16px currentColor;
|
||||
opacity: 0.94;
|
||||
}
|
||||
|
||||
.metric-tile::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
inset: 5px;
|
||||
z-index: -1;
|
||||
border: 1px solid rgba(255, 255, 255, 0.045);
|
||||
border-radius: 4px;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.metric-tile:hover,
|
||||
.metric-tile--selected {
|
||||
border-color: rgba(232, 201, 160, 0.58);
|
||||
box-shadow:
|
||||
inset 0 1px 0 rgba(255, 255, 255, 0.1),
|
||||
inset 0 -1px 0 rgba(0, 0, 0, 0.6),
|
||||
0 10px 22px rgba(0, 0, 0, 0.26);
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
|
||||
.metric-tile--normal,
|
||||
.metric-card--normal {
|
||||
color: #22c55e;
|
||||
}
|
||||
|
||||
.metric-tile--warning,
|
||||
.metric-card--warning {
|
||||
color: #f59e0b;
|
||||
}
|
||||
|
||||
.metric-tile--critical,
|
||||
.metric-card--critical {
|
||||
color: #ef4444;
|
||||
}
|
||||
|
||||
.metric-tile__status {
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
border: 1px solid rgba(255, 255, 255, 0.28);
|
||||
border-radius: 999px;
|
||||
background: currentColor;
|
||||
box-shadow:
|
||||
0 0 0 3px color-mix(in srgb, currentColor 13%, transparent),
|
||||
0 0 16px currentColor;
|
||||
}
|
||||
|
||||
.metric-tile__tag,
|
||||
.metric-tile strong {
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.metric-tile__tag {
|
||||
color: #cbd5e1;
|
||||
font-family: "Segoe UI", Inter, system-ui, sans-serif;
|
||||
font-size: 0.68rem;
|
||||
font-weight: 700;
|
||||
letter-spacing: 0.02em;
|
||||
}
|
||||
|
||||
.metric-tile strong {
|
||||
color: #f8fafc;
|
||||
font-size: 0.88rem;
|
||||
font-variant-numeric: tabular-nums;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.metric-card {
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
min-height: 184px;
|
||||
text-align: left;
|
||||
padding: 16px 15px 15px 17px;
|
||||
border: 1px solid rgba(88, 103, 121, 0.52);
|
||||
border-radius: 8px;
|
||||
background:
|
||||
linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 30%),
|
||||
repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 11px),
|
||||
linear-gradient(145deg, rgba(18, 25, 34, 0.95), rgba(5, 8, 13, 0.92));
|
||||
box-shadow:
|
||||
inset 0 1px 0 rgba(255, 255, 255, 0.08),
|
||||
inset 0 -1px 0 rgba(0, 0, 0, 0.52),
|
||||
0 14px 28px rgba(0, 0, 0, 0.2);
|
||||
cursor: pointer;
|
||||
transition:
|
||||
border-color 160ms ease,
|
||||
background 160ms ease,
|
||||
box-shadow 160ms ease,
|
||||
transform 160ms ease;
|
||||
}
|
||||
|
||||
.metric-card::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
inset: 0 auto 0 0;
|
||||
width: 5px;
|
||||
background: currentColor;
|
||||
box-shadow: 0 0 18px currentColor;
|
||||
}
|
||||
|
||||
.metric-card::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
inset: 7px;
|
||||
border: 1px solid rgba(255, 255, 255, 0.045);
|
||||
border-radius: 5px;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.metric-card:hover,
|
||||
.metric-card--selected {
|
||||
border-color: rgba(232, 201, 160, 0.58);
|
||||
background:
|
||||
linear-gradient(180deg, rgba(255, 255, 255, 0.07), transparent 30%),
|
||||
repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.032) 0 1px, transparent 1px 11px),
|
||||
linear-gradient(145deg, rgba(27, 35, 46, 0.98), rgba(11, 14, 20, 0.94));
|
||||
box-shadow:
|
||||
inset 0 1px 0 rgba(255, 255, 255, 0.1),
|
||||
inset 0 -1px 0 rgba(0, 0, 0, 0.58),
|
||||
0 18px 32px rgba(0, 0, 0, 0.28);
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
|
||||
.metric-card--normal .metric-card__signal {
|
||||
color: #86efac;
|
||||
border-color: rgba(34, 197, 94, 0.24);
|
||||
background: rgba(34, 197, 94, 0.08);
|
||||
}
|
||||
|
||||
.metric-card--warning .metric-card__signal {
|
||||
color: #facc15;
|
||||
border-color: rgba(245, 158, 11, 0.28);
|
||||
background: rgba(245, 158, 11, 0.08);
|
||||
}
|
||||
|
||||
.metric-card--critical .metric-card__signal {
|
||||
color: #fca5a5;
|
||||
border-color: rgba(239, 68, 68, 0.3);
|
||||
background: rgba(239, 68, 68, 0.1);
|
||||
}
|
||||
|
||||
.metric-card__header {
|
||||
display: grid;
|
||||
grid-template-columns: auto minmax(0, 1fr) auto;
|
||||
align-items: start;
|
||||
gap: 9px;
|
||||
}
|
||||
|
||||
.metric-card__footer {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: flex-end;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.metric-card__signal {
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
border: 1px solid rgba(212, 165, 116, 0.24);
|
||||
border-radius: 6px;
|
||||
color: var(--accent-soft);
|
||||
background:
|
||||
repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 7px),
|
||||
rgba(2, 6, 23, 0.42);
|
||||
}
|
||||
|
||||
.metric-card__tag {
|
||||
min-width: 0;
|
||||
color: #e5e7eb;
|
||||
font-size: 0.86rem;
|
||||
font-weight: 750;
|
||||
letter-spacing: 0.025em;
|
||||
}
|
||||
|
||||
.metric-card__tag span,
|
||||
.metric-card__tag small {
|
||||
display: block;
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.metric-card__tag small {
|
||||
margin-top: 3px;
|
||||
color: var(--muted);
|
||||
font-size: 0.68rem;
|
||||
font-weight: 600;
|
||||
letter-spacing: 0;
|
||||
}
|
||||
|
||||
.metric-card__state {
|
||||
flex: 0 0 auto;
|
||||
padding: 0 8px;
|
||||
}
|
||||
|
||||
.metric-card__corner {
|
||||
display: inline-flex;
|
||||
align-items: flex-end;
|
||||
flex-direction: column;
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.metric-card__age {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 5px;
|
||||
color: #9aa8ba;
|
||||
font-size: 0.73rem;
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
|
||||
.metric-card__state.is-normal {
|
||||
border-color: rgba(34, 197, 94, 0.24);
|
||||
background: rgba(34, 197, 94, 0.1);
|
||||
color: #86efac;
|
||||
}
|
||||
|
||||
.metric-card__state.is-warning {
|
||||
border-color: rgba(245, 158, 11, 0.28);
|
||||
background: rgba(245, 158, 11, 0.1);
|
||||
color: #facc15;
|
||||
}
|
||||
|
||||
.metric-card__state.is-critical {
|
||||
border-color: rgba(239, 68, 68, 0.3);
|
||||
background: rgba(239, 68, 68, 0.12);
|
||||
color: #fca5a5;
|
||||
}
|
||||
|
||||
.metric-card__value {
|
||||
margin: 22px 0 16px;
|
||||
overflow: hidden;
|
||||
font-size: clamp(1.85rem, 4vw, 2.7rem);
|
||||
font-variant-numeric: tabular-nums;
|
||||
font-weight: 760;
|
||||
line-height: 1;
|
||||
color: #f8fafc;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
text-shadow: 0 0 18px color-mix(in srgb, currentColor 18%, transparent);
|
||||
}
|
||||
|
||||
.metric-card__footer {
|
||||
margin-top: 18px;
|
||||
padding-top: 12px;
|
||||
border-top: 1px solid rgba(148, 163, 184, 0.12);
|
||||
color: var(--muted);
|
||||
font-size: 0.78rem;
|
||||
}
|
||||
|
||||
.metric-card__footer span {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.metric-card__action {
|
||||
flex: 0 0 auto;
|
||||
color: var(--accent-soft);
|
||||
font-weight: 700;
|
||||
}
|
||||
@@ -1,411 +1,2 @@
|
||||
.dashboard-shell {
|
||||
width: min(1440px, 100%);
|
||||
min-height: 100vh;
|
||||
margin: 0 auto;
|
||||
padding: 26px 24px 36px;
|
||||
}
|
||||
|
||||
.dashboard-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 20px;
|
||||
margin-bottom: 22px;
|
||||
}
|
||||
|
||||
.dashboard-actions {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: flex-end;
|
||||
gap: 12px;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.dashboard-search {
|
||||
width: min(360px, 100%);
|
||||
}
|
||||
|
||||
.dashboard-stats {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(5, minmax(0, 1fr));
|
||||
gap: 12px;
|
||||
margin-bottom: 22px;
|
||||
}
|
||||
|
||||
.dashboard-stat {
|
||||
min-height: 112px;
|
||||
padding: 16px;
|
||||
border: 1px solid rgba(148, 163, 184, 0.16);
|
||||
border-radius: var(--radius);
|
||||
background:
|
||||
linear-gradient(145deg, rgba(17, 24, 39, 0.78), rgba(2, 6, 23, 0.62)),
|
||||
rgba(2, 6, 23, 0.38);
|
||||
}
|
||||
|
||||
.dashboard-stat span {
|
||||
display: block;
|
||||
min-height: 34px;
|
||||
color: var(--muted);
|
||||
font-size: 0.78rem;
|
||||
line-height: 1.35;
|
||||
}
|
||||
|
||||
.dashboard-stat strong {
|
||||
display: block;
|
||||
margin-top: 12px;
|
||||
font-size: 2rem;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.dashboard-stat--success {
|
||||
border-color: rgba(34, 197, 94, 0.28);
|
||||
}
|
||||
|
||||
.dashboard-stat--success strong {
|
||||
color: #86efac;
|
||||
}
|
||||
|
||||
.dashboard-stat--danger {
|
||||
border-color: rgba(239, 68, 68, 0.28);
|
||||
}
|
||||
|
||||
.dashboard-stat--danger strong {
|
||||
color: #fca5a5;
|
||||
}
|
||||
|
||||
.dashboard-stat--warning {
|
||||
border-color: rgba(245, 158, 11, 0.3);
|
||||
}
|
||||
|
||||
.dashboard-stat--warning strong {
|
||||
color: #facc15;
|
||||
}
|
||||
|
||||
.dashboard-stat--accent {
|
||||
border-color: rgba(212, 165, 116, 0.32);
|
||||
}
|
||||
|
||||
.dashboard-stat--accent strong {
|
||||
color: var(--accent-soft);
|
||||
}
|
||||
|
||||
.edge-card-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
|
||||
gap: 16px;
|
||||
}
|
||||
|
||||
.edge-card {
|
||||
min-height: 520px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
padding: 18px;
|
||||
border: 1px solid rgba(148, 163, 184, 0.18);
|
||||
border-radius: 10px;
|
||||
background:
|
||||
radial-gradient(circle at 12% 0%, rgba(255, 255, 255, 0.09), transparent 26%),
|
||||
linear-gradient(145deg, rgba(23, 30, 42, 0.92), rgba(4, 9, 16, 0.84)),
|
||||
var(--panel-strong);
|
||||
box-shadow:
|
||||
inset 0 1px 0 rgba(255, 255, 255, 0.07),
|
||||
0 18px 34px rgba(0, 0, 0, 0.22);
|
||||
transition:
|
||||
border-color 160ms ease,
|
||||
transform 160ms ease,
|
||||
box-shadow 160ms ease;
|
||||
}
|
||||
|
||||
.edge-card:hover {
|
||||
border-color: rgba(212, 165, 116, 0.42);
|
||||
box-shadow:
|
||||
inset 0 1px 0 rgba(255, 255, 255, 0.08),
|
||||
0 24px 44px rgba(0, 0, 0, 0.28);
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
|
||||
.edge-card--ok {
|
||||
border-color: rgba(34, 197, 94, 0.26);
|
||||
}
|
||||
|
||||
.edge-card--warn {
|
||||
border-color: rgba(245, 158, 11, 0.3);
|
||||
}
|
||||
|
||||
.edge-card--empty {
|
||||
border-color: rgba(148, 163, 184, 0.18);
|
||||
}
|
||||
|
||||
.edge-card__header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.edge-card__logo {
|
||||
flex: 0 0 auto;
|
||||
width: 64px;
|
||||
height: 64px;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
border: 1px solid rgba(212, 165, 116, 0.22);
|
||||
border-radius: var(--radius);
|
||||
background: rgba(2, 6, 23, 0.38);
|
||||
}
|
||||
|
||||
.edge-card__logo img {
|
||||
width: 46px;
|
||||
height: 52px;
|
||||
object-fit: contain;
|
||||
filter:
|
||||
sepia(1)
|
||||
saturate(1.25)
|
||||
hue-rotate(342deg)
|
||||
brightness(0.86)
|
||||
contrast(1.1);
|
||||
}
|
||||
|
||||
.edge-card__title {
|
||||
min-width: 0;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.edge-card__title h2 {
|
||||
margin: 0;
|
||||
overflow: hidden;
|
||||
font-size: 1.08rem;
|
||||
font-weight: 650;
|
||||
line-height: 1.2;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.edge-card__title span {
|
||||
display: block;
|
||||
margin-top: 5px;
|
||||
overflow: hidden;
|
||||
color: var(--muted);
|
||||
font-size: 0.77rem;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.edge-state {
|
||||
flex: 0 0 auto;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
min-height: 28px;
|
||||
padding: 0 9px;
|
||||
border: 1px solid rgba(148, 163, 184, 0.22);
|
||||
border-radius: 999px;
|
||||
font-size: 0.68rem;
|
||||
font-weight: 800;
|
||||
letter-spacing: 0.06em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.edge-state--ok {
|
||||
color: #22e27f;
|
||||
}
|
||||
|
||||
.edge-state--warn,
|
||||
.edge-state--empty {
|
||||
color: #f2a23a;
|
||||
}
|
||||
|
||||
.edge-card__meta {
|
||||
margin: 18px 0 12px;
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.edge-card__meta div {
|
||||
min-height: 64px;
|
||||
padding: 10px;
|
||||
border: 1px solid rgba(148, 163, 184, 0.13);
|
||||
border-radius: var(--radius);
|
||||
background: rgba(2, 6, 23, 0.26);
|
||||
}
|
||||
|
||||
.edge-card__meta div:last-child {
|
||||
grid-column: 1 / -1;
|
||||
min-height: 52px;
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) auto;
|
||||
align-items: center;
|
||||
column-gap: 12px;
|
||||
}
|
||||
|
||||
.edge-card__meta dt {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
margin: 0;
|
||||
color: var(--muted);
|
||||
font-size: 0.74rem;
|
||||
}
|
||||
|
||||
.edge-card__meta dd {
|
||||
margin: 8px 0 0;
|
||||
overflow: hidden;
|
||||
color: #e5e7eb;
|
||||
font-size: 1.02rem;
|
||||
font-weight: 700;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.edge-card__meta div:last-child dd {
|
||||
margin: 0;
|
||||
font-size: 0.92rem;
|
||||
}
|
||||
|
||||
.edge-card__actions {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
gap: 8px;
|
||||
margin-bottom: 14px;
|
||||
}
|
||||
|
||||
.edge-card__actions button,
|
||||
.edge-card__maintenance button {
|
||||
min-width: 0;
|
||||
border: 1px solid rgba(148, 163, 184, 0.16);
|
||||
border-radius: var(--radius);
|
||||
background: rgba(2, 6, 23, 0.24);
|
||||
color: #cbd5e1;
|
||||
cursor: pointer;
|
||||
transition:
|
||||
border-color 160ms ease,
|
||||
background 160ms ease,
|
||||
color 160ms ease;
|
||||
}
|
||||
|
||||
.edge-card__actions button {
|
||||
min-height: 40px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
padding: 0 10px;
|
||||
color: #b8c3d3;
|
||||
font-size: 0.76rem;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.edge-card__actions button:hover,
|
||||
.edge-card__maintenance button:hover {
|
||||
border-color: rgba(212, 165, 116, 0.42);
|
||||
background: rgba(201, 122, 61, 0.1);
|
||||
color: #f8fafc;
|
||||
}
|
||||
|
||||
.edge-card__maintenance {
|
||||
padding: 12px;
|
||||
border: 1px solid rgba(148, 163, 184, 0.12);
|
||||
border-radius: var(--radius);
|
||||
background: rgba(2, 6, 23, 0.2);
|
||||
}
|
||||
|
||||
.edge-card__maintenance > span {
|
||||
display: block;
|
||||
margin-bottom: 9px;
|
||||
color: var(--muted);
|
||||
font-size: 0.72rem;
|
||||
font-weight: 800;
|
||||
letter-spacing: 0.08em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.edge-card__maintenance div {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
gap: 7px;
|
||||
}
|
||||
|
||||
.edge-card__maintenance button {
|
||||
min-height: 34px;
|
||||
padding: 0 8px;
|
||||
font-size: 0.72rem;
|
||||
}
|
||||
|
||||
.edge-card__details {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 12px;
|
||||
min-height: 44px;
|
||||
margin-top: auto;
|
||||
padding: 0 12px;
|
||||
border: 1px solid rgba(212, 165, 116, 0.28);
|
||||
border-radius: var(--radius);
|
||||
background:
|
||||
linear-gradient(135deg, rgba(201, 122, 61, 0.14), rgba(212, 165, 116, 0.06)),
|
||||
rgba(201, 122, 61, 0.08);
|
||||
color: #f8fafc;
|
||||
cursor: pointer;
|
||||
font-size: 0.76rem;
|
||||
font-weight: 900;
|
||||
letter-spacing: 0.08em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.edge-card__details:hover {
|
||||
border-color: var(--line-strong);
|
||||
background: rgba(201, 122, 61, 0.16);
|
||||
}
|
||||
|
||||
@media (max-width: 1100px) {
|
||||
.dashboard-stats {
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
}
|
||||
|
||||
.edge-card-grid {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 680px) {
|
||||
.dashboard-shell {
|
||||
padding: 16px;
|
||||
}
|
||||
|
||||
.dashboard-header {
|
||||
align-items: stretch;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.dashboard-actions,
|
||||
.dashboard-search {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.edge-card-grid {
|
||||
gap: 16px;
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.edge-card {
|
||||
min-height: 0;
|
||||
padding: 18px;
|
||||
}
|
||||
|
||||
.edge-card__actions,
|
||||
.edge-card__maintenance div {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.dashboard-stats {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.edge-card__header {
|
||||
align-items: flex-start;
|
||||
}
|
||||
|
||||
.edge-state {
|
||||
margin-left: auto;
|
||||
}
|
||||
}
|
||||
@import './dashboard/layout.css';
|
||||
@import './dashboard/edge-card.css';
|
||||
|
||||
210
src/styles/dashboard/edge-card.css
Normal file
210
src/styles/dashboard/edge-card.css
Normal file
@@ -0,0 +1,210 @@
|
||||
.edge-card-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
|
||||
gap: 16px;
|
||||
}
|
||||
|
||||
.edge-card {
|
||||
min-height: 520px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
padding: 18px;
|
||||
border: 1px solid rgba(148, 163, 184, 0.18);
|
||||
border-radius: 10px;
|
||||
background:
|
||||
radial-gradient(circle at 12% 0%, rgba(255, 255, 255, 0.09), transparent 26%),
|
||||
linear-gradient(145deg, rgba(23, 30, 42, 0.92), rgba(4, 9, 16, 0.84)),
|
||||
var(--panel-strong);
|
||||
box-shadow:
|
||||
inset 0 1px 0 rgba(255, 255, 255, 0.07),
|
||||
0 18px 34px rgba(0, 0, 0, 0.22);
|
||||
transition:
|
||||
border-color 160ms ease,
|
||||
transform 160ms ease,
|
||||
box-shadow 160ms ease;
|
||||
}
|
||||
|
||||
.edge-card:hover {
|
||||
border-color: rgba(212, 165, 116, 0.42);
|
||||
box-shadow:
|
||||
inset 0 1px 0 rgba(255, 255, 255, 0.08),
|
||||
0 24px 44px rgba(0, 0, 0, 0.28);
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
|
||||
.edge-card__header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.edge-card__logo {
|
||||
flex: 0 0 auto;
|
||||
width: 64px;
|
||||
height: 64px;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
border: 1px solid rgba(212, 165, 116, 0.22);
|
||||
border-radius: var(--radius);
|
||||
background: rgba(2, 6, 23, 0.38);
|
||||
}
|
||||
|
||||
.edge-card__logo img {
|
||||
width: 46px;
|
||||
height: 52px;
|
||||
object-fit: contain;
|
||||
filter:
|
||||
sepia(1)
|
||||
saturate(1.25)
|
||||
hue-rotate(342deg)
|
||||
brightness(0.86)
|
||||
contrast(1.1);
|
||||
}
|
||||
|
||||
.edge-card__title {
|
||||
min-width: 0;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.edge-card__title h2 {
|
||||
margin: 0;
|
||||
overflow: hidden;
|
||||
font-size: 1.08rem;
|
||||
font-weight: 650;
|
||||
line-height: 1.2;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.edge-card__title span {
|
||||
display: block;
|
||||
margin-top: 5px;
|
||||
overflow: hidden;
|
||||
color: var(--muted);
|
||||
font-size: 0.77rem;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.edge-card__actions {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
gap: 8px;
|
||||
margin-bottom: 14px;
|
||||
}
|
||||
|
||||
.edge-card__actions button,
|
||||
.edge-card__maintenance button {
|
||||
min-width: 0;
|
||||
border: 1px solid rgba(148, 163, 184, 0.16);
|
||||
border-radius: var(--radius);
|
||||
background: rgba(2, 6, 23, 0.24);
|
||||
color: #cbd5e1;
|
||||
cursor: pointer;
|
||||
transition:
|
||||
border-color 160ms ease,
|
||||
background 160ms ease,
|
||||
color 160ms ease;
|
||||
}
|
||||
|
||||
.edge-card__actions button {
|
||||
min-height: 40px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
padding: 0 10px;
|
||||
color: #b8c3d3;
|
||||
font-size: 0.76rem;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.edge-card__actions button:hover,
|
||||
.edge-card__maintenance button:hover {
|
||||
border-color: rgba(212, 165, 116, 0.42);
|
||||
background: rgba(201, 122, 61, 0.1);
|
||||
color: #f8fafc;
|
||||
}
|
||||
|
||||
.edge-card__maintenance {
|
||||
padding: 12px;
|
||||
border: 1px solid rgba(148, 163, 184, 0.12);
|
||||
border-radius: var(--radius);
|
||||
background: rgba(2, 6, 23, 0.2);
|
||||
}
|
||||
|
||||
.edge-card__maintenance > span {
|
||||
display: block;
|
||||
margin-bottom: 9px;
|
||||
color: var(--muted);
|
||||
font-size: 0.72rem;
|
||||
font-weight: 800;
|
||||
letter-spacing: 0.08em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.edge-card__maintenance div {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
gap: 7px;
|
||||
}
|
||||
|
||||
.edge-card__maintenance button {
|
||||
min-height: 34px;
|
||||
padding: 0 8px;
|
||||
font-size: 0.72rem;
|
||||
}
|
||||
|
||||
.edge-card__details {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 12px;
|
||||
min-height: 44px;
|
||||
margin-top: auto;
|
||||
padding: 0 12px;
|
||||
border: 1px solid rgba(212, 165, 116, 0.28);
|
||||
border-radius: var(--radius);
|
||||
background:
|
||||
linear-gradient(135deg, rgba(201, 122, 61, 0.14), rgba(212, 165, 116, 0.06)),
|
||||
rgba(201, 122, 61, 0.08);
|
||||
color: #f8fafc;
|
||||
cursor: pointer;
|
||||
font-size: 0.76rem;
|
||||
font-weight: 900;
|
||||
letter-spacing: 0.08em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.edge-card__details:hover {
|
||||
border-color: var(--line-strong);
|
||||
background: rgba(201, 122, 61, 0.16);
|
||||
}
|
||||
|
||||
@media (max-width: 1100px) {
|
||||
.edge-card-grid {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 680px) {
|
||||
.edge-card-grid {
|
||||
gap: 16px;
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.edge-card {
|
||||
min-height: 0;
|
||||
padding: 18px;
|
||||
}
|
||||
|
||||
.edge-card__actions,
|
||||
.edge-card__maintenance div {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.edge-card__header {
|
||||
align-items: flex-start;
|
||||
}
|
||||
}
|
||||
116
src/styles/dashboard/layout.css
Normal file
116
src/styles/dashboard/layout.css
Normal file
@@ -0,0 +1,116 @@
|
||||
.dashboard-shell {
|
||||
width: min(1440px, 100%);
|
||||
min-height: 100vh;
|
||||
margin: 0 auto;
|
||||
padding: 26px 24px 36px;
|
||||
}
|
||||
|
||||
.dashboard-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 20px;
|
||||
margin-bottom: 22px;
|
||||
}
|
||||
|
||||
.dashboard-actions {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: flex-end;
|
||||
gap: 12px;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.dashboard-search {
|
||||
width: min(360px, 100%);
|
||||
}
|
||||
|
||||
.dashboard-stats {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(5, minmax(0, 1fr));
|
||||
gap: 12px;
|
||||
margin-bottom: 22px;
|
||||
}
|
||||
|
||||
.dashboard-stat {
|
||||
min-height: 112px;
|
||||
padding: 16px;
|
||||
border: 1px solid rgba(148, 163, 184, 0.16);
|
||||
border-radius: var(--radius);
|
||||
background:
|
||||
linear-gradient(145deg, rgba(17, 24, 39, 0.78), rgba(2, 6, 23, 0.62)),
|
||||
rgba(2, 6, 23, 0.38);
|
||||
}
|
||||
|
||||
.dashboard-stat span {
|
||||
display: block;
|
||||
min-height: 34px;
|
||||
color: var(--muted);
|
||||
font-size: 0.78rem;
|
||||
line-height: 1.35;
|
||||
}
|
||||
|
||||
.dashboard-stat strong {
|
||||
display: block;
|
||||
margin-top: 12px;
|
||||
font-size: 2rem;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.dashboard-stat--success {
|
||||
border-color: rgba(34, 197, 94, 0.28);
|
||||
}
|
||||
|
||||
.dashboard-stat--success strong {
|
||||
color: #86efac;
|
||||
}
|
||||
|
||||
.dashboard-stat--danger {
|
||||
border-color: rgba(239, 68, 68, 0.28);
|
||||
}
|
||||
|
||||
.dashboard-stat--danger strong {
|
||||
color: #fca5a5;
|
||||
}
|
||||
|
||||
.dashboard-stat--warning {
|
||||
border-color: rgba(245, 158, 11, 0.3);
|
||||
}
|
||||
|
||||
.dashboard-stat--warning strong {
|
||||
color: #facc15;
|
||||
}
|
||||
|
||||
.dashboard-stat--accent {
|
||||
border-color: rgba(212, 165, 116, 0.32);
|
||||
}
|
||||
|
||||
.dashboard-stat--accent strong {
|
||||
color: var(--accent-soft);
|
||||
}
|
||||
|
||||
@media (max-width: 1100px) {
|
||||
.dashboard-stats {
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 680px) {
|
||||
.dashboard-shell {
|
||||
padding: 16px;
|
||||
}
|
||||
|
||||
.dashboard-header {
|
||||
align-items: stretch;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.dashboard-actions,
|
||||
.dashboard-search {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.dashboard-stats {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
@@ -1,724 +1,6 @@
|
||||
.detail-overview {
|
||||
display: grid;
|
||||
gap: 18px;
|
||||
}
|
||||
|
||||
.current-transport {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
min-height: 24px;
|
||||
margin-top: 8px;
|
||||
padding: 0 9px;
|
||||
border: 1px solid rgba(148, 163, 184, 0.18);
|
||||
border-radius: 999px;
|
||||
color: var(--muted);
|
||||
font-size: 0.72rem;
|
||||
font-weight: 750;
|
||||
letter-spacing: 0.08em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.current-transport--sse {
|
||||
border-color: rgba(34, 197, 94, 0.34);
|
||||
background: rgba(34, 197, 94, 0.1);
|
||||
color: #86efac;
|
||||
}
|
||||
|
||||
.current-transport--polling {
|
||||
border-color: rgba(245, 158, 11, 0.32);
|
||||
background: rgba(245, 158, 11, 0.08);
|
||||
color: #facc15;
|
||||
}
|
||||
|
||||
.chart-section,
|
||||
.tags-section {
|
||||
border: 1px solid var(--line);
|
||||
border-radius: var(--radius);
|
||||
background:
|
||||
radial-gradient(circle at 12% 8%, rgba(255, 255, 255, 0.08), transparent 38%),
|
||||
linear-gradient(145deg, rgba(17, 24, 39, 0.9), rgba(2, 6, 23, 0.78));
|
||||
box-shadow:
|
||||
inset 0 1px 0 rgba(255, 255, 255, 0.06),
|
||||
0 18px 36px rgba(0, 0, 0, 0.28);
|
||||
}
|
||||
|
||||
.summary-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(4, minmax(0, 1fr));
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.summary-card {
|
||||
min-height: 149px;
|
||||
padding: 18px;
|
||||
border: 1px solid var(--line);
|
||||
border-radius: var(--radius);
|
||||
background: rgba(10, 13, 18, 0.62);
|
||||
}
|
||||
|
||||
.summary-card span {
|
||||
display: block;
|
||||
color: var(--muted);
|
||||
font-size: 0.78rem;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.12em;
|
||||
}
|
||||
|
||||
.summary-card strong {
|
||||
display: block;
|
||||
margin-top: 18px;
|
||||
font-size: clamp(1.5rem, 3vw, 2.3rem);
|
||||
line-height: 1.1;
|
||||
}
|
||||
|
||||
.detail-action-panel {
|
||||
padding: 18px;
|
||||
border: 1px solid var(--line);
|
||||
border-radius: var(--radius);
|
||||
background: rgba(10, 13, 18, 0.58);
|
||||
}
|
||||
|
||||
.detail-action-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(4, minmax(0, 1fr));
|
||||
gap: 10px;
|
||||
margin-top: 16px;
|
||||
}
|
||||
|
||||
.detail-action-grid button {
|
||||
min-height: 92px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
flex-direction: column;
|
||||
gap: 10px;
|
||||
border: 1px solid rgba(148, 163, 184, 0.16);
|
||||
border-radius: var(--radius);
|
||||
background: rgba(2, 6, 23, 0.28);
|
||||
color: #cbd5e1;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.detail-action-grid button:hover {
|
||||
border-color: var(--line-strong);
|
||||
background: rgba(201, 122, 61, 0.12);
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
.chart-section,
|
||||
.tags-section {
|
||||
padding: 18px;
|
||||
margin-bottom: 18px;
|
||||
}
|
||||
|
||||
.indicator-summary {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(5, minmax(0, 1fr));
|
||||
gap: 10px;
|
||||
margin-bottom: 14px;
|
||||
}
|
||||
|
||||
.indicator-summary div {
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
min-height: 76px;
|
||||
padding: 13px;
|
||||
border: 1px solid rgba(88, 103, 121, 0.46);
|
||||
border-radius: 8px;
|
||||
background:
|
||||
linear-gradient(180deg, rgba(255, 255, 255, 0.052), transparent 34%),
|
||||
repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.024) 0 1px, transparent 1px 10px),
|
||||
rgba(2, 6, 23, 0.34);
|
||||
box-shadow:
|
||||
inset 0 1px 0 rgba(255, 255, 255, 0.07),
|
||||
inset 0 -1px 0 rgba(0, 0, 0, 0.48);
|
||||
}
|
||||
|
||||
.indicator-summary div::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
inset: 0 auto 0 0;
|
||||
width: 3px;
|
||||
background: rgba(212, 165, 116, 0.58);
|
||||
}
|
||||
|
||||
.indicator-summary span {
|
||||
display: block;
|
||||
color: #9aa8ba;
|
||||
font-size: 0.74rem;
|
||||
font-weight: 750;
|
||||
letter-spacing: 0.08em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.indicator-summary strong {
|
||||
display: block;
|
||||
margin-top: 9px;
|
||||
color: #f8fafc;
|
||||
font-size: 1.65rem;
|
||||
font-variant-numeric: tabular-nums;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.chart-section--archive {
|
||||
flex: 1;
|
||||
min-height: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.equipment-section {
|
||||
flex: 1;
|
||||
min-height: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.equipment-frame-shell {
|
||||
position: relative;
|
||||
flex: 1;
|
||||
min-height: 0;
|
||||
overflow: hidden;
|
||||
border: 1px solid rgba(88, 103, 121, 0.5);
|
||||
border-radius: 8px;
|
||||
background:
|
||||
linear-gradient(180deg, rgba(255, 255, 255, 0.055), transparent 32%),
|
||||
repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 11px),
|
||||
rgba(2, 6, 23, 0.58);
|
||||
box-shadow:
|
||||
inset 0 1px 0 rgba(255, 255, 255, 0.08),
|
||||
inset 0 -1px 0 rgba(0, 0, 0, 0.52);
|
||||
}
|
||||
|
||||
.equipment-frame-loading {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
z-index: 2;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
gap: 12px;
|
||||
align-content: center;
|
||||
color: #cbd5e1;
|
||||
background: rgba(2, 6, 23, 0.74);
|
||||
}
|
||||
|
||||
.equipment-frame-loading__ring {
|
||||
width: 34px;
|
||||
height: 34px;
|
||||
border: 3px solid rgba(212, 165, 116, 0.22);
|
||||
border-top-color: var(--accent-soft);
|
||||
border-radius: 999px;
|
||||
animation: equipmentFrameSpin 900ms linear infinite;
|
||||
}
|
||||
|
||||
.equipment-frame {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
border: 0;
|
||||
background: #05080d;
|
||||
}
|
||||
|
||||
.electrical-section {
|
||||
flex: 1;
|
||||
min-height: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
padding: 18px;
|
||||
border: 1px solid var(--line);
|
||||
border-radius: var(--radius);
|
||||
background:
|
||||
linear-gradient(180deg, rgba(255, 255, 255, 0.055), transparent 30%),
|
||||
repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.022) 0 1px, transparent 1px 12px),
|
||||
rgba(10, 13, 18, 0.72);
|
||||
box-shadow:
|
||||
inset 0 1px 0 rgba(255, 255, 255, 0.07),
|
||||
0 18px 36px rgba(0, 0, 0, 0.24);
|
||||
}
|
||||
|
||||
.electrical-toolbar {
|
||||
display: flex;
|
||||
align-items: end;
|
||||
justify-content: flex-end;
|
||||
gap: 10px;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.electrical-toolbar label {
|
||||
min-width: 260px;
|
||||
}
|
||||
|
||||
.electrical-live-chip--sse {
|
||||
border-color: rgba(34, 197, 94, 0.34);
|
||||
background: rgba(34, 197, 94, 0.1);
|
||||
color: #86efac;
|
||||
}
|
||||
|
||||
.electrical-layout {
|
||||
min-height: 0;
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) 220px;
|
||||
gap: 14px;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.electrical-canvas-shell {
|
||||
min-width: 0;
|
||||
min-height: 0;
|
||||
overflow: auto;
|
||||
border: 1px solid rgba(88, 103, 121, 0.5);
|
||||
border-radius: 8px;
|
||||
background:
|
||||
linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
|
||||
linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
|
||||
#070b12;
|
||||
background-size: 28px 28px;
|
||||
}
|
||||
|
||||
.electrical-canvas {
|
||||
position: relative;
|
||||
min-width: 100%;
|
||||
min-height: 100%;
|
||||
}
|
||||
|
||||
.electrical-background {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
z-index: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.electrical-background--contain {
|
||||
object-fit: contain;
|
||||
}
|
||||
|
||||
.electrical-background--cover {
|
||||
object-fit: cover;
|
||||
}
|
||||
|
||||
.electrical-background--stretch {
|
||||
object-fit: fill;
|
||||
}
|
||||
|
||||
.electrical-wires {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
z-index: 1;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.electrical-wire {
|
||||
fill: none;
|
||||
stroke: #94a3b8;
|
||||
stroke-width: 2;
|
||||
stroke-linecap: round;
|
||||
stroke-linejoin: round;
|
||||
opacity: 0.9;
|
||||
}
|
||||
|
||||
.electrical-wire--power {
|
||||
stroke: #f97316;
|
||||
stroke-width: 3;
|
||||
}
|
||||
|
||||
.electrical-wire--signal {
|
||||
stroke: #38bdf8;
|
||||
stroke-dasharray: 8 6;
|
||||
}
|
||||
|
||||
.electrical-wire--alert {
|
||||
stroke: #ef4444;
|
||||
stroke-dasharray: 5 5;
|
||||
}
|
||||
|
||||
.electrical-wire--animated {
|
||||
animation: electricalWireFlow 900ms linear infinite;
|
||||
}
|
||||
|
||||
.electrical-node {
|
||||
position: absolute;
|
||||
z-index: 2;
|
||||
display: grid;
|
||||
grid-template-rows: auto minmax(0, 1fr) auto;
|
||||
gap: 6px;
|
||||
overflow: hidden;
|
||||
padding: 10px;
|
||||
border: 1px solid rgba(148, 163, 184, 0.34);
|
||||
border-radius: 7px;
|
||||
background:
|
||||
linear-gradient(180deg, rgba(255, 255, 255, 0.07), transparent 32%),
|
||||
rgba(15, 23, 42, 0.9);
|
||||
color: #e5e7eb;
|
||||
box-shadow:
|
||||
inset 0 1px 0 rgba(255, 255, 255, 0.08),
|
||||
0 12px 24px rgba(0, 0, 0, 0.28);
|
||||
}
|
||||
|
||||
.electrical-node--decoration {
|
||||
border-style: dashed;
|
||||
background:
|
||||
repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.026) 0 1px, transparent 1px 10px),
|
||||
rgba(15, 23, 42, 0.74);
|
||||
}
|
||||
|
||||
.electrical-node--active {
|
||||
border-color: rgba(34, 197, 94, 0.58);
|
||||
box-shadow:
|
||||
inset 0 1px 0 rgba(255, 255, 255, 0.08),
|
||||
0 0 0 1px rgba(34, 197, 94, 0.2),
|
||||
0 0 22px rgba(34, 197, 94, 0.16);
|
||||
}
|
||||
|
||||
.electrical-node--alarm {
|
||||
border-color: rgba(239, 68, 68, 0.76);
|
||||
box-shadow:
|
||||
inset 0 1px 0 rgba(255, 255, 255, 0.08),
|
||||
0 0 0 1px rgba(239, 68, 68, 0.24),
|
||||
0 0 26px rgba(239, 68, 68, 0.22);
|
||||
}
|
||||
|
||||
.electrical-node__header,
|
||||
.electrical-node__footer {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.electrical-node__header span,
|
||||
.electrical-node__footer span,
|
||||
.electrical-node__text {
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.electrical-node__header {
|
||||
color: #f8fafc;
|
||||
font-size: 0.78rem;
|
||||
font-weight: 750;
|
||||
}
|
||||
|
||||
.electrical-node__value {
|
||||
align-self: center;
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
color: #f8fafc;
|
||||
font-size: clamp(1.2rem, 2vw, 1.9rem);
|
||||
font-variant-numeric: tabular-nums;
|
||||
line-height: 1;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.electrical-node__value small {
|
||||
margin-left: 6px;
|
||||
color: var(--muted);
|
||||
font-size: 0.72rem;
|
||||
font-weight: 650;
|
||||
}
|
||||
|
||||
.electrical-node__text {
|
||||
align-self: center;
|
||||
color: #cbd5e1;
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
|
||||
.electrical-node__footer {
|
||||
color: var(--muted);
|
||||
font-size: 0.68rem;
|
||||
}
|
||||
|
||||
.electrical-node__alarm {
|
||||
margin-left: auto;
|
||||
color: #fca5a5;
|
||||
}
|
||||
|
||||
.electrical-side-panel {
|
||||
display: grid;
|
||||
align-content: start;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.electrical-side-panel div {
|
||||
min-height: 82px;
|
||||
padding: 12px;
|
||||
border: 1px solid rgba(88, 103, 121, 0.46);
|
||||
border-radius: 8px;
|
||||
background: rgba(2, 6, 23, 0.32);
|
||||
}
|
||||
|
||||
.electrical-side-panel span {
|
||||
display: block;
|
||||
color: var(--muted);
|
||||
font-size: 0.72rem;
|
||||
letter-spacing: 0.08em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.electrical-side-panel strong {
|
||||
display: block;
|
||||
margin-top: 10px;
|
||||
color: #f8fafc;
|
||||
font-size: 1.18rem;
|
||||
line-height: 1.2;
|
||||
}
|
||||
|
||||
@keyframes equipmentFrameSpin {
|
||||
to {
|
||||
transform: rotate(360deg);
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes electricalWireFlow {
|
||||
to {
|
||||
stroke-dashoffset: -28;
|
||||
}
|
||||
}
|
||||
|
||||
.section-header {
|
||||
justify-content: space-between;
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
|
||||
.indicator-controls {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: flex-end;
|
||||
gap: 10px;
|
||||
min-width: min(560px, 100%);
|
||||
}
|
||||
|
||||
.toolbar {
|
||||
margin-bottom: 14px;
|
||||
}
|
||||
|
||||
.archive-tag-panel {
|
||||
margin-bottom: 14px;
|
||||
}
|
||||
|
||||
.archive-tag-panel__toggle {
|
||||
width: 100%;
|
||||
min-height: 48px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 12px;
|
||||
padding: 0 14px;
|
||||
border: 1px solid rgba(148, 163, 184, 0.16);
|
||||
border-radius: var(--radius);
|
||||
background: rgba(2, 6, 23, 0.28);
|
||||
color: #cbd5e1;
|
||||
cursor: pointer;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.archive-tag-panel__toggle span {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.archive-tag-panel__toggle strong {
|
||||
color: var(--accent-soft);
|
||||
font-size: 0.78rem;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.archive-tag-panel__toggle[aria-expanded="true"] svg {
|
||||
transform: rotate(180deg);
|
||||
}
|
||||
|
||||
.tag-selector {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 12px;
|
||||
margin-top: 10px;
|
||||
padding: 14px;
|
||||
border: 1px solid rgba(148, 163, 184, 0.14);
|
||||
border-radius: var(--radius);
|
||||
background: rgba(2, 6, 23, 0.24);
|
||||
}
|
||||
|
||||
.tag-selector__header {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(280px, 1fr) minmax(420px, 0.9fr);
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.tag-selector__header span,
|
||||
.tag-selector__tools button,
|
||||
.selected-tags span {
|
||||
color: var(--muted);
|
||||
font-size: 0.76rem;
|
||||
}
|
||||
|
||||
.tag-selector__header strong {
|
||||
color: var(--accent-soft);
|
||||
font-size: 0.86rem;
|
||||
}
|
||||
|
||||
.tag-selector__tools {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(4, minmax(0, 1fr));
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.tag-selector__tools button {
|
||||
min-height: 34px;
|
||||
border: 1px solid rgba(148, 163, 184, 0.16);
|
||||
border-radius: var(--radius);
|
||||
background: rgba(15, 23, 42, 0.54);
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.tag-selector__tools button:hover,
|
||||
.tag-select-item:hover,
|
||||
.tag-select-item--selected {
|
||||
border-color: var(--line-strong);
|
||||
background: rgba(201, 122, 61, 0.12);
|
||||
}
|
||||
|
||||
.selected-tags {
|
||||
min-height: 38px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.selected-tags span {
|
||||
max-width: 100%;
|
||||
overflow: hidden;
|
||||
padding: 5px 8px;
|
||||
border: 1px solid rgba(148, 163, 184, 0.14);
|
||||
border-radius: 999px;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.tag-select-list {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
|
||||
gap: 7px;
|
||||
padding-right: 2px;
|
||||
}
|
||||
|
||||
.tag-select-item {
|
||||
min-height: 42px;
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) auto;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
padding: 0 10px;
|
||||
border: 1px solid rgba(148, 163, 184, 0.12);
|
||||
border-radius: var(--radius);
|
||||
background: rgba(2, 6, 23, 0.22);
|
||||
color: #cbd5e1;
|
||||
cursor: pointer;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.tag-select-item__name {
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.tag-select-item__name span,
|
||||
.tag-select-item__name small {
|
||||
display: block;
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.tag-select-item__name span {
|
||||
font-size: 0.78rem;
|
||||
}
|
||||
|
||||
.tag-select-item__name small {
|
||||
margin-top: 3px;
|
||||
color: var(--muted);
|
||||
font-size: 0.68rem;
|
||||
}
|
||||
|
||||
.tag-select-item strong {
|
||||
color: #e5e7eb;
|
||||
font-size: 0.76rem;
|
||||
}
|
||||
|
||||
.tag-select-item--selected span {
|
||||
color: #f8fafc;
|
||||
}
|
||||
|
||||
.archive-chart {
|
||||
min-width: 0;
|
||||
min-height: 0;
|
||||
display: flex;
|
||||
flex: 1;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.chart-section--archive .toolbar {
|
||||
flex: 0 0 auto;
|
||||
}
|
||||
|
||||
@media (max-width: 1200px) {
|
||||
.summary-grid,
|
||||
.detail-action-grid,
|
||||
.indicator-summary {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
}
|
||||
|
||||
.electrical-layout {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.electrical-side-panel {
|
||||
grid-template-columns: repeat(4, minmax(0, 1fr));
|
||||
}
|
||||
|
||||
.tag-selector__header {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.indicator-controls {
|
||||
min-width: 100%;
|
||||
justify-content: flex-start;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 680px) {
|
||||
.summary-grid,
|
||||
.detail-action-grid,
|
||||
.indicator-summary {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.tag-selector__tools {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
}
|
||||
|
||||
.indicator-controls {
|
||||
flex-direction: column;
|
||||
align-items: stretch;
|
||||
}
|
||||
|
||||
.electrical-side-panel {
|
||||
grid-template-columns: 1fr 1fr;
|
||||
}
|
||||
|
||||
.electrical-toolbar {
|
||||
align-items: stretch;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.electrical-toolbar label {
|
||||
min-width: 0;
|
||||
}
|
||||
}
|
||||
@import './detail/base.css';
|
||||
@import './detail/overview.css';
|
||||
@import './detail/indicators.css';
|
||||
@import './detail/archive.css';
|
||||
@import './detail/equipment.css';
|
||||
@import './detail/electrical.css';
|
||||
|
||||
194
src/styles/detail/archive.css
Normal file
194
src/styles/detail/archive.css
Normal file
@@ -0,0 +1,194 @@
|
||||
.chart-section--archive {
|
||||
flex: 1;
|
||||
min-height: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.toolbar {
|
||||
margin-bottom: 14px;
|
||||
}
|
||||
|
||||
.archive-tag-panel {
|
||||
margin-bottom: 14px;
|
||||
}
|
||||
|
||||
.archive-tag-panel__toggle {
|
||||
width: 100%;
|
||||
min-height: 48px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 12px;
|
||||
padding: 0 14px;
|
||||
border: 1px solid rgba(148, 163, 184, 0.16);
|
||||
border-radius: var(--radius);
|
||||
background: rgba(2, 6, 23, 0.28);
|
||||
color: #cbd5e1;
|
||||
cursor: pointer;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.archive-tag-panel__toggle span {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.archive-tag-panel__toggle strong {
|
||||
color: var(--accent-soft);
|
||||
font-size: 0.78rem;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.archive-tag-panel__toggle[aria-expanded="true"] svg {
|
||||
transform: rotate(180deg);
|
||||
}
|
||||
|
||||
.tag-selector {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 12px;
|
||||
margin-top: 10px;
|
||||
padding: 14px;
|
||||
border: 1px solid rgba(148, 163, 184, 0.14);
|
||||
border-radius: var(--radius);
|
||||
background: rgba(2, 6, 23, 0.24);
|
||||
}
|
||||
|
||||
.tag-selector__header {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(280px, 1fr) minmax(420px, 0.9fr);
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.tag-selector__header span,
|
||||
.tag-selector__tools button,
|
||||
.selected-tags span {
|
||||
color: var(--muted);
|
||||
font-size: 0.76rem;
|
||||
}
|
||||
|
||||
.tag-selector__header strong {
|
||||
color: var(--accent-soft);
|
||||
font-size: 0.86rem;
|
||||
}
|
||||
|
||||
.tag-selector__tools {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(4, minmax(0, 1fr));
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.tag-selector__tools button {
|
||||
min-height: 34px;
|
||||
border: 1px solid rgba(148, 163, 184, 0.16);
|
||||
border-radius: var(--radius);
|
||||
background: rgba(15, 23, 42, 0.54);
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.tag-selector__tools button:hover,
|
||||
.tag-select-item:hover,
|
||||
.tag-select-item--selected {
|
||||
border-color: var(--line-strong);
|
||||
background: rgba(201, 122, 61, 0.12);
|
||||
}
|
||||
|
||||
.selected-tags {
|
||||
min-height: 38px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.selected-tags span {
|
||||
max-width: 100%;
|
||||
overflow: hidden;
|
||||
padding: 5px 8px;
|
||||
border: 1px solid rgba(148, 163, 184, 0.14);
|
||||
border-radius: 999px;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.tag-select-list {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
|
||||
gap: 7px;
|
||||
padding-right: 2px;
|
||||
}
|
||||
|
||||
.tag-select-item {
|
||||
min-height: 42px;
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) auto;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
padding: 0 10px;
|
||||
border: 1px solid rgba(148, 163, 184, 0.12);
|
||||
border-radius: var(--radius);
|
||||
background: rgba(2, 6, 23, 0.22);
|
||||
color: #cbd5e1;
|
||||
cursor: pointer;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.tag-select-item__name {
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.tag-select-item__name span,
|
||||
.tag-select-item__name small {
|
||||
display: block;
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.tag-select-item__name span {
|
||||
font-size: 0.78rem;
|
||||
}
|
||||
|
||||
.tag-select-item__name small {
|
||||
margin-top: 3px;
|
||||
color: var(--muted);
|
||||
font-size: 0.68rem;
|
||||
}
|
||||
|
||||
.tag-select-item strong {
|
||||
color: #e5e7eb;
|
||||
font-size: 0.76rem;
|
||||
}
|
||||
|
||||
.tag-select-item--selected span {
|
||||
color: #f8fafc;
|
||||
}
|
||||
|
||||
.archive-chart {
|
||||
min-width: 0;
|
||||
min-height: 0;
|
||||
display: flex;
|
||||
flex: 1;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.chart-section--archive .toolbar {
|
||||
flex: 0 0 auto;
|
||||
}
|
||||
|
||||
@media (max-width: 1200px) {
|
||||
.tag-selector__header {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 680px) {
|
||||
.tag-selector__tools {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
}
|
||||
}
|
||||
45
src/styles/detail/base.css
Normal file
45
src/styles/detail/base.css
Normal file
@@ -0,0 +1,45 @@
|
||||
.current-transport {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
min-height: 24px;
|
||||
margin-top: 8px;
|
||||
padding: 0 9px;
|
||||
border: 1px solid rgba(148, 163, 184, 0.18);
|
||||
border-radius: 999px;
|
||||
color: var(--muted);
|
||||
font-size: 0.72rem;
|
||||
font-weight: 750;
|
||||
letter-spacing: 0.08em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.current-transport--sse {
|
||||
border-color: rgba(34, 197, 94, 0.34);
|
||||
background: rgba(34, 197, 94, 0.1);
|
||||
color: #86efac;
|
||||
}
|
||||
|
||||
.current-transport--polling {
|
||||
border-color: rgba(245, 158, 11, 0.32);
|
||||
background: rgba(245, 158, 11, 0.08);
|
||||
color: #facc15;
|
||||
}
|
||||
|
||||
.chart-section,
|
||||
.tags-section {
|
||||
padding: 18px;
|
||||
margin-bottom: 18px;
|
||||
border: 1px solid var(--line);
|
||||
border-radius: var(--radius);
|
||||
background:
|
||||
radial-gradient(circle at 12% 8%, rgba(255, 255, 255, 0.08), transparent 38%),
|
||||
linear-gradient(145deg, rgba(17, 24, 39, 0.9), rgba(2, 6, 23, 0.78));
|
||||
box-shadow:
|
||||
inset 0 1px 0 rgba(255, 255, 255, 0.06),
|
||||
0 18px 36px rgba(0, 0, 0, 0.28);
|
||||
}
|
||||
|
||||
.section-header {
|
||||
justify-content: space-between;
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
278
src/styles/detail/electrical.css
Normal file
278
src/styles/detail/electrical.css
Normal file
@@ -0,0 +1,278 @@
|
||||
.electrical-section {
|
||||
flex: 1;
|
||||
min-height: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
padding: 18px;
|
||||
border: 1px solid var(--line);
|
||||
border-radius: var(--radius);
|
||||
background:
|
||||
linear-gradient(180deg, rgba(255, 255, 255, 0.055), transparent 30%),
|
||||
repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.022) 0 1px, transparent 1px 12px),
|
||||
rgba(10, 13, 18, 0.72);
|
||||
box-shadow:
|
||||
inset 0 1px 0 rgba(255, 255, 255, 0.07),
|
||||
0 18px 36px rgba(0, 0, 0, 0.24);
|
||||
}
|
||||
|
||||
.electrical-toolbar {
|
||||
display: flex;
|
||||
align-items: end;
|
||||
justify-content: flex-end;
|
||||
gap: 10px;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.electrical-toolbar label {
|
||||
min-width: 260px;
|
||||
}
|
||||
|
||||
.electrical-live-chip--sse {
|
||||
border-color: rgba(34, 197, 94, 0.34);
|
||||
background: rgba(34, 197, 94, 0.1);
|
||||
color: #86efac;
|
||||
}
|
||||
|
||||
.electrical-layout {
|
||||
min-height: 0;
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) 220px;
|
||||
gap: 14px;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.electrical-canvas-shell {
|
||||
min-width: 0;
|
||||
min-height: 0;
|
||||
overflow: auto;
|
||||
border: 1px solid rgba(88, 103, 121, 0.5);
|
||||
border-radius: 8px;
|
||||
background:
|
||||
linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
|
||||
linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
|
||||
#070b12;
|
||||
background-size: 28px 28px;
|
||||
}
|
||||
|
||||
.electrical-canvas {
|
||||
position: relative;
|
||||
min-width: 100%;
|
||||
min-height: 100%;
|
||||
}
|
||||
|
||||
.electrical-background {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
z-index: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.electrical-background--contain {
|
||||
object-fit: contain;
|
||||
}
|
||||
|
||||
.electrical-background--cover {
|
||||
object-fit: cover;
|
||||
}
|
||||
|
||||
.electrical-background--stretch {
|
||||
object-fit: fill;
|
||||
}
|
||||
|
||||
.electrical-wires {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
z-index: 1;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.electrical-wire {
|
||||
fill: none;
|
||||
stroke: #94a3b8;
|
||||
stroke-width: 2;
|
||||
stroke-linecap: round;
|
||||
stroke-linejoin: round;
|
||||
opacity: 0.9;
|
||||
}
|
||||
|
||||
.electrical-wire--power {
|
||||
stroke: #f97316;
|
||||
stroke-width: 3;
|
||||
}
|
||||
|
||||
.electrical-wire--signal {
|
||||
stroke: #38bdf8;
|
||||
stroke-dasharray: 8 6;
|
||||
}
|
||||
|
||||
.electrical-wire--alert {
|
||||
stroke: #ef4444;
|
||||
stroke-dasharray: 5 5;
|
||||
}
|
||||
|
||||
.electrical-wire--animated {
|
||||
animation: electricalWireFlow 900ms linear infinite;
|
||||
}
|
||||
|
||||
.electrical-node {
|
||||
position: absolute;
|
||||
z-index: 2;
|
||||
display: grid;
|
||||
grid-template-rows: auto minmax(0, 1fr) auto;
|
||||
gap: 6px;
|
||||
overflow: hidden;
|
||||
padding: 10px;
|
||||
border: 1px solid rgba(148, 163, 184, 0.34);
|
||||
border-radius: 7px;
|
||||
background:
|
||||
linear-gradient(180deg, rgba(255, 255, 255, 0.07), transparent 32%),
|
||||
rgba(15, 23, 42, 0.9);
|
||||
color: #e5e7eb;
|
||||
box-shadow:
|
||||
inset 0 1px 0 rgba(255, 255, 255, 0.08),
|
||||
0 12px 24px rgba(0, 0, 0, 0.28);
|
||||
}
|
||||
|
||||
.electrical-node--decoration {
|
||||
border-style: dashed;
|
||||
background:
|
||||
repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.026) 0 1px, transparent 1px 10px),
|
||||
rgba(15, 23, 42, 0.74);
|
||||
}
|
||||
|
||||
.electrical-node--active {
|
||||
border-color: rgba(34, 197, 94, 0.58);
|
||||
box-shadow:
|
||||
inset 0 1px 0 rgba(255, 255, 255, 0.08),
|
||||
0 0 0 1px rgba(34, 197, 94, 0.2),
|
||||
0 0 22px rgba(34, 197, 94, 0.16);
|
||||
}
|
||||
|
||||
.electrical-node--alarm {
|
||||
border-color: rgba(239, 68, 68, 0.76);
|
||||
box-shadow:
|
||||
inset 0 1px 0 rgba(255, 255, 255, 0.08),
|
||||
0 0 0 1px rgba(239, 68, 68, 0.24),
|
||||
0 0 26px rgba(239, 68, 68, 0.22);
|
||||
}
|
||||
|
||||
.electrical-node__header,
|
||||
.electrical-node__footer {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.electrical-node__header span,
|
||||
.electrical-node__footer span,
|
||||
.electrical-node__text {
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.electrical-node__header {
|
||||
color: #f8fafc;
|
||||
font-size: 0.78rem;
|
||||
font-weight: 750;
|
||||
}
|
||||
|
||||
.electrical-node__value {
|
||||
align-self: center;
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
color: #f8fafc;
|
||||
font-size: clamp(1.2rem, 2vw, 1.9rem);
|
||||
font-variant-numeric: tabular-nums;
|
||||
line-height: 1;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.electrical-node__value small {
|
||||
margin-left: 6px;
|
||||
color: var(--muted);
|
||||
font-size: 0.72rem;
|
||||
font-weight: 650;
|
||||
}
|
||||
|
||||
.electrical-node__text {
|
||||
align-self: center;
|
||||
color: #cbd5e1;
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
|
||||
.electrical-node__footer {
|
||||
color: var(--muted);
|
||||
font-size: 0.68rem;
|
||||
}
|
||||
|
||||
.electrical-node__alarm {
|
||||
margin-left: auto;
|
||||
color: #fca5a5;
|
||||
}
|
||||
|
||||
.electrical-side-panel {
|
||||
display: grid;
|
||||
align-content: start;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.electrical-side-panel div {
|
||||
min-height: 82px;
|
||||
padding: 12px;
|
||||
border: 1px solid rgba(88, 103, 121, 0.46);
|
||||
border-radius: 8px;
|
||||
background: rgba(2, 6, 23, 0.32);
|
||||
}
|
||||
|
||||
.electrical-side-panel span {
|
||||
display: block;
|
||||
color: var(--muted);
|
||||
font-size: 0.72rem;
|
||||
letter-spacing: 0.08em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.electrical-side-panel strong {
|
||||
display: block;
|
||||
margin-top: 10px;
|
||||
color: #f8fafc;
|
||||
font-size: 1.18rem;
|
||||
line-height: 1.2;
|
||||
}
|
||||
|
||||
@keyframes electricalWireFlow {
|
||||
to {
|
||||
stroke-dashoffset: -28;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 1200px) {
|
||||
.electrical-layout {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.electrical-side-panel {
|
||||
grid-template-columns: repeat(4, minmax(0, 1fr));
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 680px) {
|
||||
.electrical-side-panel {
|
||||
grid-template-columns: 1fr 1fr;
|
||||
}
|
||||
|
||||
.electrical-toolbar {
|
||||
align-items: stretch;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.electrical-toolbar label {
|
||||
min-width: 0;
|
||||
}
|
||||
}
|
||||
57
src/styles/detail/equipment.css
Normal file
57
src/styles/detail/equipment.css
Normal file
@@ -0,0 +1,57 @@
|
||||
.equipment-section {
|
||||
flex: 1;
|
||||
min-height: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.equipment-frame-shell {
|
||||
position: relative;
|
||||
flex: 1;
|
||||
min-height: 0;
|
||||
overflow: hidden;
|
||||
border: 1px solid rgba(88, 103, 121, 0.5);
|
||||
border-radius: 8px;
|
||||
background:
|
||||
linear-gradient(180deg, rgba(255, 255, 255, 0.055), transparent 32%),
|
||||
repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 11px),
|
||||
rgba(2, 6, 23, 0.58);
|
||||
box-shadow:
|
||||
inset 0 1px 0 rgba(255, 255, 255, 0.08),
|
||||
inset 0 -1px 0 rgba(0, 0, 0, 0.52);
|
||||
}
|
||||
|
||||
.equipment-frame-loading {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
z-index: 2;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
gap: 12px;
|
||||
align-content: center;
|
||||
color: #cbd5e1;
|
||||
background: rgba(2, 6, 23, 0.74);
|
||||
}
|
||||
|
||||
.equipment-frame-loading__ring {
|
||||
width: 34px;
|
||||
height: 34px;
|
||||
border: 3px solid rgba(212, 165, 116, 0.22);
|
||||
border-top-color: var(--accent-soft);
|
||||
border-radius: 999px;
|
||||
animation: equipmentFrameSpin 900ms linear infinite;
|
||||
}
|
||||
|
||||
.equipment-frame {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
border: 0;
|
||||
background: #05080d;
|
||||
}
|
||||
|
||||
@keyframes equipmentFrameSpin {
|
||||
to {
|
||||
transform: rotate(360deg);
|
||||
}
|
||||
}
|
||||
78
src/styles/detail/indicators.css
Normal file
78
src/styles/detail/indicators.css
Normal file
@@ -0,0 +1,78 @@
|
||||
.indicator-controls {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: flex-end;
|
||||
gap: 10px;
|
||||
min-width: min(560px, 100%);
|
||||
}
|
||||
|
||||
.indicator-summary {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(5, minmax(0, 1fr));
|
||||
gap: 10px;
|
||||
margin-bottom: 14px;
|
||||
}
|
||||
|
||||
.indicator-summary div {
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
min-height: 76px;
|
||||
padding: 13px;
|
||||
border: 1px solid rgba(88, 103, 121, 0.46);
|
||||
border-radius: 8px;
|
||||
background:
|
||||
linear-gradient(180deg, rgba(255, 255, 255, 0.052), transparent 34%),
|
||||
repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.024) 0 1px, transparent 1px 10px),
|
||||
rgba(2, 6, 23, 0.34);
|
||||
box-shadow:
|
||||
inset 0 1px 0 rgba(255, 255, 255, 0.07),
|
||||
inset 0 -1px 0 rgba(0, 0, 0, 0.48);
|
||||
}
|
||||
|
||||
.indicator-summary div::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
inset: 0 auto 0 0;
|
||||
width: 3px;
|
||||
background: rgba(212, 165, 116, 0.58);
|
||||
}
|
||||
|
||||
.indicator-summary span {
|
||||
display: block;
|
||||
color: #9aa8ba;
|
||||
font-size: 0.74rem;
|
||||
font-weight: 750;
|
||||
letter-spacing: 0.08em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.indicator-summary strong {
|
||||
display: block;
|
||||
margin-top: 9px;
|
||||
color: #f8fafc;
|
||||
font-size: 1.65rem;
|
||||
font-variant-numeric: tabular-nums;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
@media (max-width: 1200px) {
|
||||
.indicator-summary {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
}
|
||||
|
||||
.indicator-controls {
|
||||
min-width: 100%;
|
||||
justify-content: flex-start;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 680px) {
|
||||
.indicator-summary {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.indicator-controls {
|
||||
flex-direction: column;
|
||||
align-items: stretch;
|
||||
}
|
||||
}
|
||||
81
src/styles/detail/overview.css
Normal file
81
src/styles/detail/overview.css
Normal file
@@ -0,0 +1,81 @@
|
||||
.detail-overview {
|
||||
display: grid;
|
||||
gap: 18px;
|
||||
}
|
||||
|
||||
.summary-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(4, minmax(0, 1fr));
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.summary-card {
|
||||
min-height: 149px;
|
||||
padding: 18px;
|
||||
border: 1px solid var(--line);
|
||||
border-radius: var(--radius);
|
||||
background: rgba(10, 13, 18, 0.62);
|
||||
}
|
||||
|
||||
.summary-card span {
|
||||
display: block;
|
||||
color: var(--muted);
|
||||
font-size: 0.78rem;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.12em;
|
||||
}
|
||||
|
||||
.summary-card strong {
|
||||
display: block;
|
||||
margin-top: 18px;
|
||||
font-size: clamp(1.5rem, 3vw, 2.3rem);
|
||||
line-height: 1.1;
|
||||
}
|
||||
|
||||
.detail-action-panel {
|
||||
padding: 18px;
|
||||
border: 1px solid var(--line);
|
||||
border-radius: var(--radius);
|
||||
background: rgba(10, 13, 18, 0.58);
|
||||
}
|
||||
|
||||
.detail-action-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(4, minmax(0, 1fr));
|
||||
gap: 10px;
|
||||
margin-top: 16px;
|
||||
}
|
||||
|
||||
.detail-action-grid button {
|
||||
min-height: 92px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
flex-direction: column;
|
||||
gap: 10px;
|
||||
border: 1px solid rgba(148, 163, 184, 0.16);
|
||||
border-radius: var(--radius);
|
||||
background: rgba(2, 6, 23, 0.28);
|
||||
color: #cbd5e1;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.detail-action-grid button:hover {
|
||||
border-color: var(--line-strong);
|
||||
background: rgba(201, 122, 61, 0.12);
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
@media (max-width: 1200px) {
|
||||
.summary-grid,
|
||||
.detail-action-grid {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 680px) {
|
||||
.summary-grid,
|
||||
.detail-action-grid {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user