asiaH3/assets/stylesheets/template/widget/sitemenu.scss

134 lines
2.4 KiB
SCSS

@charset "utf-8";
@import "../initial";
.sitemenu-horizontal {
padding: 10px 0;
@include clearfix;
.sitemenu-title {
display: none;
}
.sitemenu-item.level-1 {
font-size: 0.8125rem;
position: relative;
float: left;
margin-right: 1%;
margin-bottom: 12px;
padding: 8px .8em;
padding-bottom: 8px;
color: $theme-white;
border-radius: .2em;
background: $theme-color-main;
&:hover {
background: darken($theme-color-main, 10%);
}
&:hover .sitemenu-list{
display: block;
}
}
.sitemenu-link.level-1 {
color: $theme-white;
}
.sitemenu-dropdown-toggle {
font-size: 0.75rem;
padding: 2px .3125rem;
cursor: pointer;
}
// sitemenu dropdown
.sitemenu-list.dropdown-menu {
min-width: 100%;
margin-top: 4px;
border: none;
margin: 0;
border-radius:.2em;
background: #333;
}
.sitemenu-link.level-2 {
color: $theme-white;
font-size: 0.8125rem;
padding: 4px 0.625rem;
&:hover {
text-decoration: underline;
background-color: transparent;
}
}
}
.sitemenu-vertical {
border-top: 14px solid #000444;
background: $theme-color-main;
padding-bottom: 5px;
border-radius: 3px;
behavior: url("/assets/ie_support/PIE2/PIE.htc");
h3{
font-size: 1rem;
color: #fff;
padding-left: 20px;
padding-right: 20px;
.fa{
padding-right: 5px;
font-size: 0.875em;
}
}
.sitemenu-list {
background-color: $theme-color-main;
}
.sitemenu-item.level-1 {
position: relative;
color: $theme-white;
&:hover .sitemenu-list{
display:block;
}
}
.sitemenu-link {
font-size: 0.8125rem;
color: $theme-white;
padding: 6px 32px 6px 20px;
display: block;
&:hover{
background-color: darken( $theme-color-main , 15%);
}
}
.sitemenu-dropdown-toggle {
font-size: 0.75rem;
padding: 2px .3125rem;
cursor: pointer;
position: absolute;
right: 16px;
top: 50%;
margin-top: -8px;
}
.sitemenu-list.dropdown-menu {
border: none;
border-radius: 0 0 .2em .2em;
margin: 0;
background: #333;
min-width: 165px;
left: 0;
}
.sitemenu-link.level-2 {
color: $theme-white;
font-size: 0.8125rem;
padding: 4px 20px;
&:hover {
text-decoration: underline;
background-color: transparent;
}
}
}