1162 lines
22 KiB
CSS
1162 lines
22 KiB
CSS
:root {
|
|
--bg: #f4f0e8;
|
|
--bg-alt: #e8dfd2;
|
|
--panel: rgba(255, 250, 242, 0.82);
|
|
--panel-border: rgba(71, 52, 28, 0.15);
|
|
--text: #1d1a16;
|
|
--muted: #65584a;
|
|
--accent: #b55d2d;
|
|
--accent-strong: #8b3c13;
|
|
--accent-soft: #f2d7c5;
|
|
--success: #256245;
|
|
--warning: #a24f2a;
|
|
--shadow: 0 22px 45px rgba(57, 40, 19, 0.12);
|
|
--radius-lg: 26px;
|
|
--radius-md: 18px;
|
|
--radius-sm: 12px;
|
|
--rack-unit-height: 38px;
|
|
--rack-inner-width: 620px;
|
|
--rack-frame: #50545c;
|
|
--rack-frame-dark: #2e323a;
|
|
--rack-frame-light: #6c7078;
|
|
--rack-rail: #656972;
|
|
--font-display: "Avenir Next", "Segoe UI", sans-serif;
|
|
--font-body: "IBM Plex Sans", "Segoe UI", sans-serif;
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
html, body {
|
|
margin: 0;
|
|
min-height: 100%;
|
|
}
|
|
|
|
body {
|
|
background:
|
|
radial-gradient(circle at top left, rgba(255, 255, 255, 0.75), transparent 26%),
|
|
linear-gradient(160deg, var(--bg) 0%, #eadfce 52%, #efe7dc 100%);
|
|
color: var(--text);
|
|
font-family: var(--font-body);
|
|
}
|
|
|
|
button, input, select {
|
|
font: inherit;
|
|
}
|
|
|
|
.app-shell {
|
|
max-width: 1600px;
|
|
margin: 0 auto;
|
|
padding: 32px;
|
|
}
|
|
|
|
.hero {
|
|
display: grid;
|
|
grid-template-columns: minmax(0, 1.8fr) minmax(260px, 0.9fr);
|
|
gap: 24px;
|
|
margin-bottom: 24px;
|
|
}
|
|
|
|
.hero__copy,
|
|
.hero__meta,
|
|
.panel {
|
|
background: var(--panel);
|
|
border: 1px solid var(--panel-border);
|
|
box-shadow: var(--shadow);
|
|
backdrop-filter: blur(14px);
|
|
}
|
|
|
|
.hero__copy {
|
|
padding: 36px;
|
|
border-radius: var(--radius-lg);
|
|
}
|
|
|
|
.hero__copy h1 {
|
|
margin: 0;
|
|
font-family: var(--font-display);
|
|
font-size: clamp(2.5rem, 6vw, 4.8rem);
|
|
line-height: 0.95;
|
|
letter-spacing: -0.04em;
|
|
}
|
|
|
|
.eyebrow {
|
|
margin: 0 0 12px;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.18em;
|
|
font-size: 0.82rem;
|
|
color: var(--accent-strong);
|
|
}
|
|
|
|
.hero__lead {
|
|
max-width: 60ch;
|
|
color: var(--muted);
|
|
font-size: 1.05rem;
|
|
}
|
|
|
|
.hero__meta {
|
|
display: grid;
|
|
grid-template-columns: 1fr;
|
|
gap: 16px;
|
|
padding: 24px;
|
|
border-radius: var(--radius-lg);
|
|
}
|
|
|
|
.meta-card {
|
|
padding: 18px;
|
|
border-radius: var(--radius-md);
|
|
background: rgba(255, 255, 255, 0.5);
|
|
}
|
|
|
|
.meta-card__label {
|
|
display: block;
|
|
margin-bottom: 6px;
|
|
color: var(--muted);
|
|
font-size: 0.84rem;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.12em;
|
|
}
|
|
|
|
.workspace {
|
|
display: grid;
|
|
grid-template-columns: 1fr;
|
|
gap: 24px;
|
|
}
|
|
|
|
.panel {
|
|
padding: 24px;
|
|
border-radius: var(--radius-lg);
|
|
}
|
|
|
|
.panel__heading h2,
|
|
.subpanel__header h3 {
|
|
margin: 0;
|
|
font-family: var(--font-display);
|
|
}
|
|
|
|
.panel__heading p {
|
|
margin: 6px 0 0;
|
|
color: var(--muted);
|
|
}
|
|
|
|
.panel--dashboard {
|
|
display: grid;
|
|
gap: 12px;
|
|
padding: 18px 20px;
|
|
}
|
|
|
|
.dashboard-grid {
|
|
display: grid;
|
|
grid-template-columns: minmax(320px, 1.15fr) minmax(320px, 1fr);
|
|
gap: 14px;
|
|
}
|
|
|
|
.dashboard-block {
|
|
display: grid;
|
|
gap: 12px;
|
|
}
|
|
|
|
.dashboard-controls {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
gap: 10px 12px;
|
|
align-items: end;
|
|
}
|
|
|
|
.dashboard-block--library {
|
|
padding-top: 0;
|
|
}
|
|
|
|
.field {
|
|
display: grid;
|
|
gap: 8px;
|
|
}
|
|
|
|
.field span {
|
|
font-size: 0.9rem;
|
|
color: var(--muted);
|
|
}
|
|
|
|
.field input,
|
|
.field select,
|
|
.subpanel__header button {
|
|
border: 1px solid rgba(83, 58, 31, 0.14);
|
|
border-radius: 14px;
|
|
background: rgba(255, 255, 255, 0.82);
|
|
padding: 10px 12px;
|
|
}
|
|
|
|
.field input:focus,
|
|
.field select:focus {
|
|
outline: 2px solid rgba(181, 93, 45, 0.24);
|
|
outline-offset: 1px;
|
|
}
|
|
|
|
.library-toolbar {
|
|
display: grid;
|
|
gap: 14px;
|
|
}
|
|
|
|
.library {
|
|
display: grid;
|
|
gap: 12px;
|
|
max-height: 780px;
|
|
overflow: auto;
|
|
padding-right: 4px;
|
|
}
|
|
|
|
.library--wide {
|
|
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
|
|
max-height: 280px;
|
|
}
|
|
|
|
.component-card,
|
|
.rack-item,
|
|
.subpanel,
|
|
.notice {
|
|
border: 1px solid rgba(75, 57, 37, 0.12);
|
|
border-radius: var(--radius-md);
|
|
background: rgba(255, 255, 255, 0.68);
|
|
}
|
|
|
|
.component-card {
|
|
padding: 14px;
|
|
display: grid;
|
|
gap: 10px;
|
|
cursor: grab;
|
|
}
|
|
|
|
.component-card:active {
|
|
cursor: grabbing;
|
|
}
|
|
|
|
.component-card__preview {
|
|
padding: 10px;
|
|
border-radius: 14px;
|
|
background:
|
|
linear-gradient(180deg, rgba(189, 193, 201, 0.36), rgba(255, 255, 255, 0.78)),
|
|
linear-gradient(90deg, rgba(88, 92, 99, 0.08), rgba(88, 92, 99, 0.02));
|
|
}
|
|
|
|
.component-card__header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
align-items: start;
|
|
}
|
|
|
|
.component-card__header strong {
|
|
display: block;
|
|
}
|
|
|
|
.chip {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
min-width: 44px;
|
|
padding: 5px 8px;
|
|
border-radius: 999px;
|
|
background: var(--accent-soft);
|
|
color: var(--accent-strong);
|
|
font-size: 0.78rem;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.component-card__meta {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 8px;
|
|
color: var(--muted);
|
|
font-size: 0.84rem;
|
|
}
|
|
|
|
.component-card button,
|
|
.subpanel__header button,
|
|
.rack-item button {
|
|
cursor: pointer;
|
|
border: 0;
|
|
background: var(--accent);
|
|
color: #fff;
|
|
border-radius: 12px;
|
|
padding: 10px 12px;
|
|
}
|
|
|
|
.component-card button:hover,
|
|
.subpanel__header button:hover,
|
|
.rack-item button:hover {
|
|
background: var(--accent-strong);
|
|
}
|
|
|
|
.rack-stage {
|
|
display: grid;
|
|
gap: 0;
|
|
}
|
|
|
|
.stat-grid {
|
|
display: grid;
|
|
gap: 12px;
|
|
}
|
|
|
|
.stat-card {
|
|
padding: 13px 14px;
|
|
border-radius: var(--radius-md);
|
|
background: rgba(255, 255, 255, 0.58);
|
|
border: 1px solid rgba(75, 57, 37, 0.12);
|
|
}
|
|
|
|
.stat-card strong {
|
|
display: block;
|
|
margin-top: 6px;
|
|
font-size: 1.1rem;
|
|
}
|
|
|
|
.rack-grid {
|
|
position: relative;
|
|
border-radius: 32px;
|
|
border: 1px solid rgba(105, 108, 115, 0.14);
|
|
background:
|
|
linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(239, 232, 214, 0.88));
|
|
padding: 6px;
|
|
overflow: hidden;
|
|
box-shadow:
|
|
inset 0 1px 0 rgba(255, 255, 255, 0.7),
|
|
0 24px 40px rgba(76, 60, 38, 0.14);
|
|
}
|
|
|
|
.rack-shell {
|
|
position: relative;
|
|
width: min(100%, 1380px);
|
|
margin: 0 auto;
|
|
aspect-ratio: 3.1 / 2;
|
|
border-radius: 28px;
|
|
background:
|
|
linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.16)),
|
|
linear-gradient(90deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0));
|
|
box-shadow:
|
|
0 24px 34px rgba(15, 16, 18, 0.22),
|
|
inset 0 0 0 1px rgba(255, 255, 255, 0.04);
|
|
isolation: isolate;
|
|
}
|
|
|
|
.rack-shell__frame {
|
|
position: absolute;
|
|
background: linear-gradient(180deg, var(--rack-frame-light), var(--rack-frame-dark));
|
|
box-shadow:
|
|
inset 0 1px 0 rgba(255, 255, 255, 0.18),
|
|
inset 0 -10px 12px rgba(0, 0, 0, 0.18);
|
|
z-index: 3;
|
|
}
|
|
|
|
.rack-shell__frame--top,
|
|
.rack-shell__frame--bottom {
|
|
left: 5.1%;
|
|
right: 5.1%;
|
|
height: 4.8%;
|
|
border-radius: 12px;
|
|
}
|
|
|
|
.rack-shell__frame--top {
|
|
top: 3.6%;
|
|
}
|
|
|
|
.rack-shell__frame--bottom {
|
|
bottom: 3.6%;
|
|
}
|
|
|
|
.rack-shell__screw {
|
|
position: absolute;
|
|
width: 3.6%;
|
|
aspect-ratio: 1;
|
|
border-radius: 50%;
|
|
background:
|
|
radial-gradient(circle at 32% 30%, rgba(255, 255, 255, 0.38), transparent 20%),
|
|
radial-gradient(circle at center, #5f646d 0 22%, #2b2f36 23% 55%, #818792 56% 70%, #23272e 71%);
|
|
box-shadow:
|
|
inset 0 1px 0 rgba(255, 255, 255, 0.22),
|
|
0 2px 4px rgba(0, 0, 0, 0.25);
|
|
z-index: 4;
|
|
}
|
|
|
|
.rack-shell__screw::before,
|
|
.rack-shell__screw::after {
|
|
content: "";
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 50%;
|
|
background: rgba(20, 22, 26, 0.8);
|
|
border-radius: 999px;
|
|
transform: translate(-50%, -50%);
|
|
}
|
|
|
|
.rack-shell__screw::before {
|
|
width: 58%;
|
|
height: 10%;
|
|
}
|
|
|
|
.rack-shell__screw::after {
|
|
width: 10%;
|
|
height: 58%;
|
|
}
|
|
|
|
.rack-shell__screw--tl { top: 4.2%; left: 5.2%; }
|
|
.rack-shell__screw--tr { top: 4.2%; right: 5.2%; }
|
|
.rack-shell__screw--bl { bottom: 4.2%; left: 5.2%; }
|
|
.rack-shell__screw--br { bottom: 4.2%; right: 5.2%; }
|
|
|
|
.rack-core {
|
|
position: absolute;
|
|
inset: 8.7% 4.8% 8.3% 4.8%;
|
|
display: grid;
|
|
grid-template-columns: 4.6% 1fr 4.6%;
|
|
gap: 0.65%;
|
|
z-index: 2;
|
|
}
|
|
|
|
.rack-mount-plane {
|
|
position: relative;
|
|
grid-column: 1 / -1;
|
|
grid-row: 1;
|
|
z-index: 5;
|
|
}
|
|
|
|
.rack-rail {
|
|
position: relative;
|
|
display: grid;
|
|
grid-template-rows: repeat(var(--rack-total-u), 1fr);
|
|
background: linear-gradient(180deg, color-mix(in srgb, var(--rack-rail) 90%, #14161a), color-mix(in srgb, var(--rack-rail) 65%, #08090b));
|
|
box-shadow:
|
|
inset 0 0 0 1px rgba(255, 255, 255, 0.08),
|
|
inset 0 0 0 4px rgba(0, 0, 0, 0.18);
|
|
}
|
|
|
|
.rack-rail--left {
|
|
border-radius: 8px 0 0 8px;
|
|
}
|
|
|
|
.rack-rail--right {
|
|
border-radius: 0 8px 8px 0;
|
|
}
|
|
|
|
.rack-rail__unit {
|
|
position: relative;
|
|
min-height: 0;
|
|
}
|
|
|
|
.rack-rail__label {
|
|
position: absolute;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
font-size: 0.78rem;
|
|
color: rgba(228, 232, 238, 0.84);
|
|
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
|
|
}
|
|
|
|
.rack-rail__label--left {
|
|
left: -1.65rem;
|
|
}
|
|
|
|
.rack-rail__label--right {
|
|
right: -1.35rem;
|
|
}
|
|
|
|
.rack-rail__tick {
|
|
position: absolute;
|
|
top: 39%;
|
|
width: 14%;
|
|
height: 2px;
|
|
background: rgba(223, 228, 235, 0.74);
|
|
border-radius: 999px;
|
|
}
|
|
|
|
.rack-rail__tick--left {
|
|
left: 14%;
|
|
}
|
|
|
|
.rack-rail__tick--right {
|
|
right: 14%;
|
|
}
|
|
|
|
.rack-rail__holes {
|
|
position: absolute;
|
|
top: 3%;
|
|
display: grid;
|
|
grid-template-rows: repeat(3, 1fr);
|
|
gap: 6%;
|
|
width: 26%;
|
|
height: 94%;
|
|
}
|
|
|
|
.rack-rail__holes--left {
|
|
right: 12%;
|
|
}
|
|
|
|
.rack-rail__holes--right {
|
|
left: 12%;
|
|
}
|
|
|
|
.rack-rail__holes span {
|
|
border-radius: 4px;
|
|
background: linear-gradient(180deg, rgba(7, 8, 11, 0.96), rgba(25, 27, 33, 0.96));
|
|
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
|
|
}
|
|
|
|
.rack-bay {
|
|
position: relative;
|
|
grid-column: 2;
|
|
grid-row: 1;
|
|
overflow: hidden;
|
|
border-radius: 4px;
|
|
background:
|
|
radial-gradient(circle at center, rgba(96, 99, 108, 0.22), transparent 48%),
|
|
linear-gradient(180deg, #181a1f, #2a2d34 36%, #22252c 68%, #17191d 100%);
|
|
box-shadow:
|
|
inset 0 0 0 1px rgba(255, 255, 255, 0.04),
|
|
inset 0 32px 42px rgba(0, 0, 0, 0.34),
|
|
inset 0 -24px 34px rgba(0, 0, 0, 0.28);
|
|
}
|
|
|
|
.rack-bay__ceiling,
|
|
.rack-bay__floor {
|
|
position: absolute;
|
|
left: 8%;
|
|
right: 8%;
|
|
height: 14%;
|
|
background:
|
|
repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 2%, transparent 2% 4.5%),
|
|
linear-gradient(180deg, rgba(71, 74, 82, 0.24), rgba(8, 9, 12, 0.12));
|
|
z-index: 0;
|
|
}
|
|
|
|
.rack-bay__ceiling {
|
|
top: 0;
|
|
transform: perspective(500px) rotateX(62deg);
|
|
transform-origin: top;
|
|
}
|
|
|
|
.rack-bay__floor {
|
|
bottom: 0;
|
|
transform: perspective(500px) rotateX(-62deg);
|
|
transform-origin: bottom;
|
|
}
|
|
|
|
.rack-bay__wall {
|
|
position: absolute;
|
|
top: 10%;
|
|
bottom: 10%;
|
|
width: 9%;
|
|
background: linear-gradient(90deg, rgba(7, 8, 11, 0.65), rgba(60, 64, 72, 0.12));
|
|
z-index: 0;
|
|
}
|
|
|
|
.rack-bay__wall--left {
|
|
left: 0;
|
|
}
|
|
|
|
.rack-bay__wall--right {
|
|
right: 0;
|
|
transform: scaleX(-1);
|
|
}
|
|
|
|
.rack-bay__back {
|
|
position: absolute;
|
|
inset: 14% 7% 14% 7%;
|
|
border-radius: 4px;
|
|
background:
|
|
radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.12) 0 1%, transparent 1.2%),
|
|
radial-gradient(circle at 75% 25%, rgba(255, 255, 255, 0.12) 0 1%, transparent 1.2%),
|
|
radial-gradient(circle at 25% 75%, rgba(255, 255, 255, 0.12) 0 1%, transparent 1.2%),
|
|
radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.12) 0 1%, transparent 1.2%),
|
|
linear-gradient(180deg, rgba(83, 86, 94, 0.16), rgba(24, 26, 31, 0.08));
|
|
box-shadow:
|
|
inset 0 0 0 1px rgba(255, 255, 255, 0.04),
|
|
inset 0 12px 20px rgba(255, 255, 255, 0.03);
|
|
}
|
|
|
|
.rack-grid__header-badge {
|
|
position: absolute;
|
|
top: 0.9%;
|
|
z-index: 6;
|
|
padding: 10px 14px;
|
|
border-radius: 16px;
|
|
background: rgba(17, 19, 24, 0.84);
|
|
color: #f6f7f9;
|
|
font-size: 0.98rem;
|
|
box-shadow:
|
|
inset 0 0 0 1px rgba(255, 255, 255, 0.12),
|
|
0 10px 20px rgba(20, 22, 28, 0.18);
|
|
}
|
|
|
|
.rack-grid__header-badge--left {
|
|
left: 0.9%;
|
|
}
|
|
|
|
.rack-grid__header-badge--right {
|
|
right: 0.9%;
|
|
}
|
|
|
|
.rack-items-layer {
|
|
position: absolute;
|
|
inset: 0;
|
|
z-index: 2;
|
|
}
|
|
|
|
.rack-insertion-layer {
|
|
position: absolute;
|
|
inset: 0;
|
|
pointer-events: auto;
|
|
z-index: 3;
|
|
}
|
|
|
|
.rack-insert-zone {
|
|
position: absolute;
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 0;
|
|
border: 0;
|
|
background: transparent;
|
|
pointer-events: auto;
|
|
cursor: pointer;
|
|
z-index: 3;
|
|
opacity: 0.32;
|
|
transition: opacity 120ms ease, transform 120ms ease;
|
|
}
|
|
|
|
.rack-insert-zone.is-disabled {
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.rack-insert-zone.is-preview,
|
|
.rack-insert-zone:hover {
|
|
opacity: 1;
|
|
}
|
|
|
|
.rack-insert-zone__ear {
|
|
width: 28px;
|
|
height: calc(100% - 4px);
|
|
border-radius: 10px;
|
|
background: rgba(83, 156, 243, 0.26);
|
|
border: 1px solid rgba(116, 184, 255, 0.5);
|
|
box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
|
|
position: relative;
|
|
}
|
|
|
|
.rack-insert-zone__ear::before,
|
|
.rack-insert-zone__ear::after {
|
|
content: "";
|
|
position: absolute;
|
|
left: 50%;
|
|
width: 10px;
|
|
height: 10px;
|
|
margin-left: -5px;
|
|
border-radius: 50%;
|
|
background: rgba(18, 25, 33, 0.75);
|
|
border: 1px solid rgba(255, 255, 255, 0.2);
|
|
}
|
|
|
|
.rack-insert-zone__ear::before {
|
|
top: 10px;
|
|
}
|
|
|
|
.rack-insert-zone__ear::after {
|
|
bottom: 10px;
|
|
}
|
|
|
|
.rack-insert-zone__body {
|
|
flex: 1;
|
|
height: calc(100% - 2px);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 16px;
|
|
color: #deefff;
|
|
border-top: 2px dashed rgba(113, 187, 255, 0.92);
|
|
border-bottom: 2px dashed rgba(113, 187, 255, 0.92);
|
|
background: linear-gradient(180deg, rgba(35, 92, 154, 0.34), rgba(23, 52, 84, 0.42));
|
|
box-shadow: inset 0 0 0 1px rgba(120, 182, 247, 0.24);
|
|
font-size: 1rem;
|
|
transition: background 120ms ease, box-shadow 120ms ease, transform 120ms ease;
|
|
}
|
|
|
|
.rack-insert-zone__icon {
|
|
font-size: 1.4rem;
|
|
opacity: 0.9;
|
|
}
|
|
|
|
.rack-insert-zone:hover .rack-insert-zone__body,
|
|
.rack-insert-zone:hover .rack-insert-zone__ear {
|
|
background-color: rgba(72, 151, 228, 0.34);
|
|
}
|
|
|
|
.rack-insert-zone:hover .rack-insert-zone__body {
|
|
transform: scaleY(1.02);
|
|
box-shadow:
|
|
inset 0 0 0 1px rgba(120, 182, 247, 0.34),
|
|
0 0 0 1px rgba(120, 182, 247, 0.18);
|
|
}
|
|
|
|
.rack-insert-zone.is-disabled .rack-insert-zone__body,
|
|
.rack-insert-zone.is-disabled .rack-insert-zone__ear {
|
|
opacity: 0.28;
|
|
}
|
|
|
|
.rack-item {
|
|
position: absolute;
|
|
left: 0;
|
|
padding: 0;
|
|
user-select: none;
|
|
overflow: hidden;
|
|
border-radius: 14px;
|
|
border: 1px solid rgba(30, 34, 40, 0.84);
|
|
background:
|
|
linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(209, 215, 224, 0.98) 58%, rgba(187, 194, 204, 0.98));
|
|
box-shadow:
|
|
inset 0 1px 0 rgba(255, 255, 255, 0.96),
|
|
inset 0 -2px 0 rgba(0, 0, 0, 0.14),
|
|
0 12px 18px rgba(5, 6, 7, 0.28);
|
|
touch-action: none;
|
|
cursor: grab;
|
|
}
|
|
|
|
.rack-item.is-dragging {
|
|
opacity: 0.82;
|
|
cursor: grabbing;
|
|
}
|
|
|
|
.rack-item__header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
align-items: start;
|
|
}
|
|
|
|
.rack-item__overlay {
|
|
position: absolute;
|
|
inset: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: space-between;
|
|
padding: 8px 12px 8px 12px;
|
|
background:
|
|
linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0) 28%),
|
|
linear-gradient(90deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.06) 32%, rgba(255, 255, 255, 0.16));
|
|
}
|
|
|
|
.rack-item__face {
|
|
position: absolute;
|
|
inset: 0;
|
|
filter: drop-shadow(0 10px 10px rgba(0, 0, 0, 0.18));
|
|
}
|
|
|
|
.rack-item__meta,
|
|
.list-output,
|
|
.notes {
|
|
color: rgba(77, 80, 87, 0.86);
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.rack-item__header strong {
|
|
color: #17191c;
|
|
font-size: 1rem;
|
|
}
|
|
|
|
.rack-item__drag-hint {
|
|
align-self: end;
|
|
padding: 5px 8px;
|
|
border-radius: 999px;
|
|
background: rgba(19, 23, 28, 0.78);
|
|
color: rgba(245, 247, 250, 0.95);
|
|
font-size: 0.72rem;
|
|
letter-spacing: 0.04em;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.rack-item__remove {
|
|
position: absolute;
|
|
top: 8px;
|
|
right: 8px;
|
|
width: 28px;
|
|
height: 28px;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border: 0;
|
|
border-radius: 999px;
|
|
background: rgba(16, 18, 23, 0.78);
|
|
color: #fff;
|
|
font-size: 1rem;
|
|
line-height: 1;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.rack-item__remove:hover {
|
|
background: rgba(134, 24, 24, 0.88);
|
|
}
|
|
|
|
.subpanel {
|
|
padding: 12px;
|
|
display: grid;
|
|
gap: 10px;
|
|
}
|
|
|
|
.subpanel__header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
gap: 12px;
|
|
}
|
|
|
|
.stat-grid {
|
|
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
}
|
|
|
|
.field-row {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
gap: 12px;
|
|
}
|
|
|
|
.field--status {
|
|
align-content: end;
|
|
}
|
|
|
|
.selection-info {
|
|
min-height: 42px;
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 10px 12px;
|
|
border-radius: 14px;
|
|
background: rgba(255, 255, 255, 0.7);
|
|
border: 1px solid rgba(83, 58, 31, 0.14);
|
|
color: var(--muted);
|
|
}
|
|
|
|
.selection-info.is-active {
|
|
background: rgba(28, 109, 190, 0.08);
|
|
border-color: rgba(28, 109, 190, 0.3);
|
|
color: #1e4f82;
|
|
}
|
|
|
|
.list-output {
|
|
display: grid;
|
|
gap: 10px;
|
|
}
|
|
|
|
.bom-line {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
padding: 10px 12px;
|
|
border-radius: 12px;
|
|
background: rgba(255, 255, 255, 0.64);
|
|
}
|
|
|
|
.notice {
|
|
padding: 12px 14px;
|
|
}
|
|
|
|
.notes {
|
|
margin: 0;
|
|
padding-left: 18px;
|
|
display: grid;
|
|
gap: 8px;
|
|
}
|
|
|
|
.notes li.ok {
|
|
color: var(--success);
|
|
}
|
|
|
|
.notes li.warn {
|
|
color: var(--warning);
|
|
}
|
|
|
|
.empty-state {
|
|
padding: 20px;
|
|
text-align: center;
|
|
color: var(--muted);
|
|
border: 1px dashed rgba(75, 57, 37, 0.2);
|
|
border-radius: var(--radius-md);
|
|
}
|
|
|
|
.device-face {
|
|
position: relative;
|
|
width: 100%;
|
|
height: 100%;
|
|
padding: 6px 24px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.device-face--library {
|
|
min-height: 72px;
|
|
border-radius: 10px;
|
|
}
|
|
|
|
.device-face--rack {
|
|
min-height: 100%;
|
|
}
|
|
|
|
.device-face--switch,
|
|
.device-face--patch-panel,
|
|
.device-face--pdu,
|
|
.device-face--blank,
|
|
.device-face--generic {
|
|
background: linear-gradient(180deg, #fcfcfd 0%, #e9edf3 18%, #d7dbe2 100%);
|
|
}
|
|
|
|
.device-face--ups {
|
|
background: linear-gradient(180deg, #f7f8fb 0%, #e0e4ea 20%, #cfd5dc 100%);
|
|
}
|
|
|
|
.device-face--shelf {
|
|
background: linear-gradient(180deg, #f5f6f8 0%, #d4d9e0 100%);
|
|
}
|
|
|
|
.device-face::before,
|
|
.device-face::after {
|
|
content: "";
|
|
position: absolute;
|
|
top: 5px;
|
|
bottom: 5px;
|
|
width: 20px;
|
|
border-radius: 5px;
|
|
background: linear-gradient(180deg, #d7dbe2, #b4bbc6);
|
|
box-shadow:
|
|
inset 0 1px 0 rgba(255, 255, 255, 0.65),
|
|
inset 0 -8px 10px rgba(95, 101, 112, 0.18);
|
|
}
|
|
|
|
.device-face::before {
|
|
left: 4px;
|
|
}
|
|
|
|
.device-face::after {
|
|
right: 4px;
|
|
}
|
|
|
|
.device-brand {
|
|
position: absolute;
|
|
top: 6px;
|
|
left: 36px;
|
|
font-size: 0.72rem;
|
|
letter-spacing: 0.04em;
|
|
color: rgba(51, 58, 67, 0.92);
|
|
font-weight: 700;
|
|
}
|
|
|
|
.device-silkscreen {
|
|
position: absolute;
|
|
left: 36px;
|
|
bottom: 6px;
|
|
font-size: 0.7rem;
|
|
letter-spacing: 0.12em;
|
|
text-transform: uppercase;
|
|
color: rgba(90, 95, 104, 0.76);
|
|
}
|
|
|
|
.device-mount-hole {
|
|
position: absolute;
|
|
top: 50%;
|
|
width: 7px;
|
|
height: 7px;
|
|
margin-top: -3.5px;
|
|
border-radius: 50%;
|
|
background:
|
|
radial-gradient(circle at 50% 50%, #79808b 0 1px, #4c525b 1.3px 2.5px, #cdd2da 2.5px);
|
|
box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
|
|
z-index: 2;
|
|
}
|
|
|
|
.device-mount-hole--left {
|
|
left: 11px;
|
|
}
|
|
|
|
.device-mount-hole--right {
|
|
right: 11px;
|
|
}
|
|
|
|
.device-leds {
|
|
display: flex;
|
|
gap: 5px;
|
|
position: absolute;
|
|
top: 9px;
|
|
right: 38px;
|
|
}
|
|
|
|
.device-leds span {
|
|
width: 7px;
|
|
height: 7px;
|
|
border-radius: 50%;
|
|
background: radial-gradient(circle at 35% 35%, #9dff87, #2d7b1a 72%);
|
|
box-shadow: 0 0 8px rgba(114, 255, 86, 0.4);
|
|
}
|
|
|
|
.device-ports,
|
|
.device-keystones,
|
|
.device-sockets {
|
|
display: grid;
|
|
gap: 4px;
|
|
}
|
|
|
|
.device-ports {
|
|
position: absolute;
|
|
left: 40px;
|
|
right: 70px;
|
|
top: 48%;
|
|
transform: translateY(-50%);
|
|
grid-template-columns: repeat(12, minmax(0, 1fr));
|
|
}
|
|
|
|
.device-ports span,
|
|
.device-keystones span {
|
|
height: 12px;
|
|
border-radius: 3px;
|
|
background: linear-gradient(180deg, #444c56, #1d2229);
|
|
border: 1px solid rgba(125, 132, 143, 0.22);
|
|
box-shadow:
|
|
inset 0 1px 0 rgba(255, 255, 255, 0.1),
|
|
0 1px 1px rgba(255, 255, 255, 0.08);
|
|
}
|
|
|
|
.device-ports--8 {
|
|
grid-template-columns: repeat(8, minmax(0, 1fr));
|
|
}
|
|
|
|
.device-ports--12 {
|
|
grid-template-columns: repeat(12, minmax(0, 1fr));
|
|
}
|
|
|
|
.device-keystones {
|
|
position: absolute;
|
|
left: 40px;
|
|
right: 40px;
|
|
top: 48%;
|
|
transform: translateY(-50%);
|
|
grid-template-columns: repeat(12, minmax(0, 1fr));
|
|
}
|
|
|
|
.device-face--patch-panel .device-keystones span {
|
|
height: 14px;
|
|
background: linear-gradient(180deg, #dde2e8, #acb3bd);
|
|
}
|
|
|
|
.device-face--patch-panel .device-keystones span:nth-child(odd) {
|
|
border-color: rgba(119, 124, 135, 0.32);
|
|
}
|
|
|
|
.device-uplink {
|
|
position: absolute;
|
|
top: 50%;
|
|
right: 40px;
|
|
width: 22px;
|
|
height: 16px;
|
|
transform: translateY(-50%);
|
|
border-radius: 4px;
|
|
border: 1px solid rgba(110, 117, 127, 0.25);
|
|
background: linear-gradient(180deg, #5b646f, #262b31);
|
|
}
|
|
|
|
.device-sockets {
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 40px;
|
|
right: 56px;
|
|
transform: translateY(-50%);
|
|
grid-template-columns: repeat(8, minmax(0, 1fr));
|
|
align-items: center;
|
|
}
|
|
|
|
.device-sockets span {
|
|
width: 15px;
|
|
height: 15px;
|
|
border-radius: 50%;
|
|
background:
|
|
radial-gradient(circle at center, transparent 0 3px, #4a515b 3px 5px, transparent 5px),
|
|
linear-gradient(180deg, #f5f6f8, #c4cad4);
|
|
border: 1px solid rgba(120, 126, 137, 0.18);
|
|
}
|
|
|
|
.device-display {
|
|
position: absolute;
|
|
left: 40px;
|
|
top: 50%;
|
|
width: 68px;
|
|
height: 30px;
|
|
transform: translateY(-50%);
|
|
border-radius: 8px;
|
|
background:
|
|
linear-gradient(180deg, rgba(46, 180, 156, 0.9), rgba(18, 97, 90, 0.92)),
|
|
linear-gradient(180deg, #0f151c, #080b0f);
|
|
box-shadow:
|
|
inset 0 0 0 1px rgba(255, 255, 255, 0.12),
|
|
0 0 16px rgba(46, 180, 156, 0.22);
|
|
}
|
|
|
|
.device-vents {
|
|
position: absolute;
|
|
top: 50%;
|
|
right: 42px;
|
|
width: 96px;
|
|
height: 22px;
|
|
transform: translateY(-50%);
|
|
background:
|
|
repeating-linear-gradient(90deg, rgba(102, 108, 118, 0.36) 0 3px, transparent 3px 7px);
|
|
opacity: 0.8;
|
|
}
|
|
|
|
.device-handles {
|
|
position: absolute;
|
|
inset: auto 48px 12px 48px;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.device-handles span {
|
|
width: 18px;
|
|
height: 8px;
|
|
border-radius: 999px;
|
|
border: 2px solid rgba(88, 95, 106, 0.7);
|
|
}
|
|
|
|
.device-shelf-top {
|
|
position: absolute;
|
|
left: 40px;
|
|
right: 40px;
|
|
top: 50%;
|
|
height: 18px;
|
|
transform: translateY(-50%);
|
|
border-radius: 4px 4px 12px 12px;
|
|
background: linear-gradient(180deg, #d1d7df, #8f98a4);
|
|
box-shadow: 0 5px 12px rgba(78, 82, 90, 0.18);
|
|
}
|
|
|
|
@media (max-width: 1280px) {
|
|
.dashboard-grid,
|
|
.dashboard-controls {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.hero {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 720px) {
|
|
.app-shell {
|
|
padding: 18px;
|
|
}
|
|
|
|
.stat-grid,
|
|
.field-row,
|
|
.dashboard-controls {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.rack-grid {
|
|
padding: 8px;
|
|
}
|
|
|
|
.rack-shell,
|
|
.rack-items-layer {
|
|
width: 100%;
|
|
}
|
|
}
|