Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
tweak dropdown menu item padding
  • Loading branch information
afc163 committed May 19, 2018
1 parent 29229eb commit 8e2f72f
Showing 1 changed file with 2 additions and 27 deletions.
29 changes: 2 additions & 27 deletions components/dropdown/style/index.less
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand All @@ -138,10 +124,6 @@

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

&-submenu-vertical {
Expand All @@ -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,
Expand Down

1 comment on commit 8e2f72f

@afc163
Copy link
Member Author

@afc163 afc163 commented on 8e2f72f May 20, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

微调了 dropdown 的样式。

Please sign in to comment.