2025-11-08 12:59:46 -06:00
|
|
|
/* ============================================================
|
2025-11-08 14:16:58 -06:00
|
|
|
The Fold Within — Styles v2.6.2
|
|
|
|
|
Independent Scroll + Desktop Collapse + Overlap Fix
|
2025-11-08 12:59:46 -06:00
|
|
|
============================================================ */
|
|
|
|
|
|
|
|
|
|
:root {
|
2025-11-08 13:57:15 -06:00
|
|
|
--bg: #0b0c10;
|
|
|
|
|
--fg: #f3f3f3;
|
|
|
|
|
--accent: #d0aa5b;
|
|
|
|
|
--muted: #8d8f95;
|
|
|
|
|
--line: #2a2d34;
|
|
|
|
|
}
|
|
|
|
|
|
2025-11-08 14:16:58 -06:00
|
|
|
/* Base */
|
2025-11-08 13:57:15 -06:00
|
|
|
html, body {
|
|
|
|
|
margin: 0;
|
|
|
|
|
padding: 0;
|
|
|
|
|
background: var(--bg);
|
|
|
|
|
color: var(--fg);
|
|
|
|
|
font-family: system-ui, sans-serif;
|
|
|
|
|
height: 100%;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
-webkit-font-smoothing: antialiased;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* ============================================================
|
|
|
|
|
Topbar
|
|
|
|
|
============================================================ */
|
|
|
|
|
.topbar {
|
|
|
|
|
position: fixed;
|
2025-11-08 14:16:58 -06:00
|
|
|
top: 0; left: 0; right: 0;
|
2025-11-08 13:57:15 -06:00
|
|
|
height: 48px;
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
gap: 1em;
|
|
|
|
|
background: #111;
|
|
|
|
|
padding: 0 1em;
|
|
|
|
|
z-index: 300;
|
2025-11-08 14:16:58 -06:00
|
|
|
box-shadow: 0 2px 8px rgba(0,0,0,.3);
|
2025-11-08 13:57:15 -06:00
|
|
|
}
|
|
|
|
|
.topbar a {
|
|
|
|
|
color: var(--accent);
|
|
|
|
|
text-decoration: none;
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
}
|
2025-11-08 14:16:58 -06:00
|
|
|
.topbar a:hover { color: var(--fg); }
|
2025-11-08 13:57:15 -06:00
|
|
|
.topbar button {
|
|
|
|
|
font-size: 24px;
|
|
|
|
|
background: transparent;
|
|
|
|
|
color: var(--accent);
|
|
|
|
|
border: none;
|
|
|
|
|
padding: 4px 8px;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
}
|
2025-11-08 14:16:58 -06:00
|
|
|
.topbar button:hover { color: var(--fg); }
|
2025-11-08 13:57:15 -06:00
|
|
|
|
|
|
|
|
/* ============================================================
|
2025-11-08 14:16:58 -06:00
|
|
|
Layout Containers
|
2025-11-08 13:57:15 -06:00
|
|
|
============================================================ */
|
|
|
|
|
.page {
|
|
|
|
|
display: flex;
|
|
|
|
|
position: relative;
|
|
|
|
|
height: calc(100vh - 48px);
|
|
|
|
|
margin-top: 48px;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* ============================================================
|
2025-11-08 14:16:58 -06:00
|
|
|
Sidebar (base shared)
|
2025-11-08 13:57:15 -06:00
|
|
|
============================================================ */
|
|
|
|
|
.sidebar {
|
|
|
|
|
background: #111;
|
2025-11-08 14:16:58 -06:00
|
|
|
width: 280px;
|
2025-11-08 13:57:15 -06:00
|
|
|
overflow-y: auto;
|
2025-11-08 14:16:58 -06:00
|
|
|
transform: translateX(0);
|
|
|
|
|
transition: transform .3s ease, width .3s ease;
|
2025-11-08 13:57:15 -06:00
|
|
|
padding: 10px;
|
|
|
|
|
z-index: 200;
|
|
|
|
|
border-right: 1px solid var(--line);
|
|
|
|
|
}
|
|
|
|
|
|
2025-11-08 14:16:58 -06:00
|
|
|
/* collapsed (desktop + mobile toggle) */
|
|
|
|
|
.sidebar.collapsed {
|
|
|
|
|
transform: translateX(-280px);
|
2025-11-08 13:57:15 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.overlay {
|
|
|
|
|
position: fixed;
|
|
|
|
|
inset: 0;
|
2025-11-08 14:16:58 -06:00
|
|
|
background: rgba(0,0,0,.45);
|
2025-11-08 13:57:15 -06:00
|
|
|
backdrop-filter: blur(4px);
|
|
|
|
|
opacity: 0;
|
|
|
|
|
pointer-events: none;
|
2025-11-08 14:16:58 -06:00
|
|
|
transition: opacity .3s ease;
|
2025-11-08 13:57:15 -06:00
|
|
|
z-index: 150;
|
|
|
|
|
}
|
|
|
|
|
.sidebar.open ~ .overlay {
|
|
|
|
|
opacity: 1;
|
|
|
|
|
pointer-events: all;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* ============================================================
|
2025-11-08 14:16:58 -06:00
|
|
|
Desktop Sidebar (≥900px)
|
2025-11-08 13:57:15 -06:00
|
|
|
============================================================ */
|
2025-11-08 14:16:58 -06:00
|
|
|
@media (min-width:900px){
|
2025-11-08 13:57:15 -06:00
|
|
|
.sidebar {
|
|
|
|
|
position: fixed;
|
|
|
|
|
top: 48px;
|
|
|
|
|
bottom: 0;
|
|
|
|
|
left: 0;
|
|
|
|
|
width: 280px;
|
2025-11-08 14:16:58 -06:00
|
|
|
transform: none;
|
|
|
|
|
}
|
|
|
|
|
.sidebar.collapsed {
|
|
|
|
|
transform: translateX(-280px);
|
2025-11-08 13:36:05 -06:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2025-11-08 13:57:15 -06:00
|
|
|
/* ============================================================
|
|
|
|
|
Content Area
|
|
|
|
|
============================================================ */
|
|
|
|
|
.content {
|
|
|
|
|
flex: 1;
|
|
|
|
|
position: relative;
|
|
|
|
|
overflow-y: auto;
|
|
|
|
|
overflow-x: hidden;
|
|
|
|
|
padding: 16px;
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
max-width: 960px;
|
2025-11-08 14:16:58 -06:00
|
|
|
margin-left: 280px;
|
|
|
|
|
transition: margin-left .3s ease;
|
|
|
|
|
}
|
|
|
|
|
.content.full {
|
2025-11-08 13:57:15 -06:00
|
|
|
margin-left: 0;
|
2025-11-08 13:22:29 -06:00
|
|
|
}
|
2025-11-08 14:16:58 -06:00
|
|
|
@media(max-width:899px){
|
|
|
|
|
.content { margin-left: 0; padding: 12px; }
|
2025-11-08 12:59:46 -06:00
|
|
|
}
|
|
|
|
|
|
2025-11-08 13:57:15 -06:00
|
|
|
/* ============================================================
|
|
|
|
|
Viewer + HTML Frame
|
|
|
|
|
============================================================ */
|
2025-11-08 14:16:58 -06:00
|
|
|
.viewer, #htmlView {
|
2025-11-08 13:57:15 -06:00
|
|
|
display: block;
|
|
|
|
|
width: 100%;
|
|
|
|
|
flex: 1 1 auto;
|
|
|
|
|
margin-top: 0;
|
|
|
|
|
padding-top: 0;
|
|
|
|
|
min-height: calc(100vh - 48px);
|
|
|
|
|
overflow-y: auto;
|
2025-11-08 14:16:58 -06:00
|
|
|
transition: opacity .25s ease;
|
2025-11-08 12:59:46 -06:00
|
|
|
}
|
2025-11-08 14:16:58 -06:00
|
|
|
.viewer.fade-in, #htmlView.fade-in { opacity: 1; }
|
|
|
|
|
.viewer:not(.fade-in), #htmlView:not(.fade-in) { opacity: 0; }
|
|
|
|
|
#htmlView { border: none; background: #0b0c10; }
|
2025-11-08 13:36:05 -06:00
|
|
|
|
2025-11-08 13:57:15 -06:00
|
|
|
/* ============================================================
|
|
|
|
|
Markdown Formatting
|
|
|
|
|
============================================================ */
|
2025-11-08 14:16:58 -06:00
|
|
|
#mdView h1, #mdView h2, #mdView h3 { color: var(--accent); }
|
|
|
|
|
#mdView pre, #mdView code {
|
2025-11-08 13:57:15 -06:00
|
|
|
overflow-x: auto;
|
|
|
|
|
background: #111;
|
2025-11-08 14:16:58 -06:00
|
|
|
padding: .5em;
|
2025-11-08 13:57:15 -06:00
|
|
|
border-radius: 4px;
|
|
|
|
|
color: var(--accent);
|
|
|
|
|
}
|
|
|
|
|
#mdView blockquote {
|
|
|
|
|
border-left: 3px solid var(--accent);
|
|
|
|
|
padding-left: 12px;
|
|
|
|
|
color: var(--muted);
|
|
|
|
|
font-style: italic;
|
|
|
|
|
}
|
2025-11-08 14:16:58 -06:00
|
|
|
#mdView a { color: var(--accent); }
|
|
|
|
|
#mdView img { max-width: 100%; border-radius: 8px; }
|
2025-11-08 13:57:15 -06:00
|
|
|
|
|
|
|
|
/* ============================================================
|
2025-11-08 14:16:58 -06:00
|
|
|
Warnings + Meta + Pager
|
2025-11-08 13:57:15 -06:00
|
|
|
============================================================ */
|
|
|
|
|
.md-warn {
|
|
|
|
|
background: #3b0c0c;
|
|
|
|
|
color: #ffd4d4;
|
|
|
|
|
border: 1px solid #6c1f1f;
|
|
|
|
|
border-radius: 8px;
|
|
|
|
|
padding: 10px 12px;
|
|
|
|
|
margin: 10px auto;
|
|
|
|
|
max-width: 820px;
|
|
|
|
|
}
|
2025-11-08 14:16:58 -06:00
|
|
|
.meta { color: var(--muted); margin-bottom: 12px; font-size: .9em; }
|
2025-11-08 13:57:15 -06:00
|
|
|
|
|
|
|
|
.pager {
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
padding: 8px 0;
|
|
|
|
|
}
|
2025-11-08 14:16:58 -06:00
|
|
|
button#prev, button#next {
|
2025-11-08 13:57:15 -06:00
|
|
|
background: transparent;
|
|
|
|
|
border: 1px solid var(--line);
|
|
|
|
|
color: var(--fg);
|
|
|
|
|
border-radius: 8px;
|
|
|
|
|
padding: 4px 10px;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
}
|
2025-11-08 14:16:58 -06:00
|
|
|
button#prev:hover, button#next:hover {
|
2025-11-08 13:57:15 -06:00
|
|
|
border-color: var(--accent);
|
|
|
|
|
color: var(--accent);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* ============================================================
|
|
|
|
|
Tree + Controls
|
|
|
|
|
============================================================ */
|
2025-11-08 14:16:58 -06:00
|
|
|
.controls { display: flex; gap: .5em; margin-bottom: 8px; }
|
|
|
|
|
select, #search {
|
2025-11-08 13:57:15 -06:00
|
|
|
background: #0b0c10;
|
|
|
|
|
color: var(--fg);
|
|
|
|
|
border: 1px solid var(--line);
|
|
|
|
|
border-radius: 4px;
|
|
|
|
|
padding: 6px;
|
|
|
|
|
}
|
|
|
|
|
.dir .label {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
padding: 4px 6px;
|
|
|
|
|
color: var(--accent);
|
|
|
|
|
font-weight: 600;
|
2025-11-08 12:59:46 -06:00
|
|
|
}
|
2025-11-08 13:57:15 -06:00
|
|
|
.dir .label::before {
|
|
|
|
|
content: "▶";
|
|
|
|
|
margin-right: 6px;
|
2025-11-08 14:16:58 -06:00
|
|
|
font-size: .8em;
|
2025-11-08 13:57:15 -06:00
|
|
|
color: var(--muted);
|
2025-11-08 12:59:46 -06:00
|
|
|
}
|
2025-11-08 14:16:58 -06:00
|
|
|
.dir.open .label::before { content: "▼"; }
|
2025-11-08 13:57:15 -06:00
|
|
|
|
|
|
|
|
/* ============================================================
|
2025-11-08 14:16:58 -06:00
|
|
|
Mobile (≤899px)
|
2025-11-08 13:57:15 -06:00
|
|
|
============================================================ */
|
2025-11-08 14:16:58 -06:00
|
|
|
@media (max-width:899px){
|
2025-11-08 13:57:15 -06:00
|
|
|
.sidebar {
|
|
|
|
|
position: fixed !important;
|
|
|
|
|
top: 48px !important;
|
|
|
|
|
bottom: 0 !important;
|
|
|
|
|
left: 0 !important;
|
|
|
|
|
width: 85% !important;
|
|
|
|
|
max-width: 320px !important;
|
|
|
|
|
background: #111 !important;
|
|
|
|
|
transform: translateX(-100%) !important;
|
2025-11-08 14:16:58 -06:00
|
|
|
transition: transform .3s ease;
|
2025-11-08 13:57:15 -06:00
|
|
|
overflow-y: auto;
|
|
|
|
|
z-index: 200 !important;
|
|
|
|
|
}
|
2025-11-08 14:16:58 -06:00
|
|
|
.sidebar.open { transform: translateX(0) !important; }
|
|
|
|
|
.overlay { opacity: 0; pointer-events: none; }
|
2025-11-08 13:57:15 -06:00
|
|
|
.sidebar.open ~ .overlay {
|
2025-11-08 14:16:58 -06:00
|
|
|
opacity: 1; pointer-events: all;
|
2025-11-08 13:57:15 -06:00
|
|
|
}
|
|
|
|
|
main.content {
|
|
|
|
|
margin-left: 0 !important;
|
|
|
|
|
height: auto !important;
|
|
|
|
|
overflow-y: auto;
|
|
|
|
|
padding: 12px;
|
|
|
|
|
}
|
|
|
|
|
}
|