118 lines
6.5 KiB
CSS
118 lines
6.5 KiB
CSS
:root {
|
|
color-scheme: light dark;
|
|
--surface: #f9f9ff;
|
|
--container: #eef0fa;
|
|
--low: #f4f4fc;
|
|
--ink: #1a1b23;
|
|
--muted: #454654;
|
|
--outline: #777786;
|
|
--line: #ddddea;
|
|
--primary: #395ca8;
|
|
--on-primary: #fff;
|
|
--primary-container: #dbe2ff;
|
|
--on-primary-container: #142b62;
|
|
--secondary-container: #e2e7f9;
|
|
--error: #ba1a1a;
|
|
--ok: #14634a;
|
|
font-family: Roboto, "Segoe UI", system-ui, sans-serif;
|
|
color: var(--ink);
|
|
background: var(--surface);
|
|
}
|
|
@media (prefers-color-scheme: dark) {
|
|
:root {
|
|
--surface: #12131a;
|
|
--container: #202128;
|
|
--low: #1a1b22;
|
|
--ink: #e3e3ed;
|
|
--muted: #c6c5d5;
|
|
--outline: #9292a2;
|
|
--line: #383943;
|
|
--primary: #b1c5ff;
|
|
--on-primary: #092e70;
|
|
--primary-container: #233967;
|
|
--on-primary-container: #dbe2ff;
|
|
--secondary-container: #353d55;
|
|
--error: #ffb4ab;
|
|
--ok: #92d5bb;
|
|
}
|
|
}
|
|
* { box-sizing: border-box; }
|
|
[hidden] { display: none !important; }
|
|
body { margin: 0; }
|
|
h1, h2, p { margin-top: 0; }
|
|
h1 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.12; font-weight: 500; letter-spacing: -.035em; margin-bottom: 20px; }
|
|
h2 { font-size: 1.13rem; font-weight: 600; margin-bottom: 12px; }
|
|
button, input, select { font: inherit; }
|
|
button { cursor: pointer; border: 0; background: transparent; color: inherit; min-height: 42px; padding: 0 16px; border-radius: 999px; font-weight: 600; }
|
|
button:hover:enabled { background: color-mix(in srgb, currentColor 9%, transparent); }
|
|
button:disabled { cursor: default; opacity: .46; }
|
|
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
|
|
.filled { color: var(--on-primary); background: var(--primary); padding-inline: 22px; }
|
|
.filled:hover:enabled { background: color-mix(in srgb, var(--primary) 89%, var(--on-primary)); }
|
|
.outlined { color: var(--primary); border: 1px solid var(--outline); }
|
|
label { color: var(--muted); display: grid; gap: 7px; font-size: .875rem; font-weight: 550; }
|
|
input, select { background: transparent; border: 1px solid var(--outline); border-radius: 8px; color: var(--ink); min-height: 46px; padding: 10px 13px; min-width: 0; }
|
|
select option { color: var(--ink); background: var(--surface); }
|
|
[role="alert"] { color: var(--error); margin: 0; overflow-wrap: anywhere; }
|
|
.login { min-height: 100dvh; display: grid; place-items: center; padding: 24px; background: radial-gradient(ellipse at 18% 14%, var(--primary-container), var(--surface) 65%); }
|
|
.login-panel { width: min(100%, 460px); border-radius: 32px; padding: clamp(24px, 6vw, 46px); background: var(--surface); border: 1px solid var(--line); box-shadow: 0 16px 60px #18275518; }
|
|
.login-panel h1 { font-size: 2rem; margin: 27px 0; }
|
|
.login-panel form { display: grid; gap: 19px; }
|
|
.login-panel .filled { margin-top: 6px; }
|
|
.brand { display: flex; align-items: center; gap: 11px; font-size: 1.3rem; font-weight: 700; letter-spacing: -.035em; }
|
|
.mark { display: grid; place-items: center; width: 38px; height: 38px; background: var(--primary); color: var(--on-primary); border-radius: 13px; font-size: 1rem; }
|
|
.workspace { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100dvh; }
|
|
.sidebar { background: var(--container); padding: 28px 16px; }
|
|
.sidebar .brand { margin: 0 10px 30px; }
|
|
nav { display: grid; gap: 6px; }
|
|
nav button { display: flex; gap: 12px; align-items: center; text-align: start; color: var(--muted); min-height: 49px; white-space: nowrap; }
|
|
nav button span { width: 20px; text-align: center; font-size: 1.26rem; line-height: 1; }
|
|
nav button[aria-current="page"] { background: var(--secondary-container); color: var(--ink); }
|
|
.topbar { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 28px; border-bottom: 1px solid var(--line); color: var(--muted); }
|
|
.account { display: flex; align-items: center; gap: 12px; font-size: .88rem; }
|
|
.page { padding: clamp(20px, 4vw, 48px); max-width: 1260px; margin: auto; }
|
|
.page [role="alert"] { padding: 12px 0; }
|
|
.hero { padding: clamp(22px, 4vw, 36px); background: var(--primary-container); color: var(--on-primary-container); border-radius: 28px; }
|
|
.hero h1 { margin-bottom: 12px; }
|
|
.status { display: inline-flex; gap: 9px; align-items: center; margin: 0; font-size: .9rem; font-weight: 600; }
|
|
.status::before { content: ""; width: 9px; height: 9px; background: currentColor; border-radius: 50%; }
|
|
.status[data-online="true"]::before { background: var(--ok); }
|
|
.cards, .detail-grid { display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 16px; }
|
|
.detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
|
.card { padding: 20px; background: var(--low); border: 1px solid var(--line); border-radius: 20px; }
|
|
.card h2 { color: var(--muted); }
|
|
.card p:last-child { margin-bottom: 0; }
|
|
.value { font-size: clamp(1.2rem, 3vw, 1.65rem); letter-spacing: -.025em; overflow-wrap: anywhere; }
|
|
.address { font-variant-numeric: tabular-nums; }
|
|
.section-heading { margin-top: 34px; }
|
|
.table-wrap { border: 1px solid var(--line); border-radius: 18px; overflow: auto; }
|
|
table { border-collapse: collapse; width: 100%; text-align: start; font-size: .9rem; }
|
|
th, td { text-align: start; padding: 13px 17px; border-bottom: 1px solid var(--line); white-space: nowrap; }
|
|
thead { background: var(--container); color: var(--muted); }
|
|
tbody tr:last-child td { border-bottom: 0; }
|
|
td:last-child { white-space: normal; overflow-wrap: anywhere; }
|
|
.muted, .empty { color: var(--muted); }
|
|
.empty { margin: 0; padding: 21px 17px; }
|
|
.path { font-family: ui-monospace, monospace; line-height: 1.65; overflow-wrap: anywhere; }
|
|
.actions, .pagination { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
|
|
dl { margin: 0; }
|
|
dl div { display: flex; gap: 12px; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); }
|
|
dl div:last-child { border-bottom: 0; }
|
|
dd { margin: 0; font-weight: 600; text-align: end; }
|
|
.filters { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 16px; }
|
|
.pagination { justify-content: flex-end; }
|
|
.pagination span { margin-inline-end: auto; }
|
|
@media (max-width: 800px) {
|
|
.workspace { grid-template-columns: minmax(0, 1fr); }
|
|
.sidebar { padding: 14px 16px 8px; }
|
|
.sidebar .brand { margin: 0 0 10px; }
|
|
nav { display: flex; overflow-x: auto; }
|
|
nav button { flex: 0 0 auto; min-height: 41px; }
|
|
.topbar { min-height: 56px; padding: 8px 16px; }
|
|
}
|
|
@media (max-width: 570px) {
|
|
.cards, .detail-grid { grid-template-columns: 1fr; }
|
|
.filters label { flex: 1 1 9rem; }
|
|
.topbar { font-size: .9rem; }
|
|
}
|