aboutsummaryrefslogtreecommitdiff
path: root/less/tables.less
diff options
context:
space:
mode:
Diffstat (limited to 'less/tables.less')
-rw-r--r--less/tables.less32
1 files changed, 11 insertions, 21 deletions
diff --git a/less/tables.less b/less/tables.less
index 911ef67af..44c3909b7 100644
--- a/less/tables.less
+++ b/less/tables.less
@@ -70,7 +70,7 @@ table {
border: 1px solid @tableBorder;
border-collapse: separate; // Done so we can round those corners!
border-left: 0;
- border-radius: 4px;
+ border-radius: @baseBorderRadius;
th,
td {
border-left: 1px solid @tableBorder;
@@ -90,31 +90,22 @@ table {
// 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 {
- -webkit-border-top-left-radius: 4px;
- border-top-left-radius: 4px;
- -moz-border-radius-topleft: 4px;
+ .border-top-left-radius(4px);
}
thead:first-child tr:first-child th:last-child,
tbody:first-child tr:first-child td:last-child {
- -webkit-border-top-right-radius: 4px;
- border-top-right-radius: 4px;
- -moz-border-radius-topright: 4px;
+ .border-top-right-radius(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,
tfoot:last-child tr:last-child td:first-child {
- border-radius: 0 0 0 4px;
- -webkit-border-bottom-left-radius: 4px;
- border-bottom-left-radius: 4px;
- -moz-border-radius-bottomleft: 4px;
+ .border-bottom-left-radius(4px);
}
thead:last-child tr:last-child th:last-child,
tbody:last-child tr:last-child td:last-child,
tfoot:last-child tr:last-child td:last-child {
- -webkit-border-bottom-right-radius: 4px;
- border-bottom-right-radius: 4px;
- -moz-border-radius-bottomright: 4px;
+ .border-bottom-right-radius(4px);
}
// Special fixes to round the left border on the first td/th
@@ -122,17 +113,13 @@ table {
caption + tbody tr:first-child td:first-child,
colgroup + thead tr:first-child th:first-child,
colgroup + tbody tr:first-child td:first-child {
- -webkit-border-top-left-radius: 4px;
- border-top-left-radius: 4px;
- -moz-border-radius-topleft: 4px;
+ .border-top-left-radius(4px);
}
caption + thead tr:first-child th:last-child,
caption + tbody tr:first-child td:last-child,
colgroup + thead tr:first-child th:last-child,
colgroup + tbody tr:first-child td:last-child {
- -webkit-border-top-right-radius: 4px;
- border-top-right-radius: 4px;
- -moz-border-radius-topright: 4px;
+ .border-top-right-radius(4px);
}
}
@@ -172,7 +159,10 @@ table {
// -----------------
// Reset default grid behavior
-table [class*=span] {
+table td[class*="span"],
+table th[class*="span"],
+.row-fluid table td[class*="span"],
+.row-fluid table th[class*="span"] {
display: table-cell;
float: none; // undo default grid column styles
margin-left: 0; // undo default grid column styles