Update styles.css

This commit is contained in:
Mark Randall Havens △ The Empathic Technologist ⟁ Doctor Who 42 2025-11-08 11:56:55 -06:00 committed by GitHub
parent bed346dbcd
commit b09288d10f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -3,12 +3,13 @@ body { margin: 0; background: var(--bg); color: var(--fg); font-family: system-u
.topbar { position: fixed; top: 0; left: 0; right: 0; height: 48px; display: flex; align-items: center; gap: 1em; background: #111; padding: 0 1em; z-index: 100; box-shadow: 0 2px 8px rgba(0,0,0,.3); } .topbar { position: fixed; top: 0; left: 0; right: 0; height: 48px; display: flex; align-items: center; gap: 1em; background: #111; padding: 0 1em; z-index: 100; box-shadow: 0 2px 8px rgba(0,0,0,.3); }
.topbar a { color: var(--accent); text-decoration: none; } .topbar a { color: var(--accent); text-decoration: none; }
.topbar button { font-size: 20px; background: transparent; color: var(--fg); border: 1px solid var(--line); border-radius: 8px; padding: 4px 8px; } .topbar button { font-size: 20px; background: transparent; color: var(--fg); border: 1px solid var(--line); border-radius: 8px; padding: 4px 8px; }
.sidebar { position: fixed; top: 48px; bottom: 0; width: 280px; overflow: auto; background: #111; transition: .3s; transform: translateX(-100%); padding: 10px; } .sidebar { position: fixed; top: 48px; bottom: 0; width: 85%; max-width: 320px; overflow: auto; background: #111; transition: .3s; transform: translateX(-100%); padding: 10px; }
.sidebar.open { transform: translateX(0); } .sidebar.open { transform: translateX(0); }
.overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 99; } .overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 99; }
.sidebar.open ~ .overlay { display: block; } .sidebar.open ~ .overlay { display: block; }
.content { margin-top: 48px; padding: 16px; } .content { margin-top: 48px; padding: 16px; }
@media (min-width: 900px) { .sidebar { transform: none; position: static; height: calc(100vh - 48px); } .content { margin-left: 280px; } } @media (min-width: 900px) { .sidebar { transform: none; position: static; width: 280px; height: calc(100vh - 48px); } .content { margin-left: 280px; } }
@media (max-width: 900px) { .viewer { padding: 12px; font-size: 1.05em; line-height: 1.6; } #htmlView, #mdView { min-height: calc(100vh - 60px); } }
.viewer { height: calc(100vh - 80px); overflow: auto; max-width: 820px; margin: 0 auto; } .viewer { height: calc(100vh - 80px); overflow: auto; max-width: 820px; margin: 0 auto; }
#htmlView { width: 100%; height: 100%; border: none; background: #0b0c10; } #htmlView { width: 100%; height: 100%; border: none; background: #0b0c10; }
#mdView h1, #mdView h2, #mdView h3 { color: var(--accent); } #mdView h1, #mdView h2, #mdView h3 { color: var(--accent); }