Initial site: Astro + M3 Expressive, projects, blog
Personal site & blog for jeanlucmakiola.de. - Astro 7 static output; self-hosted Inter + JetBrains Mono (Fontsource) - Material 3 Expressive design tokens (red accent over neutral surfaces) - Home (hero + about + selected work + latest writing) - /work index + per-app pages (Calendula, Agendula, floret-kit) with build-time Gitea release tags, brand-icon link rows, features grid, and an at-a-glance facts panel - Blog via Markdown content collection; RSS, sitemap, robots, OG/SEO - Privacy-respecting Umami analytics, env-gated (off in dev) - Dockerfile (build -> Caddy) + Caddyfile for Coolify deploy Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,593 @@
|
||||
/*
|
||||
* Material 3 Expressive — component & layout styles for jeanlucmakiola.de.
|
||||
* Clean personal-portfolio aesthetic: neutral surfaces, generous whitespace,
|
||||
* with the brand red as a precise ACCENT (logo dot, links, one button, small
|
||||
* arrows) — never the dominant surface. Consumes the role tokens in tokens.css.
|
||||
*/
|
||||
|
||||
@import './tokens.css';
|
||||
|
||||
/* ---------- reset ---------- */
|
||||
*,
|
||||
*::before,
|
||||
*::after { box-sizing: border-box; }
|
||||
|
||||
html {
|
||||
font-family: var(--md-sys-typescale-brand-font);
|
||||
-webkit-text-size-adjust: 100%;
|
||||
scroll-behavior: smooth;
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
html { scroll-behavior: auto; }
|
||||
* { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
min-height: 100dvh;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
background: var(--md-sys-color-surface);
|
||||
color: var(--md-sys-color-on-surface);
|
||||
font-size: var(--md-sys-typescale-body-large-size);
|
||||
line-height: var(--md-sys-typescale-body-large-line);
|
||||
-webkit-font-smoothing: antialiased;
|
||||
text-rendering: optimizeLegibility;
|
||||
}
|
||||
|
||||
img { max-width: 100%; height: auto; }
|
||||
|
||||
::selection { background: var(--brand-red); color: #fff; }
|
||||
|
||||
a {
|
||||
color: var(--md-sys-color-primary);
|
||||
text-decoration-color: color-mix(in srgb, var(--md-sys-color-primary) 35%, transparent);
|
||||
text-underline-offset: 0.18em;
|
||||
transition: text-decoration-color var(--md-sys-motion-duration-short) var(--md-sys-motion-standard);
|
||||
}
|
||||
a:hover { text-decoration-color: currentColor; }
|
||||
|
||||
:focus-visible {
|
||||
outline: 2.5px solid var(--brand-red);
|
||||
outline-offset: 2px;
|
||||
border-radius: var(--md-sys-shape-corner-extra-small);
|
||||
}
|
||||
|
||||
/* the signature red dot, reusable */
|
||||
.dot { color: var(--brand-red); }
|
||||
|
||||
/* ---------- layout ---------- */
|
||||
.container {
|
||||
width: 100%;
|
||||
max-width: var(--content-max);
|
||||
margin-inline: auto;
|
||||
padding: var(--md-sys-spacing-12) var(--md-sys-spacing-6) var(--md-sys-spacing-8);
|
||||
flex: 1;
|
||||
}
|
||||
/* long-form reading pages stay at a comfortable measure */
|
||||
.container--narrow { max-width: var(--reading-max); }
|
||||
|
||||
/* ============================================================
|
||||
* Header — quiet, neutral. Typographic logotype with red dot.
|
||||
* ============================================================ */
|
||||
.site-header {
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 10;
|
||||
background: color-mix(in srgb, var(--md-sys-color-surface) 86%, transparent);
|
||||
backdrop-filter: saturate(180%) blur(12px);
|
||||
border-bottom: 1px solid var(--md-sys-color-outline-variant);
|
||||
}
|
||||
.site-header__inner {
|
||||
max-width: var(--wide-max);
|
||||
margin-inline: auto;
|
||||
min-height: 60px;
|
||||
padding: 0 var(--md-sys-spacing-6);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: var(--md-sys-spacing-4);
|
||||
}
|
||||
.logotype {
|
||||
font-size: 1.25rem;
|
||||
font-weight: 800;
|
||||
letter-spacing: -0.02em;
|
||||
text-decoration: none;
|
||||
color: var(--md-sys-color-on-surface);
|
||||
}
|
||||
.site-header nav { display: flex; align-items: center; gap: var(--md-sys-spacing-1); }
|
||||
.site-header nav a {
|
||||
color: var(--md-sys-color-on-surface-variant);
|
||||
text-decoration: none;
|
||||
font-size: var(--md-sys-typescale-label-large-size);
|
||||
font-weight: var(--md-sys-typescale-label-large-weight);
|
||||
padding: var(--md-sys-spacing-2) var(--md-sys-spacing-3);
|
||||
border-radius: var(--md-sys-shape-corner-full);
|
||||
transition: color var(--md-sys-motion-duration-short) var(--md-sys-motion-standard),
|
||||
background var(--md-sys-motion-duration-short) var(--md-sys-motion-standard);
|
||||
}
|
||||
.site-header nav a:hover { color: var(--md-sys-color-on-surface); background: var(--md-sys-color-surface-container); }
|
||||
.site-header nav a[aria-current='page'] { color: var(--md-sys-color-on-surface); }
|
||||
.site-header nav a[aria-current='page']::after {
|
||||
content: '';
|
||||
display: block;
|
||||
height: 2px;
|
||||
margin-top: 2px;
|
||||
border-radius: 2px;
|
||||
background: var(--brand-red);
|
||||
}
|
||||
|
||||
/* ============================================================
|
||||
* Hero — clean portfolio intro. No red surfaces; red = name dot + button.
|
||||
* ============================================================ */
|
||||
.hero {
|
||||
padding: var(--md-sys-spacing-8) 0 var(--md-sys-spacing-12);
|
||||
}
|
||||
/* two-column intro (hero + about) — fills the wide frame */
|
||||
.intro {
|
||||
display: grid;
|
||||
grid-template-columns: 1.25fr 1fr;
|
||||
gap: var(--md-sys-spacing-12);
|
||||
align-items: start;
|
||||
padding: var(--md-sys-spacing-8) 0 var(--md-sys-spacing-12);
|
||||
}
|
||||
.intro .hero { padding: 0; }
|
||||
.intro__about { padding-top: var(--md-sys-spacing-8); max-width: 42ch; }
|
||||
@media (max-width: 820px) {
|
||||
.intro { grid-template-columns: 1fr; gap: var(--md-sys-spacing-8); }
|
||||
.intro__about { padding-top: 0; }
|
||||
}
|
||||
.hero__eyebrow {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: var(--md-sys-spacing-2);
|
||||
font-size: var(--md-sys-typescale-label-medium-size);
|
||||
font-weight: var(--md-sys-typescale-label-medium-weight);
|
||||
letter-spacing: var(--md-sys-typescale-label-medium-tracking);
|
||||
text-transform: uppercase;
|
||||
color: var(--md-sys-color-on-surface-variant);
|
||||
margin-bottom: var(--md-sys-spacing-4);
|
||||
}
|
||||
.hero__eyebrow::before {
|
||||
content: '';
|
||||
width: 18px;
|
||||
height: 2px;
|
||||
border-radius: 2px;
|
||||
background: var(--brand-red);
|
||||
}
|
||||
.hero h1 {
|
||||
margin: 0;
|
||||
font-size: var(--md-sys-typescale-display-large-size);
|
||||
line-height: var(--md-sys-typescale-display-large-line);
|
||||
font-weight: var(--md-sys-typescale-display-large-weight);
|
||||
letter-spacing: var(--md-sys-typescale-display-large-tracking);
|
||||
}
|
||||
.hero .lead {
|
||||
max-width: 46ch;
|
||||
margin: var(--md-sys-spacing-6) 0 0;
|
||||
font-size: var(--md-sys-typescale-title-medium-size);
|
||||
font-weight: 400;
|
||||
line-height: 1.6;
|
||||
color: var(--md-sys-color-on-surface-variant);
|
||||
}
|
||||
.hero__actions {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
gap: var(--md-sys-spacing-3) var(--md-sys-spacing-6);
|
||||
margin-top: var(--md-sys-spacing-8);
|
||||
}
|
||||
.text-link {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: var(--md-sys-spacing-1);
|
||||
font-size: var(--md-sys-typescale-label-large-size);
|
||||
font-weight: 600;
|
||||
color: var(--md-sys-color-on-surface);
|
||||
text-decoration: none;
|
||||
}
|
||||
.text-link:hover { color: var(--md-sys-color-primary); }
|
||||
|
||||
/* ============================================================
|
||||
* Buttons — one filled (red accent), plus tonal/outlined neutrals.
|
||||
* ============================================================ */
|
||||
.btn {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: var(--md-sys-spacing-2);
|
||||
height: 44px;
|
||||
padding: 0 var(--md-sys-spacing-6);
|
||||
border: none;
|
||||
border-radius: var(--md-sys-shape-corner-full);
|
||||
font: inherit;
|
||||
font-size: var(--md-sys-typescale-label-large-size);
|
||||
font-weight: var(--md-sys-typescale-label-large-weight);
|
||||
text-decoration: none;
|
||||
cursor: pointer;
|
||||
transition: box-shadow var(--md-sys-motion-duration-short) var(--md-sys-motion-standard),
|
||||
transform var(--md-sys-motion-duration-short) var(--md-sys-motion-emphasized),
|
||||
background var(--md-sys-motion-duration-short) var(--md-sys-motion-standard);
|
||||
}
|
||||
.btn:active { transform: scale(0.97); }
|
||||
.btn--filled { background: var(--md-sys-color-primary); color: var(--md-sys-color-on-primary); }
|
||||
.btn--filled:hover { box-shadow: var(--md-sys-elevation-2); }
|
||||
.btn--outlined {
|
||||
background: transparent;
|
||||
color: var(--md-sys-color-on-surface);
|
||||
border: 1px solid var(--md-sys-color-outline);
|
||||
}
|
||||
.btn--outlined:hover { background: var(--md-sys-color-surface-container); }
|
||||
.btn--text { height: auto; padding: var(--md-sys-spacing-2) var(--md-sys-spacing-2); background: transparent; color: var(--md-sys-color-primary); }
|
||||
.btn--text:hover { background: color-mix(in srgb, var(--md-sys-color-primary) 8%, transparent); }
|
||||
|
||||
/* ============================================================
|
||||
* Section scaffolding
|
||||
* ============================================================ */
|
||||
.section { margin-top: var(--md-sys-spacing-16); }
|
||||
.section-head {
|
||||
display: flex;
|
||||
align-items: baseline;
|
||||
justify-content: space-between;
|
||||
gap: var(--md-sys-spacing-4);
|
||||
margin-bottom: var(--md-sys-spacing-6);
|
||||
}
|
||||
.section-head h2 {
|
||||
margin: 0;
|
||||
font-size: var(--md-sys-typescale-headline-medium-size);
|
||||
font-weight: var(--md-sys-typescale-headline-medium-weight);
|
||||
letter-spacing: var(--md-sys-typescale-headline-medium-tracking);
|
||||
}
|
||||
|
||||
/* ============================================================
|
||||
* About — a short, readable statement
|
||||
* ============================================================ */
|
||||
.about { max-width: 54ch; }
|
||||
.about p {
|
||||
margin: 0 0 var(--md-sys-spacing-4);
|
||||
font-size: var(--md-sys-typescale-title-medium-size);
|
||||
line-height: 1.65;
|
||||
}
|
||||
.about p:last-child { margin-bottom: 0; }
|
||||
.about .muted { color: var(--md-sys-color-on-surface-variant); }
|
||||
.about strong { color: var(--md-sys-color-on-surface); font-weight: 700; }
|
||||
|
||||
/* small note under a section */
|
||||
.aside {
|
||||
margin: var(--md-sys-spacing-6) 0 0;
|
||||
font-size: var(--md-sys-typescale-body-medium-size);
|
||||
color: var(--md-sys-color-on-surface-variant);
|
||||
}
|
||||
|
||||
/* ============================================================
|
||||
* Project cards (Selected work)
|
||||
* ============================================================ */
|
||||
.project-grid {
|
||||
list-style: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
display: grid;
|
||||
/* auto-fit so a few cards stretch to fill the wider frame */
|
||||
grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
|
||||
gap: var(--md-sys-spacing-4);
|
||||
}
|
||||
.project-card {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--md-sys-spacing-2);
|
||||
height: 100%;
|
||||
padding: var(--md-sys-spacing-6);
|
||||
border-radius: var(--md-sys-shape-corner-large);
|
||||
background: var(--md-sys-color-surface-container-low);
|
||||
border: 1px solid var(--md-sys-color-outline-variant);
|
||||
text-decoration: none;
|
||||
color: inherit;
|
||||
transition: border-color var(--md-sys-motion-duration-short) var(--md-sys-motion-standard),
|
||||
transform var(--md-sys-motion-duration-medium) var(--md-sys-motion-emphasized),
|
||||
box-shadow var(--md-sys-motion-duration-medium) var(--md-sys-motion-emphasized);
|
||||
}
|
||||
.project-card:hover {
|
||||
transform: translateY(-3px);
|
||||
box-shadow: var(--md-sys-elevation-2);
|
||||
border-color: var(--brand-red);
|
||||
}
|
||||
.project-card__status {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: var(--md-sys-spacing-2);
|
||||
font-size: var(--md-sys-typescale-label-medium-size);
|
||||
font-weight: var(--md-sys-typescale-label-medium-weight);
|
||||
letter-spacing: var(--md-sys-typescale-label-medium-tracking);
|
||||
text-transform: uppercase;
|
||||
color: var(--md-sys-color-on-surface-variant);
|
||||
}
|
||||
.project-card__status.is-released::before {
|
||||
content: '';
|
||||
width: 7px;
|
||||
height: 7px;
|
||||
border-radius: 50%;
|
||||
background: var(--brand-red);
|
||||
}
|
||||
.project-card__title {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
margin-top: var(--md-sys-spacing-1);
|
||||
font-size: var(--md-sys-typescale-title-large-size);
|
||||
font-weight: var(--md-sys-typescale-title-large-weight);
|
||||
}
|
||||
.project-card__title .arrow {
|
||||
color: var(--brand-red);
|
||||
transition: transform var(--md-sys-motion-duration-short) var(--md-sys-motion-emphasized);
|
||||
}
|
||||
.project-card:hover .arrow { transform: translateX(3px); }
|
||||
.project-card p {
|
||||
margin: 0;
|
||||
font-size: var(--md-sys-typescale-body-medium-size);
|
||||
color: var(--md-sys-color-on-surface-variant);
|
||||
}
|
||||
|
||||
/* ============================================================
|
||||
* Project detail page (/work/<slug>)
|
||||
* ============================================================ */
|
||||
.back-link {
|
||||
display: inline-block;
|
||||
margin-bottom: var(--md-sys-spacing-6);
|
||||
font-size: var(--md-sys-typescale-label-large-size);
|
||||
font-weight: 600;
|
||||
color: var(--md-sys-color-on-surface-variant);
|
||||
text-decoration: none;
|
||||
}
|
||||
.back-link:hover { color: var(--md-sys-color-primary); }
|
||||
.project-detail__head {
|
||||
margin-bottom: var(--md-sys-spacing-8);
|
||||
padding-bottom: var(--md-sys-spacing-8);
|
||||
border-bottom: 1px solid var(--md-sys-color-outline-variant);
|
||||
}
|
||||
.project-detail__head h1 {
|
||||
margin: var(--md-sys-spacing-3) 0 0;
|
||||
font-size: var(--md-sys-typescale-display-medium-size);
|
||||
line-height: var(--md-sys-typescale-display-medium-line);
|
||||
font-weight: var(--md-sys-typescale-display-medium-weight);
|
||||
letter-spacing: var(--md-sys-typescale-display-medium-tracking);
|
||||
}
|
||||
.project-detail__head .lead {
|
||||
max-width: 54ch;
|
||||
margin: var(--md-sys-spacing-4) 0 0;
|
||||
font-size: var(--md-sys-typescale-title-medium-size);
|
||||
color: var(--md-sys-color-on-surface-variant);
|
||||
}
|
||||
.project-card__status .sep { color: var(--md-sys-color-outline); }
|
||||
.project-detail__status {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex-wrap: wrap;
|
||||
gap: var(--md-sys-spacing-3);
|
||||
}
|
||||
.version-badge {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
height: 22px;
|
||||
padding: 0 var(--md-sys-spacing-2);
|
||||
border-radius: var(--md-sys-shape-corner-extra-small);
|
||||
background: var(--md-sys-color-primary-container);
|
||||
color: var(--md-sys-color-on-primary-container);
|
||||
font-family: var(--md-sys-typescale-mono-font);
|
||||
font-size: 0.75rem;
|
||||
font-weight: 600;
|
||||
}
|
||||
.link-row {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
gap: var(--md-sys-spacing-3);
|
||||
margin-top: var(--md-sys-spacing-6);
|
||||
}
|
||||
|
||||
/* icons inside buttons / links */
|
||||
.btn svg,
|
||||
.text-link svg,
|
||||
.socials a svg { width: 1.15em; height: 1.15em; flex-shrink: 0; }
|
||||
.icon-accent { color: var(--brand-red); }
|
||||
|
||||
/* two-column detail layout */
|
||||
.project-layout {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) 16rem;
|
||||
gap: var(--md-sys-spacing-12);
|
||||
margin-top: var(--md-sys-spacing-8);
|
||||
align-items: start;
|
||||
}
|
||||
.project-intro { font-size: var(--md-sys-typescale-body-large-size); }
|
||||
.project-main .section { margin-top: var(--md-sys-spacing-12); }
|
||||
.subhead {
|
||||
margin: 0 0 var(--md-sys-spacing-4);
|
||||
font-size: var(--md-sys-typescale-title-large-size);
|
||||
font-weight: var(--md-sys-typescale-title-large-weight);
|
||||
letter-spacing: -0.01em;
|
||||
}
|
||||
|
||||
/* feature grid */
|
||||
.feature-grid {
|
||||
list-style: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
|
||||
gap: var(--md-sys-spacing-3);
|
||||
}
|
||||
.feature-card {
|
||||
padding: var(--md-sys-spacing-5, 20px) var(--md-sys-spacing-5, 20px);
|
||||
padding: var(--md-sys-spacing-6);
|
||||
border-radius: var(--md-sys-shape-corner-large);
|
||||
background: var(--md-sys-color-surface-container-low);
|
||||
border: 1px solid var(--md-sys-color-outline-variant);
|
||||
}
|
||||
.feature-card h3 {
|
||||
margin: 0 0 var(--md-sys-spacing-2);
|
||||
font-size: var(--md-sys-typescale-title-medium-size);
|
||||
font-weight: 600;
|
||||
}
|
||||
.feature-card p {
|
||||
margin: 0;
|
||||
font-size: var(--md-sys-typescale-body-medium-size);
|
||||
color: var(--md-sys-color-on-surface-variant);
|
||||
}
|
||||
|
||||
/* aside: at-a-glance panel (sticky on wide screens) */
|
||||
.project-aside { position: sticky; top: 80px; }
|
||||
.info-card {
|
||||
padding: var(--md-sys-spacing-6);
|
||||
border-radius: var(--md-sys-shape-corner-large);
|
||||
background: var(--md-sys-color-surface-container);
|
||||
border: 1px solid var(--md-sys-color-outline-variant);
|
||||
}
|
||||
.info-card .subhead { font-size: var(--md-sys-typescale-title-medium-size); }
|
||||
.info-card dl { margin: 0; display: grid; grid-template-columns: 1fr; gap: var(--md-sys-spacing-3); }
|
||||
.info-card dt {
|
||||
font-size: var(--md-sys-typescale-label-medium-size);
|
||||
letter-spacing: var(--md-sys-typescale-label-medium-tracking);
|
||||
text-transform: uppercase;
|
||||
color: var(--md-sys-color-on-surface-variant);
|
||||
}
|
||||
.info-card dd { margin: 2px 0 0; font-weight: 600; }
|
||||
.tech-chips { margin-top: var(--md-sys-spacing-6); }
|
||||
.tech-chips .chip { height: 28px; font-size: var(--md-sys-typescale-label-medium-size); }
|
||||
|
||||
@media (max-width: 820px) {
|
||||
.project-layout { grid-template-columns: 1fr; gap: var(--md-sys-spacing-8); }
|
||||
.project-aside { position: static; order: -1; }
|
||||
}
|
||||
|
||||
/* ============================================================
|
||||
* Writing list — quiet rows with a divider, not heavy cards.
|
||||
* ============================================================ */
|
||||
.writing-list { list-style: none; margin: 0; padding: 0; }
|
||||
.writing-list li { border-top: 1px solid var(--md-sys-color-outline-variant); }
|
||||
.writing-list li:last-child { border-bottom: 1px solid var(--md-sys-color-outline-variant); }
|
||||
.writing-row {
|
||||
display: flex;
|
||||
align-items: baseline;
|
||||
justify-content: space-between;
|
||||
gap: var(--md-sys-spacing-4);
|
||||
padding: var(--md-sys-spacing-4) var(--md-sys-spacing-2);
|
||||
text-decoration: none;
|
||||
color: inherit;
|
||||
transition: padding-inline-start var(--md-sys-motion-duration-short) var(--md-sys-motion-emphasized),
|
||||
color var(--md-sys-motion-duration-short) var(--md-sys-motion-standard);
|
||||
}
|
||||
.writing-row:hover { padding-inline-start: var(--md-sys-spacing-4); color: var(--md-sys-color-primary); }
|
||||
.writing-row__title { font-size: var(--md-sys-typescale-title-medium-size); font-weight: 600; }
|
||||
.writing-row time {
|
||||
flex-shrink: 0;
|
||||
font-size: var(--md-sys-typescale-label-medium-size);
|
||||
letter-spacing: var(--md-sys-typescale-label-medium-tracking);
|
||||
text-transform: uppercase;
|
||||
color: var(--md-sys-color-on-surface-variant);
|
||||
}
|
||||
|
||||
/* ============================================================
|
||||
* Blog list (the /blog index) — cards
|
||||
* ============================================================ */
|
||||
.post-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--md-sys-spacing-4); }
|
||||
.post-card {
|
||||
display: block;
|
||||
padding: var(--md-sys-spacing-6);
|
||||
border-radius: var(--md-sys-shape-corner-large);
|
||||
background: var(--md-sys-color-surface-container-low);
|
||||
border: 1px solid var(--md-sys-color-outline-variant);
|
||||
text-decoration: none;
|
||||
color: inherit;
|
||||
transition: border-color var(--md-sys-motion-duration-short) var(--md-sys-motion-standard),
|
||||
transform var(--md-sys-motion-duration-medium) var(--md-sys-motion-emphasized),
|
||||
box-shadow var(--md-sys-motion-duration-medium) var(--md-sys-motion-emphasized);
|
||||
}
|
||||
.post-card:hover { transform: translateY(-2px); box-shadow: var(--md-sys-elevation-2); border-color: var(--brand-red); }
|
||||
.post-card h3 { margin: 0; font-size: var(--md-sys-typescale-title-large-size); font-weight: var(--md-sys-typescale-title-large-weight); }
|
||||
.post-card time {
|
||||
display: block; margin-top: var(--md-sys-spacing-1);
|
||||
font-size: var(--md-sys-typescale-label-medium-size);
|
||||
letter-spacing: var(--md-sys-typescale-label-medium-tracking);
|
||||
text-transform: uppercase;
|
||||
color: var(--md-sys-color-on-surface-variant);
|
||||
}
|
||||
.post-card .excerpt { margin: var(--md-sys-spacing-3) 0 0; font-size: var(--md-sys-typescale-body-medium-size); color: var(--md-sys-color-on-surface-variant); }
|
||||
|
||||
/* ============================================================
|
||||
* Chips (tags)
|
||||
* ============================================================ */
|
||||
.chip-set { list-style: none; margin: var(--md-sys-spacing-4) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--md-sys-spacing-2); }
|
||||
.chip {
|
||||
display: inline-flex; align-items: center; height: 32px; padding: 0 var(--md-sys-spacing-4);
|
||||
border-radius: var(--md-sys-shape-corner-small);
|
||||
border: 1px solid var(--md-sys-color-outline-variant);
|
||||
background: transparent;
|
||||
color: var(--md-sys-color-on-surface-variant);
|
||||
font-size: var(--md-sys-typescale-label-large-size); font-weight: 500; text-decoration: none;
|
||||
transition: background var(--md-sys-motion-duration-short) var(--md-sys-motion-standard);
|
||||
}
|
||||
.chip:hover { background: var(--md-sys-color-surface-container-high); color: var(--md-sys-color-on-surface); }
|
||||
|
||||
/* ============================================================
|
||||
* Article / prose
|
||||
* ============================================================ */
|
||||
.page-title, .post-header h1 {
|
||||
font-size: var(--md-sys-typescale-headline-large-size);
|
||||
font-weight: var(--md-sys-typescale-headline-large-weight);
|
||||
letter-spacing: var(--md-sys-typescale-headline-large-tracking);
|
||||
margin: 0 0 var(--md-sys-spacing-6);
|
||||
}
|
||||
.post-header { margin-bottom: var(--md-sys-spacing-8); }
|
||||
.post-header h1 { margin-bottom: var(--md-sys-spacing-3); }
|
||||
.post-meta { color: var(--md-sys-color-on-surface-variant); font-size: var(--md-sys-typescale-label-large-size); }
|
||||
|
||||
.prose { font-size: var(--md-sys-typescale-body-large-size); }
|
||||
.prose :is(h2, h3) { margin-top: var(--md-sys-spacing-12); margin-bottom: var(--md-sys-spacing-3); letter-spacing: -0.01em; }
|
||||
.prose h2 { font-size: var(--md-sys-typescale-headline-medium-size); }
|
||||
.prose h3 { font-size: var(--md-sys-typescale-title-large-size); }
|
||||
.prose p { margin: var(--md-sys-spacing-4) 0; }
|
||||
.prose code {
|
||||
font-family: var(--md-sys-typescale-mono-font); font-size: 0.9em;
|
||||
background: var(--md-sys-color-surface-container-high); padding: 0.15em 0.4em;
|
||||
border-radius: var(--md-sys-shape-corner-extra-small);
|
||||
}
|
||||
.prose pre {
|
||||
font-family: var(--md-sys-typescale-mono-font); padding: var(--md-sys-spacing-4);
|
||||
border-radius: var(--md-sys-shape-corner-large);
|
||||
background: var(--md-sys-color-surface-container-high);
|
||||
border: 1px solid var(--md-sys-color-outline-variant); overflow-x: auto;
|
||||
}
|
||||
.prose pre code { background: none; padding: 0; }
|
||||
.prose blockquote {
|
||||
margin-inline: 0; padding: var(--md-sys-spacing-2) var(--md-sys-spacing-6);
|
||||
border-left: 3px solid var(--brand-red); color: var(--md-sys-color-on-surface-variant);
|
||||
}
|
||||
.prose img { border-radius: var(--md-sys-shape-corner-large); }
|
||||
|
||||
/* ============================================================
|
||||
* Footer
|
||||
* ============================================================ */
|
||||
.site-footer { margin-top: var(--md-sys-spacing-16); border-top: 1px solid var(--md-sys-color-outline-variant); color: var(--md-sys-color-on-surface-variant); }
|
||||
.site-footer__inner {
|
||||
max-width: var(--wide-max); margin-inline: auto;
|
||||
padding: var(--md-sys-spacing-8) var(--md-sys-spacing-6);
|
||||
display: flex; align-items: center; justify-content: space-between;
|
||||
gap: var(--md-sys-spacing-4); flex-wrap: wrap;
|
||||
font-size: var(--md-sys-typescale-body-medium-size);
|
||||
}
|
||||
.site-footer .socials { display: flex; flex-wrap: wrap; gap: var(--md-sys-spacing-4); }
|
||||
.site-footer .socials a {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: var(--md-sys-spacing-2);
|
||||
text-decoration: none;
|
||||
}
|
||||
.site-footer .socials a:hover { color: var(--md-sys-color-primary); }
|
||||
.site-footer a { color: var(--md-sys-color-on-surface); }
|
||||
|
||||
/* ---------- responsive ---------- */
|
||||
@media (max-width: 599px) {
|
||||
.container { padding: var(--md-sys-spacing-8) var(--md-sys-spacing-4) var(--md-sys-spacing-6); }
|
||||
.app-bar__inner, .site-header__inner { padding-inline: var(--md-sys-spacing-4); }
|
||||
.section { margin-top: var(--md-sys-spacing-12); }
|
||||
}
|
||||
Reference in New Issue
Block a user