style: integrate CHRNX navigation and footer

This commit is contained in:
chrnx committed 2026-08-12 15:08:07 -05:00
1 parent 5a49cc5137
commit c7de54995f
8 files changed
+437 -26

No files matched your search

+15 -1
View File
@@ -11,6 +11,7 @@
html {
color-scheme: dark;
--chrnx-focus-ring: var(--wp--preset--color--green);
}
body {
@@ -39,8 +40,21 @@ a:hover {
}
:focus-visible {
outline: 3px solid var(--wp--preset--color--green);
border-radius: 0.4rem;
outline: 2px solid transparent;
outline-offset: 3px;
box-shadow: 0 0 0 3px var(--chrnx-focus-ring);
}
html[data-theme="light"] {
--chrnx-focus-ring: var(--wp--preset--color--light-green);
}
@media (prefers-color-scheme: light) {
:root:not([data-theme]) {
--chrnx-focus-ring: var(--wp--preset--color--light-green);
}
}
@media (prefers-reduced-motion: reduce) {
+60 -1
View File
@@ -83,7 +83,66 @@ footer a {
.chrnx-primary-navigation a,
.chrnx-footer-navigation a {
color: var(--chrnx-link);
position: relative;
color: var(--chrnx-muted);
font-family: var(--wp--preset--font-family--heading);
font-size: 0.875rem;
font-weight: 500;
letter-spacing: 0.035em;
text-decoration: none;
}
.chrnx-primary-navigation a::after,
.chrnx-footer-navigation a::after {
position: absolute;
right: 0.55rem;
bottom: 0.3rem;
left: 0.55rem;
height: 2px;
border-radius: 999px;
background: currentcolor;
content: "";
opacity: 0;
transform: scaleX(0.35);
transform-origin: center;
}
.chrnx-primary-navigation a:hover,
.chrnx-primary-navigation a:focus-visible,
.chrnx-primary-navigation a[aria-current="page"],
.chrnx-footer-navigation a:hover,
.chrnx-footer-navigation a:focus-visible,
.chrnx-footer-navigation a[aria-current="page"] {
color: var(--chrnx-green);
text-decoration: none;
}
.chrnx-primary-navigation a:hover::after,
.chrnx-primary-navigation a:focus-visible::after,
.chrnx-primary-navigation a[aria-current="page"]::after,
.chrnx-footer-navigation a:hover::after,
.chrnx-footer-navigation a:focus-visible::after,
.chrnx-footer-navigation a[aria-current="page"]::after {
opacity: 1;
transform: scaleX(1);
}
.chrnx-site-footer__site {
font-family: var(--wp--preset--font-family--heading);
font-size: var(--wp--preset--font-size--large);
font-weight: 700;
line-height: 1.2;
}
.chrnx-site-footer__site a {
color: var(--chrnx-text);
text-decoration: none;
}
.chrnx-site-footer__credit,
.chrnx-site-footer__line {
color: var(--chrnx-muted);
font-family: var(--wp--preset--font-family--metadata);
}
.wp-site-blocks h1,
+5 -18
View File
@@ -70,6 +70,7 @@ html[data-theme="light"] header.wp-block-template-part {
flex-wrap: wrap;
align-items: center;
justify-content: space-between;
padding-block: clamp(1.5rem, 3vw, 2.5rem);
}
.chrnx-skip-link {
@@ -257,17 +258,18 @@ main#chrnx-main {
footer.wp-block-template-part {
margin-top: var(--wp--preset--spacing--60);
border-top: 1px solid color-mix(in srgb, var(--wp--preset--color--muted) 40%, transparent);
border-top: 2px solid var(--chrnx-line);
background: var(--chrnx-surface);
}
html[data-theme="light"] footer.wp-block-template-part {
border-top-color: var(--wp--preset--color--border);
border-top-color: var(--chrnx-line);
}
@media (prefers-color-scheme: light) {
:root:not([data-theme]) footer.wp-block-template-part {
border-top-color: var(--wp--preset--color--border);
border-top-color: var(--chrnx-line);
}
}
@@ -455,21 +457,6 @@ html[data-theme="light"] footer.wp-block-template-part {
min-height: 44px;
white-space: normal;
}
html[data-theme="light"] .chrnx-header-search button:focus-visible,
html[data-theme="light"] .chrnx-theme-control > [data-chrnx-theme-button]:focus-visible,
html[data-theme="light"] .chrnx-mobile-menu-toggle:focus-visible {
outline-color: var(--wp--preset--color--light-green);
}
@media (prefers-color-scheme: light) {
:root:not([data-theme]) .chrnx-header-search button:focus-visible,
:root:not([data-theme]) .chrnx-theme-control > [data-chrnx-theme-button]:focus-visible,
:root:not([data-theme]) .chrnx-mobile-menu-toggle:focus-visible {
outline-color: var(--wp--preset--color--light-green);
}
}
}
@media (prefers-reduced-motion: reduce) {