fix: переключатель темы вправо у меню + карточка первого поста + подключение typewriter.css через extend_head
- assets/css/extended/typewriter.css: flex-order в .nav (logo | menu | toggle), article.first-entry как .post-entry (фон/рамка/скругление/отступ) - layouts/partials/extend_head.html (новый): resources.Get typewriter.css — Hugo НЕ подхватывает корневой assets/css/extended через resources.Match темы, поэтому прошлый CSS не применялся (JS работал, стили нет) - openspec: change theme-toggle-first-post-card (proposal/design/specs/tasks) ВАЖНО: прошлый деплой typewriter-эффекта был неполным — CSS не подключался. Этот коммит чинит оба бага + курсор.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
Reference in New Issue
Block a user