fixes + theme

This commit is contained in:
th committed 2026-04-11 13:01:27 +02:00
1 parent 5af49655d6
commit 22f73ab3b9
25 files changed
+1004 -206

No files matched your search

+184 -7
View File
@@ -1,5 +1,181 @@
body { font-family: 'JetBrains Mono', monospace; }
.font-pixel { font-family: var(--t-font-pixel, 'Silkscreen', cursive) !important; }
body { font-family: var(--t-font-content, 'JetBrains Mono', monospace); }
.font-pixel { font-family: var(--t-font-ui, var(--t-font-pixel, 'Silkscreen', cursive)) !important; }
.brand { font-family: 'Silkscreen', cursive !important; }
body.no-scanlines::after { display: none !important; }
#dialog-msg { white-space: pre-line; word-break: break-word; }
/* ── User-customizable design tokens ── */
:root {
--ui-radius-card: 0px;
--ui-radius-button: 0px;
--ui-radius-input: 0px;
--ui-radius-modal: 4px;
--ui-radius-tag: 2px;
--ui-radius-image: 4px;
--ui-border-card: 1px;
--ui-border-style: solid;
--ui-bar-height: 3px;
--ui-pad-card: 16px;
--ui-gap-board: 0px;
--ui-shadow-card: none;
--ui-shadow-modal: 0 25px 50px -12px rgba(0,0,0,0.35);
--ui-shadow-header: 0 4px 20px -4px rgba(0,0,0,0.3);
--ui-shadow-footer: 0 -4px 20px -4px rgba(0,0,0,0.3);
--ui-lift-card: 0px;
--ui-blur-overlay: 0px;
}
#main-header { box-shadow: var(--ui-shadow-header); }
#main-footer { box-shadow: var(--ui-shadow-footer); }
/* Cards: geometry & shadow driven by design tokens */
.board-card {
border-radius: var(--ui-radius-card);
border-width: var(--ui-border-card);
border-style: var(--ui-border-style);
box-shadow: var(--ui-shadow-card);
transition: border-color 0.12s, transform 0.15s, box-shadow 0.2s;
overflow: hidden; /* clip card-bar (and other inner elements) to the rounded corners */
}
.board-card:hover { transform: translateY(calc(0px - var(--ui-lift-card))); }
.board-card > .p-4 { padding: var(--ui-pad-card); }
.board-card .card-tags { flex-shrink: 0; min-height: 18px; }
#board { gap: var(--ui-gap-board); }
/* Bordered action buttons */
button[class*="border-t-border"]:not(.toolbar-btn):not(.settings-tab):not(.bucket-tab):not(.ctx-item):not(.tp-btn),
button[class*="border-t-accent"]:not(.toolbar-btn):not(.settings-tab):not(.bucket-tab):not(.ctx-item):not(.tp-btn),
button[class*="border-t-danger"]:not(.toolbar-btn):not(.settings-tab):not(.bucket-tab):not(.ctx-item):not(.tp-btn),
a[class*="border-t-border"],
a[class*="border-t-accent"] {
border-radius: var(--ui-radius-button);
}
/* Inputs / selects / textareas */
input:not([type="checkbox"]):not([type="radio"]):not([type="range"])[class*="border-t-border"],
input:not([type="checkbox"]):not([type="radio"]):not([type="range"])[class*="border-t-accent"],
textarea[class*="border-t-border"],
textarea[class*="border-t-accent"],
select[class*="border-t-border"],
select[class*="border-t-accent"] {
border-radius: var(--ui-radius-input);
}
/* Tag chips */
.tag-chip { border-radius: var(--ui-radius-tag); }
/* Prose images & card cover */
.prose img { border-radius: var(--ui-radius-image); }
.board-card.card-has-cover { border-radius: var(--ui-radius-card); }
/* Modal containers (the inner box of each overlay) */
#modal > div,
#detail > div,
#settings-overlay > div,
#help > div,
#search > div,
#tasks > div,
#calendar > div,
#gallery > div,
#dialog > div {
border-radius: var(--ui-radius-modal);
box-shadow: var(--ui-shadow-modal);
}
/* Overlay backdrop blur (applies to anything that's already an .overlay) */
.overlay { backdrop-filter: blur(var(--ui-blur-overlay)); -webkit-backdrop-filter: blur(var(--ui-blur-overlay)); }
/* Animation speed (toggled via body class from applyDesign) */
body.anim-off *, body.anim-off *::before, body.anim-off *::after {
transition: none !important;
animation: none !important;
}
body.anim-fast *, body.anim-fast *::before, body.anim-fast *::after {
transition-duration: 50ms !important;
animation-duration: 100ms !important;
}
body.anim-slow *, body.anim-slow *::before, body.anim-slow *::after {
transition-duration: 400ms !important;
animation-duration: 600ms !important;
}
/* ── Theme preview (settings) ── */
.theme-preview {
position: relative; padding: 14px; overflow: hidden;
background: var(--t-bg); border: 1px solid var(--t-border); border-radius: 3px;
}
.theme-preview .tp-scan { position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, transparent, transparent 2px, var(--t-scanline, rgba(0,0,0,0.04)) 2px, var(--t-scanline, rgba(0,0,0,0.04)) 4px); }
.theme-preview .tp-row { display: flex; gap: 12px; align-items: stretch; position: relative; z-index: 1; }
.theme-preview .tp-card {
flex: 1; min-width: 0;
background: var(--t-surface);
border: var(--tp-border-card, 1px) var(--tp-border-style, solid) var(--t-border);
border-radius: var(--tp-radius-card, 0px);
box-shadow: var(--tp-shadow-card, none);
overflow: hidden;
}
.theme-preview .tp-card-bar { height: var(--tp-bar-height, 3px); background: var(--t-accent); }
.theme-preview .tp-card-body { padding: var(--tp-pad-card, 14px); }
.theme-preview .tp-headline { font-family: var(--tp-font-headline); color: var(--t-bright); font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.theme-preview .tp-content { font-family: var(--tp-font-content); color: var(--t-text); font-size: 11px; line-height: 1.55; margin-bottom: 8px; }
.theme-preview .tp-meta { display: flex; gap: 6px; align-items: center; }
.theme-preview .tp-tag {
font-family: var(--tp-font-ui); font-size: 9px;
color: var(--t-accent); background: color-mix(in srgb, var(--t-accent) 12%, transparent);
border: 1px solid color-mix(in srgb, var(--t-accent) 25%, transparent);
border-radius: var(--tp-radius-tag, 2px); padding: 1px 6px;
}
.theme-preview .tp-ui { font-family: var(--tp-font-ui); font-size: 9px; color: var(--t-dim); text-transform: uppercase; letter-spacing: 0.05em; }
.theme-preview .tp-side { display: flex; flex-direction: column; gap: 6px; min-width: 96px; }
.theme-preview .tp-btn {
font-family: var(--tp-font-ui); font-size: 10px;
color: var(--t-accent); border: 1px solid var(--t-accent);
padding: 4px 10px; border-radius: var(--tp-radius-button, 0px);
background: transparent; cursor: pointer;
}
.theme-preview .tp-input {
font-family: var(--tp-font-ui); font-size: 10px;
color: var(--t-text); background: var(--t-bg);
border: 1px solid var(--t-border);
padding: 4px 8px; border-radius: var(--tp-radius-input, 0px);
outline: none; width: 100%;
}
/* Range slider styling for design panel */
.design-slider {
flex: 1; height: 4px;
-webkit-appearance: none; appearance: none;
background: var(--t-border); border-radius: 2px; outline: none; cursor: pointer;
}
.design-slider::-webkit-slider-thumb {
-webkit-appearance: none; appearance: none;
width: 12px; height: 12px; border-radius: 50%;
background: var(--t-accent); cursor: pointer; border: none;
}
.design-slider::-moz-range-thumb {
width: 12px; height: 12px; border-radius: 50%;
background: var(--t-accent); cursor: pointer; border: none;
}
.design-row { display: flex; align-items: center; gap: 10px; padding: 2px 0; }
.design-row > label { flex: 0 0 88px; font-size: 11px; color: var(--t-muted); }
.design-row > select { width: 110px; }
.design-row > .design-val { font-family: var(--t-font-pixel); font-size: 9px; color: var(--t-dim); width: 36px; text-align: right; flex-shrink: 0; }
.design-section-label { font-family: var(--t-font-pixel); font-size: 9px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--t-dim); margin: 12px 0 4px; }
.design-section-label:first-child { margin-top: 0; }
#design-advanced > summary { list-style: none; }
#design-advanced > summary::-webkit-details-marker { display: none; }
#design-advanced > summary:hover { color: var(--t-bright); }
#design-advanced .design-advanced-caret { transition: transform 0.15s; display: inline-block; }
#design-advanced[open] .design-advanced-caret { transform: rotate(90deg); }
/* Settings peek: hide only the dim background so the user can see the real UI behind, while the settings popup stays open and interactive */
body.settings-peeking #settings-overlay {
background: transparent !important;
pointer-events: none !important;
backdrop-filter: none !important;
-webkit-backdrop-filter: none !important;
}
body.settings-peeking #settings-overlay > div { pointer-events: auto; }
/* Toolbar toggles */
.toolbar-toggle {
@@ -118,7 +294,8 @@ body::after {
.card-spinner { animation: spin 0.8s linear infinite; }
/* Cards */
.card-bar { image-rendering: pixelated; height: 3px; }
.card-bar { image-rendering: pixelated; height: var(--ui-bar-height, 3px); }
.board-card > .card-bar { border-top-left-radius: var(--ui-radius-card); border-top-right-radius: var(--ui-radius-card); }
.board-card { min-height: var(--card-min-h, 180px); }
.card-layer { position: relative; z-index: 1; }
.card-has-cover {
@@ -163,8 +340,8 @@ body::after {
.card-group::after { top: 8px; opacity: 0.3; left: 8px; right: 8px; }
.card-group-badge {
position: absolute;
top: -6px;
right: -6px;
top: 6px;
right: 6px;
min-width: 20px;
height: 20px;
padding: 0 6px;
@@ -212,7 +389,7 @@ body::after {
box-shadow: 0 4px 16px rgba(0,0,0,0.4);
z-index: 10;
}
.card-glow:hover { box-shadow: 0 0 16px -3px var(--glow-color, rgba(56, 189, 248, 0.15)); }
.card-glow:hover { box-shadow: var(--ui-shadow-card), 0 0 16px -3px var(--glow-color, rgba(56, 189, 248, 0.15)); }
.card-selected { outline: 2px solid var(--t-accent) !important; outline-offset: -2px; }
.card-select-check {
position: absolute; top: 6px; left: 6px; width: 18px; height: 18px;
@@ -541,7 +718,7 @@ body.detail-image-fs-open { overflow: hidden; }
/* Prose (markdown) */
.prose { line-height: 1.75; }
.prose h1, .prose h2, .prose h3, .prose h4 { color: var(--t-bright); font-family: var(--t-font-pixel, 'Silkscreen', cursive); margin: 1.5em 0 0.6em; font-weight: 700; }
.prose h1, .prose h2, .prose h3, .prose h4 { color: var(--t-bright); font-family: var(--t-font-headline, var(--t-font-pixel, 'Silkscreen', cursive)); margin: 1.5em 0 0.6em; font-weight: 700; }
.prose h1 { font-size: 1.8em; padding-bottom: 0.3em; border-bottom: 1px solid var(--t-border); }
.prose h2 { font-size: 1.4em; }
.prose h3 { font-size: 1.15em; }