2026-10-03 20:24:37 +02:00
|
|
|
/* Yggdrasil retro theme — Midnight Commander vibes.
|
|
|
|
|
* Midnight-blue background, pixel frames, hard shadows, zero rounding.
|
|
|
|
|
* VT323 font (falls back to monospace if the CDN is unreachable).
|
|
|
|
|
*/
|
|
|
|
|
:root {
|
|
|
|
|
--mc-blue: #0000aa;
|
|
|
|
|
--mc-deep: #000066;
|
|
|
|
|
--mc-fg: #d7d7d7;
|
|
|
|
|
--mc-dim: #a8a8a8;
|
|
|
|
|
--mc-bright: #ffffff;
|
|
|
|
|
--mc-cyan: #55ffff;
|
|
|
|
|
--mc-cyan-dim: #00aaaa;
|
|
|
|
|
--mc-yellow: #ffff55;
|
|
|
|
|
--mc-red: #aa0000;
|
|
|
|
|
--mc-red-bright: #ff5555;
|
|
|
|
|
--mc-black: #000000;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
* { box-sizing: border-box; border-radius: 0 !important; }
|
|
|
|
|
|
|
|
|
|
html { background: var(--mc-black); }
|
|
|
|
|
|
|
|
|
|
body {
|
|
|
|
|
background: var(--mc-blue);
|
|
|
|
|
color: var(--mc-fg);
|
|
|
|
|
font-family: "VT323", "Courier New", Courier, monospace;
|
|
|
|
|
font-size: 22px;
|
|
|
|
|
line-height: 1.35;
|
|
|
|
|
max-width: 900px;
|
|
|
|
|
margin: 0 auto;
|
|
|
|
|
padding: 1rem 1rem 4rem;
|
|
|
|
|
min-height: 100vh;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Subtle CRT effect — scanlines over the whole page. */
|
|
|
|
|
body::after {
|
|
|
|
|
content: "";
|
|
|
|
|
position: fixed;
|
|
|
|
|
inset: 0;
|
|
|
|
|
z-index: 9999;
|
|
|
|
|
pointer-events: none;
|
|
|
|
|
background: repeating-linear-gradient(
|
|
|
|
|
to bottom,
|
|
|
|
|
rgba(0, 0, 0, 0.10) 0 1px,
|
|
|
|
|
transparent 1px 3px
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
::selection { background: var(--mc-cyan); color: var(--mc-black); }
|
|
|
|
|
|
|
|
|
|
.hidden { display: none !important; }
|
|
|
|
|
|
|
|
|
|
/* --- Headings --- */
|
|
|
|
|
h1 {
|
|
|
|
|
color: var(--mc-yellow);
|
|
|
|
|
text-transform: uppercase;
|
|
|
|
|
letter-spacing: 3px;
|
|
|
|
|
font-size: 2.2rem;
|
|
|
|
|
text-shadow: 3px 3px 0 var(--mc-black);
|
|
|
|
|
border-bottom: 3px double var(--mc-dim);
|
|
|
|
|
padding-bottom: 0.3em;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
h2 { color: var(--mc-bright); letter-spacing: 2px; }
|
|
|
|
|
|
2026-10-23 11:37:55 +02:00
|
|
|
/* Yggdrasil logo — pixel art, so keep it crisp when scaled down.
|
|
|
|
|
* On the home page it spans the full width of the blue band. */
|
|
|
|
|
.logo {
|
|
|
|
|
display: block;
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: auto;
|
|
|
|
|
margin: 1rem auto;
|
|
|
|
|
image-rendering: pixelated;
|
|
|
|
|
border: 3px double var(--mc-bright);
|
|
|
|
|
box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.45);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Small logo pinned to the right side of the black navbar. */
|
|
|
|
|
nav { display: flex; align-items: center; }
|
|
|
|
|
.nav-logo {
|
|
|
|
|
height: 68px;
|
|
|
|
|
width: auto;
|
|
|
|
|
margin-left: auto;
|
|
|
|
|
image-rendering: pixelated;
|
|
|
|
|
}
|
|
|
|
|
|
2026-10-03 20:24:37 +02:00
|
|
|
@keyframes mcblink { 50% { opacity: 0; } }
|
|
|
|
|
|
|
|
|
|
/* --- Menu bar (navigation) --- */
|
|
|
|
|
nav {
|
|
|
|
|
background: var(--mc-black);
|
|
|
|
|
border: 2px solid var(--mc-dim);
|
|
|
|
|
padding: 0.3em 0.5em;
|
|
|
|
|
margin-bottom: 1rem;
|
|
|
|
|
}
|
|
|
|
|
nav a {
|
|
|
|
|
color: var(--mc-cyan);
|
|
|
|
|
text-decoration: none;
|
|
|
|
|
padding: 0 0.6em;
|
|
|
|
|
margin-right: 0.2em;
|
|
|
|
|
}
|
|
|
|
|
nav a:hover { background: var(--mc-cyan); color: var(--mc-black); }
|
|
|
|
|
|
|
|
|
|
/* --- Panels and dialogs --- */
|
|
|
|
|
.panel {
|
|
|
|
|
background: var(--mc-deep);
|
|
|
|
|
border: 3px double var(--mc-bright);
|
|
|
|
|
box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.45);
|
|
|
|
|
padding: 1rem 1.2rem;
|
|
|
|
|
margin-top: 1rem;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.dialog {
|
|
|
|
|
position: relative;
|
|
|
|
|
max-width: 460px;
|
|
|
|
|
margin: 10vh auto 0;
|
|
|
|
|
background: var(--mc-blue);
|
|
|
|
|
border: 3px double var(--mc-bright);
|
|
|
|
|
box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.5);
|
|
|
|
|
padding: 1.5rem 1.5rem 1.2rem;
|
|
|
|
|
}
|
|
|
|
|
.dialog-title {
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: -0.75em;
|
|
|
|
|
left: 50%;
|
|
|
|
|
transform: translateX(-50%);
|
|
|
|
|
background: var(--mc-blue);
|
|
|
|
|
color: var(--mc-yellow);
|
|
|
|
|
padding: 0 1em;
|
|
|
|
|
letter-spacing: 2px;
|
|
|
|
|
text-transform: uppercase;
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* --- Forms --- */
|
|
|
|
|
form { display: flex; flex-direction: column; gap: 0.8rem; }
|
|
|
|
|
label { color: var(--mc-bright); letter-spacing: 1px; }
|
|
|
|
|
|
|
|
|
|
/* Terminal-style field wrapper for the block caret (see login.html).
|
|
|
|
|
* The overlay block is positioned by JS; without JS it stays hidden. */
|
|
|
|
|
.term-field { position: relative; }
|
|
|
|
|
.caret-block {
|
|
|
|
|
display: none;
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: 50%;
|
|
|
|
|
transform: translateY(-50%);
|
|
|
|
|
width: 1ch;
|
|
|
|
|
height: 1.15em;
|
|
|
|
|
background: var(--mc-yellow);
|
|
|
|
|
box-shadow: 0 0 6px rgba(255, 255, 85, 0.6);
|
|
|
|
|
pointer-events: none;
|
|
|
|
|
animation: mcblink 1.06s steps(1) infinite;
|
|
|
|
|
}
|
|
|
|
|
.term-field.active .caret-block { display: block; }
|
|
|
|
|
/* Hide the native thin caret only when the JS block takes over. */
|
|
|
|
|
input.js-caret { caret-color: transparent; }
|
|
|
|
|
|
2026-11-01 17:17:58 +01:00
|
|
|
input, select, textarea {
|
2026-10-03 20:24:37 +02:00
|
|
|
font: inherit;
|
|
|
|
|
background: var(--mc-black);
|
|
|
|
|
color: var(--mc-bright);
|
|
|
|
|
border: 2px solid var(--mc-dim);
|
|
|
|
|
padding: 0.3em 0.5em;
|
|
|
|
|
width: 100%;
|
|
|
|
|
}
|
2026-11-01 17:17:58 +01:00
|
|
|
input:focus, select:focus, textarea:focus {
|
2026-10-03 20:24:37 +02:00
|
|
|
outline: none;
|
|
|
|
|
border-color: var(--mc-yellow);
|
|
|
|
|
}
|
|
|
|
|
select { width: 100%; margin-top: 0.3rem; }
|
|
|
|
|
option { background: var(--mc-black); color: var(--mc-bright); }
|
|
|
|
|
|
|
|
|
|
button {
|
|
|
|
|
font: inherit;
|
|
|
|
|
text-transform: uppercase;
|
|
|
|
|
letter-spacing: 2px;
|
|
|
|
|
background: var(--mc-dim);
|
|
|
|
|
color: var(--mc-black);
|
|
|
|
|
border: none;
|
|
|
|
|
box-shadow: 4px 4px 0 var(--mc-black);
|
|
|
|
|
padding: 0.4em 1.2em;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
}
|
|
|
|
|
button:hover { background: var(--mc-cyan); }
|
|
|
|
|
button:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--mc-black); }
|
|
|
|
|
button:disabled { opacity: 0.5; cursor: default; }
|
|
|
|
|
|
|
|
|
|
#refresh-button { margin-top: 0.6rem; }
|
|
|
|
|
|
2026-10-23 11:37:55 +02:00
|
|
|
/* Sensors page: the "hourly average" checkbox must stay a small inline
|
|
|
|
|
* box next to its text — the global `input { width: 100% }` would
|
|
|
|
|
* otherwise stretch it full-width and break the row layout. */
|
|
|
|
|
#avg-label { display: flex; align-items: center; gap: 0.5em; margin-top: 0.6rem; }
|
|
|
|
|
#avg-label input { width: auto; margin: 0; }
|
|
|
|
|
|
2026-10-03 20:24:37 +02:00
|
|
|
.error {
|
|
|
|
|
background: var(--mc-red);
|
|
|
|
|
color: var(--mc-bright);
|
|
|
|
|
border: 2px solid var(--mc-bright);
|
|
|
|
|
box-shadow: 4px 4px 0 var(--mc-black);
|
|
|
|
|
padding: 0.4em 0.6em;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* --- Tables --- */
|
|
|
|
|
table { width: 100%; margin-top: 0.5rem; border-collapse: collapse; }
|
|
|
|
|
th, td {
|
|
|
|
|
border: 1px solid var(--mc-dim);
|
|
|
|
|
padding: 0.3em 0.6em;
|
|
|
|
|
text-align: left;
|
|
|
|
|
}
|
|
|
|
|
th { background: var(--mc-cyan-dim); color: var(--mc-black); text-transform: uppercase; letter-spacing: 1px; }
|
|
|
|
|
tbody tr:hover { background: var(--mc-cyan); color: var(--mc-black); }
|
|
|
|
|
|
|
|
|
|
/* --- Links inside content --- */
|
|
|
|
|
a { color: var(--mc-cyan); }
|
|
|
|
|
a:hover { background: var(--mc-cyan); color: var(--mc-black); text-decoration: none; }
|
|
|
|
|
|
|
|
|
|
/* --- MC-style menu (home page) --- */
|
|
|
|
|
.mc-menu { list-style: none; padding: 0; margin: 1rem 0; }
|
|
|
|
|
.mc-menu li { margin: 0.2em 0; }
|
|
|
|
|
.mc-menu a {
|
|
|
|
|
display: block;
|
|
|
|
|
text-decoration: none;
|
|
|
|
|
padding: 0.2em 0.6em;
|
|
|
|
|
}
|
|
|
|
|
.mc-menu a::before { content: "[*] "; color: var(--mc-yellow); }
|
|
|
|
|
.mc-menu a:hover::before { color: var(--mc-black); }
|
|
|
|
|
.mc-key {
|
|
|
|
|
display: inline-block;
|
|
|
|
|
background: var(--mc-black);
|
|
|
|
|
color: var(--mc-cyan);
|
|
|
|
|
border: 1px solid var(--mc-cyan-dim);
|
|
|
|
|
padding: 0 0.4em;
|
|
|
|
|
margin-right: 0.5em;
|
|
|
|
|
}
|
|
|
|
|
a:hover .mc-key { background: var(--mc-black); color: var(--mc-black); }
|
|
|
|
|
|
|
|
|
|
.hint { color: var(--mc-dim); }
|
|
|
|
|
|
|
|
|
|
/* Yellow highlight for usernames, roles and other key words. */
|
|
|
|
|
.hl { color: var(--mc-yellow); }
|
|
|
|
|
|
|
|
|
|
/* --- API docs --- */
|
|
|
|
|
.endpoint {
|
|
|
|
|
background: var(--mc-deep);
|
|
|
|
|
border: 3px double var(--mc-bright);
|
|
|
|
|
box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.45);
|
|
|
|
|
padding: 1rem 1.2rem;
|
|
|
|
|
margin: 1rem 0;
|
|
|
|
|
}
|
|
|
|
|
.method {
|
|
|
|
|
display: inline-block;
|
|
|
|
|
padding: 0.1em 0.6em;
|
|
|
|
|
margin-right: 0.5em;
|
|
|
|
|
font-size: 0.9em;
|
|
|
|
|
letter-spacing: 1px;
|
|
|
|
|
}
|
|
|
|
|
.get { background: var(--mc-cyan); color: var(--mc-black); }
|
|
|
|
|
.post { background: var(--mc-yellow); color: var(--mc-black); }
|
|
|
|
|
.path { font-size: 1.1rem; color: var(--mc-bright); }
|
|
|
|
|
.desc { margin: 0.5rem 0; }
|
|
|
|
|
.section-label {
|
|
|
|
|
font-size: 0.85em;
|
|
|
|
|
color: var(--mc-dim);
|
|
|
|
|
margin: 0.75rem 0 0.25rem;
|
|
|
|
|
text-transform: uppercase;
|
|
|
|
|
letter-spacing: 2px;
|
|
|
|
|
}
|
|
|
|
|
pre {
|
|
|
|
|
background: var(--mc-black);
|
|
|
|
|
color: var(--mc-cyan);
|
|
|
|
|
border: 2px solid var(--mc-dim);
|
|
|
|
|
padding: 0.7rem;
|
|
|
|
|
overflow-x: auto;
|
|
|
|
|
font-size: 0.9em;
|
|
|
|
|
}
|
|
|
|
|
code { font-family: inherit; }
|
|
|
|
|
.note {
|
|
|
|
|
background: var(--mc-black);
|
|
|
|
|
border-left: 6px solid var(--mc-yellow);
|
|
|
|
|
padding: 0.5rem 0.75rem;
|
|
|
|
|
margin: 1rem 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* --- Bottom status bar --- */
|
|
|
|
|
.statusbar {
|
|
|
|
|
position: fixed;
|
|
|
|
|
left: 0;
|
|
|
|
|
right: 0;
|
|
|
|
|
bottom: 0;
|
|
|
|
|
background: var(--mc-black);
|
|
|
|
|
color: var(--mc-dim);
|
|
|
|
|
border-top: 2px solid var(--mc-dim);
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
gap: 1rem;
|
|
|
|
|
padding: 0.25em 1em;
|
|
|
|
|
font-size: 0.95em;
|
|
|
|
|
z-index: 100;
|
|
|
|
|
}
|
|
|
|
|
.statusbar b {
|
|
|
|
|
background: var(--mc-cyan-dim);
|
|
|
|
|
color: var(--mc-bright);
|
|
|
|
|
padding: 0 0.4em;
|
|
|
|
|
margin-right: 0.3em;
|
|
|
|
|
}
|
|
|
|
|
.statusbar a { text-decoration: none; }
|
|
|
|
|
|
|
|
|
|
/* --- Chart --- */
|
|
|
|
|
.chart-box { margin-top: 1rem; }
|
|
|
|
|
canvas {
|
|
|
|
|
background: var(--mc-black);
|
|
|
|
|
border: 3px double var(--mc-bright);
|
|
|
|
|
padding: 0.5rem;
|
|
|
|
|
}
|
2026-11-01 17:17:58 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
/* --- Notes --- */
|
|
|
|
|
textarea {
|
|
|
|
|
resize: vertical;
|
|
|
|
|
min-height: 4.5em;
|
|
|
|
|
}
|
|
|
|
|
.note-card {
|
|
|
|
|
background: var(--mc-deep);
|
|
|
|
|
border: 3px double var(--mc-bright);
|
|
|
|
|
box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.45);
|
|
|
|
|
padding: 1rem 1.2rem;
|
|
|
|
|
margin-top: 1rem;
|
|
|
|
|
}
|
|
|
|
|
.note-actions {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
gap: 1rem;
|
|
|
|
|
}
|
|
|
|
|
.note-meta { color: var(--mc-dim); font-size: 0.8em; }
|
|
|
|
|
.checklist { list-style: none; padding: 0; margin: 1rem 0; }
|
|
|
|
|
.checklist li {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
gap: 0.5em;
|
|
|
|
|
border-bottom: 1px dashed var(--mc-dim);
|
|
|
|
|
padding: 0.15em 0;
|
|
|
|
|
}
|
|
|
|
|
.check-form {
|
2026-11-01 20:04:33 +01:00
|
|
|
flex: 0 0 auto;
|
2026-11-01 17:17:58 +01:00
|
|
|
flex-direction: row;
|
|
|
|
|
align-items: center;
|
|
|
|
|
gap: 0.6em;
|
|
|
|
|
margin: 0;
|
|
|
|
|
}
|
|
|
|
|
.check-form input[type="checkbox"] {
|
|
|
|
|
width: auto;
|
|
|
|
|
margin: 0;
|
|
|
|
|
accent-color: var(--mc-yellow);
|
|
|
|
|
}
|
2026-11-01 20:04:33 +01:00
|
|
|
.item-edit-form {
|
|
|
|
|
flex: 1;
|
|
|
|
|
flex-direction: row;
|
|
|
|
|
align-items: center;
|
|
|
|
|
gap: 0.4em;
|
|
|
|
|
margin: 0;
|
|
|
|
|
}
|
|
|
|
|
.item-edit-form input { flex: 1; min-width: 0; }
|
|
|
|
|
.item-edit-form button {
|
|
|
|
|
background: var(--mc-dim);
|
|
|
|
|
color: var(--mc-black);
|
|
|
|
|
box-shadow: none;
|
|
|
|
|
padding: 0.1em 0.4em;
|
|
|
|
|
font-size: 0.85em;
|
|
|
|
|
letter-spacing: 0;
|
|
|
|
|
}
|
|
|
|
|
.item-edit-form button:hover { background: var(--mc-cyan); }
|
|
|
|
|
.checklist li.done .item-edit-form input {
|
2026-11-01 17:17:58 +01:00
|
|
|
text-decoration: line-through;
|
|
|
|
|
color: var(--mc-dim);
|
|
|
|
|
}
|
|
|
|
|
.item-delete-form { margin: 0; }
|
|
|
|
|
.item-delete-form button {
|
|
|
|
|
background: transparent;
|
|
|
|
|
color: var(--mc-red-bright);
|
|
|
|
|
box-shadow: none;
|
|
|
|
|
padding: 0.1em 0.4em;
|
|
|
|
|
letter-spacing: 0;
|
|
|
|
|
}
|
|
|
|
|
.item-delete-form button:hover { background: var(--mc-red); color: var(--mc-bright); }
|
|
|
|
|
.add-item-form {
|
|
|
|
|
flex-direction: row;
|
|
|
|
|
align-items: center;
|
|
|
|
|
gap: 0.5em;
|
|
|
|
|
}
|
|
|
|
|
.add-item-form input { flex: 1; }
|
|
|
|
|
.note-delete-form { margin-top: 0.75rem; }
|
|
|
|
|
.note-delete-form button { background: var(--mc-red); color: var(--mc-bright); }
|
|
|
|
|
.note-delete-form button:hover { background: var(--mc-red-bright); }
|