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

146 lines
2.7 KiB
SCSS

@charset "utf-8";
@import "../initial";
.sitemenu-horizontal {
padding: 0;
@include clearfix;
.sitemenu-list{
display: flex;
justify-content: center;
.sitemenu-item{
width: 50%;
&:first-child{
border-right:1px solid #fff;
}
}
.active{
background: #c47f27!important;
}
}
.sitemenu-item.level-1 {
border-radius: unset;
font-size: 0.8125rem;
position: relative;
float: left;
padding: 0.5em .8em;
padding-bottom: 0.5em;
color: $theme-white;
border-radius: 0;
background: $theme-color-green;
text-align: center;
&:hover {
background: darken($theme-color-green, 10%);
.sitemenu-list.level-2 {
display: block!important;
}
}
}
.sitemenu-link.level-1 {
margin-right: .25rem;
color: $theme-white;
font-size: 1.5em;
}
.sitemenu-dropdown-toggle {
font-size: 0.75rem;
padding: 0.125em .3125rem;
cursor: pointer;
}
// sitemenu dropdown
.sitemenu-list.dropdown-menu {
min-width: 100%;
margin-top: 0.25em;
border: none;
border-radius: .2em;
background: darken($theme-color-green, 10%);
}
.sitemenu-link.level-2 {
color: $theme-white;
font-size: 0.8125rem;
padding: 0.25em 0.625rem;
&:hover {
text-decoration: underline;
background-color: transparent;
}
}
}
.sitemenu-vertical {
.sitemenu-list {
background-color: $theme-color-green;
}
.sitemenu-item.level-1 {
padding: 0.625em 1.25em;
position: relative;
color: $theme-white;
}
.sitemenu-item{
&:hover {
.sitemenu-list.dropdown-menu { display: block; }
background: darken($theme-color-green, 10%);
}
}
.sitemenu-link {
font-size: 0.8125rem;
color: $theme-white;
}
.sitemenu-dropdown-toggle {
font-size: 0.75rem;
padding: 0.125em .3125rem;
cursor: pointer;
}
.sitemenu-list.dropdown-menu {
border: none;
border-radius: .2em;
}
.sitemenu-link.level-2 {
color: $theme-white;
font-size: 0.8125rem;
padding: 0.25em 0.625rem;
&:hover {
text-decoration: underline;
background-color: transparent;
}
}
}
.sitemenu-vertical2{
background: #fff;
.sitemenu-title{
padding: 0.8em;
font-size: 1em;
margin: 0;
width: 97%;
}
.sitemenu-list{
display:none;
background: #fff;
li:hover{
background: #e7e7e7;
}
.sitemenu-link{
color: #333;
}
.dropdown-menu{
display:none!important;
}
}
.flex{
display: flex;
align-items: center;
}
}