mirror of
https://github.com/tiennm99/tsuki.git
synced 2026-05-23 10:25:30 +00:00
e19bb67c88
- 9 CSS files (tokens, reset, typography, layout, components, home, archive, toc, view-transitions) bundled via resources.Concat - 3 ES module JS files (theme-toggle, code-copy, toc-active); toc-active loaded only on long posts - @view-transition: navigation auto for cross-page morph (CSS-only) - TOC partial gated by WordCount>400 and Params.toc!=false; sticky on wide viewports, framed block on narrow - render-heading.html adds cosmetic anchor links - Hugo asset pipeline: resources.Concat | minify | fingerprint (no SCSS, no PostCSS, no Node) - i18n/vi.yml extended with prev/next/posts/archiveEmpty/toggleTheme - Bundle sizes: CSS 3.3 KB gz (budget 15), JS 0.8 KB gz (budget 8) Config: github-ascii heading IDs, :contentbasename permalink token for clean ASCII URLs, pagination.pagerSize migration (Hugo 0.128+).
51 lines
1.2 KiB
CSS
51 lines
1.2 KiB
CSS
/* tsuki: archive page — year/month groups */
|
|
|
|
.archive-year { margin-block-end: var(--tsuki-space-12); }
|
|
.archive-year-heading {
|
|
font-size: var(--tsuki-fs-2xl);
|
|
margin: 0 0 var(--tsuki-space-4);
|
|
padding-block-end: var(--tsuki-space-2);
|
|
border-block-end: 1px solid var(--tsuki-border);
|
|
letter-spacing: -0.02em;
|
|
}
|
|
.archive-month {
|
|
margin-block-end: var(--tsuki-space-6);
|
|
display: grid;
|
|
grid-template-columns: 6rem 1fr;
|
|
gap: var(--tsuki-space-4);
|
|
align-items: start;
|
|
}
|
|
.archive-month-heading {
|
|
font-size: var(--tsuki-fs-base);
|
|
margin: 0;
|
|
color: var(--tsuki-fg-muted);
|
|
font-weight: 550;
|
|
}
|
|
.archive-post-list {
|
|
list-style: none;
|
|
padding: 0;
|
|
margin: 0;
|
|
}
|
|
.archive-post-item {
|
|
display: grid;
|
|
grid-template-columns: 3.5rem 1fr;
|
|
gap: var(--tsuki-space-3);
|
|
padding-block: var(--tsuki-space-2);
|
|
align-items: baseline;
|
|
}
|
|
.archive-post-date {
|
|
color: var(--tsuki-fg-subtle);
|
|
font-size: var(--tsuki-fs-sm);
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
.archive-post-link { color: var(--tsuki-fg); }
|
|
.archive-post-link:hover { color: var(--tsuki-accent); }
|
|
.archive-empty { color: var(--tsuki-fg-muted); }
|
|
|
|
@media (max-width: 40rem) {
|
|
.archive-month {
|
|
grid-template-columns: 1fr;
|
|
gap: var(--tsuki-space-2);
|
|
}
|
|
}
|