ldc-boutique-cnc-themes/sass/header.scss
2022-03-11 10:51:49 +01:00

318 lines
6.1 KiB
SCSS

/* header START */
.header {
position: sticky;
top: 0;
z-index: 10;
}
.header__container {
padding: 25px 0;
//background: $primary;
&.bandeau{
background-color: $primary;
// background: linear-gradient(
// rgba(255, 255, 255, 0.3),
// rgba(255, 255, 255, 0.5)
// ), url("../img/header/header-all.png"), url("../img/header/bg-repeat.jpg");
background-size: cover;
background-position-x: right, right;
background-repeat: no-repeat;
color: $light-text;
&.winter {
// background: linear-gradient(
// rgba(255, 255, 255, 0.3),
// rgba(255, 255, 255, 0.5)
// ), url("../img/header/hiver.jpg"), url("../img/header/bg-repeat.jpg");
// background-size: cover;
// background-position-x: right, right;
// background-repeat: no-repeat;
}
&.spring {
// background: linear-gradient(
// rgba(255, 255, 255, 0.3),
// rgba(255, 255, 255, 0.5)
// ), url("../img/header/printemps.jpg"), url("../img/header/bg-repeat.jpg");
// background-size: cover;
// background-position-x: right, right;
// background-repeat: no-repeat;
}
&.summer {
// background: linear-gradient(
// rgba(255, 255, 255, 0.3),
// rgba(255, 255, 255, 0.5)
// ), url("../img/header/ete.jpg"), url("../img/header/bg-repeat.jpg");
// background-size: cover;
// background-position-x: right, right;
// background-repeat: no-repeat;
}
&.fall {
// background: linear-gradient(
// rgba(255, 255, 255, 0.3),
// rgba(255, 255, 255, 0.5)
// ), url("../img/header/automne.jpg"), url("../img/header/bg-repeat.jpg");
// background-size: cover;
// background-position-x: right, right;
// background-repeat: no-repeat;
}
}
}
.header__inner {
display: flex;
align-items: center;
}
.header__block {
display: flex;
align-items: center;
flex: 1;
}
.header__block_middle {
flex: 0 0 auto;
justify-content: center;
}
.header__block_right {
justify-content: flex-end;
}
.header__logo {
display: block;
width: 100%;
height: 36px;
position: relative;
z-index: 2;
img {
height: inherit;
}
}
.header-actions {
display: flex;
align-items: center;
//color: #fff;
text-transform: uppercase;
}
.header-actions__item {
display: flex;
align-items: center;
cursor: pointer;
transition: all 0.3s;
}
.header-actions__item:hover {
color: $light-text;
}
.header-actions__item:not(:last-child) {
margin-right: 30px;
}
.header-actions__item-icon {
margin-right: 10px;
}
/* header END */
/* menu trigger START */
.menu-trigger {
display: flex;
align-items: center;
cursor: pointer;
margin-right: 40px;
}
.menu-trigger__lines {
flex: 0 0 auto;
width: 34px;
cursor: pointer;
margin-right: 10px;
}
.menu-trigger__lines i {
display: block;
width: 100%;
height: 4px;
border-radius: 10px;
background: $light-text;
position: relative;
transition: all 0.3s;
transform-origin: 50% 50%;
margin: 0 auto;
}
.menu-trigger__lines i:nth-child(2) {
margin-top: 6px;
margin-bottom: 6px;
}
.menu-trigger__text {
text-transform: uppercase;
//color: #fff;
transition: all 0.3s;
}
.menu-trigger.active .menu-trigger__lines i:nth-child(2) {
transform: rotateY(90deg);
}
.menu-trigger.active .menu-trigger__lines i:nth-child(1) {
transform: translate3d(0, 10px, 0) rotate(45deg);
}
.menu-trigger.active .menu-trigger__lines i:nth-child(3) {
transform: translate3d(0, -10px, 0) rotate(-45deg);
}
.menu-trigger:hover .menu-trigger__text {
color: $light-text;
}
/* menu trigger END */
/* menu START */
.menu {
display: none;
}
.menu__container {
padding: 30px 0;
background: $menu-bg;
}
.menu__inner {
display: flex;
flex-flow: row wrap;
}
.menu-block:not(:last-child) {
margin-right: 75px;
}
.menu-block__title {
//font-style: italic;
font-family: 'Barlow_Extra_Bold', sans-serif;
color: $primary;
margin-bottom: 5px;
text-transform: uppercase;
}
.menu-block__list li {
display: block;
}
.menu-block__list li:not(:last-child) {
margin-bottom: 5px;
}
.menu-block__list li a {
display: flex;
align-items: center;
//text-transform: uppercase;
//color: $primary;
transition: all 0.3s ease-in-out;
}
.menu-block__list li a:hover {
transform: translateX(10px);
}
.menu-block__list li a::before {
content: '';
display: block;
width: 7px;
height: 12px;
background: url(../img/menu-arrow.png) center center no-repeat;
margin-right: 10px;
transform: translateY(-1px);
}
/* menu END */
// *************************
// ** **
// *************************
// ** **
// ** **
// ** **
// ** **
// ** **
// ** **
// ** **
// *******
@media only screen and (min-width: 768px) {
}
// ****
// * *
// * *
// * *
// * *
// * *
// * *
// * *
// * *
// * *
// * *
// * *
// * *
// ****
@media only screen and (min-width: 1024px) {
.header__logo img {
position: absolute;
top: -44px;
height: 150px;
}
}
// ********
// * ***** *
// * * * *
// *** * *
// * *
// * *
// * *
// * *
// * *
// * *
// * *
// * *
// * *
// * *
// * *
// * **************
// * *
// *****************
@media only screen and (min-width: 1440px) {
}
// ************
// * ****
// ********* *
// ***** *
// ** *
// ** *
// ********** *
// * *
// ********* *
// ***** *
// ** *
// ** *
// ********** *
// * ***
// ************
@media only screen and (min-width: 1920px) {
}