File: /var/www/quadcode-site/src/style/components/menu-mobile.scss
.menu-mobile__tabs {
position: fixed;
bottom: 0;
right: 0;
left: 0;
background: rgba(242, 246, 249, 0.8);
backdrop-filter: blur(7px);
display: flex;
}
.menu-mobile__tabsItem {
font-size: 14px;
font-weight: 700;
line-height: 20px;
width: calc(100% / 2);
position: relative;
display: block;
text-align: center;
padding: 15px 20px 38px 20px;
&:last-of-type {
transition: 0.4s ease-in-out;
color: rgba(50, 50, 50, 1);
border-right: 2px solid rgba(255, 255, 255, 1);
&:hover {
color: rgba(20, 20, 20, 1);
}
}
&.active {
background: rgba(255, 255, 255, 1);
&:after {
content: '';
position: absolute;
height: 2px;
width: 100%;
top: 0;
left: 0;
right: 0;
background: rgba(230, 35, 52, 1);
}
}
}
.menu-mobile {
position: fixed;
right: 0;
left: 0;
top: 0;
bottom: 0;
background: rgba(242, 246, 249, 1);
z-index: 100;
pointer-events: none;
opacity: 0;
transition: 0.4s ease;
display: none;
@include breakpoint-down('deskS') {
display: block;
}
&__content {
width: 100%;
height: 100%;
padding-bottom: 140px;
overflow-y: auto;
display: flex;
flex-direction: column;
@include breakpoint-down('mobM') {
width: 100%;
}
&::-webkit-scrollbar {
width: 0;
display: none;
}
}
&__inner {
width: 100%;
padding-top: 121px;
padding-bottom: 32px;
}
&__close {
position: absolute;
right: 10px;
top: 10px;
z-index: 1;
width: 40px;
height: 40px;
display: flex;
align-items: center;
justify-content: center;
background: rgba(230, 35, 52, 1);
}
&__list {
border-bottom: 1px solid rgba(242, 246, 249, 1);
&.open {
.menu-mobile__listBody {
opacity: 1;
}
.menu-mobile__listHeader {
background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M26 23L20 17L14 23' stroke='%23E62334' stroke-width='3'/%3E%3C/svg%3E%0A");
}
}
}
&__listHeader {
font-size: 20px;
font-weight: 700;
line-height: 28px;
text-align: right;
transition: 0.3s cubic-bezier(0.46, 0.03, 0.52, 0.96);
padding: 21px 85px 21px 40px;
background-color: rgba(255, 255, 255, 1);
background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14 17L20 23L26 17' stroke='%23F5333F' stroke-width='3'/%3E%3C/svg%3E%0A");
background-repeat: no-repeat;
background-size: 40px 40px;
background-position-y: center;
background-position-x: calc(100% - 21px);
}
&__listBody {
overflow: hidden;
opacity: 0;
height: 0;
transition: 0.3s cubic-bezier(0.46, 0.03, 0.52, 0.96);
}
&__listLink {
transition: 0.4s ease;
font-size: 17px;
font-weight: 500;
line-height: 24px;
display: flex;
justify-content: flex-end;
width: 100%;
padding: 20px 85px 20px 21px;
border-bottom: 2px solid rgba(255, 255, 255, 1);
background: rgba(248, 251, 253, 1);
}
&.open {
pointer-events: all;
opacity: 1;
transition: 0.4s ease;
}
.social {
margin-inline: auto;
}
}