From: Danilo M. Date: Sun, 5 Apr 2026 06:37:01 +0000 (+0200) Subject: style: update header and footer with theme variables X-Git-Url: https://git.danix.xyz/?a=commitdiff_plain;h=fe464303e03dd6626296ea4c508c8a87b4adcce0;p=danix2-hugo-theme.git style: update header and footer with theme variables Co-Authored-By: Claude Haiku 4.5 --- diff --git a/assets/css/components/footer.css b/assets/css/components/footer.css index abe2b5a..17946ec 100644 --- a/assets/css/components/footer.css +++ b/assets/css/components/footer.css @@ -1,4 +1,64 @@ +/* footer.css */ footer { - border-top: 1px solid #222; - margin-top: 1rem; + background: var(--bg2); + border-top: 1px solid var(--border); + margin-top: var(--gap-xl); + padding: 2rem 0 1rem; + font-size: 0.85rem; +} + +.footer-container { + max-width: var(--container-max); + margin: 0 auto; + padding: 0 1.5rem; + text-align: center; + color: var(--text-dim); +} + +.footer-container a { + color: var(--accent); +} + +.footer-container a:hover { + color: var(--accent2); +} + +.footer-content { + display: flex; + justify-content: space-between; + align-items: center; + flex-wrap: wrap; + gap: 1rem; + margin-bottom: 1rem; +} + +.footer-nav { + list-style: none; + display: flex; + gap: 2rem; + margin: 0; +} + +.footer-nav a { + font-family: var(--font-mono); + font-size: 0.75rem; + text-transform: uppercase; + letter-spacing: 0.08em; +} + +.footer-copyright { + color: var(--muted); + font-family: var(--font-mono); + font-size: 0.75rem; +} + +@media (max-width: 600px) { + .footer-content { + flex-direction: column; + } + + .footer-nav { + flex-direction: column; + gap: 0.5rem; + } } diff --git a/assets/css/components/header.css b/assets/css/components/header.css index 8efea1e..acb009d 100644 --- a/assets/css/components/header.css +++ b/assets/css/components/header.css @@ -1,4 +1,89 @@ +/* header.css */ header { - border-bottom: 1px solid #222; - margin-bottom: 1rem; + background: var(--bg); + border-bottom: 1px solid var(--border); + padding: 1rem 0; + position: sticky; + top: 0; + z-index: 100; +} + +.header-container { + max-width: var(--container-max); + margin: 0 auto; + padding: 0 1.5rem; + display: flex; + justify-content: space-between; + align-items: center; +} + +.site-title { + font-family: var(--font-head); + font-size: 1rem; + font-weight: 800; + color: var(--accent); + text-decoration: none; + margin: 0; +} + +.header-controls { + display: flex; + gap: 1.5rem; + align-items: center; +} + +nav ul { + list-style: none; + display: flex; + gap: 2rem; + margin: 0; +} + +nav a { + font-family: var(--font-mono); + font-size: var(--fs-nav); + text-transform: uppercase; + letter-spacing: 0.08em; + color: var(--text-dim); + transition: var(--transition); +} + +nav a:hover, +nav a.active { + color: var(--accent); +} + +.theme-toggle { + background: var(--surface); + border: 1px solid var(--border); + color: var(--text); + padding: 0.5rem 1rem; + border-radius: 4px; + cursor: pointer; + font-family: var(--font-mono); + font-size: var(--fs-nav); + transition: var(--transition); +} + +.theme-toggle:hover { + background: var(--border); + color: var(--accent); +} + +@media (max-width: 768px) { + .header-container { + flex-wrap: wrap; + gap: 1rem; + } + + nav ul { + order: 3; + width: 100%; + gap: 1rem; + flex-wrap: wrap; + } + + .header-controls { + gap: 1rem; + } }