index-website-static/assets/css/partials/_site-header.scss

151 lines
2.2 KiB
SCSS
Raw Normal View History

2025-12-16 18:00:01 +01:00
@keyframes add-border {
from {
border-bottom-color: transparent;
}
to {
border-bottom: var(--grey-800);
}
}
#site-header {
2025-12-23 17:29:27 +01:00
2025-12-16 18:00:01 +01:00
z-index: 900;
--gap: 3ch;
2025-12-23 17:29:27 +01:00
width: 100vw;
2025-12-16 18:00:01 +01:00
height: var(--header-h);
background-color: var(--color-bg);
2025-12-23 17:29:27 +01:00
padding: 0 var(--padding-body);
.site-header__inner{
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: space-between;
gap: var(--gap);
}
2025-12-16 18:00:01 +01:00
a{
text-decoration: none;
&:hover{
color: var(--grey-200);
}
}
#site-title {
flex-grow: 2;
svg{
width: 100px;
2025-12-24 17:04:37 +01:00
@media #{$small}{
width: 80px;
}
2025-12-16 18:00:01 +01:00
}
}
2025-12-24 17:04:37 +01:00
.title-page{
display: none;
flex-grow: 2;
text-align: left;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
text-transform: uppercase;
font-size: var(--fs-small);
line-height: 2;
}
2025-12-16 18:00:01 +01:00
ul{
list-style-type: none;
display: flex;
align-items: center;
2025-12-16 18:36:28 +01:00
gap: var(--gap);
2025-12-16 18:00:01 +01:00
text-transform: uppercase;
}
2025-12-16 18:36:28 +01:00
2025-12-16 18:00:01 +01:00
2025-12-24 17:04:37 +01:00
#theme-toggle{
width: var(--h-block);
height: var(--h-block);
display: flex;
align-items: center;
justify-content: center;
svg{
width: 18px;
position: relative;
top: -2px;
}
}
2025-12-16 18:00:01 +01:00
#lang-toggle{
display: flex;
gap: 1ch;
button:disabled{ color: var(--color-txt-light); }
}
#menu-toggle{
cursor: pointer;
svg{
width: 30px;
}
.close{ display: none; }
}
button{
&:hover{
svg{ fill: var(--grey-200)!important; }
}
}
}
2025-12-23 17:29:27 +01:00
#site-header.is-visible{
position: fixed;
top: 0;
2025-12-23 19:17:52 +01:00
.site-header__inner{
border-bottom: var(--border-light);
2025-12-24 17:04:37 +01:00
#nav-highlight li:not(.soutenir){
display: none;
}
#site-title {
@media #{$small-up}{
flex-grow: 0;
width: calc((100vw - var(--max-w-content))/2 - var(--padding-body)*2);
}
@media #{$medium}{
width: calc(var(--banner-medium) - var(--padding-body));
}
}
.title-page{
@media #{$small-up}{
display: block;
}
flex-grow: 2;
}
2025-12-23 19:17:52 +01:00
}
2025-12-23 17:29:27 +01:00
& ~ main{
margin-top: var(--header-h);
}
}
2025-12-23 19:17:52 +01:00
@media #{$medium}{
#nav-highlight{
display: none;
}
}
2025-12-24 17:04:37 +01:00