ese-website/_includes/header.css
2024-09-24 16:45:36 +02:00

79 lines
1.4 KiB
CSS

header {
display: flex;
position: sticky;
top: 0;
min-height: 9rem;
padding: 2rem 0;
backdrop-filter: blur(5px);
background-color: var(--color-background-header);
box-shadow: 0 3px 15px hsla(0,0%,39.2%,.12);
}
.header-container {
display: flex;
justify-content: space-between;
align-items: center;
}
#header-logo img {
max-height: 60px;
display: block;
}
#mainNav ul {
margin: 0;
padding: 0;
}
#mainNav li {
display: inline-block;
margin-left: 1.9rem;
}
.nav-item {
position: relative;
font-size: 16px;
font-family: Aileron;
font-weight: 500;
line-height: 2;
text-transform: uppercase;
color: var(--color-text);
text-decoration: none;
}
.nav-item::after {
content: "";
position: absolute;
background: var(--color-primary);
opacity: 0;
bottom: -4px;
left: 0;
right: 0;
height: 2px;
transition: opacity .3s ease-out;
}
.nav-item:hover::after,
.nav-item.active::after {
opacity: 1;
}
.nav-item-stream {
padding: .75rem 1.4rem;
border: 2px solid var(--color-primary);
border-radius: 3rem;
color: var(--color-primary);
font-family: Aileron;
font-weight: 500;
letter-spacing: 2px;
text-decoration: none;
text-transform: uppercase;
transition: .2s ease-out;
transition-property: color, background-color;
}
.nav-item-stream:hover {
color: var(--color-livestream-active);
background-color: var(--color-primary);
}