Browse Source

Border-radius customization for Collapse Panel

pull/17031/head
Alexander.Kosov 6 years ago
parent
commit
51b9c4698c
  1. 6
      components/collapse/style/index.less
  2. 3
      components/style/themes/default.less

6
components/collapse/style/index.less

@ -9,7 +9,7 @@
background-color: @collapse-header-bg; background-color: @collapse-header-bg;
border: @border-width-base @border-style-base @border-color-base; border: @border-width-base @border-style-base @border-color-base;
border-bottom: 0; border-bottom: 0;
border-radius: @border-radius-base; border-radius: @collapse-panel-border-radius;
& > &-item { & > &-item {
border-bottom: @border-width-base @border-style-base @border-color-base; border-bottom: @border-width-base @border-style-base @border-color-base;
@ -17,7 +17,7 @@
&:last-child { &:last-child {
&, &,
& > .@{collapse-prefix-cls}-header { & > .@{collapse-prefix-cls}-header {
border-radius: 0 0 @border-radius-base @border-radius-base; border-radius: 0 0 @collapse-panel-border-radius @collapse-panel-border-radius;
} }
} }
@ -99,7 +99,7 @@
&-item:last-child { &-item:last-child {
> .@{collapse-prefix-cls}-content { > .@{collapse-prefix-cls}-content {
border-radius: 0 0 @border-radius-base @border-radius-base; border-radius: 0 0 @collapse-panel-border-radius @collapse-panel-border-radius;
} }
} }

3
components/style/themes/default.less

@ -277,6 +277,9 @@
@animation-duration-base: 0.2s; @animation-duration-base: 0.2s;
@animation-duration-fast: 0.1s; // Tooltip @animation-duration-fast: 0.1s; // Tooltip
//CollapsePanel
@collapse-panel-border-radius: @border-radius-base;
//Dropdown //Dropdown
@dropdown-vertical-padding: 5px; @dropdown-vertical-padding: 5px;
@dropdown-font-size: @font-size-base; @dropdown-font-size: @font-size-base;

Loading…
Cancel
Save