mirror of
https://github.com/dong-nz/cv.git
synced 2026-11-22 16:10:40 +07:00
feat(nav+cta): deep accent fill for light CTA text in dark mode, rotating palette swatch
- index.css: --accent-solid / -hover / -active plus --text-on-accent-solid in all five palette blocks; the two light blocks duplicate the plain accent values verbatim so light mode does not move - App.css: .btn-primary and .badge-accent take the solid fill with light text and a 1px --accent border; hover and active deepen instead of brightening - ThemePaletteMenu.tsx: the swatch is a motion.span, rotate 90 while the palette submenu is open, 0 otherwise; reduced motion stays global (main.tsx) - language control unchanged (owner decision Q1: keep EN/VI) - docs: new spec-v3-nav-cta-enhancements.md v0.2.0, palette spec to v0.4.0, AGENTS.md accent-tier and rotation bullets Gates: tsc -b exit 0, oxlint 19 findings (baseline held), 0 hex/rgba in App.css, vite build green (CSS 33.48 kB), SSR smoke 7/7.
This commit is contained in:
1 parent
9f6db009e4
commit
d7ef4a28e4
6 files changed
+392
-10
No files matched your search
+8
-7
@@ -453,19 +453,20 @@
|
||||
}
|
||||
|
||||
.btn-primary {
|
||||
background: var(--accent);
|
||||
color: var(--text-on-accent);
|
||||
border: 1px solid transparent;
|
||||
background: var(--accent-solid);
|
||||
color: var(--text-on-accent-solid);
|
||||
border: 1px solid var(--accent);
|
||||
box-shadow: 0 4px 20px var(--accent-glow);
|
||||
}
|
||||
|
||||
.btn-primary:hover {
|
||||
background: var(--accent-hover);
|
||||
color: var(--text-on-accent);
|
||||
background: var(--accent-solid-hover);
|
||||
color: var(--text-on-accent-solid);
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 8px 30px var(--accent-glow);
|
||||
}
|
||||
.btn-primary:active {
|
||||
background: var(--accent-solid-active);
|
||||
transform: translateY(0);
|
||||
box-shadow: 0 2px 10px var(--accent-glow);
|
||||
}
|
||||
@@ -532,8 +533,8 @@
|
||||
}
|
||||
|
||||
.badge-accent {
|
||||
background: var(--accent);
|
||||
color: var(--text-on-accent);
|
||||
background: var(--accent-solid);
|
||||
color: var(--text-on-accent-solid);
|
||||
}
|
||||
|
||||
.badge-outline {
|
||||
|
||||
Reference in new issue
Block a user