blog/static/css/main.css
2025-08-20 15:19:24 +01:00

127 lines
1.8 KiB
CSS

/* ===== Base Reset ===== */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
line-height: 1.6;
background-color: var(--bg);
color: var(--fg);
padding: 0 1rem;
/* layout */
max-width: 700px;
margin: 0 auto;
}
body a {
color: magenta;
}
body pre {
padding:1rem;
margin-bottom: 1rem;
}
/* ===== Typography ===== */
h1, h2, h3, h4 {
line-height: 1.3;
font-weight: 600;
margin: 1.5rem 0 0.75rem;
}
p {
margin-top: 1.3rem;
margin-bottom: 1.3rem;
}
/* ===== Images ===== */
img {
max-width: 100%;
height: auto;
border-radius: 5px;
}
/* ===== Navigation ===== */
nav {
display: flex;
/* justify-content: space-between; */
/* align-items: center; */
/* padding: 1rem 0; */
/* flex-wrap: wrap; */
}
nav a {
margin-right: 1.5rem;
font-size: 3rem;
text-decoration: none;
}
.home {
}
.toggle-button {
font-size: 3rem;
border: none;
background-color: var(--bg);
cursor: pointer;
}
#search {
width: 100%;
background-color: var(--bg);
color: var(--fg);
border: 1px solid var(--fg);
padding: 1rem;
margin-bottom: 1.3rem;
}
#results li {
list-style: none;
margin-bottom: 1rem;
}
/* archive tree */
.tree, .tree ul {
list-style: none;
margin: 0;
position: relative;
}
.tree ul {
margin-left: 0.5rem;
}
.tree li {
margin: 0;
padding: 0.25rem 0 0.25rem 1rem;
position: relative;
}
.tree li::before {
content: "";
position: absolute;
top: 0;
left: 0;
border-left: 1px solid var(--fg);
border-bottom: 1px solid var(--fg);
width: 1rem;
height: 1rem;
}
footer {
padding-bottom: 2rem;
}
/* ===== Responsive ===== */
@media (min-width: 768px) {
body {
padding: 0 2rem;
}
nav {
flex-wrap: nowrap;
}
}