Viewing File: /home/maglabs/marco/wp-content/themes/bame/assets/sass/reset/_mobilemenu.scss
.th-menu-wrapper {
position: fixed;
top: 0;
left: 0;
bottom: 0;
background-color: rgba(0, 0, 0, 0.60);
z-index: 999999;
width: 0;
width: 100%;
height: 100%;
transition: all ease 0.8s;
opacity: 0;
visibility: hidden;
// Mobile Menu Logo
.mobile-logo {
padding-bottom: 30px;
padding-top: 40px;
display: block;
text-align: center;
background-color: $black-color2;
a {
position: relative;
display: inline-block;
.logo-mask {
height: 100%;
width: 100%;
mix-blend-mode: color;
background: $theme-color;
position: absolute;
top: 0;
}
}
svg {
max-width: 185px;
}
}
// Menu Close Button
.th-menu-toggle {
border: none;
font-size: 22px;
position: absolute;
right: -16.5px;
top: 25px;
padding: 0;
line-height: 1;
width: 33px;
height: 33px;
line-height: 35px;
font-size: 18px;
z-index: 1;
color: $title-color;
background-color: $theme-color;
border-radius: 50%;
&:hover {
background-color: $title-color;
color: $white-color;
}
}
.th-menu-area {
width: 100%;
max-width: 310px;
background-color: $title-color;
border-right: 3px solid $theme-color;
height: 100%;
position: relative;
left: -110%;
opacity: 0;
visibility: hidden;
transition: all ease 1s;
z-index: 1;
}
&.th-body-visible {
opacity: 1;
visibility: visible;
.th-menu-area {
left: 0;
opacity: 1;
visibility: visible;
}
}
}
// Mobile Menu
.th-mobile-menu {
overflow-y: scroll;
max-height: calc(100vh - 200px);
padding-bottom: 40px;
margin-top: 33px;
text-align: left;
ul {
margin: 0;
padding: 0 0;
li {
border-bottom: 1px solid $border-color;
list-style-type: none;
li:first-child {
border-top: 1px solid $border-color;
}
a {
display: block;
position: relative;
padding: 12px 0;
line-height: 1.4;
font-size: 16px;
font-family: $title-font;
font-weight: 600;
text-transform: capitalize;
color: $white-color;
}
&.th-active {
>a {
color: $theme-color;
&:before {
transform: rotate(90deg);
}
}
}
ul {
li {
padding-left: 20px;
&:last-child {
border-bottom: none;
}
}
}
}
.menu-item-has-children {
>a {
.th-mean-expand {
position: absolute;
right: 0;
top: 50%;
font-weight: 400;
font-size: 12px;
width: 25px;
height: 25px;
line-height: 25px;
margin-top: -12.5px;
display: inline-block;
text-align: center;
background-color: $black-color2;
color: $white-color;
border-radius: 50%;
&:before {
content: '\f067';
font-family: $icon-font;
}
}
&:after {
content: "\f067";
font-family: $icon-font;
@include equal-size-lineHeight(22px);
display: inline-block;
text-align: center;
font-size: 12px;
border-radius: 50px;
background-color: $black-color2;
float: right;
margin-top: 1px;
}
}
&.th-active {
>a {
.th-mean-expand:before {
content: '\f068';
}
&:after {
content: "\f068";
}
}
}
}
}
>ul {
padding: 0 40px;
>li {
&:last-child {
border-bottom: none;
}
}
}
}
.th-menu-toggle {
width: 70px;
height: 54px;
padding: 0;
font-size: 20px;
border: none;
background-color: $theme-color;
color: $white-color;
display: inline-block;
border-radius: 0px;
clip-path: polygon(12% 0%, 88% 0%, 100% 50%, 88% 100%, 12% 100%, 0% 50%);
position: relative;
.btn-border {
position: absolute;
height: calc(100% - 3px);
width: calc(100% - 3px);
top: 1.5px;
left: 1.5px;
clip-path: polygon(12% 0%, 88% 0%, 100% 50%, 88% 100%, 12% 100%, 0% 50%);
background: $title-color;
z-index: -2;
}
&:before,
&:after {
content: "";
position: absolute;
background-color: $theme-color;
z-index: -1;
transition: all 0.4s ease-out;
top: 5px;
left: 4px;
width: 16px;
height: calc(100% - 10px);
border-radius: 0;
clip-path: polygon(70% 0%, 80% 0%, 30% 50%, 80% 100%, 70% 100%, 20% 50%);
// clip-path: polygon(88% 0, 100% 0, 12% 50%, 100% 100%, 88% 100%, 0% 50%);
}
&:after {
right: 4px;
left: auto;
transform: rotate(180deg);
}
&:hover {
background-color: $theme-color2;
&:after,
&:before {
background: $theme-color2;
}
}
&.style-text,
&.style-text-white {
width: auto;
height: auto;
background-color: transparent;
color: $title-color;
font-size: 20px;
i {
margin-right: 10px;
}
}
&.style-text-white {
color: $white-color;
}
}
@media (max-width: 400px) {
.th-menu-wrapper .th-menu-area {
width: 100%;
max-width: 270px;
}
.th-mobile-menu>ul {
padding: 0 20px;
}
}
Back to Directory
File Manager