Skip to content

Commit

Permalink
Drawer Body padding should be variable
Browse files Browse the repository at this point in the history
  • Loading branch information
yoyo837 committed Mar 1, 2019
1 parent 34eafbf commit b1a3850
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/drawer/style/drawer.less
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@

&-header {
position: relative;
padding: 16px 24px;
padding: @drawer-header-padding;
color: @text-color;
background: @component-background;
border-bottom: @border-width-base @border-style-base @border-color-split;
Expand All @@ -163,7 +163,7 @@
}

&-body {
padding: 24px;
padding: @drawer-body-padding;
font-size: @font-size-base;
line-height: @line-height-base;
word-wrap: break-word;
Expand Down
5 changes: 5 additions & 0 deletions components/style/themes/default.less
Original file line number Diff line number Diff line change
Expand Up @@ -579,3 +579,8 @@
@statistic-content-font-size: 24px;
@statistic-unit-font-size: 16px;
@statistic-font-family: Tahoma, 'Helvetica Neue', @font-family;

// Drawer
// ---
@drawer-header-padding: 16px 24px;
@drawer-body-padding: 24px;

0 comments on commit b1a3850

Please sign in to comment.