Add theme settings, and remove the old theme system

This commit is contained in:
tyuXX 2026-11-15 20:48:49 +03:00
parent 567ac1a26d
commit 9f4a3197de
22 changed files with 2301 additions and 463 deletions

View file

@ -1,6 +1,6 @@
/* Modals, toasts, notification window, co-op toggle vicodins, value chart, grid (forgot which one), and toggles. */
.modal-overlay {
position: fixed; inset: 0; background: rgba(7, 10, 15, 0.84); backdrop-filter: blur(4px);
position: fixed; inset: 0; background: var(--overlay-scrim); backdrop-filter: blur(4px);
display: flex; align-items: center; justify-content: center; z-index: 100; padding: 16px;
}
.modal { width: min(500px, 100%); max-height: 85vh; overflow-y: auto; padding: 24px; }
@ -11,10 +11,10 @@
display: flex; flex-direction: column; gap: 8px; pointer-events: none;
}
.toast {
padding: 11px 16px; clip-path: var(--chamfer-sm);
padding: 11px 16px; border-radius: var(--radius-sm); clip-path: var(--chamfer-sm);
font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; max-width: 380px;
background: var(--bg-elevated); border: 1px solid var(--border-bright);
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
box-shadow: var(--shadow-elevated);
animation: slideIn 0.2s ease;
}
.toast.ok { border-color: var(--green); }
@ -33,9 +33,9 @@
.notif-toggle-bar {
display: flex; align-items: center;
background: rgba(18, 22, 31, 0.94); backdrop-filter: blur(8px);
border: 1px solid var(--border-bright); clip-path: var(--chamfer-sm);
box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
background: var(--bg-glass); backdrop-filter: blur(8px);
border: 1px solid var(--border-bright); border-radius: var(--radius-sm); clip-path: var(--chamfer-sm);
box-shadow: var(--shadow-elevated);
max-width: 360px; overflow: hidden;
}
.notif-toggle-main {
@ -49,22 +49,22 @@
text-overflow: ellipsis; white-space: nowrap;
}
.notif-hide-btn {
padding: 7px 9px; background: rgba(11, 14, 20, 0.5); border: none;
padding: 7px 9px; background: var(--bg-inset); border: none;
border-left: 1px solid var(--border); color: var(--text-dim); cursor: pointer;
font-family: var(--mono); font-size: 12px; line-height: 1;
}
.notif-hide-btn:hover { color: var(--text); background: var(--bg-hover); }
.notif-mini-pill {
padding: 6px 10px; background: rgba(18, 22, 31, 0.9);
box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
padding: 6px 10px; background: var(--bg-glass);
box-shadow: var(--shadow-elevated);
}
.notif-drawer {
width: min(370px, calc(100vw - var(--right-sidebar-offset, 0px) - 32px)); max-height: 340px;
display: flex; flex-direction: column; padding: 10px 12px; gap: 8px;
box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
box-shadow: var(--shadow-modal);
}
.notif-header { padding-bottom: 4px; border-bottom: 1px solid rgba(42, 52, 73, 0.6); }
.notif-header { padding-bottom: 4px; border-bottom: 1px solid var(--border-subtle); }
.notif-tabs { display: flex; gap: 5px; flex-wrap: wrap; }
.notif-list {
flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 6px;
@ -72,7 +72,7 @@
}
.notif-item {
padding: 7px 9px; background: var(--bg-deep); border: 1px solid var(--border);
border-left-width: 3px; clip-path: var(--chamfer-sm);
border-left-width: 3px; border-radius: var(--radius-sm); clip-path: var(--chamfer-sm);
font-family: var(--mono); font-size: 11px; line-height: 1.35;
}
.notif-item.ok { border-left-color: var(--green); }
@ -127,7 +127,7 @@
.builder-summary-bar {
padding: 8px 12px;
border-bottom: 1px solid var(--border);
background: rgba(11, 14, 20, 0.72);
background: var(--bg-inset);
display: flex;
flex-direction: column;
gap: 5px;
@ -143,7 +143,7 @@
.builder-coop-bar {
padding: 6px 12px;
border-bottom: 1px solid var(--border);
background: rgba(18, 22, 31, 0.85);
background: var(--bg-glass);
display: flex;
flex-wrap: wrap;
gap: 5px;
@ -159,6 +159,7 @@
border: 1px solid var(--border);
background: var(--bg-deep);
color: var(--text-dim);
border-radius: var(--radius-sm);
clip-path: var(--chamfer-sm);
cursor: pointer;
transition: border-color 0.15s, color 0.15s, background-color 0.15s;
@ -183,6 +184,7 @@
gap: 10px;
background: var(--bg-deep);
border: 1px solid var(--border);
border-radius: var(--radius-sm);
clip-path: var(--chamfer-sm);
padding: 10px 12px;
}
@ -190,7 +192,7 @@
display: flex;
width: 100%;
height: 18px;
background: rgba(25, 32, 46, 0.8);
background: var(--bg-elevated);
border: 1px solid var(--border);
overflow: hidden;
border-radius: 2px;
@ -216,6 +218,7 @@
.bus-power-cell {
background: var(--bg-deep);
border: 1px solid var(--border);
border-radius: var(--radius-sm);
clip-path: var(--chamfer-sm);
padding: 7px 9px;
display: flex;
@ -254,32 +257,6 @@
#notif-drawer-root {
position: static;
}
.comfort-pill-bar {
display: flex;
gap: 6px;
align-items: center;
}
.comfort-btn {
padding: 6px 10px;
font-family: var(--mono);
font-size: 10px;
font-weight: 700;
letter-spacing: 0.06em;
background: var(--bg-panel-solid);
border: 1px solid var(--border-bright);
color: var(--text-dim);
clip-path: var(--chamfer-sm);
cursor: pointer;
}
.comfort-btn:hover {
border-color: var(--sim-accent);
color: var(--text);
}
.comfort-btn.active {
border-color: var(--brand-blue);
color: var(--brand-blue);
background: var(--bg-elevated);
}
.wiki-drawer-overlay {
z-index: 190;