From: Mark Otto Date: Sat, 8 Oct 2011 07:19:01 +0000 (-0700) Subject: add better handling to the tables so that the thead and tbody first row can have... X-Git-Tag: v1.4.0~35 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0692530efc51efe73a0e40ced2040df9a68fb6f9;p=thirdparty%2Fbootstrap.git add better handling to the tables so that the thead and tbody first row can have rounded corners where applicable --- diff --git a/bootstrap.css b/bootstrap.css index 819bda3f50..3b4a240091 100644 --- a/bootstrap.css +++ b/bootstrap.css @@ -6,7 +6,7 @@ * http://www.apache.org/licenses/LICENSE-2.0 * * Designed and built with all the love in the world @twitter by @mdo and @fat. - * Date: Sat Oct 8 00:16:12 PDT 2011 + * Date: Sat Oct 8 00:18:37 PDT 2011 */ /* Reset.less * 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 { .bordered-table tr:first-child td { border-top: 0; } -.bordered-table tbody tr:first-child td:first-child { +.bordered-table thead tr:first-child th:first-child, .bordered-table tbody tr:first-child td:first-child { -webkit-border-radius: 4px 0 0 0; -moz-border-radius: 4px 0 0 0; border-radius: 4px 0 0 0; } -.bordered-table tbody tr:first-child td:last-child { +.bordered-table thead tr:first-child th:last-child, .bordered-table tbody tr:first-child td:last-child { -webkit-border-radius: 0 4px 0 0; -moz-border-radius: 0 4px 0 0; border-radius: 0 4px 0 0; diff --git a/bootstrap.min.css b/bootstrap.min.css index bdd6389788..472177f001 100644 --- a/bootstrap.min.css +++ b/bootstrap.min.css @@ -187,8 +187,8 @@ table tbody th{border-bottom:0;vertical-align:top;} .bordered-table{border:1px solid #ddd;border-collapse:separate;*border-collapse:collapse;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;}.bordered-table th+th,.bordered-table td+td,.bordered-table th+td{border-left:1px solid #ddd;} .bordered-table tr td{border-top:1px solid #ddd;} .bordered-table tr:first-child td{border-top:0;} -.bordered-table tbody tr:first-child td:first-child{-webkit-border-radius:4px 0 0 0;-moz-border-radius:4px 0 0 0;border-radius:4px 0 0 0;} -.bordered-table tbody tr:first-child td:last-child{-webkit-border-radius:0 4px 0 0;-moz-border-radius:0 4px 0 0;border-radius:0 4px 0 0;} +.bordered-table thead tr:first-child th:first-child,.bordered-table tbody tr:first-child td:first-child{-webkit-border-radius:4px 0 0 0;-moz-border-radius:4px 0 0 0;border-radius:4px 0 0 0;} +.bordered-table thead tr:first-child th:last-child,.bordered-table tbody tr:first-child td:last-child{-webkit-border-radius:0 4px 0 0;-moz-border-radius:0 4px 0 0;border-radius:0 4px 0 0;} .bordered-table tbody tr:last-child td:first-child{-webkit-border-radius:0 0 0 4px;-moz-border-radius:0 0 0 4px;border-radius:0 0 0 4px;} .bordered-table tbody tr:last-child td:last-child{-webkit-border-radius:0 0 4px 0;-moz-border-radius:0 0 4px 0;border-radius:0 0 4px 0;} table .span1{width:20px;} diff --git a/lib/tables.less b/lib/tables.less index 158f06d933..085eef49af 100644 --- a/lib/tables.less +++ b/lib/tables.less @@ -55,9 +55,11 @@ table { tr:first-child td { border-top: 0; } + thead tr:first-child th:first-child, tbody tr:first-child td:first-child { .border-radius(4px 0 0 0); } + thead tr:first-child th:last-child, tbody tr:first-child td:last-child { .border-radius(0 4px 0 0); }