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

124 lines
2.3 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-second;
&:hover {
background: darken($theme-color-second, 10%);
}
&:hover ul.dropdown-menu{
display: block;
}
}
.sitemenu-link.level-1 {
margin-right: .25rem;
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: -2px;
border: none;
border-radius: 0 0 .2em .2em;
background: $theme-color-third;
}
.sitemenu-link.level-2 {
color: $theme-white;
font-size: 0.8125rem;
padding: 4px 0.625rem;
&:hover {
text-decoration: underline;
background-color: transparent;
}
}
}
.sitemenu-vertical {
.sitemenu-list {
background-color: $theme-color-second;
}
.sitemenu-item.level-1 {
position: relative;
color: $theme-white;
&:hover{
background-color: darken( $theme-color-second , 10%);
}
&:hover ul.dropdown-menu{
display:block;
}
}
.sitemenu-link {
font-size: 0.8125rem;
padding: 10px 30px 10px 20px;
color: $theme-white;
display: block;
}
.sitemenu-dropdown-toggle {
font-size: 0.75rem;
padding: 2px .3125rem;
cursor: pointer;
position: absolute;
right: 15px;
top: 50%;
margin-top: -8px;
}
.sitemenu-list.dropdown-menu {
border: none;
border-radius:0 0 .2em .2em;
margin-top: 0;
background: $theme-color-third;
width: auto;
min-width: 100px;
padding: 0;
right: 100%;
left: auto;
top: 0;
}
.sitemenu-link.level-2 {
color: $theme-white;
font-size: 0.8125rem;
padding: 11px 20px;
border-bottom: 1px solid lighten( $theme-color-third , 5%);
&:hover {
text-decoration: none;
background-color: darken( $theme-color-third, 5%);
}
}
}