more header styles

This commit is contained in:
Lyn Fugmann 2024-09-20 15:38:16 +02:00
parent c1608f3df1
commit ac141f4be3
2 changed files with 34 additions and 2 deletions

View file

@ -9,13 +9,17 @@
{% css %} {% css %}
header { header {
display: flex;
position: sticky; position: sticky;
backdrop-filter: blur(5px);
background-color: #ffffffcc;
top: 0; top: 0;
min-height: 6.4rem;
padding: 2rem 0; padding: 2rem 0;
backdrop-filter: blur(5px);
background-color: rgba(255,255,255,.92);
box-shadow: 0 3px 15px hsla(0,0%,39.2%,.12);
} }
.header-container { .header-container {
width: 100%;
max-width: var(--page-width); max-width: var(--page-width);
margin-left: auto; margin-left: auto;
margin-right: auto; margin-right: auto;
@ -29,5 +33,30 @@ header {
} }
#mainNav li { #mainNav li {
display: inline; display: inline;
margin-left: 1rem;
}
#mainNav a {
position: relative;
font-size: 16px;
font-family: Aileron;
font-weight: 500;
line-height: 2;
text-transform: uppercase;
color: var(--color-text);
text-decoration: none;
}
#mainNav a::after {
content: "";
position: absolute;
background: var(--color-primary);
opacity: 0;
bottom: -4px;
left: 0;
right: 0;
height: 2px;
transition: opacity .3s ease-out;
}
#mainNav a:hover::after {
opacity: 1;
} }
{% endcss %} {% endcss %}

View file

@ -30,6 +30,9 @@ eleventyComputed:
--color-primary: {{ eseColor }}; --color-primary: {{ eseColor }};
font-size: 17px; font-size: 17px;
} }
* {
box-sizing: border-box;
}
body { body {
margin: 0; margin: 0;
font-family: sans-serif; font-family: sans-serif;