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

338 lines
6.2 KiB
SCSS

@charset "utf-8";
@import "../initial";
.modules-menu {
font-family: $sub-font;
max-height: none;
clear: both;
background-color: #a25a05;
li {
white-space: nowrap;
& > a,
& > .fa {
color: $theme-white;
}
&:hover {
& > a,
& > .fa {
color: $theme-white;
text-decoration: none;
}
}
}
.modules-menu-level-0 {
margin: 0;
padding: 0;
list-style: none;
.has-dropdown.level-1.active {
.modules-menu-level-1 {
display: block;
}
}
.has-dropdown.level-2.active {
.modules-menu-level-2 {
display: block;
}
}
.dropdown-toggle-icon {
position: absolute;
top: 8px;
right: 5px;
width: 40px;
height: 40px;
cursor: pointer;
line-height: 40px;
font-size: 1em;
text-align: center;
border-radius: 2px;
}
.dropdown-toggle-icon.level-1 {
background-color: $theme-color-second;
z-index: 10000;
}
.dropdown-toggle-icon.level-2 {
background-color: $theme-color-second;
z-index: 10000;
}
& > li {
position: relative;
margin: 0 -15px;
padding: 0 15px;
border-bottom: 1px solid #790e13;
& > a {
display: block;
padding: 18px 0;
font-family: $main-font;
}
&:hover {
background-color: darken( $theme-color-second , 20%);
& > a {
background-color: transparent;
}
@media (min-width: $screen-sm) {
background-color: transparent;
}
}
@media (min-width: $screen-sm) {
/*.modules-menu-level-0 li*/
position: relative;
margin: 0 ;
padding: 0 10px;
border-bottom: none;
transition:.3s;
&:hover{
background-color:#222;
}
&:hover > .modules-menu-level-2{
display: block;
}
&:first-child {
margin-left: 0;
}
&:last-child {
margin-right: 0;
.modules-menu-level-1 {
&:before {
right: 10px;
left: auto;
}
& > li {
padding-right: 15px;
padding-left: 15px;
& > a {
padding-left: 0;
}
}
.modules-menu-level-2 {
right: 100%;
left: auto;
&:before {
right: -6px;
left: auto;
@include arrow("left", 6px, 6px, $theme-gray-darker);
}
}
}
}
& > a {
padding: 11px 0;
font-size: $font-15;
}
& > .fa {
position: static;
@include size(auto, auto);
padding: 0;
line-height: 1;
font-size: 1em;
cursor: default;
}
&:hover {
& > a {
padding: 11px 0;
}
.modules-menu-level-1 {
display: block;
top: 42px;
left: 15px;
opacity: 1;
transition:opacity.3s,top .3s;
// border-top: 1px solid #222;
}
}
}
}
}
.modules-menu-level-1 {
display: none;
min-width: 100%;
margin: 0 -15px;
padding: 0;
background-color: #222;
list-style: none;
z-index: 1;
& > li {
position: relative;
& + li {
border-top: 1px solid #ddd;
}
& > a {
display: block;
padding: 18px 25px;
font-family: $main-font;
font-size: 15px;
@media (min-width: $screen-sm) {
padding: 11px 25px;
}
}
&:hover {
background-color: darken($theme-color-second, 10%);
transition:.3s;
& > a,
& > .fa {
color: #FFF;
}
}
}
@media (min-width: $screen-sm) {
position: absolute;
// left: 15px;
display: block;
left: -10000px;
top: 108px;
opacity: 0;
transition:opacity.3s,top .3s,left 0s .3s;
// border:1px solid orange;
background: #EFEFEF;
& > li {
padding-right: 30px;
& > a {
color:#333;
padding-left: 15px;
font-weight: bold;
}
& > .fa {
position: static;
@include size(auto, auto);
padding: 0;
margin-right: 0;
line-height: 1;
float: none;
font-size: 1em;
cursor: default;
}
&:hover {
.modules-menu-level-2 {
display: block;
top: 0;
left: 100%;
opacity: 1;
transition:opacity .3s ,left .3s;
}
}
}
.fa {
&:before {
content: "\f105";
}
}
}
}
.modules-menu-level-2 {
display: none;
margin: 0;
padding: 0;
background-color: #EFEFEF;
list-style: none;
& > li {
transition:.3s;
& + li {
// border-top: 1px solid lighten($theme-gray-darker, 5%);
border-top: 1px solid #ddd;
}
& > a {
color:#333;
font-weight: bold;
display: block;
padding: 15px 50px;
font-family: $main-font;
}
&:hover {
background-color: darken($theme-color-main, 5%);
& > a {
color: #FFF;
}
}
}
@media (min-width: $screen-sm) {
display: block;
position: absolute;
top: -10000px;
left: 130%;
opacity: 0;
transition:left .3s,opacity .3s,top 0s .3s;
&:before {
content: "";
display: block;
position: absolute;
top: 13px;
left: -6px;
@include arrow("right", 6px, 6px, white);
}
& > li {
padding-right: 15px;
& > a {
padding-left: 15px;
padding: 0.7em 0 0.7em 15px;
}
}
.fa {
&:before {
content: "\f105";
}
}
}
}
@media (min-width: $screen-md){
padding:0;
}
}
.has-mobile-dropdown {
.modules-menu {
.dropdown-toggle-icon {
display: block;
}
}
}