index-main/assets/css/partials/_site-header.scss

124 lines
1.8 KiB
SCSS
Raw Normal View History

2026-01-06 11:19:25 +01:00
#site-header {
2025-11-04 08:33:39 +01:00
2026-01-23 17:38:08 +01:00
z-index: var(--z-header);
2026-01-06 11:19:25 +01:00
--gap: 3ch;
2025-11-04 08:33:39 +01:00
2026-01-22 14:46:05 +01:00
position: fixed;
top: 0;
left: 0;
2026-01-06 11:19:25 +01:00
width: 100vw;
height: var(--header-h);
background-color: var(--color-bg);
padding: 0 var(--padding-body);
2025-11-04 08:33:39 +01:00
2026-01-23 17:38:08 +01:00
box-shadow: -1px 4px 10px 0px var(--color-bg);
2026-01-06 11:19:25 +01:00
.site-header__inner{
width: 100%;
height: 100%;
2026-01-22 14:46:05 +01:00
border-bottom: 1px solid var(--color-bg);
transition: border-color ease-in .5s;
2025-11-04 08:33:39 +01:00
display: flex;
align-items: center;
justify-content: space-between;
2026-01-06 11:19:25 +01:00
gap: var(--gap);
}
2025-11-04 08:33:39 +01:00
2026-01-06 11:19:25 +01:00
a{
text-decoration: none;
&:hover{
color: var(--grey-200);
2025-11-04 08:33:39 +01:00
}
2026-01-06 11:19:25 +01:00
}
2025-11-04 08:33:39 +01:00
2026-01-06 11:19:25 +01:00
#site-title {
flex-grow: 2;
svg{
width: 100px;
@media #{$small}{
width: 80px;
}
2025-11-04 08:33:39 +01:00
}
2026-01-06 11:19:25 +01:00
}
2026-01-08 14:53:08 +01:00
.header__title-page{
2026-01-06 11:19:25 +01:00
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;
}
ul{
list-style-type: none;
display: flex;
align-items: center;
gap: var(--gap);
text-transform: uppercase;
}
2025-11-04 08:33:39 +01:00
2026-01-06 11:19:25 +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-11-04 08:33:39 +01:00
}
2026-01-06 11:19:25 +01:00
}
2025-11-04 08:33:39 +01:00
2026-01-06 11:19:25 +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; }
}
2025-11-04 08:33:39 +01:00
2026-01-06 11:19:25 +01:00
button{
&:hover{
svg{ fill: var(--grey-200)!important; }
2025-11-04 08:33:39 +01:00
}
2026-01-06 11:19:25 +01:00
}
2025-11-04 08:33:39 +01:00
2026-01-06 11:19:25 +01:00
}
2025-11-04 08:33:39 +01:00
2026-01-22 14:46:05 +01:00
#site-header.is-visible{
2026-01-23 17:38:08 +01:00
// .site-header__inner{
// border-color: var(--grey-800);
// }
2026-01-06 11:19:25 +01:00
}
2025-11-04 08:33:39 +01:00
2026-01-06 11:19:25 +01:00
@media #{$medium}{
#nav-highlight{
display: none;
}
}
2025-11-04 08:33:39 +01:00