diff options
author | Mark Otto <markd.otto@gmail.com> | 2020-05-14 20:43:33 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-14 20:43:33 +0300 |
commit | 46d876314b37e1ada096f259f74cf0c54dcd8618 (patch) | |
tree | 8aaacaa64e79576af93850299e52e58c983762ab /scss | |
parent | 5d11d5790a00444bdc6625c7229c86bb1a162350 (diff) |
Split table cell padding variables (#30815)
Diffstat (limited to 'scss')
-rw-r--r-- | scss/_reboot.scss | 4 | ||||
-rw-r--r-- | scss/_tables.scss | 4 | ||||
-rw-r--r-- | scss/_variables.scss | 6 |
3 files changed, 8 insertions, 6 deletions
diff --git a/scss/_reboot.scss b/scss/_reboot.scss index 2b4eb37b4c..d66223a969 100644 --- a/scss/_reboot.scss +++ b/scss/_reboot.scss @@ -363,8 +363,8 @@ table { } caption { - padding-top: $table-cell-padding; - padding-bottom: $table-cell-padding; + padding-top: $table-cell-padding-y; + padding-bottom: $table-cell-padding-y; color: $table-caption-color; text-align: left; } diff --git a/scss/_tables.scss b/scss/_tables.scss index 6aba4def2a..b7a50b42a1 100644 --- a/scss/_tables.scss +++ b/scss/_tables.scss @@ -24,7 +24,7 @@ // Another advantage is that this generates less code and makes the selector less specific making it easier to override. // stylelint-disable-next-line selector-max-universal > :not(caption) > * > * { - padding: $table-cell-padding; + padding: $table-cell-padding-y $table-cell-padding-x; background-color: var(--bs-table-bg); background-image: linear-gradient(var(--bs-table-accent-bg), var(--bs-table-accent-bg)); border-bottom-width: $table-border-width; @@ -62,7 +62,7 @@ .table-sm { // stylelint-disable-next-line selector-max-universal > :not(caption) > * > * { - padding: $table-cell-padding-sm; + padding: $table-cell-padding-y-sm $table-cell-padding-x-sm; } } diff --git a/scss/_variables.scss b/scss/_variables.scss index 8b9979e320..2d8aa51cb4 100644 --- a/scss/_variables.scss +++ b/scss/_variables.scss @@ -470,8 +470,10 @@ $mark-bg: #fcf8e3 !default; // Customizes the `.table` component with basic values, each used across all table variations. // scss-docs-start table-variables -$table-cell-padding: .5rem !default; -$table-cell-padding-sm: .25rem !default; +$table-cell-padding-y: .5rem !default; +$table-cell-padding-x: .5rem !default; +$table-cell-padding-y-sm: .25rem !default; +$table-cell-padding-x-sm: .25rem !default; $table-cell-vertical-align: top !default; |