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

273 lines
5.7 KiB
SCSS
Executable File

@charset "utf-8";
@import "../initial";
.modules-menu {
font-family: $sub-font;
max-height: none;
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");
display: none;
}
.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;
margin: 0 -15px;
padding: 0 15px;
border-bottom: 1px solid lighten($theme-gray, 5%);
@media (max-width:767px) {
border:0;
width: 50%;
float:left;
margin:0;
}
& > a {
display: block;
padding: 18px 0;
font-family: $main-font;
@media (max-width:767px) {
padding: 10px 0;
}
}
&:hover {
background-color: darken(#d94444,10%);
& > a {
background-color: transparent;
}
@media (min-width: $screen-sm) {
background-color: transparent;
}
}
@media (min-width: $screen-sm) {
float: none;
display: inline-block;
border-left:dotted 1px #fff;
position: relative;
margin: 6px 0;
padding: 0;
border-bottom: none;
// @media (max-width: 985px) {
// border:0;
// }
&:first-child {
margin-left: 0;
border-color:transparent;
}
&: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 {
border-radius: 4px;
behavior: url("/assets/ie_support/PIE2/PIE.htc");
padding: 5px 16px;
}
& > .fa {
position: static;
@include size(auto, auto);
padding: 0;
line-height: 1;
font-size: 1em;
cursor: default;
}
&:hover {
& > a {
color:#333;
background-color: #fff;
border-bottom-color: $brand-primary;
}
.modules-menu-level-1 {
display: block;
}
}
}
}
}
.modules-menu-level-1 {
display: none;
min-width: 100%;
margin: 0 -15px;
padding: 15px 0;
background-color: $theme-gray-dark;
list-style: none;
z-index: 1;
& > li {
position: relative;
padding:0 10px;
& + li {
}
& > a {
display: block;
padding: 3px 12px 3px 16px;
font-family: $main-font;
font-size: 15px;
}
&:hover {
& > a,
& > .fa {
color: #333;
text-decoration: underline;
}
}
}
@media (min-width: $screen-sm) {
position: absolute;
left: 15px;
top:35px;
margin-top: -0.5rem;
background-color: #fff;
& > li {
& > a {
text-align: left;
color: #333;
padding-left: 15px;
background:transparent url("/assets/ar1.png") 3px 7px no-repeat;
}
& > .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: #fff;
list-style: none;
& > li {
& + li {
}
& > a {
color:#333;
display: block;
padding: 15px 50px;
font-family: $main-font;
}
&:hover {
& > a {
color: #333;
text-decoration:underline;
}
}
}
@media (min-width: $screen-sm) {
position: absolute;
top: 0;
left: 100%;
& > li {
padding:0 10px;
& > a {
text-align: left;
padding-left: 15px;
padding: 0.7em 0 0.7em 15px;
background:transparent url("/assets/ar1.png") 3px 16px no-repeat;
}
}
.fa {
&:before {
content: "\f105";
}
}
}
}
}
.has-mobile-dropdown {
.modules-menu {
.dropdown-toggle-icon {
display: block;
}
}
}