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

334 lines
5.8 KiB
SCSS
Raw Normal View History

2021-04-19 02:10:17 +00:00
@charset "utf-8";
@import "../initial";
.modules-menu {
font-family: $sub-font;
max-height: none;
margin-bottom: 20px;
2021-05-03 02:01:18 +00:00
background-color: #e2d6b2;
2021-04-19 02:10:17 +00:00
li {
white-space: nowrap;
& > a,
& > .fa {
2021-05-03 02:01:18 +00:00
color: #7d5b21;
2021-04-19 02:10:17 +00:00
}
&:hover {
& > a,
& > .fa {
2021-05-03 02:01:18 +00:00
color: #7d3621;
2021-04-19 02:10:17 +00:00
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 {
2021-05-03 02:01:18 +00:00
background-color: #d0bf8f;
2021-04-19 02:10:17 +00:00
}
.dropdown-toggle-icon.level-2 {
2021-05-03 02:01:18 +00:00
background-color: #d0bf8f;
2021-04-19 02:10:17 +00:00
}
& > li {
position: relative;
margin: 0 -15px;
padding: 0 15px;
border-bottom: 1px solid lighten($theme-gray, 5%);
& > a {
display: block;
padding: 18px 0;
font-family: $main-font;
font-size: $font-15;
}
&:hover {
2021-05-03 02:01:18 +00:00
background-color: #d0bf8f;
2021-04-19 02:10:17 +00:00
& > a {
background-color: transparent;
2021-05-03 02:01:18 +00:00
color: #fff;
2021-04-19 02:10:17 +00:00
}
@media (min-width: $screen-sm) {
background-color: transparent;
}
}
@media (min-width: $screen-sm) {
position: relative;
2021-05-03 02:01:18 +00:00
margin: 0 4px;
2021-04-19 02:10:17 +00:00
padding: 0;
border-bottom: none;
&:hover a{
color:#ffaa04;
}
&:hover .modules-menu-level-1{
display: block;
a{
color: #fff;
}
}
&:first-child {
margin-left: 0;
}
&:last-child {
margin-right: 0;
.modules-menu-level-1 {
right: 15px;
left: auto;
&: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: 10px 0;
}
& > .fa {
position: static;
@include size(auto, auto);
padding: 0;
line-height: 1;
font-size: 1em;
cursor: default;
}
&:hover {
& > a {
padding: 10px 0;
}
.modules-menu-level-1 {
display: block;
}
}
}
}
@media (min-width: $screen-md) {
margin: 40px 10px 0px 0px;
padding: 0 15px;
list-style: none;
//border: 3px solid #ad0c0d;
}
@media (min-width: $screen-sm)and(max-width: $screen-md){
margin: 40px 0 0px 0px;
padding: 0 15px;
list-style: none;
//border: 3px solid #ad0c0d;
width: 100%;
}
}
.modules-menu-level-1 {
display: none;
min-width: 100%;
margin: 0 -15px;
padding: 0;
background-color: #1a1a1a;
list-style: none;
z-index: 1;
& > li {
position: relative;
& + li {
border-top: 1px solid lighten(#1a1a1a, 5%);
}
& > a {
display: block;
padding: 11px 25px;
font-family: $main-font;
2021-06-28 10:23:37 +00:00
font-size: 0.9375em;
2021-04-19 02:10:17 +00:00
color: #fff;
}
&:hover {
background-color: darken($theme-color-second, 10%);
& > a,
& > .fa {
color: #FFF;
}
}
}
@media (min-width: $screen-sm) {
position: absolute;
left: 0;
& > li {
padding-right: 30px;
& > a {
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-gray-darker;
list-style: none;
& > li {
& + li {
border-top: 1px solid lighten($theme-gray-darker, 5%);
}
& > a {
display: block;
padding: 15px 50px;
font-family: $main-font;
}
&:hover {
& > a {
color: #FFF;
text-decoration: underline;
}
}
}
@media (min-width: $screen-sm) {
position: absolute;
top: 0;
left: 100%;
&:before {
content: "";
display: block;
position: absolute;
top: 13px;
left: -6px;
@include arrow("right", 6px, 6px, $theme-gray-darker);
}
& > li {
padding-right: 15px;
& > a {
padding-left: 15px;
padding: 0.7em 0 0.7em 15px;
}
}
.fa {
&:before {
content: "\f105";
}
}
}
}
@media (min-width: $screen-sm) {
background-color:transparent;
margin-bottom:0;
}
}
.has-mobile-dropdown {
.modules-menu {
.dropdown-toggle-icon {
display: block;
}
}
}