mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-29 08:10:47 +02:00
Add .caption-top
for tables (#30435)
* Move caption-side to <table> element in Reboot * Add class for .caption-top
This commit is contained in:
@@ -355,6 +355,7 @@ svg {
|
||||
// Prevent double borders
|
||||
|
||||
table {
|
||||
caption-side: bottom;
|
||||
border-collapse: collapse;
|
||||
}
|
||||
|
||||
@@ -363,7 +364,6 @@ caption {
|
||||
padding-bottom: $table-cell-padding;
|
||||
color: $table-caption-color;
|
||||
text-align: left;
|
||||
caption-side: bottom;
|
||||
}
|
||||
|
||||
// 1. Matches default `<td>` alignment by inheriting `text-align`.
|
||||
|
@@ -30,6 +30,13 @@
|
||||
}
|
||||
|
||||
|
||||
//
|
||||
// Change placement of captions with a class
|
||||
//
|
||||
|
||||
.caption-top { caption-side: top; }
|
||||
|
||||
|
||||
//
|
||||
// Condensed table w/ half padding
|
||||
//
|
||||
|
Reference in New Issue
Block a user