Skip to content

Commit

Permalink
feat(Table): make header padding configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
youluna committed Mar 26, 2019
1 parent 70c1bc4 commit 3b7a23b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/table/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
color: $table-th-color;
text-align: left;
#{$table-prefix}-cell-wrapper {
padding: $table-cell-padding-top $table-cell-padding-left;
padding: $table-header-padding-top $table-header-padding-left;
overflow: hidden;
text-overflow: ellipsis;
word-break: break-all;
Expand Down
6 changes: 6 additions & 0 deletions src/table/scss/variable.scss
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,12 @@ $table-cell-padding-top: $s-3 !default;
/// padding (l, r)
/// @namespace size/cell
$table-cell-padding-left: $s-4 !default;
/// padding (t, b)
/// @namespace size/header
$table-header-padding-top: $s-3 !default;
/// padding (l, r)
/// @namespace size/header
$table-header-padding-left: $s-4 !default;
/// margin (t, b)
/// @namespace size/group list
$table-group-split: $s-2 !default;
Expand Down

0 comments on commit 3b7a23b

Please sign in to comment.