diff --git a/assets/css/extended/typewriter.css b/assets/css/extended/typewriter.css index 6ac0fc8..e876da6 100644 --- a/assets/css/extended/typewriter.css +++ b/assets/css/extended/typewriter.css @@ -27,4 +27,36 @@ animation: none; /* static cursor, no blink */ opacity: 0.6; } +} + +/* ---- theme fixes (2026-09-19) ---- */ + +/* 1) move the theme toggle (sun/moon) to the far right, beside the main menu. + nav is flex with justify-content: space-between; DOM order is + logo | logo-switches | #menu — reorder so the toggle sits after #menu */ +.nav { + flex-wrap: nowrap; /* keep logo, menu and toggle on one line */ +} + +.nav > .logo { + order: 0; + margin-inline-end: auto; /* push everything else to the right */ +} + +.nav > #menu { + order: 1; + margin-inline-start: auto; /* menu hugs the right edge */ +} + +.nav > .logo-switches { + order: 2; + margin-inline-start: 8px; +} + +/* 2) first post card: same card styling as .post-entry */ +article.first-entry { + background: var(--entry); + border-radius: var(--radius); + border: 1px solid var(--border); + padding: var(--gap); } \ No newline at end of file diff --git a/layouts/partials/extend_head.html b/layouts/partials/extend_head.html new file mode 100644 index 0000000..3faf861 --- /dev/null +++ b/layouts/partials/extend_head.html @@ -0,0 +1,5 @@ +{{- /* Custom head hook: load site-level typewriter.css (theme fixes + logo typewriter). + Uses resources.Get so Hugo resolves assets/css/extended/typewriter.css + from the SITE root (not the theme), keeping the theme untouched. */ -}} +{{- $tw_css := resources.Get "css/extended/typewriter.css" | minify | fingerprint -}} + \ No newline at end of file diff --git a/openspec/changes/theme-toggle-first-post-card/design.md b/openspec/changes/theme-toggle-first-post-card/design.md new file mode 100644 index 0000000..d710852 --- /dev/null +++ b/openspec/changes/theme-toggle-first-post-card/design.md @@ -0,0 +1,72 @@ +# Design: Переключатель темы справа + карточка первого поста + +## Context + +- Тема rDedInit (PaperMod). Шапка: `themes/rDedInit/layouts/partials/header.html`, + контейнер `.nav` — `display:flex; flex-wrap:wrap; justify-content:space-between`. +- DOM-порядок в `.nav`: `