diff --git a/src/assets/styles/components/_header.scss b/src/assets/styles/components/_header.scss index 0f2f6e0..65abe83 100644 --- a/src/assets/styles/components/_header.scss +++ b/src/assets/styles/components/_header.scss @@ -1,35 +1,40 @@ header { - min-width: 100%; + min-width: 100%; } #header--container { - width: 90%; - max-width: var(--max-width); - padding: var(--s0) 0; - margin: 0 auto; - - display: flex; - flex-direction: row; - flex-wrap: wrap; - justify-content: space-between; - align-items: center; - - color: var(--text); + width: 90%; + max-width: var(--max-width); + padding: var(--s1) 0; + margin: 0 auto; + + display: flex; + flex-direction: column; + flex-wrap: wrap; + align-items: left; - & a { color: var(--text); - text-decoration: none; - &:hover { - text-decoration: underline; - } } + + #header--title a { + font-size: var(--s3); + font-weight: 200; + background: linear-gradient( + to right, + var(--text), + var(--text) 63%, + var(--link-color) 63% + ); + background-clip: text; + -webkit-background-clip: text; + -webkit-text-fill-color: transparent; + text-decoration: none; } -#header--title a { - font-size: var(--s2); - font-weight: 500; - &:hover { - text-decoration: none; - - } -} \ No newline at end of file +@media screen and (min-width: 48rem) { + #header--container { + flex-direction: row; + justify-content: space-between; + align-items: center; + } +} diff --git a/src/assets/styles/components/_nav.scss b/src/assets/styles/components/_nav.scss index 6e59387..9a133a3 100644 --- a/src/assets/styles/components/_nav.scss +++ b/src/assets/styles/components/_nav.scss @@ -1,10 +1,30 @@ -nav { - & ul { - list-style-type: none; +nav ul { + padding: 0; + display: block; display: flex; flex-direction: row; - gap: var(--s0); + flex-wrap: wrap; + list-style-type: none; + gap: var(--s0) var(--s2); + font-size: var(--s0); + & li::before { + content: '\200B'; + } + & li a { + color: var(--text); + text-decoration: none; + &:hover { + text-decoration: underline; + } + } +} - font-size: var(--s1); - } -} \ No newline at end of file +.nav--active { + text-decoration: underline; +} + +@media screen and (min-width: 48rem) { + nav ul { + font-size: var(--s1); + } +} diff --git a/src/includes/partials/nav.njk b/src/includes/partials/nav.njk index ce01386..b4fd8ea 100644 --- a/src/includes/partials/nav.njk +++ b/src/includes/partials/nav.njk @@ -1,11 +1,15 @@