Skip to content

Commit 629ac4e

Browse files
committed
fix: Cell padding on small tables
1 parent 5a9c29b commit 629ac4e

2 files changed

Lines changed: 9 additions & 2 deletions

File tree

src/scss/config/_bootstrap-overrides.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,8 @@ $headings-color: $h-color;
142142

143143
$table-cell-padding-y: 1rem;
144144
$table-cell-padding-x: 1rem;
145-
$table-cell-padding-y-sm: .5rem;
146-
$table-cell-padding-x-sm: .5rem;
145+
$table-cell-padding-y-sm: .75rem;
146+
$table-cell-padding-x-sm: .75rem;
147147
$table-border-color: $gray-200;
148148

149149

src/scss/theme.scss

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,13 @@ caption {
8484
border-right: none;
8585
}
8686
}
87+
88+
&.table-sm {
89+
td,
90+
th {
91+
padding: $table-cell-padding-y-sm $table-cell-padding-x-sm;
92+
}
93+
}
8794
}
8895

8996
input[type=text] {

0 commit comments

Comments
 (0)