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

277 lines
5.3 KiB
SCSS

@charset "utf-8";
@import "../initial";
.sitemenu-wrap{
// padding-right: 0.9375em!important;
// padding-left: 0.9375em!important;
}
.sitemenu-item{
list-style: none;
}
.sitemenu-horizontal {
// padding-left: 1em;
// padding-bottom: 0.5em;
@include clearfix;
.sitemenu-item.level-1 {
@media(max-width: $screen-xs){
margin-right: 0.5em;
margin-bottom: 0.5em;
}
font-size: 1rem;
font-weight: 900;
position: relative;
float: left;
margin-right: 1%;
margin-bottom: 0.5em;
cursor: pointer;
background-color: #fff;
border-radius: 2em;
color: #686868;
text-align: center;
margin-right: 1em;
border:1px solid #6868688f;
position: relative;
padding: 0.5em 1em;
&:hover {
background: #adb5bd33;
a{
color: $theme-color-second;
}
.sitemenu-list.level-2 {
display: block;
}
}
}
.sitemenu-link.level-1 {
margin-right: .25rem;
}
.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;
border: none;
border-radius: .2em;
border: 1px solid #6868688f;
}
.sitemenu-link.level-2 {
color: $theme-white;
font-size: 1rem;
padding: 0.25em 0.625rem;
&:hover {
text-decoration: underline;
background-color: transparent;
}
}
}
.sitemenu-vertical {
border: 1px solid #6868688f;
padding: 1em;
background-color: #fff;
.sitemenu-list {
position: relative;
float: none;
background-color: transparent;
box-shadow: none;
}
.sitemenu-item.level-1 {
padding: 0.625em 1.25em;
position: relative;
&:hover {
background: #adb5bd33;
}
}
.sitemenu-link {
font-size: 1rem;
}
.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 {
font-size:1rem;
padding: 0.25em 0.625rem;
&:hover {
text-decoration: underline;
background-color: transparent;
}
}
}
.sitemenu-title{
font-weight: bold;
margin-top: 0;
}
.sitemenu-vertical2{
.sitemenu-item.level-1 {
&:hover {
.sitemenu-list.dropdown-menu { display: block; }
}
ul{
padding: 0;
}
}
.sitemenu-link {
font-size: 1.2em;
color: #333333;
vertical-align: top;
background-image: url(/assets/plan_icon01.png);
background-position: 15px;
background-repeat: no-repeat;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
position: relative;
border-bottom: 1px solid #cacaca;
color: #333333;
border-radius: 4px;
behavior: url("/assets/ie_support/PIE2/PIE.htc");
border: 2px solid #DDD;
padding: 1em;
margin: 0 0 10px 0;
width: 100%;
display: flex;
&:hover{
border: 2px solid #333333;
color: $theme-color-second;
background: #adb5bd33;
}
}
.sitemenu-dropdown-toggle {
display: none!important;
}
.sitemenu-list.dropdown-menu {
border: none;
border-radius: .2em;
position: relative;
float: none!important;
box-shadow: none;
background: none;
margin: 0;
}
.sitemenu-link.level-2 {
border: none;
border-radius: 0;
background-image: none;
padding: 10px 5px 4px 15px;
margin-left: 1em;
background-image: url(/assets/icon_point.png) !important;
background-position: 0;
&:hover {
text-decoration: underline;
background-color: transparent;
}
}
}
.sitemenu4{
.sitemenu-item.level-1 {
&:hover {
.sitemenu-list.dropdown-menu { display: block; top: 0;}
}
ul{
padding: 0;
}
}
.list-unstyled{
display: flex;
width: 100%;
flex-wrap: wrap;
.sitemenu-item{
width:calc(50% - 5px);
margin: 5px;
&:nth-child(odd){
margin-left: 0;
}
&:nth-child(even){
margin-right: 0;
}
@media(max-width:768px){
&:nth-child(odd){
margin-left: 0;
}
&:nth-child(even){
margin-right: 0;
}
}
}
}
.sitemenu-link {
font-size:1.2em;
color: #333333;
white-space: nowrap;
text-overflow: ellipsis;
position: relative;
color: #333333;
border-radius: 4px;
behavior: url("/assets/ie_support/PIE2/PIE.htc");
border: 2px solid #DDD;
padding: 1em;
margin: 0 0 10px 0;
width: 100%;
display: flex;
&:hover{
border: 2px solid #333333;
color: $theme-color-second;
background: #adb5bd33;
}
}
.sitemenu-dropdown-toggle {
display: none!important;
}
.sitemenu-list.dropdown-menu {
border: none;
border-radius: .2em;
position: relative;
float: none!important;
box-shadow: none;
background: none;
margin: 0;
}
.sitemenu-link.level-2 {
border: none;
border-radius: 0;
background-image: none;
padding: 10px 5px 4px 15px;
margin-left: 1em;
background-image: url(/assets/icon_point.png) !important;
background-position: 0;
&:hover {
text-decoration: underline;
background-color: transparent;
}
}
}