vault backup: 2025-12-07 12:39:26
All checks were successful
Deploy Quartz site to GitHub Pages / build (push) Successful in 1m21s
All checks were successful
Deploy Quartz site to GitHub Pages / build (push) Successful in 1m21s
This commit is contained in:
139
wip/style.css
Normal file
139
wip/style.css
Normal file
@@ -0,0 +1,139 @@
|
||||
:root {
|
||||
color-scheme: light dark;
|
||||
--font-sans-serif: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
|
||||
--font-mono: ui-monospace, "SF Mono", Menlo, monospace;
|
||||
--max-width: 70ch;
|
||||
--line-height: 1.15;
|
||||
--space: 1.25rem;
|
||||
--radius: 6px;
|
||||
--sidebar-width: 250px;
|
||||
}
|
||||
body {
|
||||
margin: 0;
|
||||
display: flex;
|
||||
font-family: var(--font-sans-serif);
|
||||
line-height: var(--line-height);
|
||||
font-size: 1rem;
|
||||
}
|
||||
.sidebar {
|
||||
width: var(--sidebar-width);
|
||||
height: 100vh;
|
||||
position: sticky;
|
||||
top: 0;
|
||||
overflow-y: auto;
|
||||
padding: var(--space);
|
||||
box-sizing: border-box;
|
||||
}
|
||||
.sidebar ul { list-style: none; padding: 0; margin: 0; }
|
||||
.sidebar details ul { padding-left: 1rem; }
|
||||
.sidebar li { margin: 0.2rem 0; }
|
||||
.sidebar a { text-decoration: none; }
|
||||
.sidebar a.active { font-weight: 600; }
|
||||
.sidebar details { margin: 0.2rem 0; }
|
||||
.sidebar summary { cursor: pointer; }
|
||||
.content {
|
||||
flex: 1;
|
||||
max-width: var(--max-width);
|
||||
padding: calc(var(--space) * 1.2);
|
||||
}
|
||||
|
||||
@media (prefers-color-scheme: light) {
|
||||
body { background: #fafafa; color: #222; }
|
||||
.sidebar { background: #f0f0f0; }
|
||||
a { color: #0645ad; }
|
||||
code, pre { background: #f0f0f0; }
|
||||
hr { border-color: #ddd; }
|
||||
}
|
||||
@media (prefers-color-scheme: dark) {
|
||||
body { background: #111; color: #ddd; }
|
||||
.sidebar { background: #1a1a1a; }
|
||||
a { color: #7bbaff; }
|
||||
code, pre { background: #222; }
|
||||
hr { border-color: #333; }
|
||||
}
|
||||
|
||||
p, ul, ol, blockquote, pre, table {
|
||||
margin: var(--space) 0;
|
||||
}
|
||||
|
||||
h1, h2, h3, h4, h5, h6 {
|
||||
line-height: 1.25;
|
||||
margin: calc(var(--space) * 1.6) 0 var(--space);
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 1.8rem;
|
||||
}
|
||||
|
||||
h2 {
|
||||
font-size: 1.45rem;
|
||||
}
|
||||
|
||||
h3 {
|
||||
font-size: 1.25rem;
|
||||
}
|
||||
|
||||
h4 {
|
||||
font-size: 1.1rem;
|
||||
}
|
||||
|
||||
h5, h6 {
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
ul, ol {
|
||||
padding-inline-start: 1.4rem;
|
||||
margin-block-start: var(--space);
|
||||
}
|
||||
|
||||
li {
|
||||
margin: 0.3rem 0;
|
||||
}
|
||||
|
||||
code, pre {
|
||||
font-family: var(--font-mono) monospace;
|
||||
font-size: 0.9rem;
|
||||
border-radius: var(--radius);
|
||||
}
|
||||
|
||||
pre {
|
||||
padding: 0.75rem 1rem;
|
||||
overflow-x: auto;
|
||||
}
|
||||
|
||||
table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
font-size: 0.95rem;
|
||||
}
|
||||
|
||||
th, td {
|
||||
padding: 0.5rem 0.75rem;
|
||||
border: 1px solid currentcolor;
|
||||
}
|
||||
|
||||
th {
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
blockquote {
|
||||
padding: 0.75rem 1rem;
|
||||
border-inline-start: 4px solid currentcolor;
|
||||
opacity: 0.9;
|
||||
}
|
||||
|
||||
img, video {
|
||||
max-width: 100%;
|
||||
height: auto;
|
||||
display: block;
|
||||
border-radius: var(--radius);
|
||||
margin: var(--space) 0;
|
||||
}
|
||||
|
||||
hr {
|
||||
margin: calc(var(--space) * 2) 0;
|
||||
border: none;
|
||||
border-bottom: 1px solid;
|
||||
opacity: 0.2;
|
||||
}
|
||||
Reference in New Issue
Block a user