2020-03-16 17:03:34 +08:00
|
|
|
@import '../../style/themes/index';
|
|
|
|
@import '../../style/mixins/index';
|
|
|
|
|
|
|
|
@dropdown-prefix-cls: ~'@{ant-prefix}-dropdown';
|
|
|
|
|
|
|
|
.@{dropdown-prefix-cls} {
|
|
|
|
&-rtl {
|
|
|
|
direction: rtl;
|
|
|
|
}
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
.@{dropdown-prefix-cls}-rtl& {
|
|
|
|
right: -7px;
|
|
|
|
left: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&-menu {
|
2020-08-14 15:41:22 +08:00
|
|
|
&&-rtl {
|
2020-05-28 12:11:31 +08:00
|
|
|
direction: rtl;
|
|
|
|
text-align: right;
|
|
|
|
}
|
|
|
|
|
2020-04-21 10:49:59 +08:00
|
|
|
&-item-group-title {
|
|
|
|
.@{dropdown-prefix-cls}-rtl & {
|
|
|
|
direction: rtl;
|
|
|
|
text-align: right;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-03-16 17:03:34 +08:00
|
|
|
&-submenu-popup {
|
|
|
|
ul,
|
|
|
|
li {
|
|
|
|
.@{dropdown-prefix-cls}-rtl & {
|
|
|
|
text-align: right;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&-item,
|
|
|
|
&-submenu-title {
|
|
|
|
.@{dropdown-prefix-cls}-rtl & {
|
|
|
|
text-align: right;
|
|
|
|
}
|
|
|
|
|
|
|
|
> .anticon:first-child,
|
|
|
|
> span > .anticon:first-child {
|
|
|
|
.@{dropdown-prefix-cls}-rtl & {
|
|
|
|
margin-right: 0;
|
|
|
|
margin-left: 8px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.@{dropdown-prefix-cls}-menu-submenu-arrow {
|
|
|
|
.@{dropdown-prefix-cls}-rtl & {
|
|
|
|
right: auto;
|
|
|
|
left: @padding-xs;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-icon {
|
|
|
|
.@{dropdown-prefix-cls}-rtl & {
|
|
|
|
margin-left: 0 !important;
|
|
|
|
transform: scaleX(-1);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&-submenu-title {
|
|
|
|
.@{dropdown-prefix-cls}-rtl & {
|
|
|
|
padding-right: @control-padding-horizontal;
|
|
|
|
padding-left: @control-padding-horizontal + @font-size-sm;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&-submenu-vertical > & {
|
|
|
|
.@{dropdown-prefix-cls}-rtl & {
|
|
|
|
right: 100%;
|
|
|
|
left: 0;
|
|
|
|
margin-right: 4px;
|
|
|
|
margin-left: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|