151 lines
2 KiB
CSS
151 lines
2 KiB
CSS
/* ===== Base Reset ===== */
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
|
line-height: 1.7;
|
|
background-color: var(--bg);
|
|
color: var(--fg);
|
|
padding: 0 1.5rem;
|
|
max-width: 650px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
a {
|
|
color: var(--fg);
|
|
text-decoration: underline;
|
|
text-decoration-color: var(--accent);
|
|
text-underline-offset: 3px;
|
|
}
|
|
|
|
a:hover {
|
|
text-decoration-color: var(--fg);
|
|
}
|
|
|
|
pre {
|
|
padding: 1rem;
|
|
margin: 1.5rem 0;
|
|
overflow-x: auto;
|
|
}
|
|
|
|
/* ===== Typography ===== */
|
|
h1, h2, h3, h4 {
|
|
font-weight: 500;
|
|
margin: 2rem 0 1rem;
|
|
line-height: 1.4;
|
|
}
|
|
|
|
h1 { font-size: 1.75rem; }
|
|
h2 { font-size: 1.4rem; }
|
|
h3 { font-size: 1.2rem; }
|
|
|
|
p {
|
|
margin: 1rem 0;
|
|
}
|
|
|
|
img {
|
|
max-width: 100%;
|
|
height: auto;
|
|
}
|
|
|
|
/* ===== Navigation ===== */
|
|
nav.navbar {
|
|
padding: 2rem 0;
|
|
display: flex;
|
|
gap: 1.5rem;
|
|
font-size: 1.3rem;
|
|
}
|
|
|
|
nav a {
|
|
text-decoration: none;
|
|
color: var(--fg);
|
|
}
|
|
|
|
nav a:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.toggle-button {
|
|
background: none;
|
|
border: none;
|
|
cursor: pointer;
|
|
font-size: 1.2rem;
|
|
padding: 0;
|
|
}
|
|
|
|
/* ===== Search ===== */
|
|
#search {
|
|
width: 100%;
|
|
background: transparent;
|
|
color: var(--fg);
|
|
border: 1px solid var(--fg);
|
|
padding: 0.75rem 1rem;
|
|
margin: 1rem 0;
|
|
font-size: 1rem;
|
|
}
|
|
|
|
#results li {
|
|
list-style: none;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
/* ===== Featured Post ===== */
|
|
.featured {
|
|
margin-bottom: 3rem;
|
|
}
|
|
|
|
.featured h2 {
|
|
margin-top: 0;
|
|
}
|
|
|
|
.featured .date {
|
|
opacity: 0.6;
|
|
font-size: 0.9rem;
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
/* ===== Archive Tree ===== */
|
|
.tree, .tree ul {
|
|
list-style: none;
|
|
margin: 0;
|
|
padding-left: 1rem;
|
|
}
|
|
|
|
.tree > li {
|
|
margin: 0.5rem 0;
|
|
}
|
|
|
|
.tree li {
|
|
position: relative;
|
|
}
|
|
|
|
.tree .folder {
|
|
font-weight: 500;
|
|
}
|
|
|
|
.tree a {
|
|
text-decoration: none;
|
|
}
|
|
|
|
.tree a:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
/* ===== Footer ===== */
|
|
footer {
|
|
margin-top: 4rem;
|
|
padding: 2rem 0;
|
|
opacity: 0.5;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
/* ===== Responsive ===== */
|
|
@media (min-width: 768px) {
|
|
body {
|
|
padding: 0 2rem;
|
|
}
|
|
}
|