ldc-doux/resources/sass/frontend/_header.scss

121 lines
2.2 KiB
SCSS
Raw Permalink Normal View History

2021-11-25 17:16:10 +01:00
.site-header {
position: fixed;
left: 0;
right: 0;
2021-11-18 14:36:06 +01:00
font-family: $fontbarlow-bold;
2021-11-25 17:16:10 +01:00
background-color: $color-main;
box-shadow: 0 2px 8px rgba($color-dark, 0.15);
z-index: 99;
svg {
.cls-1 {
fill: #000;
}
.cls-2 {
fill: transparent;
}
}
&.blue-bg {
background-color: $color-blue;
svg {
.cls-1 {
fill: #fff;
}
}
}
.wrapper {
display: flex;
align-items: center;
2021-11-18 14:36:06 +01:00
}
2021-11-25 17:16:10 +01:00
.logotype {
top: 0;
left: 1em;
2021-11-18 14:36:06 +01:00
width: 25%;
2021-11-25 17:16:10 +01:00
z-index: 1;
img {
width: 200px;
2021-11-18 14:36:06 +01:00
}
}
2021-11-25 17:16:10 +01:00
> span {
width: 25%;
text-align: right;
2021-11-18 14:36:06 +01:00
}
2021-11-25 17:16:10 +01:00
nav li {
display: inline-block;
2021-11-18 14:36:06 +01:00
}
2021-11-25 17:16:10 +01:00
nav a {
color: $color-blue;
text-decoration: none;
&:hover {
color: $color-second;
2021-11-18 14:36:06 +01:00
}
2022-03-01 18:40:52 +01:00
&.menu__item--current {
color: $color-second;
}
2021-11-18 14:36:06 +01:00
}
2021-11-25 17:16:10 +01:00
.traduction {
display: flex;
li {
margin-right: 15px;
a {
2022-03-01 18:40:52 +01:00
font-size: 14px;
2021-11-25 17:16:10 +01:00
color: $color-blue;
text-transform: uppercase;
text-decoration: none;
2021-11-18 14:36:06 +01:00
}
2021-11-25 17:16:10 +01:00
&.current a {
color: $color-second;
2021-11-18 14:36:06 +01:00
}
2021-11-25 17:16:10 +01:00
&:last-of-type {
margin-right: 0;
2021-11-18 14:36:06 +01:00
}
}
}
2022-03-01 18:40:52 +01:00
&.blue-bg .traduction li a {
color: white;
2022-03-01 18:40:52 +01:00
}
&.blue-bg .traduction li.current a {
color: $color-second;
}
2021-11-18 14:36:06 +01:00
}
2021-11-25 17:16:10 +01:00
@media screen and (min-width: 800px) {
.site-header {
2022-03-01 18:40:52 +01:00
.traduction li a {
font-size: 18px;
}
2021-11-25 17:16:10 +01:00
.wrapper {
2021-11-18 14:36:06 +01:00
justify-content: space-between;
2021-11-25 17:16:10 +01:00
height: 100px;
}
&.blue-bg {
nav a:not(.featured-link),
.traduction li a {
color: white;
&:hover {
color: $color-second;
}
}
2021-11-18 14:36:06 +01:00
}
}
}
2021-11-25 17:16:10 +01:00
@media screen and (max-width: 799px) {
.site-header {
.wrapper {
2021-11-18 14:36:06 +01:00
justify-content: flex-end;
2021-11-25 17:16:10 +01:00
height: 50px;
2021-11-18 14:36:06 +01:00
}
.logotype img {
width: 100px;
}
2021-11-18 14:36:06 +01:00
}
2021-11-25 17:16:10 +01:00
}