proj-iott/assets/stylesheets/template/widget/sitemenu.scss

316 lines
6.1 KiB
SCSS
Executable File

@charset "utf-8";
@import "../initial";
.dropdown-menu{
font-size: 1em;
}
.page-module-title{
color: #1c4770;
clear: both;
float: none;
font-size: 1.75em;
border-left: 3px solid #1c4770;
padding-left: 15px;
letter-spacing: .05em;
}
.sitemenu-horizontal {
padding: 0;
@include clearfix;
.sitemenu-item.level-1 {
font-size:1em;
position: relative;
float: left;
margin-right: 1%;
margin-bottom: 0.75em;
padding: 0.5em .8em;
padding-bottom: 0.5em;
color: $theme-white;
border-radius: .2em;
background: $theme-color-green;
text-align: center;
&:hover {
background: darken($theme-color-green, 10%);
.sitemenu-list.level-2 {
display: block;
}
}
}
.sitemenu-link.level-1 {
margin-right: .25rem;
color: $theme-white;
}
.sitemenu-dropdown-toggle {
display: none!important;
}
// 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:1rem;
padding: 0.25em 0.625rem;
&:hover {
text-decoration: underline;
background-color: transparent;
}
}
}
.sitemenu-vertical{
box-shadow: 0 0 3px 2px #6666664d;
margin: 0 20px 0 0;
padding-bottom: 30px;
}
.sitemenu-vertical {
z-index: 100;
position: relative;
.sitemenu-list{
margin: 10px 15px 0;
}
.sitemenu-title{
background-color: #14324f;
color: #fff;
margin: 0;
padding: 18px 0 14px;
text-align: center;
position: relative;
&:before{
content: '';
position: absolute;
border: 10px solid #55bbd0;
border-color: #55bbd0 transparent transparent transparent;
top: 0;
left: 47%;
}
}
.sitemenu-item.level-1 {
position: relative;
&:hover {
.sitemenu-list.dropdown-menu { display: block; }
}
ul{
padding: 0;
}
}
.sitemenu-link {
font-size: 1.2em;
position: relative;
display: block;
padding: 10px 5px 10px 15px;
background-image: url(/assets/submenu_icon01.png);
background-repeat: no-repeat;
background-position: 3px 17px;
border-bottom: 1px solid #cacaca;
color: #14324f;
&:hover{
color: #55bbd0;
}
}
.sitemenu-dropdown-toggle {
display: none!important;
}
.sitemenu-list.dropdown-menu {
display: block!important;
border: none;
border-radius: .2em;
position: relative;
float: none!important;
box-shadow: none;
background: none;
}
.sitemenu-item.level-2 {
max-width: 200px;
white-space: normal;
overflow: hidden;
text-overflow: ellipsis;
word-wrap: break-word;
}
.sitemenu-link.level-2 {
display: inline-block;
max-width: 100%;
vertical-align: middle;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.sitemenu-link.level-2 {
color: #757575;
border-bottom: none;
background-image: none;
padding: 10px 5px 4px 0;
display: -webkit-box;
text-overflow: ellipsis;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
white-space: normal;
&:hover {
text-decoration: underline;
background-color: transparent;
}
}
}
.sitemenu-vertical2{
.sitemenu-item.level-1 {
&:hover {
.sitemenu-list.dropdown-menu { display: block; }
}
ul{
padding: 0;
}
}
.sitemenu-link {
font-size: 1.2em;
color: #14324f;
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: #14324f;
border-radius: 4px;
behavior: url("/assets/ie_support/PIE2/PIE.htc");
border: 2px solid #DDD;
padding: 1em 1em 1em 2em;
margin: 0 0 10px 0;
width: 100%;
display: flex;
&:hover{
border: 2px solid #14324f;
color: #c15700;
}
}
.sitemenu-dropdown-toggle {
display: none!important;
}
.sitemenu-list.dropdown-menu {
display: block!important;
border: none;
border-radius: .2em;
position: relative;
float: none!important;
box-shadow: none;
background: none;
margin: 0;
}
.sitemenu-link.level-2 {
border: none;
border-bottom: 1px solid #DDD;
border-radius: 0;
background-image: none;
padding: 10px 5px 4px 15px;
margin-left: 2.5em;
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; }
}
ul{
padding: 0;
}
}
.sitemenu-list{
display: flex;
width: 100%;
flex-wrap: wrap;
.sitemenu-item{
width: 48%;
margin: 5px;
}
}
.sitemenu-link {
font-size:1.2em;
color: #14324f;
white-space: nowrap;
text-overflow: ellipsis;
position: relative;
color: #14324f;
border-radius: 4px;
behavior: url("/assets/ie_support/PIE2/PIE.htc");
border: 2px solid #55bbd0;
padding: 1em 1em 1em 2em;
margin: 0 0 10px 0;
width: 100%;
display: flex;
&:hover{
border: 2px solid #14324f;
color: #c15700;
}
}
.sitemenu-dropdown-toggle {
display: none!important;
}
.sitemenu-list.dropdown-menu {
display: block!important;
border: none;
border-radius: .2em;
position: relative;
float: none!important;
box-shadow: none;
background: none;
margin: 0;
}
.sitemenu-link.level-2 {
border: none;
border-bottom: 1px solid #DDD;
border-radius: 0;
background-image: none;
padding: 10px 5px 4px 15px;
margin-left: 2.5em;
background-image: url(/assets/icon_point.png) !important;
background-position: 0;
&:hover {
text-decoration: underline;
background-color: transparent;
}
}
}