From 6ef1a28486ec96825f5707d4828554675de7fe9e Mon Sep 17 00:00:00 2001 From: BeADre Date: Sun, 20 Mar 2022 11:21:16 +0800 Subject: [PATCH] fix(collapse): modify padding --- packages/varlet-ui/src/collapse-item/collapseItem.less | 4 ++-- packages/varlet-ui/src/collapse/docs/en-US.md | 2 +- packages/varlet-ui/src/collapse/docs/zh-CN.md | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/varlet-ui/src/collapse-item/collapseItem.less b/packages/varlet-ui/src/collapse-item/collapseItem.less index bd7a5b8dae6..437d3bc8e2d 100644 --- a/packages/varlet-ui/src/collapse-item/collapseItem.less +++ b/packages/varlet-ui/src/collapse-item/collapseItem.less @@ -1,9 +1,9 @@ @collapse-background: #fff; @collapse-text-color: #232222; @collapse-header-font-size: var(--font-size-lg); -@collapse-header-padding: 10px 16px; +@collapse-header-padding: 10px 12px; @collapse-content-font-size: var(--font-size-md); -@collapse-content-padding: 0 16px 10px; +@collapse-content-padding: 0 12px 10px; @collapse-item-margin-top: 16px; @collapse-disable-color: #bdbdbd; @collapse-border-top: thin solid rgba(0, 0, 0, 0.12); diff --git a/packages/varlet-ui/src/collapse/docs/en-US.md b/packages/varlet-ui/src/collapse/docs/en-US.md index b82df499fe4..81ce04f8ae4 100644 --- a/packages/varlet-ui/src/collapse/docs/en-US.md +++ b/packages/varlet-ui/src/collapse/docs/en-US.md @@ -174,7 +174,7 @@ Here are the CSS variables used by the component, Styles can be customized using | `--collapse-header-font-size` | `var(--font-size-lg)` | | `--collapse-header-padding` | `10px 16px` | | `--collapse-content-font-size` | `var(--font-size-md)` | -| `--collapse-content-font-size` | `14px` | +| `--collapse-content-padding` | `0 12px 10px` | | `--collapse-item-margin-top` | `16px` | | `--collapse-disable-color` | `#bdbdbd` | | `--collapse-border-top` | `thin solid rgba(0, 0, 0, 0.12)` | diff --git a/packages/varlet-ui/src/collapse/docs/zh-CN.md b/packages/varlet-ui/src/collapse/docs/zh-CN.md index 1f35591dae8..f7af9fca3a6 100644 --- a/packages/varlet-ui/src/collapse/docs/zh-CN.md +++ b/packages/varlet-ui/src/collapse/docs/zh-CN.md @@ -174,7 +174,7 @@ export default { | `--collapse-header-font-size` | `var(--font-size-lg)` | | `--collapse-header-padding` | `10px 16px` | | `--collapse-content-font-size` | `var(--font-size-md)` | -| `--collapse-content-font-size` | `14px` | +| `--collapse-content-padding` | `0 12px 10px` | | `--collapse-item-margin-top` | `16px` | | `--collapse-disable-color` | `#bdbdbd` | | `--collapse-border-top` | `thin solid rgba(0, 0, 0, 0.12)` |