AsiaV2/assets/stylesheets/template/modules/menu.scss

226 lines
3.9 KiB
SCSS

@charset "utf-8";
@import "../initial";
.modules-menu {
font-family: $sub-font;
max-height: none;
width: 240px;
position: absolute;
padding: 0;
top: 10px;
left: 10px;
background: url(/assets/left_bg.png) left bottom repeat-x;
background-color: $menu-bg;
padding-bottom: 11em !important;
z-index: 1020;
.modules-menu-level-1,
.modules-menu-level-2 {
width: 240px;
}
.modules-menu-level-0 {
background: $menu-bg url(/assets/menu_bg.png);
margin: 0;
padding: 0;
list-style: none;
display: flex;
flex-direction: column;
width: 240px;
.has-dropdown.level-1.active {
.modules-menu-level-1 {
display: block;
}
}
.has-dropdown.level-1 {
.modules-menu-level-1 {
display: none;
}
}
.has-dropdown.level-2.active {
.modules-menu-level-2 {
display: block;
}
}
.dropdown-toggle-icon {
position: absolute;
top: 0.5em;
right: 0.3em;
width: 2.5em;
height: 2.5em;
cursor: pointer;
line-height: 2.5em;
font-size: 1em;
text-align: center;
border-radius: 0.13em;
}
.dropdown-toggle-icon.level-1 {
background-color: lighten($theme-gray, 10%);
}
.dropdown-toggle-icon.level-2 {
background-color: lighten($theme-gray, 10%);
}
& > li {
position: relative;
padding: 0;
& > a {
font-family: $main-font;
color: #fff;
display: block;
padding: 11px 16px;
font-size: 1em;
white-space: break-spaces;
&:hover {
background-color: $menu-hover;
text-decoration: none;
}
}
&:hover {
background-color: $menu-hover;
text-decoration: none;
.modules-menu-level-1 {
display: block;
}
}
@media (min-width: $screen-sm) {
position: relative;
margin: 0;
padding: 0;
border-bottom: none;
&:last-child {
margin-right: 0;
}
&:hover {
background-color: $menu-hover;
text-decoration: none;
.modules-menu-level-1 {
display: block;
}
}
}
}
}
.modules-menu-level-1 {
display: none;
min-width: 100%;
margin: 0 -1em;
padding: 0;
background-color: $theme-gray-dark;
list-style: none;
z-index: 1;
& > li {
position: relative;
& + li {
border-top: 0.0624em solid #e4e4e4;
}
& > a {
display: block;
padding: 1em 1.5em;
font-family: $main-font;
font-size: 0.938em;
color: #fff;
@media(max-width:500px) {
padding: 1em 2.5em;
}
}
&:hover {
background-color: $menu-hover;
}
}
@media (min-width: $screen-sm) {
position: absolute;
left: 13.5em;
top: 0;
& > li {
& > a {
padding-left: 1em;
}
&:hover {
.modules-menu-level-2 {
display: block;
}
}
}
}
}
}
.modules-menu-level-2 {
display: none;
margin: 0;
padding: 0;
background-color: $theme-gray-darker;
list-style: none;
& > li {
& + li {
border-top: 0.0624em solid #e4e4e4;
}
& > a {
display: block;
padding: 1em 1.5em;
font-family: $main-font;
font-size: 0.938em;
color: #fff;
@media(max-width:500px) {
padding: 1em 2.5em;
}
}
&:hover {
background-color: $menu-hover;
}
}
@media (min-width: $screen-sm) {
position: absolute;
top: 0;
left: 100%;
& > li {
padding-right: 1em;
& > a {
padding-left: 1em;
padding: 0.7em 0 0.7em 1em;
}
}
}
}
.has-mobile-dropdown {
.modules-menu {
.dropdown-toggle-icon {
display: block;
}
}
}