@ttk/component
Version:
ttk组件库
73 lines • 2.29 kB
text/less
.@{ant-prefix}-menu-root.@{ant-prefix}-menu-inline {
.@{ant-prefix}-menu-submenu-title, .@{ant-prefix}-menu-item {
width: 100%;
display: block;
margin: 0;
font-size: 14px;
font-weight: 400;
border-bottom: 1px dashed @border-color-base;
}
& > .@{ant-prefix}-menu-submenu > .@{ant-prefix}-menu-submenu-title, & > .@{ant-prefix}-menu-item {
padding-left: 20px;
&::before {
display: inline-block;
font-family: "fsicon" ;
content: "\e9ce";
color: #989898;
width: 12px;
margin-right: 8px;
}
}
& > .@{ant-prefix}-menu-submenu > .@{ant-prefix}-menu-sub {
& > .@{ant-prefix}-menu-submenu .@{ant-prefix}-menu-submenu-title, & > .@{ant-prefix}-menu-item {
padding-left: 50px;
}
& > .@{ant-prefix}-menu-submenu .@{ant-prefix}-menu-item {
padding-left: 60px;
}
}
.@{ant-prefix}-menu-item {
&:not(:last-child) {
margin-bottom: 0;
}
&::after{
border-right: none;
}
}
.@{ant-prefix}-menu-submenu-open {
background: @background-color;
&.@{menu-prefix-cls}-submenu-inline > .@{menu-prefix-cls}-submenu-title .@{menu-prefix-cls}-submenu-arrow {
transform: translateY(-4px);
&:after {
transform: rotate(-45deg) translateX(-4px);
}
&:before {
transform: rotate(45deg) translateX(4px);
}
}
}
.@{ant-prefix}-menu-submenu-inline > .@{ant-prefix}-menu-submenu-title .@{ant-prefix}-menu-submenu-arrow{
&:before,
&:after {
width: 8.5px;
height: 1px;
}
&:before {
transform: rotate(-45deg) translateX(4px);
}
&:after {
transform: rotate(45deg) translateX(-4px);
}
}
}
.tax72-menu-header{
padding-left: 20px;
font-size: 16px;
height: 38px;
line-height: 38px;
color: #fff;
background-color: #74b1ee;
border-bottom: 1px solid #dcdee2;
border-top-left-radius: 3px;
border-top-right-radius: 3px;
}