1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-29 08:10:47 +02:00

Migrate some Sass vars to be local to specific stylesheets

- Update ScssDocs tags where appropriate
- Removed a null Sass variable, $table-th-font-weight
- Removed $table-caption-color because we put table Sass vars in the _tables.scss file away from the _reboot.scss file
- Fix docs styles as needed
This commit is contained in:
Mark Otto
2025-05-30 22:20:50 -07:00
parent da5c4316ed
commit e929e0cdcf
39 changed files with 427 additions and 485 deletions

View File

@@ -362,20 +362,18 @@
}
caption {
padding-top: $table-cell-padding-y;
padding-bottom: $table-cell-padding-y;
color: $table-caption-color;
padding-top: .5rem;
padding-bottom: .5rem;
color: var(--#{$prefix}secondary-color);
text-align: left;
}
// 1. Removes font-weight bold by inheriting
// 2. Matches default `<td>` alignment by inheriting `text-align`.
// 3. Fix alignment for Safari
// 1. Matches default `<td>` alignment by inheriting `text-align`.
// 2. Fix alignment for Safari
th {
font-weight: $table-th-font-weight; // 1
text-align: inherit; // 2
text-align: -webkit-match-parent; // 3
text-align: inherit; // 1
text-align: -webkit-match-parent; // 2
}
thead,