// @import '../../assets/css/iconfont.css';
|
|
.mk-side-menu {
|
flex: 0 0 235px;
|
width: 235px;
|
padding: 48px 0 40px;
|
transition: width 0.2s, flex 0.2s;
|
border-right: 1px solid #d9d9d9;
|
background: var(--mk-sys-background)!important;
|
.ant-menu-item {
|
padding-left: 0!important;
|
cursor: default;
|
a {
|
padding-left: 48px;
|
}
|
}
|
.ant-menu-sub.ant-menu-inline {
|
position: relative;
|
}
|
.ant-menu-sub.ant-menu-inline > .ant-menu-item {
|
height: 38px;
|
line-height: 38px;
|
margin: 0px;
|
// border-bottom: 1px solid #000c17;
|
overflow: hidden;
|
text-overflow: ellipsis;
|
white-space: nowrap;
|
a {
|
display: inline-block;
|
}
|
.edit-check {
|
top: -5px;
|
}
|
}
|
.ant-menu-inline .ant-menu-item {
|
font-size: 1.1rem;
|
}
|
.ant-menu-dark.ant-menu-inline .ant-menu-submenu-title {
|
margin: 0;
|
height: 48px;
|
line-height: 48px;
|
}
|
.ant-menu-dark.ant-menu-inline .ant-menu-submenu-open .ant-menu-submenu-title {
|
background: #364150;
|
}
|
.edit-check {
|
font-size: 18px;
|
position: absolute;
|
cursor: pointer;
|
padding: 10px 15px;
|
margin-right: 0px;
|
right: 0px;
|
top: 0px;
|
:hover {
|
color: #ffffff;
|
}
|
}
|
.edit-control + .ant-menu-submenu-arrow {
|
display: none;
|
}
|
.menu-add {
|
position: relative;
|
border: 1px dashed gray;
|
margin: 8px 0px;
|
height: 40px;
|
line-height: 40px;
|
width: 98%;
|
clear: both;
|
text-align: center;
|
cursor: pointer;
|
.anticon {
|
font-size: 20px;
|
}
|
}
|
.menu-btn {
|
.ant-btn {
|
padding: 0 10px;
|
margin-left: 5px;
|
}
|
}
|
.sup-menu {
|
position: relative;
|
z-index: 1;
|
}
|
.ant-menu-sub.ant-menu-inline .sub-menu {
|
position: absolute;
|
z-index: 1;
|
width: 48px;
|
left: 187px;
|
}
|
|
> .ant-menu {
|
background: var(--mk-sys-background);
|
> .ant-menu-submenu {
|
color: var(--mk-sys-font-color);
|
background: transparent;
|
> .ant-menu-submenu-title {
|
&:hover {
|
color: var(--mk-sys-font-color);
|
}
|
> .ant-menu-submenu-arrow:before {
|
background: var(--mk-sys-font-color);
|
}
|
> .ant-menu-submenu-arrow:after {
|
background: var(--mk-sys-font-color);
|
}
|
}
|
> .ant-menu-sub {
|
background: transparent;
|
box-shadow: none;
|
.ant-menu-item {
|
a {
|
color: var(--mk-sys-light-font-color);
|
}
|
}
|
.ant-menu-item.ant-menu-item-active, .ant-menu-item.ant-menu-item-selected {
|
background: var(--mk-sys-color5);
|
color: #ffffff;
|
a {
|
color: #ffffff;
|
}
|
}
|
}
|
}
|
> .ant-menu-submenu.ant-menu-submenu-open {
|
> .ant-menu-submenu-title {
|
background: var(--mk-sys-light-background);
|
}
|
}
|
}
|
}
|
|
// .mk-side-menu.mk-iframe { // tab页中为iframe时
|
// max-height: 100vh;
|
// overflow-y: scroll;
|
// &::-webkit-scrollbar {
|
// display: none;
|
// }
|
// }
|
.mk-side-menu.collapsed { // 左侧菜单合并时
|
flex: 0 0 80px;
|
width: 80px;
|
}
|
.ant-menu-submenu.ant-menu-submenu-popup {
|
max-height: 80vh;
|
overflow-y: scroll;
|
&::-webkit-scrollbar {
|
display: none;
|
}
|
}
|
|
.ant-menu-vertical .ant-menu-item {
|
cursor: default;
|
height: 30px;
|
line-height: 30px;
|
a {
|
cursor: pointer;
|
}
|
}
|