* nos metiers : injection des datas du bo * début prise en charge auth/pas auth Back * articles (pour la page actualités) * home slider : en cours
350 lines
9 KiB
SCSS
Vendored
350 lines
9 KiB
SCSS
Vendored
// :root {
|
|
// --logo-width: 225px;
|
|
// --logo-marginX: 20px;
|
|
// }
|
|
|
|
header {
|
|
grid-template-columns: 3fr 6fr 3fr;
|
|
align-items: center;
|
|
justify-items: center;
|
|
position: absolute;
|
|
// left: calc(50% - var(--container) / 2); top: 0;
|
|
// width: var(--container);
|
|
left: 0; top: 0;
|
|
width: 100%;
|
|
height: var(--header-height);
|
|
padding: 20px 20px 10px;
|
|
background-color: rgba(255, 255, 255, .5);
|
|
|
|
.toggle-menu{
|
|
align-items: center;
|
|
width: 25px;
|
|
height: 25px;
|
|
cursor: pointer;
|
|
|
|
&:hover span,
|
|
&:hover span::before,
|
|
&:hover span::after {background-color: $first_btn_color_hover;}
|
|
&.active {
|
|
span{height: 0;}
|
|
span::before{top: 0; transform: rotate(45deg);}
|
|
span::after{top: 0; transform: rotate(-45deg);}
|
|
}
|
|
span{
|
|
display: block;
|
|
position: relative;
|
|
width: 25px;
|
|
height: 3px;
|
|
background-color: $first_btn_color;
|
|
transition: background-color .8s;
|
|
|
|
&::before, &::after{
|
|
content: "";
|
|
position: absolute;
|
|
left: 0;
|
|
width: 20px;
|
|
height: 3px;
|
|
background-color: $first_btn_color;
|
|
transition: all .8s;
|
|
}
|
|
&::before{top: -9px;}
|
|
&::after{top: 9px;}
|
|
}
|
|
}
|
|
.logo{
|
|
position: relative;
|
|
justify-content: space-evenly;
|
|
align-items: center;
|
|
height: 100%;
|
|
max-height: 106px;
|
|
width: auto;
|
|
transition: transform .5s;
|
|
will-change: transform;
|
|
|
|
&:hover{transform: scale(1.1);}
|
|
a{
|
|
position: absolute;
|
|
top: -10px;
|
|
height: calc(var(--header-height) - 20px);
|
|
max-height: 106px;
|
|
width: 126px;
|
|
background-image: url("../images/logo-jeusselin.png");
|
|
background-size: cover;
|
|
background-repeat: no-repeat;
|
|
background-position-y: center;
|
|
// transition: background-image .5s;
|
|
}
|
|
}
|
|
nav{
|
|
position: absolute;
|
|
left: -105%;
|
|
top: var(--header-height);
|
|
width: 100%;
|
|
height: calc(100vh - var(--header-height));
|
|
transition: .5s;
|
|
background-color: rgba(255, 255, 255, .9);
|
|
|
|
&.active{
|
|
left: 0;
|
|
z-index: 2;
|
|
}
|
|
ul{
|
|
flex-direction: column;
|
|
align-items: center;
|
|
border-top: 1px solid $gris;
|
|
|
|
li{
|
|
width: 100%;
|
|
border-bottom: 1px solid $gris;
|
|
padding: 20px 0;
|
|
text-align: center;
|
|
|
|
&:hover a, &.active a{color: $tertiary;}
|
|
}
|
|
a{
|
|
display: block;
|
|
font-family: "Exo_2_Bold", Arial, Helvetica, sans-serif;
|
|
font-size: 2rem;
|
|
color: black;
|
|
text-decoration: none;
|
|
text-align: center;
|
|
transition: color .5s;
|
|
}
|
|
}
|
|
}
|
|
.right-menu{
|
|
display: none;
|
|
}
|
|
.right-menu-mobile{
|
|
position: relative;
|
|
top: -10px;
|
|
flex-direction: column;
|
|
height: 100%;
|
|
justify-content: space-evenly;
|
|
align-items: center;
|
|
|
|
.mobile-disconnect{
|
|
margin-left: 10px;
|
|
//display: none;
|
|
}
|
|
// .mobile-connect, .mobile-disconnect{display: none;}
|
|
// .mobile-connect.active{display: block;}
|
|
.mobile-disconnect.login{display: block;}
|
|
p{text-align: center;}
|
|
#svg-connect, #svg-search, img{
|
|
width: 25px;
|
|
height: auto;
|
|
fill: $first_btn_color;
|
|
transition: all .5s;
|
|
|
|
&:hover{fill: $first_btn_color_hover}
|
|
}
|
|
}
|
|
}
|
|
|
|
// *************************
|
|
// ** **
|
|
// *************************
|
|
// ** **
|
|
// ** **
|
|
// ** **
|
|
// ** **
|
|
// ** **
|
|
// ** **
|
|
// ** **
|
|
// *******
|
|
|
|
@media only screen and (min-width: 768px) {
|
|
header {
|
|
|
|
}
|
|
}
|
|
|
|
// ****
|
|
// * *
|
|
// * *
|
|
// * *
|
|
// * *
|
|
// * *
|
|
// * *
|
|
// * *
|
|
// * *
|
|
// * *
|
|
// * *
|
|
// * *
|
|
// * *
|
|
// ****
|
|
@media only screen and (min-width: 1024px) {
|
|
header {
|
|
grid-template-columns: 10% 70% 20%;
|
|
justify-items: normal;
|
|
|
|
.logo, nav, .toggle-menu{z-index: 1;}
|
|
.logo a{
|
|
height: calc(var(--header-height) - 20px);
|
|
width: 102px;
|
|
}
|
|
.logo img{height: 100%;}
|
|
.toggle-menu{display: none;}
|
|
nav{
|
|
position: relative;
|
|
left: 0; top: 0;
|
|
height: calc(var(--header-height) - 20px);
|
|
display: block;
|
|
background-color: transparent;
|
|
|
|
ul{
|
|
height: 100%;
|
|
flex-direction: row;
|
|
align-items: center;
|
|
justify-content: space-evenly;
|
|
border-top: none;
|
|
|
|
li{
|
|
width: unset;
|
|
padding: 5px 0;
|
|
border-bottom: 2px solid transparent;
|
|
transition: .5s;
|
|
|
|
&:hover, &.active{border-bottom: 2px solid $tertiary;}
|
|
&:hover a, &.active a{color: black;}
|
|
}
|
|
a{display: inline; font-size: 1.1rem;}
|
|
}
|
|
}
|
|
.right-menu{
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: flex-end;
|
|
position: relative;
|
|
|
|
.connect-contain{
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
align-items: center;
|
|
position: absolute;
|
|
right: 0;
|
|
top: calc(-100% - 20px);
|
|
width: 500px;
|
|
|
|
//p{display: none;}
|
|
.connect{
|
|
text-align: right;
|
|
// transform: translateY(-15%);
|
|
|
|
a{
|
|
background-image: url("../images/connect.svg");
|
|
background-size: 20px;
|
|
background-position: 10px center;
|
|
background-repeat: no-repeat;
|
|
padding-left: 40px;
|
|
margin: 10px 0 10px 10px;
|
|
font-size: .8rem;
|
|
|
|
&::after{content: "Mon compte";}
|
|
}
|
|
}
|
|
p.login{display: block;}
|
|
.connect.logout{
|
|
a::after{content: "Espace client";}
|
|
}
|
|
.disconnect{
|
|
//display: none;
|
|
width: 40px;
|
|
height: 30px;
|
|
text-align: right;
|
|
|
|
img{height: 100%;}
|
|
}
|
|
.disconnect.login{display: block;}
|
|
}
|
|
.search{
|
|
justify-content: flex-end;
|
|
transition: all .5s;
|
|
|
|
input[type="text"]{
|
|
font-size: .8rem;
|
|
width: 70%;
|
|
padding: 7px 20px 7px 30px;
|
|
border: none;
|
|
border-radius: 20px 0 0 20px;
|
|
background-image: url("../images/search.svg");
|
|
background-size: 16px;
|
|
background-position: 10px center;
|
|
background-repeat: no-repeat;
|
|
}
|
|
button{
|
|
font-size: .8rem;
|
|
border: none;
|
|
padding: 7px 10px;
|
|
margin: 0;
|
|
border-radius: 0 20px 20px 0;
|
|
|
|
&:hover{color: $second_color_hover;}
|
|
}
|
|
}
|
|
}
|
|
.right-menu-mobile{display: none;}
|
|
}
|
|
header.sticky-bar{
|
|
position: fixed;
|
|
height: 55px;
|
|
padding: 0 20px;
|
|
background-color: rgba(244, 244, 244, 1);
|
|
z-index: 99;
|
|
|
|
nav{height: 55px;}
|
|
.logo a{
|
|
top: 0;
|
|
height:100%;
|
|
background-image: url("../images/logo-jeusselin-fixed.png");
|
|
background-size: unset;
|
|
}
|
|
.right-menu .search{display: none;}
|
|
.right-menu .connect-contain{top: calc(-100% - 27px);}
|
|
.right-menu .connect{top: 0; transform: translateY(0);}
|
|
}
|
|
}
|
|
|
|
// ********
|
|
// * ***** *
|
|
// * * * *
|
|
// *** * *
|
|
// * *
|
|
// * *
|
|
// * *
|
|
// * *
|
|
// * *
|
|
// * *
|
|
// * *
|
|
// * *
|
|
// * *
|
|
// * *
|
|
// * *
|
|
// * **************
|
|
// * *
|
|
// *****************
|
|
@media only screen and (min-width: 1440px) {
|
|
header {
|
|
}
|
|
}
|
|
|
|
// ************
|
|
// * ****
|
|
// ********* *
|
|
// ***** *
|
|
// ** *
|
|
// ** *
|
|
// ********** *
|
|
// * *
|
|
// ********* *
|
|
// ***** *
|
|
// ** *
|
|
// ** *
|
|
// ********** *
|
|
// * ***
|
|
// ************
|
|
@media only screen and (min-width: 1920px) {
|
|
header {
|
|
}
|
|
}
|