2020-03-16 21:56:05 +08:00
|
|
|
@import '../../style/themes/index';
|
|
|
|
@import '../../style/mixins/index';
|
|
|
|
|
|
|
|
@menu-prefix-cls: ~'@{ant-prefix}-menu';
|
|
|
|
|
|
|
|
.@{menu-prefix-cls} {
|
2020-04-02 11:42:15 +08:00
|
|
|
&-rtl {
|
|
|
|
direction: rtl;
|
|
|
|
}
|
|
|
|
|
2020-03-16 21:56:05 +08:00
|
|
|
&-item-group-title {
|
|
|
|
.@{menu-prefix-cls}-rtl & {
|
|
|
|
text-align: right;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&-inline,
|
|
|
|
&-vertical {
|
|
|
|
.@{menu-prefix-cls}-rtl& {
|
|
|
|
border-right: none;
|
|
|
|
border-left: @border-width-base @border-style-base @border-color-split;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-05-13 11:09:28 +08:00
|
|
|
|
|
|
|
&-dark&-inline,
|
|
|
|
&-dark&-vertical {
|
|
|
|
.@{menu-prefix-cls}-rtl& {
|
|
|
|
border-left: none;
|
2020-04-16 17:40:13 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-03-16 21:56:05 +08:00
|
|
|
&-vertical&-sub,
|
|
|
|
&-vertical-left&-sub,
|
|
|
|
&-vertical-right&-sub {
|
|
|
|
.@{menu-prefix-cls}-rtl& {
|
|
|
|
transform-origin: top right;
|
|
|
|
}
|
|
|
|
|
|
|
|
> .@{menu-prefix-cls}-item,
|
|
|
|
> .@{menu-prefix-cls}-submenu {
|
|
|
|
.@{menu-prefix-cls}-rtl& {
|
|
|
|
transform-origin: top right;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&-item,
|
|
|
|
&-submenu-title {
|
|
|
|
.@{iconfont-css-prefix} {
|
|
|
|
.@{menu-prefix-cls}-rtl & {
|
|
|
|
margin-right: auto;
|
|
|
|
margin-left: 10px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.@{menu-prefix-cls}-item-only-child {
|
|
|
|
> .@{iconfont-css-prefix} {
|
|
|
|
.@{menu-prefix-cls}-rtl & {
|
|
|
|
margin-left: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&-submenu {
|
|
|
|
&-vertical,
|
|
|
|
&-vertical-left,
|
|
|
|
&-vertical-right,
|
|
|
|
&-inline {
|
|
|
|
> .@{menu-prefix-cls}-submenu-title .@{menu-prefix-cls}-submenu-arrow {
|
|
|
|
.@{menu-prefix-cls}-rtl & {
|
|
|
|
right: auto;
|
|
|
|
left: 16px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&-vertical,
|
|
|
|
&-vertical-left,
|
|
|
|
&-vertical-right {
|
|
|
|
> .@{menu-prefix-cls}-submenu-title .@{menu-prefix-cls}-submenu-arrow {
|
|
|
|
&::before {
|
|
|
|
.@{menu-prefix-cls}-rtl & {
|
|
|
|
transform: rotate(-45deg) translateY(-2px);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&::after {
|
|
|
|
.@{menu-prefix-cls}-rtl & {
|
|
|
|
transform: rotate(45deg) translateY(2px);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&-vertical,
|
|
|
|
&-vertical-left,
|
|
|
|
&-vertical-right,
|
|
|
|
&-inline {
|
|
|
|
.@{menu-prefix-cls}-item {
|
|
|
|
&::after {
|
|
|
|
.@{menu-prefix-cls}-rtl& {
|
|
|
|
right: auto;
|
|
|
|
left: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.@{menu-prefix-cls}-item,
|
|
|
|
.@{menu-prefix-cls}-submenu-title {
|
|
|
|
.@{menu-prefix-cls}-rtl& {
|
|
|
|
text-align: right;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&-inline {
|
|
|
|
.@{menu-prefix-cls}-submenu-title {
|
|
|
|
.@{menu-prefix-cls}-rtl& {
|
|
|
|
padding-right: 0;
|
|
|
|
padding-left: 34px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-04-08 16:18:18 +08:00
|
|
|
&-vertical {
|
|
|
|
.@{menu-prefix-cls}-submenu-title {
|
|
|
|
.@{menu-prefix-cls}-rtl& {
|
|
|
|
padding-right: 16px;
|
|
|
|
padding-left: 34px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-04-16 17:40:13 +08:00
|
|
|
&-inline-collapsed&-vertical {
|
|
|
|
.@{menu-prefix-cls}-submenu-title {
|
|
|
|
.@{menu-prefix-cls}-rtl& {
|
|
|
|
padding: 0 (@menu-collapsed-width - @menu-icon-size-lg) / 2;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-03-16 21:56:05 +08:00
|
|
|
&-item-group-list {
|
|
|
|
.@{menu-prefix-cls}-item,
|
|
|
|
.@{menu-prefix-cls}-submenu-title {
|
|
|
|
.@{menu-prefix-cls}-rtl & {
|
|
|
|
padding: 0 28px 0 16px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&-sub&-inline {
|
2020-05-13 11:09:28 +08:00
|
|
|
border: 0;
|
2020-03-16 21:56:05 +08:00
|
|
|
& .@{menu-prefix-cls}-item-group-title {
|
|
|
|
.@{menu-prefix-cls}-rtl& {
|
|
|
|
padding-right: 32px;
|
|
|
|
padding-left: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|