520 lines
16 KiB
CSS
520 lines
16 KiB
CSS
body { font-family: 'JetBrains Mono', monospace; }
|
|
.font-pixel { font-family: var(--t-font-pixel, 'Silkscreen', cursive) !important; }
|
|
|
|
/* Scrollbars */
|
|
* {
|
|
scrollbar-width: thin;
|
|
scrollbar-color: var(--t-border) transparent;
|
|
}
|
|
*::-webkit-scrollbar { width: 6px; height: 6px; }
|
|
*::-webkit-scrollbar-track { background: transparent; }
|
|
*::-webkit-scrollbar-thumb {
|
|
background: var(--t-border);
|
|
border-radius: 3px;
|
|
}
|
|
*::-webkit-scrollbar-thumb:hover { background: var(--t-dim); }
|
|
*::-webkit-scrollbar-corner { background: transparent; }
|
|
|
|
/* Scanlines */
|
|
body::after {
|
|
content: '';
|
|
position: fixed;
|
|
inset: 0;
|
|
pointer-events: none;
|
|
z-index: 9999;
|
|
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);
|
|
}
|
|
|
|
/* Blinking cursor */
|
|
.cursor-blink::after { content: '_'; animation: blink 1s step-end infinite; }
|
|
@keyframes blink { 50% { opacity: 0; } }
|
|
|
|
/* Line clamp */
|
|
.line-clamp-2, .line-clamp-3 { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
|
|
.line-clamp-2 { -webkit-line-clamp: 2; }
|
|
.line-clamp-3 { -webkit-line-clamp: 3; }
|
|
|
|
/* Cards */
|
|
.card-bar { image-rendering: pixelated; height: 3px; }
|
|
.board-card { min-height: 180px; }
|
|
.card-layer { position: relative; z-index: 1; }
|
|
.card-has-cover {
|
|
background-size: cover;
|
|
background-position: center;
|
|
background-repeat: no-repeat;
|
|
overflow: hidden;
|
|
}
|
|
.card-group.card-has-cover {
|
|
overflow: visible;
|
|
}
|
|
.card-cover-overlay {
|
|
position: absolute;
|
|
inset: 0;
|
|
background: linear-gradient(180deg, rgba(15, 23, 42, 0.22) 0%, rgba(15, 23, 42, 0.7) 62%, rgba(15, 23, 42, 0.86) 100%);
|
|
pointer-events: none;
|
|
z-index: 0;
|
|
}
|
|
|
|
/* Group stacking effect */
|
|
.card-group {
|
|
position: relative;
|
|
}
|
|
.card-group::before,
|
|
.card-group::after {
|
|
content: '';
|
|
position: absolute;
|
|
left: 4px; right: 4px;
|
|
height: 100%;
|
|
border: 1px solid var(--t-border);
|
|
background: var(--t-surface);
|
|
border-radius: inherit;
|
|
z-index: -1;
|
|
}
|
|
.card-group::before { top: 4px; opacity: 0.6; }
|
|
.card-group::after { top: 8px; opacity: 0.3; left: 8px; right: 8px; }
|
|
.card-group-badge {
|
|
position: absolute;
|
|
top: -6px;
|
|
right: -6px;
|
|
min-width: 20px;
|
|
height: 20px;
|
|
padding: 0 6px;
|
|
border-radius: 999px;
|
|
box-sizing: border-box;
|
|
white-space: nowrap;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 10px;
|
|
font-weight: 700;
|
|
z-index: 5;
|
|
}
|
|
|
|
/* Group sidebar */
|
|
.sidebar-card { border-left-width: 2px; }
|
|
|
|
/* Drop-on-card group indicator */
|
|
.card-drop-group {
|
|
outline: 2px solid var(--t-accent2) !important;
|
|
outline-offset: -2px;
|
|
box-shadow: 0 0 20px -4px var(--t-accent2) !important;
|
|
}
|
|
.card-thumb {
|
|
position: absolute;
|
|
top: 12px;
|
|
right: 12px;
|
|
width: 44px;
|
|
height: 44px;
|
|
border-radius: 50%;
|
|
background-size: cover;
|
|
background-position: center;
|
|
border: 2px solid var(--t-border);
|
|
box-shadow: 0 2px 8px rgba(0,0,0,0.3);
|
|
z-index: 2;
|
|
transition: width 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), height 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), margin 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.2s ease, box-shadow 0.25s ease;
|
|
}
|
|
.card-thumb {
|
|
transform-origin: center center;
|
|
}
|
|
.card-thumb:hover {
|
|
width: 80px;
|
|
height: 80px;
|
|
margin-top: -18px;
|
|
margin-right: -18px;
|
|
border-color: var(--t-muted);
|
|
box-shadow: 0 4px 16px rgba(0,0,0,0.4);
|
|
z-index: 10;
|
|
background-size: cover;
|
|
background-repeat: no-repeat;
|
|
}
|
|
.card-glow:hover { box-shadow: 0 0 16px -3px var(--glow-color, rgba(56, 189, 248, 0.15)); }
|
|
.card-dragging { opacity: 0.15; transform: scale(0.95); }
|
|
|
|
/* Drop indicators — thick glowing bar */
|
|
.card-drop-before::before,
|
|
.card-drop-after::after {
|
|
content: '';
|
|
position: absolute;
|
|
top: 8px;
|
|
bottom: 8px;
|
|
width: 4px;
|
|
background: var(--t-accent);
|
|
border-radius: 2px;
|
|
box-shadow: 0 0 12px var(--t-accent), 0 0 4px var(--t-accent);
|
|
z-index: 10;
|
|
}
|
|
.card-drop-before::before { left: -6px; }
|
|
.card-drop-after::after { right: -6px; }
|
|
|
|
/* Group fan preview */
|
|
.group-fan {
|
|
position: fixed;
|
|
z-index: 50;
|
|
padding: 8px;
|
|
background: var(--t-bg);
|
|
border: 1px solid var(--t-border);
|
|
border-radius: 6px;
|
|
box-shadow: 0 8px 30px -6px rgba(0,0,0,0.4);
|
|
pointer-events: auto;
|
|
animation: fanIn 0.25s ease;
|
|
max-width: min(720px, 95vw);
|
|
}
|
|
@keyframes fanIn {
|
|
from { opacity: 0; transform: translateY(6px) scale(0.95); }
|
|
to { opacity: 1; transform: translateY(0) scale(1); }
|
|
}
|
|
.group-fan-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(var(--fan-cols, 6), 104px);
|
|
gap: 5px;
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
.group-fan-grid::after {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0; bottom: 0; right: 0;
|
|
width: 0;
|
|
background: linear-gradient(to right, transparent, var(--t-bg));
|
|
pointer-events: none;
|
|
transition: width 0.2s;
|
|
}
|
|
.group-fan-grid.has-more::after { width: 40px; }
|
|
.group-fan-card {
|
|
width: 104px;
|
|
background: var(--t-surface);
|
|
border: 1px solid var(--t-border);
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
overflow: hidden;
|
|
transition: border-color 0.12s, transform 0.12s;
|
|
}
|
|
.group-fan-card:hover {
|
|
border-color: var(--t-muted);
|
|
box-shadow: 0 2px 8px rgba(0,0,0,0.25);
|
|
}
|
|
.group-fan-bar { height: 2px; }
|
|
.group-fan-title {
|
|
padding: 5px 6px;
|
|
font-size: 9px;
|
|
line-height: 1.3;
|
|
color: var(--t-bright);
|
|
display: -webkit-box;
|
|
-webkit-line-clamp: 2;
|
|
-webkit-box-orient: vertical;
|
|
overflow: hidden;
|
|
}
|
|
.group-fan-thumb {
|
|
height: 44px;
|
|
background-size: cover;
|
|
background-position: center;
|
|
}
|
|
|
|
/* Board card animation */
|
|
#board > div {
|
|
transition: transform 0.2s ease, opacity 0.2s ease;
|
|
}
|
|
|
|
/* Zen mode */
|
|
html.detail-zen-open,
|
|
body.detail-zen-open { overflow: hidden; }
|
|
#detail.zen > div { inset: 0 !important; border: none !important; border-radius: 0; overflow-y: auto; }
|
|
#detail.zen #detail-sidebar { display: none !important; }
|
|
#detail.zen .card-bar { display: none; }
|
|
#detail.zen #detail-scroll {
|
|
max-width: 680px;
|
|
margin: 0 auto;
|
|
padding: 3rem 2rem;
|
|
overflow: visible !important;
|
|
}
|
|
#detail.zen #detail-scroll #detail-title { font-size: 1.6rem; margin-bottom: 1.5rem; }
|
|
#detail.zen #detail-scroll #detail-body { font-size: 1rem; line-height: 1.85; }
|
|
#detail.zen #detail-scroll #detail-meta { display: none; }
|
|
#detail.zen #detail-backlinks { display: none; }
|
|
#detail.zen #detail-controls {
|
|
position: fixed !important;
|
|
top: 1rem !important;
|
|
right: 1rem !important;
|
|
z-index: 120;
|
|
opacity: 0.15;
|
|
transition: opacity 0.2s;
|
|
}
|
|
#detail.zen #detail-controls:hover { opacity: 1; }
|
|
|
|
/* Detail close morph */
|
|
.detail-close-frame {
|
|
z-index: 130;
|
|
pointer-events: none;
|
|
border: 3px solid var(--t-accent2);
|
|
border-radius: 10px;
|
|
background: transparent;
|
|
opacity: 0.95;
|
|
box-sizing: border-box;
|
|
will-change: left, top, width, height, opacity, border-radius;
|
|
transition: left 0.34s cubic-bezier(0.22, 1, 0.36, 1), top 0.34s cubic-bezier(0.22, 1, 0.36, 1), width 0.34s cubic-bezier(0.22, 1, 0.36, 1), height 0.34s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.34s ease, border-radius 0.34s ease;
|
|
}
|
|
.card-morph-target {
|
|
animation: cardMorphTarget 0.34s ease;
|
|
}
|
|
@keyframes cardMorphTarget {
|
|
0% { transform: scale(1); box-shadow: 0 0 0 0 transparent; }
|
|
45% { transform: scale(1.015); box-shadow: 0 0 0 2px var(--t-accent2); }
|
|
100% { transform: scale(1); box-shadow: 0 0 0 0 transparent; }
|
|
}
|
|
|
|
/* Undo hint */
|
|
#undo-hint { opacity: 0; transition: opacity 0.3s, transform 0.3s; pointer-events: none; border-radius: 4px; }
|
|
|
|
/* Overlays */
|
|
.overlay { transition: opacity 0.15s; }
|
|
.overlay:not(.open) { opacity: 0; pointer-events: none; }
|
|
.overlay.open { opacity: 1; }
|
|
|
|
/* Detail image fullscreen */
|
|
body.detail-image-fs-open { overflow: hidden; }
|
|
#detail-body img { cursor: zoom-in; }
|
|
.detail-image-fs-overlay {
|
|
position: fixed;
|
|
inset: 0;
|
|
z-index: 170;
|
|
display: none;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 24px;
|
|
background: rgba(2, 6, 23, 0.94);
|
|
}
|
|
.detail-image-fs-overlay.open { display: flex; }
|
|
.detail-image-fs-stage {
|
|
position: relative;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
.detail-image-fs-img {
|
|
max-width: min(96vw, 1900px);
|
|
max-height: 94vh;
|
|
object-fit: contain;
|
|
border: 1px solid var(--t-border);
|
|
box-shadow: 0 16px 60px rgba(0, 0, 0, 0.55);
|
|
cursor: grab;
|
|
user-select: none;
|
|
-webkit-user-drag: none;
|
|
will-change: transform;
|
|
}
|
|
.detail-image-fs-overlay.dragging .detail-image-fs-img { cursor: grabbing; }
|
|
.detail-image-fs-close {
|
|
position: fixed;
|
|
top: 12px;
|
|
right: 12px;
|
|
z-index: 171;
|
|
width: 34px;
|
|
height: 34px;
|
|
display: grid;
|
|
place-items: center;
|
|
padding: 0;
|
|
border: none;
|
|
background: transparent;
|
|
color: #fff;
|
|
font-family: inherit;
|
|
cursor: pointer;
|
|
text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
|
|
transition: color 0.12s, transform 0.12s;
|
|
}
|
|
.detail-image-fs-close:hover {
|
|
color: var(--t-accent);
|
|
transform: scale(1.06);
|
|
}
|
|
|
|
/* Theme picker */
|
|
.theme-picker { position: relative; }
|
|
.theme-menu { display: none; position: absolute; bottom: calc(100% + 8px); right: 0; z-index: 200; }
|
|
.theme-picker.open .theme-menu { display: block; }
|
|
|
|
/* Buckets */
|
|
.bucket-tab.active { border-color: var(--t-accent); color: var(--t-accent); }
|
|
.bucket-tab.drag-over {
|
|
background: var(--t-accent) !important;
|
|
color: var(--t-bg) !important;
|
|
border-color: var(--t-accent) !important;
|
|
transform: scale(1.05);
|
|
transition: all 0.15s ease;
|
|
}
|
|
.bucket-tab.drag-over i,
|
|
.bucket-tab.drag-over span { color: inherit !important; }
|
|
.bucket-add.drag-over {
|
|
background: var(--t-accent) !important;
|
|
color: var(--t-bg) !important;
|
|
transform: scale(1.05);
|
|
transition: all 0.15s ease;
|
|
}
|
|
.bucket-add.drag-over i,
|
|
.bucket-add.drag-over span { color: inherit !important; }
|
|
.bucket-drop-left { border-left: 3px solid var(--t-accent) !important; }
|
|
.bucket-drop-right { border-right: 3px solid var(--t-accent) !important; }
|
|
|
|
/* Toolbar */
|
|
.toolbar-btn { color: var(--t-muted); padding: 4px 6px; border-radius: 3px; transition: color 0.1s, background 0.1s; cursor: pointer; background: none; border: none; font-family: inherit; }
|
|
.toolbar-btn:hover { color: var(--t-bright); background: var(--t-raised); }
|
|
|
|
/* Editor */
|
|
#editor-body { tab-size: 4; resize: none; }
|
|
#editor-body:focus { outline: none; }
|
|
|
|
/* Search */
|
|
#search { backdrop-filter: blur(4px); }
|
|
#search-input { caret-color: var(--t-accent); }
|
|
#search-input:focus { outline: none; }
|
|
.search-hit { scroll-margin: 8px; }
|
|
.search-hit.active { background: var(--t-raised); }
|
|
.search-hit mark, #search-preview-content mark { background: none; color: var(--t-accent); font-weight: 700; }
|
|
|
|
/* Context menu */
|
|
#ctx-menu .ctx-item, #bucket-ctx .ctx-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 6px 12px;
|
|
font-size: 11px;
|
|
color: var(--t-text);
|
|
cursor: pointer;
|
|
transition: background 0.1s;
|
|
width: 100%;
|
|
background: none;
|
|
border: none;
|
|
font-family: inherit;
|
|
text-align: left;
|
|
}
|
|
#ctx-menu .ctx-item:hover, #bucket-ctx .ctx-item:hover { background: var(--t-raised); }
|
|
#ctx-menu .ctx-item.danger, #bucket-ctx .ctx-item.danger { color: var(--t-danger); }
|
|
#ctx-menu .ctx-item.danger:hover, #bucket-ctx .ctx-item.danger:hover { background: var(--t-danger); color: var(--t-bg); }
|
|
|
|
/* Card links */
|
|
.card-link { color: var(--t-accent2); cursor: pointer; border-bottom: 1px dashed var(--t-accent2); transition: color 0.1s; }
|
|
.card-link:hover { color: var(--t-accent); border-color: var(--t-accent); }
|
|
.card-link.broken { color: var(--t-danger); border-color: var(--t-danger); opacity: 0.6; }
|
|
|
|
/* Autocomplete */
|
|
#link-ac .ac-item { padding: 6px 12px; cursor: pointer; transition: background 0.1s; }
|
|
#link-ac .ac-item:hover, #link-ac .ac-item.active { background: var(--t-raised); }
|
|
#link-ac .ac-item .ac-title { font-size: 12px; color: var(--t-bright); }
|
|
#link-ac .ac-item .ac-bucket { font-size: 9px; color: var(--t-dim); margin-left: 6px; }
|
|
|
|
/* Prose (markdown) */
|
|
.prose { line-height: 1.7; }
|
|
.prose h1, .prose h2, .prose h3, .prose h4 { color: var(--t-bright); font-family: var(--t-font-pixel, 'Silkscreen', cursive); margin: 1.25em 0 0.5em; }
|
|
.prose h1 { font-size: 1.4em; }
|
|
.prose h2 { font-size: 1.15em; }
|
|
.prose h3 { font-size: 1em; }
|
|
.prose p { margin: 0.6em 0; }
|
|
.prose a { color: var(--t-accent); text-decoration: underline; }
|
|
.prose strong { color: var(--t-bright); font-weight: 700; }
|
|
.prose em { font-style: italic; }
|
|
.prose code { background: var(--t-bg); border: 1px solid var(--t-border); padding: 0.15em 0.4em; border-radius: 3px; font-size: 0.88em; }
|
|
.prose pre { background: var(--t-bg); border: 1px solid var(--t-border); padding: 0.8em 1em; overflow-x: auto; margin: 0.8em 0; border-radius: 3px; }
|
|
.prose pre code { background: none; border: none; padding: 0; font-size: 0.85em; }
|
|
.prose ul, .prose ol { padding-left: 1.5em; margin: 0.6em 0; }
|
|
.prose li { margin: 0.25em 0; }
|
|
.prose li::marker { color: var(--t-dim); }
|
|
.prose blockquote { border-left: 3px solid var(--t-accent); padding-left: 1em; margin: 0.8em 0; color: var(--t-muted); }
|
|
.prose hr { border: none; border-top: 1px solid var(--t-border); margin: 1.2em 0; }
|
|
/* Todo checkboxes */
|
|
.prose input[type="checkbox"] {
|
|
appearance: none;
|
|
width: 30px;
|
|
height: 30px;
|
|
border: 1px solid var(--t-dim);
|
|
border-radius: 4px;
|
|
background: var(--t-bg);
|
|
cursor: pointer;
|
|
vertical-align: middle;
|
|
margin-right: 8px;
|
|
position: relative;
|
|
box-sizing: border-box;
|
|
}
|
|
.prose input[type="checkbox"]:checked {
|
|
background: var(--t-accent);
|
|
border-color: var(--t-accent);
|
|
}
|
|
.prose input[type="checkbox"]::after {
|
|
content: '';
|
|
position: absolute;
|
|
left: 9px;
|
|
top: 4px;
|
|
width: 8px;
|
|
height: 14px;
|
|
border: solid transparent;
|
|
border-width: 0 3px 3px 0;
|
|
transform: rotate(45deg);
|
|
opacity: 0;
|
|
transition: opacity 0.12s ease, border-color 0.12s ease;
|
|
}
|
|
.prose input[type="checkbox"]:checked::after {
|
|
border-color: var(--t-bg);
|
|
opacity: 1;
|
|
}
|
|
.prose input[type="checkbox"]:not(:checked):hover::after {
|
|
border-color: var(--t-accent);
|
|
opacity: 0.75;
|
|
}
|
|
.prose li:has(input[type="checkbox"]) { list-style: none; margin-left: -1.5em; }
|
|
|
|
.prose audio {
|
|
width: 100%;
|
|
max-width: 400px;
|
|
margin: 0.8em 0;
|
|
border-radius: 6px;
|
|
}
|
|
.prose img {
|
|
max-width: 100%;
|
|
border-radius: 4px;
|
|
border: 1px solid var(--t-border);
|
|
margin: 0.8em 0;
|
|
cursor: nwse-resize;
|
|
}
|
|
.prose img.resizing { outline: 2px solid var(--t-accent); }
|
|
.prose table { border-collapse: collapse; width: 100%; margin: 0.8em 0; }
|
|
.prose th, .prose td { border: 1px solid var(--t-border); padding: 0.4em 0.8em; text-align: left; }
|
|
.prose th { background: var(--t-raised); color: var(--t-bright); font-weight: 600; }
|
|
|
|
/* Temporary reading aid in open detail view (not persisted) */
|
|
#detail-body .detail-reading-resize {
|
|
position: relative;
|
|
padding-bottom: 1rem;
|
|
min-height: 1.8em;
|
|
}
|
|
#detail-body .detail-reading-resize:hover,
|
|
#detail-body .detail-reading-resize.resizing {
|
|
outline: 1px dashed var(--t-border);
|
|
outline-offset: 1px;
|
|
}
|
|
#detail-body .detail-font-dragline {
|
|
position: absolute;
|
|
left: 0.4rem;
|
|
right: 0.4rem;
|
|
bottom: 0.2rem;
|
|
height: 10px;
|
|
padding: 0;
|
|
border: none;
|
|
background: transparent;
|
|
cursor: ns-resize;
|
|
opacity: 0;
|
|
transition: opacity 0.12s ease;
|
|
}
|
|
#detail-body .detail-font-dragline::before {
|
|
content: '';
|
|
position: absolute;
|
|
left: 0;
|
|
right: 0;
|
|
top: 4px;
|
|
border-top: 1px dashed var(--t-border);
|
|
transition: border-color 0.12s ease;
|
|
}
|
|
#detail-body .detail-reading-resize:hover .detail-font-dragline,
|
|
#detail-body .detail-reading-resize.resizing .detail-font-dragline {
|
|
opacity: 1;
|
|
}
|
|
#detail-body .detail-font-dragline:hover::before,
|
|
#detail-body .detail-reading-resize.resizing .detail-font-dragline::before {
|
|
border-color: var(--t-accent);
|
|
}
|