Update styles.css

This commit is contained in:
Mark Randall Havens △ The Empathic Technologist ⟁ Doctor Who 42 2025-11-08 15:25:41 -06:00 committed by GitHub
parent 61677cbf57
commit 79a281ebbf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,145 +1,117 @@
/* ---------- Theme ---------- */
:root{ :root{
--bg:#0c0c0c; --bg:#0b0b0b;
--panel:#141414; --fg:#e6e3d7;
--text:#e6e3d7; --accent:#e0b84b;
--sub:#b9b39a; --topbar-h:52px;
--gold:#d4af37;
--topbar-h:56px;
--sidebar-w:320px;
color-scheme:dark;
} }
*{ box-sizing:border-box } html,body{
html,body{ height:100% }
body{
margin:0; margin:0;
font:16px/1.55 Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial; padding:0;
height:100%;
background:var(--bg); background:var(--bg);
color:var(--text); color:var(--fg);
font-family:Inter,ui-sans-serif,system-ui;
} }
/* ---------- Top bar ---------- */
.topbar{ .topbar{
position:sticky; top:0; z-index:50; position:fixed;
top:0;left:0;right:0;
height:var(--topbar-h); height:var(--topbar-h);
display:flex; align-items:center; gap:14px; display:flex;
padding:0 12px 0 8px; align-items:center;
background:linear-gradient(180deg,#0f0f0f,#0b0b0b); background:#111;
border-bottom:1px solid #151515; color:var(--accent);
z-index:1000;
border-bottom:1px solid #222;
padding:0 1rem;
} }
.icon-btn{ #menuBtn{
min-width:44px; height:36px; padding:0 10px; font-size:1.4rem;
display:inline-grid; place-items:center; background:none;
border-radius:10px; border:1px solid #262626; border:0;
background:#121212; color:var(--text); color:var(--accent);
cursor:pointer; cursor:pointer;
margin-right:1rem;
} }
.icon-btn:focus-visible{ outline:2px solid var(--gold) }
.primary-nav{ .primary-nav{
display:flex; gap:20px; align-items:center; padding-left:4px; display:flex;
flex-wrap:wrap;
align-items:center;
gap:24px;
} }
.primary-nav a{ .primary-nav a{
color:var(--gold); text-decoration:none; font-weight:600; letter-spacing:.2px; color:var(--accent);
text-decoration:none;
font-weight:600;
} }
.primary-nav .brand{ margin-right:6px }
.spacer{ flex:1 } .primary-nav a:hover{ text-shadow:0 0 5px var(--accent); }
/* ---------- Layout ---------- */ #sidebar{
#appLayout{ display:flex; min-height:calc(100vh - var(--topbar-h)) } position:fixed;
top:var(--topbar-h);
/* Sidebar */ left:0;
.sidebar{ width:280px;
position:relative; bottom:0;
width:var(--sidebar-w);
flex:0 0 var(--sidebar-w);
background:var(--panel);
border-right:1px solid #121212;
overflow:auto; overflow:auto;
will-change:transform; background:#111;
transition:transform .25s ease; border-right:1px solid #222;
z-index:20;
}
/* Desktop collapse */
body.sidebar-collapsed .sidebar{ transform:translateX(calc(-1 * var(--sidebar-w))) }
body.sidebar-collapsed .content{ margin-left:0 }
/* Mobile overlay */
@media (max-width:1024px){
.sidebar{
position:fixed; inset:var(--topbar-h) auto 0 0;
max-height:calc(100vh - var(--topbar-h));
transform:translateX(-100%); transform:translateX(-100%);
box-shadow:0 8px 24px rgba(0,0,0,.35); transition:transform .3s;
} z-index:900;
body.sidebar-open .sidebar{ transform:none }
} }
/* Content */ body.sidebar-open #sidebar{ transform:translateX(0); }
.sidebar-controls{
display:flex;
flex-direction:column;
gap:8px;
padding:1rem;
}
#postList{
list-style:none;
margin:0;
padding:0 1rem 2rem;
}
#postList li{
margin:.5rem 0;
}
#postList a{
color:var(--fg);
text-decoration:none;
}
#postList a:hover{ color:var(--accent); }
.content{ .content{
position:relative; margin-top:var(--topbar-h);
flex:1 1 auto; margin-left:0;
margin-left:var(--sidebar-w); transition:margin-left .3s;
/* tighter edges so HTML/MD look identical */ min-height:calc(100vh - var(--topbar-h));
padding:8px 24px 32px 8px;
transition:margin-left .25s ease;
} }
@media (max-width:1024px){ .content{ margin-left:0 } } @media(min-width:1024px){
@media (min-width:1025px){ #sidebar{ transform:translateX(0); }
body.sidebar-open .content{ margin-left:var(--sidebar-w) } .content{ margin-left:280px; }
} }
/* Sidebar header */ .viewer > *{
.side-head{ max-width:720px;
position:sticky; top:0; z-index:5; margin:auto;
background:linear-gradient(180deg,#171717,#131313); padding:2rem 1rem;
border-bottom:1px solid #1c1c1c;
padding:10px;
}
.filters{ display:flex; gap:8px; align-items:center }
.filters select{
height:34px; background:#101010; color:var(--text);
border:1px solid #2a2a2a; border-radius:10px; padding:0 8px;
}
.search{ margin-top:8px }
.search input{
width:100%; height:36px; background:#0e0e0e; color:var(--text);
border:1px solid #252525; border-radius:10px; padding:0 10px;
} }
/* Tree */ /* iframe resets */
.tree{ padding:10px } .viewer iframe{
.tree a{ width:100%;
display:block; padding:8px 10px; margin:2px 0; border:0;
border-radius:10px; text-decoration:none; color:var(--text); margin:0;
} min-height:calc(100vh - var(--topbar-h) - 40px);
.tree a:hover{ background:#111 } border-radius:12px;
.tree .meta{ color:var(--sub); font-size:.86rem }
/* Viewer — no “card” frame; flush with divider */
.viewer{
padding:0 0 24px 4px;
}
.viewer .empty{ opacity:.75 }
.viewer h1,h2,h3{ color:var(--gold); margin:0 0 .75rem }
.viewer h1{ font-size:clamp(1.8rem,4vw,2.6rem) }
.viewer blockquote{
margin:1rem 0; padding-left:1rem; border-left:4px solid #61521a; color:var(--sub)
}
.viewer hr{ border:0; border-top:1px solid #222; margin:1.5rem 0 }
.viewer img, .viewer iframe{ max-width:100%; height:auto; display:block; border-radius:12px }
/* Make sure iframe itself has no stray margins */
.viewer iframe{ border:0; margin:0 }
/* Utilities */
.visually-hidden{
position:absolute !important; height:1px; width:1px; overflow:hidden;
clip:rect(1px,1px,1px,1px); white-space:nowrap;
} }