This commit is contained in:
2025-05-04 14:16:29 +02:00
parent 92d272b36e
commit eb2d05f082
11 changed files with 202 additions and 38 deletions

View File

@@ -0,0 +1,133 @@
/* ---------- Farbpalette (Feelfree to tune) ---------- */
:root {
--bg: #0d1117;
--bgalt: #161b22;
--text: #c9d1d9;
--textmuted: #8b949e;
--accent: #3b82f6; /* Blau */
--accentlight:#60a5fa;
--codebg: #1e242c;
--codeborder: #30363d;
--radius: 0.6rem;
--gap: 1.5rem;
fontsize: 16px;
fontfamily: systemui, "Segoe UI", Roboto, sansserif;
colorscheme: dark;
}
/* ---------- Globale Elemente ---------- */
* { boxsizing: borderbox; }
body {
margin: 0;
background: var(--bg);
color: var(--text);
lineheight: 1.6;
}
a {
color: var(--accent);
textdecoration: none;
}
a:hover { textdecoration: underline; }
/* ---------- Layout ---------- */
.wrapper {
maxwidth: 768px;
margin: 0 auto;
padding: var(--gap);
}
header, footer {
display: flex;
alignitems: center;
justifycontent: space-between;
background: var(--bgalt);
padding: 1rem var(--gap);
borderbottom: 1px solid var(--codeborder);
}
header h1 {
margin: 0;
fontsize: 1.4rem;
letterspacing: 0.5px;
}
header a { color: var(--text); }
footer {
bordertop: 1px solid var(--codeborder);
fontsize: 0.9rem;
color: var(--textmuted);
}
/* ---------- Artikelliste ---------- */
.postlist li {
margin: 0;
padding: 1rem 0;
borderbottom: 1px solid var(--codeborder);
}
.postlist li:lastchild { borderbottom: none; }
.postlist time { color: var(--textmuted); fontsize: 0.9rem; }
/* ---------- Einzelartikel ---------- */
article h1 { margintop: 0; fontsize: 2rem; }
article time { color: var(--textmuted); fontsize: 0.9rem; }
article img, article video {
maxwidth: 100%; height: auto; borderradius: var(--radius);
}
article pre, article code {
fontfamily: "Fira Code", Consolas, monospace;
}
article pre {
background: var(--codebg);
border: 1px solid var(--codeborder);
padding: 1rem;
borderradius: var(--radius);
overflow: auto;
}
article blockquote {
margin: 1rem 0;
padding: 0.5rem 1rem;
borderleft: 4px solid var(--accentlight);
background: var(--bgalt);
color: var(--textmuted);
}
/* ---------- KartenLayout für Artikelliste ---------- */
.card {
display: grid;
grid-template-columns: 160px 1fr;
gap: 1rem;
padding: 1rem;
border: 1px solid var(--code-border);
border-radius: var(--radius);
background: var(--bg-alt);
transition: transform .15s ease, border-color .15s ease;
}
.card:hover {
transform: translateY(-4px);
border-color: var(--accent);
}
.card img {
width: 160px;
height: 100px;
object-fit: cover;
border-radius: var(--radius);
}
.card h2 {
margin: 0 0 .4rem;
font-size: 1.2rem;
}
.card time { color: var(--text-muted); font-size: .9rem; }
/* ---------- HeroBild im Artikel ---------- */
.hero {
width: 100%;
max-height: 340px;
object-fit: cover;
border-radius: var(--radius);
margin-bottom: 1rem;
}
/* ---------- Responsive ---------- */
@media (maxwidth: 600px) {
:root { fontsize: 15px; }
header, footer { flexdirection: column; gap: 0.5rem; }
}