Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
tweak dropdown menu item padding
- Loading branch information
Showing
with
2 additions
and
27 deletions.
-
+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, |
|
|
This comment has been minimized.
8e2f72f
微调了 dropdown 的样式。