Skip to content

Commit 66bbd29

Browse files
Merge pull request #203 from stuartmaxwell:extending-bootstrap-styles
Add Bootstrap table styling to custom SCSS
2 parents a03f530 + b4985bf commit 66bbd29

File tree

3 files changed

+19
-7
lines changed

3 files changed

+19
-7
lines changed

build/css/bootstrap.custom.css

Lines changed: 8 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/scss/custom.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,9 @@ img {
1616
@extend .img-fluid;
1717
}
1818

19+
// Make all tables Bootstrap tables
20+
table {
21+
@extend .table;
22+
}
23+
1924
@import "../../node_modules/bootstrap/scss/bootstrap";

static/css/bs53p.css

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,8 @@ img {
505505
width: 50%;
506506
}
507507
}
508-
.table {
508+
.table,
509+
table {
509510
--bs-table-color-type: initial;
510511
--bs-table-bg-type: initial;
511512
--bs-table-color-state: initial;
@@ -525,7 +526,8 @@ img {
525526
vertical-align: top;
526527
border-color: var(--bs-table-border-color);
527528
}
528-
.table > :not(caption) > * > * {
529+
.table > :not(caption) > * > *,
530+
table > :not(caption) > * > * {
529531
padding: 0.5rem 0.5rem;
530532
color: var(
531533
--bs-table-color-state,
@@ -536,7 +538,8 @@ img {
536538
box-shadow: inset 0 0 0 9999px
537539
var(--bs-table-bg-state, var(--bs-table-bg-type, var(--bs-table-accent-bg)));
538540
}
539-
.table > thead {
541+
.table > thead,
542+
table > thead {
540543
vertical-align: bottom;
541544
}
542545
.form-label {

0 commit comments

Comments
 (0)