vendor/assets/stylesheets/bootstrap/_tables.scss in bootstrap-sass-2.0.2 vs vendor/assets/stylesheets/bootstrap/_tables.scss in bootstrap-sass-2.0.3
- old
+ new
@@ -7,13 +7,13 @@
// BASE TABLES
// -----------------
table {
max-width: 100%;
+ background-color: $tableBackground;
border-collapse: collapse;
border-spacing: 0;
- background-color: $tableBackground;
}
// BASELINE STYLES
// ---------------
@@ -34,10 +34,11 @@
// Bottom align for column headings
thead th {
vertical-align: bottom;
}
// Remove top border from thead by default
+ caption + thead tr:first-child th, caption + thead tr:first-child td,
colgroup + thead tr:first-child th, colgroup + thead tr:first-child td,
thead:first-child tr:first-child th, thead:first-child tr:first-child td {
border-top: 0;
}
// Account for multiple tbody instances
@@ -61,33 +62,43 @@
// BORDERED VERSION
// ----------------
.table-bordered {
border: 1px solid $tableBorder;
- border-left: 0;
border-collapse: separate; // Done so we can round those corners!
*border-collapse: collapsed; // IE7 can't round corners anyway
+ border-left: 0;
@include border-radius(4px);
th, td {
border-left: 1px solid $tableBorder;
}
// Prevent a double border
+ caption + thead tr:first-child th, caption + tbody tr:first-child th, caption + tbody tr:first-child td,
+ colgroup + thead tr:first-child th, colgroup + tbody tr:first-child th, colgroup + tbody tr:first-child td,
thead:first-child tr:first-child th, tbody:first-child tr:first-child th, tbody:first-child tr:first-child td {
border-top: 0;
}
// For first th or td in the first row in the first thead or tbody
thead:first-child tr:first-child th:first-child, tbody:first-child tr:first-child td:first-child {
- @include border-radius(4px 0 0 0);
+ -webkit-border-top-left-radius: 4px;
+ border-top-left-radius: 4px;
+ -moz-border-radius-topleft: 4px;
}
thead:first-child tr:first-child th:last-child, tbody:first-child tr:first-child td:last-child {
- @include border-radius(0 4px 0 0);
+ -webkit-border-top-right-radius: 4px;
+ border-top-right-radius: 4px;
+ -moz-border-radius-topright: 4px;
}
// For first th or td in the first row in the first thead or tbody
thead:last-child tr:last-child th:first-child, tbody:last-child tr:last-child td:first-child {
- @include border-radius(0 0 0 4px);
+ -webkit-border-bottom-left-radius: 4px;
+ border-bottom-left-radius: 4px;
+ -moz-border-radius-bottomleft: 4px;
}
thead:last-child tr:last-child th:last-child, tbody:last-child tr:last-child td:last-child {
- @include border-radius(0 0 4px 0);
+ -webkit-border-bottom-right-radius: 4px;
+ border-bottom-right-radius: 4px;
+ -moz-border-radius-bottomright: 4px;
}
}
// ZEBRA-STRIPING
\ No newline at end of file