Update styles.css
This commit is contained in:
parent
595a40ae14
commit
0f1c074337
1 changed files with 31 additions and 21 deletions
|
|
@ -1,21 +1,31 @@
|
||||||
:root{--bg:#0b0c10;--fg:#f3f3f3;--accent:#d0aa5b;}
|
:root { --bg: #0b0c10; --fg: #f3f3f3; --accent: #d0aa5b; --muted: #8d8f95; --line: #2a2d34; }
|
||||||
body{margin:0;background:var(--bg);color:var(--fg);font-family:system-ui,sans-serif;}
|
body { margin: 0; background: var(--bg); color: var(--fg); font-family: system-ui, sans-serif; }
|
||||||
.topbar{position:fixed;top:0;left:0;right:0;height:48px;display:flex;align-items:center;gap:1em;
|
.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); }
|
||||||
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; }
|
||||||
.sidebar{position:fixed;top:48px;bottom:0;width:260px;overflow:auto;background:#111;transition:.3s;transform:translateX(-100%);}
|
.sidebar { position: fixed; top: 48px; bottom: 0; width: 280px; overflow: auto; background: #111; transition: .3s; transform: translateX(-100%); padding: 10px; }
|
||||||
.sidebar.open{transform:translateX(0);}
|
.sidebar.open { transform: translateX(0); }
|
||||||
button#navToggle{position:fixed;top:8px;left:8px;z-index:101;}
|
.overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 99; }
|
||||||
.overlay{display:none;position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,.5);z-index:100;}
|
.sidebar.open ~ .overlay { display: block; }
|
||||||
.sidebar.open ~ .overlay{display:block;}
|
.content { margin-top: 48px; padding: 16px; }
|
||||||
.content{margin-left:0;padding-top:56px;}
|
@media (min-width: 900px) { .sidebar { transform: none; position: static; height: calc(100vh - 48px); } .content { margin-left: 280px; } }
|
||||||
@media(min-width:900px){.sidebar{transform:none;width:280px;}.content{margin-left:280px;}}
|
.viewer { height: calc(100vh - 80px); overflow: auto; max-width: 820px; margin: 0 auto; }
|
||||||
.viewer{height:calc(100vh - 80px);overflow:auto;padding:16px;}
|
#htmlView { width: 100%; height: 100%; border: none; background: #0b0c10; }
|
||||||
iframe#htmlView{width:100%;height:100%;border:none;background:#0b0c10;}
|
#mdView h1, #mdView h2, #mdView h3 { color: var(--accent); }
|
||||||
.dir .label{display:flex;cursor:pointer;padding:2px 6px;}
|
#mdView pre, #mdView code { overflow-x: auto; word-break: break-word; background: #111; padding: 0.5em; border-radius: 4px; color: var(--accent); }
|
||||||
.children{margin-left:1em;display:none;}
|
.meta { color: var(--muted); margin-bottom: 12px; }
|
||||||
.dir.open .children{display:block;}
|
button#prev, button#next { background: transparent; border: 1px solid var(--line); color: var(--fg); border-radius: 8px; padding: 4px 10px; }
|
||||||
.file{display:block;padding:2px 12px;color:var(--fg);text-decoration:none;}
|
button#prev:hover, button#next:hover { border-color: var(--accent); color: var(--accent); }
|
||||||
.file.active{background:rgba(208,170,91,.3);}
|
.controls { display: flex; gap: 0.5em; margin-bottom: 8px; }
|
||||||
.controls{display:flex;gap:.5em;padding:4px;}
|
select { background: #0b0c10; color: var(--fg); border: 1px solid var(--line); border-radius: 4px; padding: 4px; }
|
||||||
#search{flex:1;}
|
#search { flex: 1; 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; }
|
||||||
|
.dir .label::before { content: "▶"; margin-right: 6px; font-size: 0.8em; color: var(--muted); }
|
||||||
|
.dir.open .label::before { content: "▼"; }
|
||||||
|
.children { display: none; margin-left: 1em; border-left: 1px dashed var(--line); padding-left: 10px; }
|
||||||
|
.dir.open > .children { display: block; }
|
||||||
|
.file { display: block; padding: 4px 12px; color: var(--fg); text-decoration: none; border-radius: 4px; }
|
||||||
|
.file:hover { background: rgba(208,170,91,.1); }
|
||||||
|
.file.active { background: rgba(208,170,91,.2); outline: 1px solid var(--line); }
|
||||||
|
.pin { color: var(--accent); margin-right: 4px; }
|
||||||
|
.meta { color: var(--muted); font-size: 0.85em; margin-left: 6px; }
|
||||||
Loading…
Add table
Add a link
Reference in a new issue