309 lines
4.8 KiB
CSS
309 lines
4.8 KiB
CSS
:root {
|
|
color-scheme: light dark;
|
|
font-family:
|
|
Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
|
background: #05070a;
|
|
color: #f8fafc;
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
html,
|
|
body {
|
|
height: 100%;
|
|
margin: 0;
|
|
background: #05070a;
|
|
}
|
|
|
|
body {
|
|
overflow: hidden;
|
|
background: #05070a;
|
|
}
|
|
|
|
body:has(.admin-shell) {
|
|
overflow: auto;
|
|
}
|
|
|
|
a {
|
|
color: inherit;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.shell {
|
|
height: 100vh;
|
|
min-width: 320px;
|
|
background: #05070a;
|
|
}
|
|
|
|
iframe {
|
|
display: block;
|
|
width: 100%;
|
|
height: 100%;
|
|
border: 0;
|
|
background: #05070a;
|
|
color-scheme: dark;
|
|
}
|
|
|
|
.setup {
|
|
display: grid;
|
|
min-height: 100%;
|
|
place-content: center;
|
|
gap: 10px;
|
|
padding: 24px;
|
|
text-align: center;
|
|
}
|
|
|
|
.setup h1 {
|
|
margin: 0;
|
|
font-size: 18px;
|
|
}
|
|
|
|
.setup p {
|
|
margin: 0;
|
|
color: #cbd5e1;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.setup a {
|
|
justify-self: center;
|
|
padding: 8px 12px;
|
|
border: 1px solid rgba(148, 163, 184, 0.32);
|
|
border-radius: 6px;
|
|
background: #1f2937;
|
|
}
|
|
|
|
.camera-shell {
|
|
display: grid;
|
|
grid-template-rows: minmax(0, 1fr) auto;
|
|
height: 100vh;
|
|
background: #020617;
|
|
}
|
|
|
|
.camera-shell video,
|
|
.camera-shell img {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: contain;
|
|
background: #000;
|
|
}
|
|
|
|
.camera-shell video {
|
|
display: none;
|
|
}
|
|
|
|
.camera-panel {
|
|
display: grid;
|
|
grid-template-columns: minmax(0, 1fr) auto;
|
|
gap: 8px 12px;
|
|
align-items: center;
|
|
padding: 8px 10px;
|
|
border-top: 1px solid rgba(148, 163, 184, 0.22);
|
|
background: #111827;
|
|
}
|
|
|
|
.camera-panel strong {
|
|
overflow: hidden;
|
|
font-size: 13px;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.camera-panel button {
|
|
min-height: 30px;
|
|
padding: 6px 10px;
|
|
border: 1px solid rgba(148, 163, 184, 0.35);
|
|
border-radius: 6px;
|
|
background: #1f2937;
|
|
color: #f8fafc;
|
|
}
|
|
|
|
.camera-panel pre {
|
|
grid-column: 1 / -1;
|
|
max-height: 96px;
|
|
margin: 0;
|
|
overflow: auto;
|
|
color: #cbd5e1;
|
|
font-size: 11px;
|
|
white-space: pre-wrap;
|
|
}
|
|
|
|
.admin-shell {
|
|
min-height: 100vh;
|
|
padding: 24px;
|
|
background: #0b0d10;
|
|
color: #eef2f7;
|
|
}
|
|
|
|
.admin-header {
|
|
display: flex;
|
|
gap: 16px;
|
|
align-items: flex-start;
|
|
justify-content: space-between;
|
|
max-width: 1180px;
|
|
margin: 0 auto 18px;
|
|
}
|
|
|
|
.admin-header h1 {
|
|
margin: 0;
|
|
font-size: 22px;
|
|
letter-spacing: 0;
|
|
}
|
|
|
|
.admin-header p {
|
|
max-width: 760px;
|
|
margin: 6px 0 0;
|
|
color: rgba(238, 242, 247, 0.58);
|
|
font-size: 13px;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.admin-header nav {
|
|
display: flex;
|
|
gap: 8px;
|
|
}
|
|
|
|
.admin-header nav a,
|
|
.config-form button {
|
|
min-height: 32px;
|
|
padding: 0 12px;
|
|
border: 1px solid rgba(148, 163, 184, 0.22);
|
|
border-radius: 6px;
|
|
background: #1a2029;
|
|
color: #eef2f7;
|
|
font-size: 12px;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.status-grid,
|
|
.config-form {
|
|
max-width: 1180px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.status-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(5, minmax(0, 1fr));
|
|
gap: 8px;
|
|
margin-bottom: 14px;
|
|
}
|
|
|
|
.status-grid article,
|
|
.config-form section {
|
|
border: 1px solid rgba(148, 163, 184, 0.16);
|
|
border-radius: 6px;
|
|
background: #13171e;
|
|
}
|
|
|
|
.status-grid article {
|
|
min-height: 70px;
|
|
padding: 12px;
|
|
}
|
|
|
|
.status-grid span {
|
|
display: block;
|
|
margin-bottom: 7px;
|
|
color: rgba(238, 242, 247, 0.42);
|
|
font-size: 11px;
|
|
font-weight: 800;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.status-grid strong {
|
|
display: block;
|
|
overflow-wrap: anywhere;
|
|
color: rgba(238, 242, 247, 0.86);
|
|
font-size: 13px;
|
|
line-height: 1.35;
|
|
}
|
|
|
|
.config-form {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
gap: 10px;
|
|
padding-bottom: 28px;
|
|
}
|
|
|
|
.config-form section {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
gap: 10px;
|
|
align-content: start;
|
|
padding: 14px;
|
|
}
|
|
|
|
.config-form h2 {
|
|
grid-column: 1 / -1;
|
|
margin: 0 0 2px;
|
|
color: rgba(238, 242, 247, 0.84);
|
|
font-size: 14px;
|
|
}
|
|
|
|
.config-form label {
|
|
display: grid;
|
|
gap: 5px;
|
|
min-width: 0;
|
|
color: rgba(238, 242, 247, 0.55);
|
|
font-size: 11px;
|
|
font-weight: 750;
|
|
}
|
|
|
|
.config-form label.inline {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.config-form input,
|
|
.config-form select {
|
|
min-width: 0;
|
|
height: 32px;
|
|
border: 1px solid rgba(148, 163, 184, 0.18);
|
|
border-radius: 5px;
|
|
background: #0d1117;
|
|
color: rgba(238, 242, 247, 0.88);
|
|
padding: 0 9px;
|
|
font: inherit;
|
|
}
|
|
|
|
.config-form input[type="checkbox"] {
|
|
width: 16px;
|
|
height: 16px;
|
|
padding: 0;
|
|
}
|
|
|
|
.config-form footer {
|
|
position: sticky;
|
|
bottom: 0;
|
|
grid-column: 1 / -1;
|
|
display: flex;
|
|
gap: 8px;
|
|
align-items: center;
|
|
justify-content: flex-end;
|
|
padding: 10px 0 0;
|
|
background: #0b0d10;
|
|
}
|
|
|
|
.config-form footer span {
|
|
min-width: 180px;
|
|
color: rgba(238, 242, 247, 0.58);
|
|
font-size: 12px;
|
|
}
|
|
|
|
@media (max-width: 920px) {
|
|
.admin-shell {
|
|
padding: 14px;
|
|
}
|
|
|
|
.admin-header {
|
|
flex-direction: column;
|
|
}
|
|
|
|
.status-grid,
|
|
.config-form,
|
|
.config-form section {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|