Murugan_Temple/public/assets/sass/reset/_mobile-menu.scss
Alaguraj0361 4785c22a25
Some checks failed
Build and Deploy Build Output / build (push) Has been cancelled
first commit
2025-11-07 10:51:36 +05:30

262 lines
4.7 KiB
SCSS

.mobile-menu-wrapper {
position: fixed;
top: 0;
left: 0;
bottom: 0;
background-color: rgba(0, 0, 0, 0.9);
z-index: 999999;
width: 0;
width: 100%;
height: 100%;
transition: all ease 0.8s;
opacity: 0;
visibility: hidden;
// Mobile Menu Logo
.mobile-logo {
padding: 0 0 0 30px;
display: flex;
gap: 30px;
justify-content: space-between;
align-items: center;
background-color: $smoke-color2;
border-bottom: 1px solid $theme-color;
svg {
max-width: 185px;
}
}
// Menu Close Button
.menu-toggle {
border: 0;
border-left: 1px solid $theme-color;
font-size: 22px;
right: -16.5px;
top: 25px;
padding: 20px 30px 20px 30px;
line-height: 1;
line-height: 36px;
font-size: 18px;
z-index: 1;
color: $theme-color;
background-color: transparent;
border-radius: 0;
&:hover {
background-color: $theme-color;
color: $white-color;
}
}
.mobile-menu-area {
width: 100%;
max-width: 310px;
background-color: #fff;
height: 100%;
position: relative;
left: -110%;
opacity: 0;
visibility: hidden;
transition: all ease 1s;
z-index: 1;
}
&.body-visible {
opacity: 1;
visibility: visible;
.mobile-menu-area {
left: 0;
opacity: 1;
visibility: visible;
}
}
}
// Mobile Menu
.mobile-menu {
overflow-y: scroll;
max-height: calc(100vh - 200px);
padding-bottom: 40px;
margin-top: 20px;
text-align: left;
ul {
margin: 0;
padding: 0 0;
li {
border-bottom: 1px solid #fdedf1;
list-style-type: none;
li:first-child {
border-top: 1px solid #fdedf1;
}
a {
display: block;
position: relative;
padding: 12px 0;
line-height: 1.4;
font-size: 16px;
text-transform: capitalize;
color: $title-color;
padding-left: 0px;
&.active {
color: $theme-color;
}
}
&.active-class {
>a {
color: $theme-color;
&:before {
transform: rotate(90deg);
}
}
}
ul {
li {
padding-left: 20px;
&:last-child {
border-bottom: none;
}
}
}
}
.submenu-item-has-children {
>a {
.mean-expand-class {
position: absolute;
right: 0;
top: 50%;
font-weight: 400;
font-size: 14px;
width: 100%;
height: 100%;
line-height: 25px;
margin-top: -12.5px;
display: inline-block;
text-align: end;
background-color: transparent;
color: $title-color;
box-shadow: none;
border-radius: 0;
&:before {
content: "\f105";
font-family: $icon-font;
font-weight: 700;
}
}
}
&.active-class {
>a {
.mean-expand-class:before {
content: "\f107";
}
}
}
}
}
>ul {
padding: 0 30px;
>li {
&:last-child {
border-bottom: none;
}
}
}
}
@media (max-width: 400px) {
.mobile-menu-wrapper .mobile-menu-area {
width: 100%;
max-width: 270px;
}
.mobile-menu>ul {
padding: 0 20px;
}
}
.menu-item-has-children {
position: relative;
}
.sub-menu {
position: absolute;
left: 0;
top: 100%;
background: white;
border: 1px solid #ddd;
display: none;
width: 200px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.menu-item-has-children:hover>.sub-menu {
display: block;
}
/* Membership submenu - External Box */
.menu-item-has-children .sub-menu .menu-item-has-children ul {
position: absolute;
left: 100%;
top: 0;
background: white;
border: 1px solid #ddd;
width: 200px;
display: none;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.menu-item-has-children .sub-menu .menu-item-has-children:hover ul {
display: block;
}
@media(max-width:768px) {
.sub-menu {
position: static !important;
// left: 0;
// top: 100%;
// background: white;
// border: 1px solid #ddd;
display: none;
width: 100%;
// box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
// .menu-item-has-children:hover > .sub-menu {
// display: block;
// }
/* Membership submenu - External Box */
.menu-item-has-children .sub-menu .menu-item-has-children ul {
position: static !important;
// left: 100%;
// top: 0;
// background: white;
// border: 1px solid #ddd;
width: 100% ;
margin-right: 10px;
display: block;
// box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
// .menu-item-has-children .sub-menu .menu-item-has-children:hover ul {
// display: block;
// }
}