Permalink
Browse files

tweak dropdown menu item padding

  • Loading branch information...
afc163 committed May 19, 2018
1 parent 29229eb commit 8e2f72ffe0eb300f5997296726b02246bf990c8f
Showing with 2 additions and 27 deletions.
  1. +2 −27 components/dropdown/style/index.less
@@ -38,7 +38,7 @@
outline: none;
position: relative;
list-style-type: none;
padding: 0;
padding: 4px 0;
margin: 0;
text-align: left;
background-color: @component-background;
@@ -102,26 +102,12 @@
}
}

&:first-child,
&:first-child > a {
border-radius: @border-radius-base @border-radius-base 0 0;
}

&:last-child,
&:last-child > a {
border-radius: 0 0 @border-radius-base @border-radius-base;
}

&:only-child,
&:only-child > a {
border-radius: @border-radius-base;
}

&-divider {
height: 1px;
overflow: hidden;
background-color: @border-color-split;
line-height: 0;
margin: 4px 0;
}
.@{dropdown-prefix-cls}-menu-submenu-arrow {
position: absolute;
@@ -138,10 +124,6 @@

&-submenu-title {
padding-right: 26px;
&:first-child,
&:last-child {
border-radius: 0;
}
}

&-submenu-vertical {
@@ -163,13 +145,6 @@
color: @disabled-color;
}
}
&-submenu:first-child &-submenu-title {
border-radius: @border-radius-base @border-radius-base 0 0;
}

&-submenu:last-child &-submenu-title {
border-radius: 0 0 @border-radius-base @border-radius-base;
}
}

&.slide-down-enter.slide-down-enter-active&-placement-bottomLeft,

1 comment on commit 8e2f72f

@afc163

This comment has been minimized.

Member

afc163 commented on 8e2f72f May 20, 2018

微调了 dropdown 的样式。

Please sign in to comment.