thefoldwithin-earth/public/styles.css

104 lines
3.2 KiB
CSS
Raw Normal View History

2025-11-08 12:23:04 -06:00
/* ============================================================
2025-11-08 12:33:08 -06:00
THE FOLD WITHIN Self-Organizing Static Site Framework v2.3.3
2025-11-08 12:23:04 -06:00
============================================================ */
:root {
--bg: #0b0c10;
--fg: #f3f3f3;
--accent: #d0aa5b;
--muted: #8d8f95;
--line: #2a2d34;
}
2025-11-08 12:33:08 -06:00
2025-11-08 12:27:52 -06:00
html,body {
margin:0; padding:0;
background:var(--bg); color:var(--fg);
font-family:system-ui,sans-serif;
-webkit-font-smoothing:antialiased;
scroll-behavior:smooth;
2025-11-08 12:23:04 -06:00
}
2025-11-08 12:33:08 -06:00
/* Topbar */
2025-11-08 12:23:04 -06:00
.topbar {
2025-11-08 12:27:52 -06:00
position:fixed; top:0; left:0; right:0;
height:48px; display:flex; align-items:center;
gap:1em; background:#111; padding:0 1em;
z-index:300; box-shadow:0 2px 8px rgba(0,0,0,.3);
2025-11-08 12:23:04 -06:00
}
2025-11-08 12:27:52 -06:00
.topbar a { color:var(--accent); text-decoration:none; font-weight:500; }
.topbar a:hover{ color:var(--fg); }
2025-11-08 12:23:04 -06:00
.topbar button {
2025-11-08 12:27:52 -06:00
font-size:24px; background:transparent; color:var(--accent);
2025-11-08 12:33:08 -06:00
border:none; padding:4px 8px; cursor:pointer;
transition:color .2s;
2025-11-08 12:23:04 -06:00
}
2025-11-08 12:27:52 -06:00
.topbar button:hover{ color:var(--fg); }
2025-11-08 12:23:04 -06:00
2025-11-08 12:33:08 -06:00
/* Sidebar & overlay */
2025-11-08 12:21:47 -06:00
.sidebar {
2025-11-08 12:27:52 -06:00
position:fixed; top:48px; bottom:0; left:0;
width:85%; max-width:320px; overflow-y:auto;
background:#111; transform:translateX(-100%);
transition:transform .3s ease; padding:10px;
z-index:200; will-change:transform; border-right:1px solid var(--line);
2025-11-08 12:21:47 -06:00
}
2025-11-08 12:27:52 -06:00
.sidebar.open{ transform:translateX(0); }
2025-11-08 12:21:47 -06:00
.overlay {
2025-11-08 12:27:52 -06:00
position:fixed; inset:0; background:rgba(0,0,0,.45);
backdrop-filter:blur(4px); -webkit-backdrop-filter:blur(4px);
z-index:150; opacity:0; pointer-events:none; transition:opacity .3s ease;
2025-11-08 12:21:47 -06:00
}
2025-11-08 12:27:52 -06:00
.sidebar.open ~ .overlay{ opacity:1; pointer-events:all; }
2025-11-08 12:21:47 -06:00
2025-11-08 12:33:08 -06:00
/* Content */
2025-11-08 12:21:47 -06:00
.content {
2025-11-08 12:27:52 -06:00
margin-top:48px; padding:16px;
transition:margin-left .3s ease; max-width:960px;
2025-11-08 12:21:47 -06:00
}
2025-11-08 12:27:52 -06:00
@media (min-width:900px){
.sidebar{ transform:none!important; position:static;
width:280px; height:calc(100vh - 48px); z-index:auto; }
.content{ margin-left:280px; }
.overlay{ display:none!important; }
2025-11-08 12:21:47 -06:00
}
2025-11-08 12:27:52 -06:00
@media (max-width:899px){
.content{ margin-left:0!important; }
.viewer{ padding:12px; font-size:1.05em; line-height:1.6; }
#htmlView,#mdView{ min-height:calc(100vh - 60px); }
2025-11-08 12:23:04 -06:00
}
2025-11-08 12:33:08 -06:00
/* Viewer */
2025-11-08 12:23:04 -06:00
.viewer {
2025-11-08 12:33:08 -06:00
min-height: calc(100vh - 140px);
2025-11-08 12:27:52 -06:00
overflow:auto; max-width:820px;
2025-11-08 12:33:08 -06:00
margin:0 auto; padding-top:8px; padding-bottom:40px;
2025-11-08 12:27:52 -06:00
}
#htmlView{ width:100%; height:100%; border:none; background:#0b0c10; }
2025-11-08 12:33:08 -06:00
2025-11-08 12:27:52 -06:00
#mdView h1,#mdView h2,#mdView h3{ color:var(--accent); }
#mdView pre,#mdView code{
overflow-x:auto; word-break:break-word;
background:#111; padding:.5em; border-radius:4px; color:var(--accent);
}
#mdView blockquote{
border-left:3px solid var(--accent);
padding-left:12px; color:var(--muted); font-style:italic;
}
#mdView a{ color:var(--accent); }
2025-11-08 12:33:08 -06:00
/* Meta + pager */
2025-11-08 12:27:52 -06:00
.meta{ color:var(--muted); margin-bottom:12px; font-size:.9em; }
.pager{ display:flex; justify-content:space-between; padding:8px 0; }
button#prev,button#next{
background:transparent; border:1px solid var(--line); color:var(--fg);
border-radius:8px; padding:4px 10px; font-size:.95em; cursor:pointer;
transition:all .2s ease;
}
button#prev:hover,button#next:hover{
border-color:var(--accent); color:var(--accent);
}
2025-11-08 12:33:08 -06:00
/* Controls */
2025-11-08 12:27:52 -06:00
.controls{ display:flex; gap:.5em; margin-bottom:8px; }
select,#search{
2025-11-08 12:33:08 -06:00
background:#0b0c10; color:var(--