Files
2026-07-13 19:57:46 +08:00

142 lines
2.1 KiB
CSS

:root {
color-scheme: light;
--bg: #f6f7f9;
--panel: #ffffff;
--ink: #18202b;
--muted: #667085;
--line: #d8dde6;
--accent: #146b5d;
--soft: #edf7f4;
--bad: #b42318;
--bad-soft: #fef3f2;
--warn: #9a6700;
--warn-soft: #fffaeb;
font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* {
box-sizing: border-box;
}
body {
width: 320px;
margin: 0;
color: var(--ink);
background: var(--bg);
}
.shell {
display: grid;
gap: 10px;
padding: 12px;
}
.topbar,
.section {
background: var(--panel);
border: 1px solid var(--line);
border-radius: 8px;
}
.topbar {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 10px;
padding: 12px;
}
h1,
p {
margin: 0;
}
h1 {
font-size: 18px;
line-height: 1.25;
}
p,
.label {
color: var(--muted);
font-size: 12px;
line-height: 1.45;
}
.badge {
flex: 0 0 auto;
min-width: 64px;
padding: 4px 8px;
border-radius: 999px;
color: var(--accent);
background: var(--soft);
font-size: 12px;
text-align: center;
}
.badge.bad {
color: var(--bad);
background: var(--bad-soft);
}
.badge.paused {
color: var(--warn);
background: var(--warn-soft);
}
.section {
display: grid;
gap: 10px;
padding: 12px;
}
#connectionText {
overflow-wrap: anywhere;
font-size: 17px;
line-height: 1.35;
}
.switch-row {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
padding-top: 2px;
color: var(--ink);
font-size: 13px;
}
.switch-row input {
width: 42px;
height: 24px;
margin: 0;
appearance: none;
border: 1px solid var(--line);
border-radius: 999px;
background: #e4e7ec;
cursor: pointer;
position: relative;
}
.switch-row input::before {
content: "";
position: absolute;
width: 18px;
height: 18px;
left: 2px;
top: 2px;
border-radius: 50%;
background: #ffffff;
box-shadow: 0 1px 2px rgba(16, 24, 40, .2);
transition: transform .16s ease;
}
.switch-row input:checked {
border-color: var(--accent);
background: var(--accent);
}
.switch-row input:checked::before {
transform: translateX(18px);
}