Skip to content

Commit 0692530

Browse files
committed
add better handling to the tables so that the thead and tbody first row can have rounded corners where applicable
1 parent aa3a8af commit 0692530

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

bootstrap.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* http://www.apache.org/licenses/LICENSE-2.0
77
*
88
* Designed and built with all the love in the world @twitter by @mdo and @fat.
9-
* Date: Sat Oct 8 00:16:12 PDT 2011
9+
* Date: Sat Oct 8 00:18:37 PDT 2011
1010
*/
1111
/* Reset.less
1212
* Props to Eric Meyer (meyerweb.com) for his CSS reset file. We're using an adapted version here that cuts out some of the reset HTML elements we will never need here (i.e., dfn, samp, etc).
@@ -1097,12 +1097,12 @@ table tbody th {
10971097
.bordered-table tr:first-child td {
10981098
border-top: 0;
10991099
}
1100-
.bordered-table tbody tr:first-child td:first-child {
1100+
.bordered-table thead tr:first-child th:first-child, .bordered-table tbody tr:first-child td:first-child {
11011101
-webkit-border-radius: 4px 0 0 0;
11021102
-moz-border-radius: 4px 0 0 0;
11031103
border-radius: 4px 0 0 0;
11041104
}
1105-
.bordered-table tbody tr:first-child td:last-child {
1105+
.bordered-table thead tr:first-child th:last-child, .bordered-table tbody tr:first-child td:last-child {
11061106
-webkit-border-radius: 0 4px 0 0;
11071107
-moz-border-radius: 0 4px 0 0;
11081108
border-radius: 0 4px 0 0;

bootstrap.min.css

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

lib/tables.less

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,11 @@ table {
5555
tr:first-child td {
5656
border-top: 0;
5757
}
58+
thead tr:first-child th:first-child,
5859
tbody tr:first-child td:first-child {
5960
.border-radius(4px 0 0 0);
6061
}
62+
thead tr:first-child th:last-child,
6163
tbody tr:first-child td:last-child {
6264
.border-radius(0 4px 0 0);
6365
}

0 commit comments

Comments
 (0)