feat: add table padding parameters for customizing (#5795)

This commit is contained in:
绯一 2017-04-26 10:16:26 +08:00 committed by Benjy Cui
parent d783c26263
commit 80de0127f4
2 changed files with 8 additions and 6 deletions

View File

@ -270,6 +270,8 @@
// --
@table-header-bg: @background-color-base;
@table-row-hover-bg: @primary-1;
@table-padding-vertical: 16px;
@table-padding-horizontal: 8px;
// TimePicker
// ---

View File

@ -75,7 +75,7 @@
}
&-footer {
padding: 16px 8px;
padding: @table-padding-vertical @table-padding-horizontal;
background: @table-header-bg;
border-radius: 0 0 @border-radius-base @border-radius-base;
position: relative;
@ -95,7 +95,7 @@
}
&-title {
padding: 16px 0;
padding: @table-padding-vertical 0;
position: relative;
top: 1px;
border-radius: @border-radius-base @border-radius-base 0 0;
@ -103,8 +103,8 @@
&.@{table-prefix-cls}-bordered &-title {
border: @border-width-base @border-style-base @border-color-split;
padding-left: 8px;
padding-right: 8px;
padding-left: @table-padding-horizontal;
padding-right: @table-padding-horizontal;
}
&-title + &-content {
@ -135,7 +135,7 @@
&-thead > tr > th,
&-tbody > tr > td {
padding: 16px 8px;
padding: @table-padding-vertical @table-padding-horizontal;
word-break: break-all;
}
@ -361,7 +361,7 @@
&-placeholder {
position: relative;
padding: 16px 8px;
padding: @table-padding-vertical @table-padding-horizontal;
background: @component-background;
border-bottom: @border-width-base @border-style-base @border-color-split;
text-align: center;