liebling/src/sass/components/header/_nav.scss

162 lines
2.8 KiB
SCSS
Raw Normal View History

2019-05-21 19:50:29 +00:00
.m-nav {
@include respond-to('medium') {
display: flex;
align-items: center;
justify-content: space-between;
2020-08-05 19:37:36 +00:00
height: 37px;
overflow-y: hidden;
}
@include respond-to('largest') {
margin: 0 -5px;
}
&.toggle-overflow {
@include respond-to('medium') {
overflow-y: initial;
}
2019-05-21 19:50:29 +00:00
}
}
.m-nav__left {
margin-bottom: 30px;
@include respond-to('medium') {
2020-08-05 19:37:36 +00:00
display: flex;
flex: 1 1 auto;
align-items: center;
overflow-x: auto;
overflow-y: hidden;
white-space: nowrap;
padding-top: 40px;
padding-bottom: 40px;
padding-left: 5px;
2019-05-21 19:50:29 +00:00
margin-bottom: 0;
2020-08-05 19:37:36 +00:00
-webkit-overflow-scrolling: touch;
}
&.toggle-overflow {
@include respond-to('medium') {
overflow-x: hidden;
}
2019-05-21 19:50:29 +00:00
}
ul:not(.m-secondary-menu) {
2019-05-21 19:50:29 +00:00
padding: 0;
margin: 0;
@include respond-to('medium') {
display: flex;
align-items: center;
}
2020-07-02 20:23:00 +00:00
}
2019-05-21 19:50:29 +00:00
2020-07-02 20:23:00 +00:00
li {
color: var(--titles-color);
letter-spacing: 0.3px;
font-size: 1.125rem;
margin-bottom: 15px;
2019-05-21 19:50:29 +00:00
2020-07-02 20:23:00 +00:00
@include respond-to('medium') {
margin-bottom: 0;
margin-right: 35px;
position: relative;
}
2019-05-21 19:50:29 +00:00
2020-07-02 20:23:00 +00:00
&:last-of-type {
margin-bottom: 0;
}
2019-05-21 19:50:29 +00:00
2020-07-02 20:23:00 +00:00
&.nav-current {
font-weight: 600;
}
a {
color: inherit;
}
2019-05-21 19:50:29 +00:00
2020-07-02 20:23:00 +00:00
&.more {
2019-05-21 19:50:29 +00:00
a {
2020-07-02 20:23:00 +00:00
display: inline-flex;
align-items: center;
@include respond-to('medium') {
display: flex;
}
2020-04-27 22:01:48 +00:00
2020-07-02 20:23:00 +00:00
span {
display: inline-block;
color: inherit;
2021-01-04 14:52:09 +00:00
font-size: 1rem;
2020-07-02 20:23:00 +00:00
margin-left: 8px;
@include transform(translateY(1px));
2020-04-27 22:01:48 +00:00
}
}
2019-05-21 19:50:29 +00:00
}
2020-08-05 19:37:36 +00:00
&.submenu-option {
@include respond-to('medium') {
z-index: 2;
}
}
2019-05-21 19:50:29 +00:00
}
}
2019-09-20 21:30:08 +00:00
2019-11-12 16:48:45 +00:00
.m-nav__right {
display: flex;
align-items: center;
justify-content: flex-end;
2020-08-05 19:37:36 +00:00
@include respond-to('medium') {
flex-shrink: 0;
position: relative;
padding-left: 20px;
padding-right: 5px;
}
&:before {
@include respond-to('medium') {
content: '';
position: absolute;
pointer-events: none;
top: 0;
left: -20px;
width: 20px;
height: 100%;
z-index: 2;
2021-01-04 17:32:25 +00:00
background: linear-gradient(90deg, var(--header-menu-gradient-first-color) 0, var(--header-menu-gradient-second-color));
2020-08-05 19:37:36 +00:00
}
}
2019-11-12 16:48:45 +00:00
}
2019-09-20 21:30:08 +00:00
.rtl {
2020-08-05 19:37:36 +00:00
.m-nav__left {
2019-09-20 21:30:08 +00:00
@include respond-to('medium') {
2020-08-05 19:37:36 +00:00
padding-left: 0;
padding-right: 5px;
}
2019-09-20 21:30:08 +00:00
2020-08-05 19:37:36 +00:00
li {
@include respond-to('medium') {
margin-right: 0;
margin-left: 35px;
}
}
}
.m-nav__right {
@include respond-to('medium') {
padding-left: 5px;
padding-right: 20px;
}
&:before {
@include respond-to('medium') {
left: auto;
right: -20px;
@include transform(rotate(180deg));
2019-09-20 21:30:08 +00:00
}
}
}
}