feat;sider样式补充
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
<div class="ns-left-menu-space" :class="{ 'ns-left-menu-space-collapsed': collapsed }">
|
||||
<a-layout-sider
|
||||
class="ns-left-menu"
|
||||
:collapsedWidth="48"
|
||||
:collapsedWidth="60"
|
||||
:width="sideWidth"
|
||||
:collapsed="collapsed"
|
||||
breakpoint="lg"
|
||||
@@ -222,6 +222,7 @@
|
||||
// width: @layout-sider-width !important;
|
||||
// max-width: @layout-sider-width !important;
|
||||
// }
|
||||
|
||||
.ns-left-menu {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
@@ -249,11 +250,10 @@
|
||||
width: 90%;
|
||||
}
|
||||
|
||||
.ant-menu-item-active,
|
||||
.ant-submenu-item-active {
|
||||
// color: rgba(@primary-color, 0.1) !important;
|
||||
}
|
||||
:deep(.ant-layout-sider-children) {
|
||||
transition: all 0.1s;
|
||||
|
||||
padding: 0 @ns-gap;
|
||||
// background-color: transparent;
|
||||
.ant-menu-root {
|
||||
// background-color: transparent;
|
||||
@@ -261,6 +261,8 @@
|
||||
.ant-menu-submenu-title,
|
||||
.ant-menu-item {
|
||||
height: @menu-item-height;
|
||||
border-radius: @ns-border-radius;
|
||||
// overflow: hidden;
|
||||
// color: @black;
|
||||
.ant-menu-submenu-arrow {
|
||||
// color: @black;
|
||||
@@ -269,30 +271,21 @@
|
||||
.ant-menu {
|
||||
color: rgba(@black, 0.85);
|
||||
}
|
||||
.ant-menu-item {
|
||||
// margin-inline: 20px;
|
||||
}
|
||||
.ant-menu-item a {
|
||||
// color: rgba(@black, 0.8);
|
||||
}
|
||||
.ant-menu-submenu-expand-icon,
|
||||
.ant-menu-submenu-arrow {
|
||||
// color: rgba(255, 255, 255, 0.9);
|
||||
}
|
||||
.ant-menu-inline {
|
||||
}
|
||||
|
||||
.ant-menu-sub.ant-menu-inline {
|
||||
// background-color: #001027;
|
||||
> div {
|
||||
// margin-inline: 20px;
|
||||
}
|
||||
background-color: @white;
|
||||
// > div {
|
||||
// margin-inline: 20px;
|
||||
// }
|
||||
}
|
||||
.ant-menu-item-active:not(.ant-menu-item-selected),
|
||||
.ant-submenu-item-active {
|
||||
// color: rgba(@primary-color, 0.1) !important;
|
||||
background-color: rgba(@primary-color, 0.1);
|
||||
border-radius: 12px;
|
||||
}
|
||||
}
|
||||
}
|
||||
#iframeApplication .ns-left-menu {
|
||||
padding-top: 0px;
|
||||
}
|
||||
|
||||
.anticon + span {
|
||||
margin-left: @icon-gap !important;
|
||||
}
|
||||
@@ -301,18 +294,42 @@
|
||||
height: auto;
|
||||
z-index: 9;
|
||||
box-shadow: @ns-box-shadow;
|
||||
|
||||
// background-color: #fff;
|
||||
overflow: hidden;
|
||||
transition: all 0.2s;
|
||||
flex: 0 0 @layout-sider-width;
|
||||
&.ns-left-menu-space-collapsed {
|
||||
width: 48px;
|
||||
flex: 0 0 48px;
|
||||
// transition: all 0.1s;
|
||||
// &:not(.ns-left-menu-space-collapsed) :deep(.ant-menu-title-content) {
|
||||
// padding-left: 8px;
|
||||
// }
|
||||
:deep(.ant-menu-item-selected) {
|
||||
// color: #fff !important;
|
||||
background: @primary-color;
|
||||
// border-radius: 12px;
|
||||
// height: 40px;
|
||||
// line-height: 40px;
|
||||
// width: auto;
|
||||
// margin-inline: @ns-gap;
|
||||
// padding-left: @ns-gap !important;
|
||||
position: relative;
|
||||
a {
|
||||
color: @white !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.ns-left-menu-space-collapsed {
|
||||
z-index: 11;
|
||||
width: @layout-sider-collapsed-width;
|
||||
flex: 0 0 @layout-sider-collapsed-width;
|
||||
:deep(.ant-layout-sider-children) {
|
||||
transition: all 0.1s;
|
||||
|
||||
padding: 0 calc(@ns-gap / 4) !important;
|
||||
}
|
||||
.ns-left-menu-trigger {
|
||||
width: 48px !important;
|
||||
width: @layout-sider-collapsed-width !important;
|
||||
justify-content: center;
|
||||
padding-left: 0px;
|
||||
}
|
||||
@@ -395,12 +412,9 @@
|
||||
// content: '';
|
||||
// }
|
||||
|
||||
:deep(.ant-menu-title-content) {
|
||||
padding-left: 8px;
|
||||
}
|
||||
:deep(.firstMenuSub .ant-menu-submenu-title) {
|
||||
padding-left: 8px !important;
|
||||
}
|
||||
// :deep(.firstMenuSub .ant-menu-submenu-title) {
|
||||
// padding-left: 8px !important;
|
||||
// }
|
||||
|
||||
:deep(.firstMenuItem-selected) {
|
||||
background: @primary-color!important;
|
||||
|
Reference in New Issue
Block a user