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

287 lines
5.1 KiB
SCSS

@charset "utf-8";
@import "../initial";
.container .modules-menu {
font-family: $sub-font;
max-height: none;
margin: 0 -15px;
clear: both;
// background-color: $theme-color-four;
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;
behavior: url("/assets/ie_support/PIE2/PIE.htc");
}
.dropdown-toggle-icon.level-1 {
background-color: lighten($theme-gray, 10%);
}
.dropdown-toggle-icon.level-2 {
background-color: $theme-color-five;
}
& > li {
position: relative;
margin: 0 -15px;
padding: 0 15px;
border-bottom: 1px solid lighten(#3a3a3a, 10%);
& > a {
display: block;
padding: 18px 0;
font-family: $main-font;
}
&:hover {
background-color: darken($theme-color-main, 15%);
& > a {
background-color: transparent;
}
}
@media (min-width: $screen-sm) {
position: relative;
margin: 0;
padding: 0 17px;
border-bottom: none;
float: none;
& > a {
padding: 8px 25px 8px 25px;
color: #333;
border-bottom: 1px solid #ddd;
}
& > .fa {
position: static;
@include size(auto, auto);
padding: 0;
line-height: 1;
font-size: 1em;
cursor: default;
}
&:hover {
background-color: transparent;
& > a {
padding: 8px 25px 8px 25px;
background: url(/assets/menu-icon.png) 10px 13px no-repeat $theme-color-main;
color: #fff;
}
.modules-menu-level-1 {
display: block;
}
}
}
}
// ul
@media (min-width: $screen-sm){
width: 100%;
}
}
.modules-menu-level-1 {
display: none;
min-width: 100%;
margin: 0 -15px;
padding: 0;
background-color: $theme-color-second;
list-style: none;
z-index: 1;
& > li {
position: relative;
& + li {
border-top: 1px solid lighten($theme-color-second, 5%);
}
& > a {
display: block;
padding: 18px 15px;
font-family: $main-font;
font-size: 0.9375em;
}
&:hover {
background-color: darken( $theme-color-second , 10%);
& > a,
& > .fa {
color: #FFF;
}
}
}
@media (min-width: $screen-sm) {
position: absolute;
top: 0;
left: 100%;
margin: 0 -17px;
&:before {
content: "";
display: block;
position: absolute;
top: 14px;
left: -8px;
@include arrow("right", 8px, 6px, $theme-color-second);
}
& > li {
padding-right: 30px;
& > a {
padding: 8px 10px;
padding-left: 15px;
}
& > .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;
}
}
}
.fa {
&:before {
content: "\f105";
}
}
}
}
.modules-menu-level-2 {
display: none;
margin: 0;
padding: 0;
background-color: $theme-color-five;
list-style: none;
& > li {
& + li {
border-top: 1px solid lighten( $theme-color-five, 5%);
}
& > a {
display: block;
padding: 15px 50px;
font-family: $main-font;
}
&:hover {
background-color: lighten( $theme-color-five, 5%);
& > a {
color: #FFF;
}
}
}
@media (min-width: $screen-sm) {
position: absolute;
top: 0;
left: 100%;
&:before {
content: "";
display: block;
position: absolute;
top: 15px;
left: 0px;
@include arrow("left", 6px, 6px, $theme-link-color);
}
& > li {
padding-right: 15px;
& > a {
padding-left: 15px;
padding: 8px 0 8px 15px;
}
}
.fa {
&:before {
content: "\f105";
}
}
}
}
@media (max-width: 767px){
background-color: #3a3a3a;
margin: 0;
}
}
.has-mobile-dropdown {
.modules-menu {
.dropdown-toggle-icon {
display: block;
}
}
}