aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2013-07-01 19:49:49 -0700
committerMark Otto <[email protected]>2013-07-01 19:49:49 -0700
commit9ed9fba4608f5eacbda5f5e76b5d94bbe017b096 (patch)
tree75b86f2f095c8f339fe2420c71212fb3d70a7b56
parent5b2d933524616c9948c9e5229c14e109aa83727a (diff)
parent526d1399c5f09a644f4c117fa24fa87fa79d8186 (diff)
downloadbootstrap-9ed9fba4608f5eacbda5f5e76b5d94bbe017b096.tar.xz
bootstrap-9ed9fba4608f5eacbda5f5e76b5d94bbe017b096.zip
Merge branch '3.0.0-wip' of github.com:twitter/bootstrap into 3.0.0-wip
-rw-r--r--less/mixins.less2
-rw-r--r--less/tables.less74
2 files changed, 36 insertions, 40 deletions
diff --git a/less/mixins.less b/less/mixins.less
index 7d93843b9..127bc14d7 100644
--- a/less/mixins.less
+++ b/less/mixins.less
@@ -71,7 +71,7 @@
// CSS image replacement
// Source: https://github.com/h5bp/html5-boilerplate/commit/aa0396eae757
.hide-text() {
- font: 0/0 a;
+ font: ~"0/0" a;
color: transparent;
text-shadow: none;
background-color: transparent;
diff --git a/less/tables.less b/less/tables.less
index 88481a944..392593902 100644
--- a/less/tables.less
+++ b/less/tables.less
@@ -95,33 +95,31 @@ th {
> tbody:first-child > tr:first-child td {
border-top: 0;
}
- // For first th/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,
- > tbody:first-child > tr:first-child > th:first-child {
- border-top-left-radius: @border-radius-base;
- }
- // For last th/td in the first row in the first thead or tbody
- > thead:first-child > tr:first-child > th:last-child,
- > tbody:first-child > tr:first-child > td:last-child,
- > tbody:first-child > tr:first-child > th:last-child {
- border-top-right-radius: @border-radius-base;
- }
- // For first th/td (can be either) in the last row in the last thead, tbody, and tfoot
- > thead:last-child > tr:last-child > th:first-child,
- > tbody:last-child > tr:last-child > td:first-child,
- > tbody:last-child > tr:last-child > th:first-child,
- > tfoot:last-child > tr:last-child > td:first-child,
- > tfoot:last-child > tr:last-child > th:first-child {
- border-bottom-left-radius: @border-radius-base;
- }
- // For last th/td (can be either) in the last row in the last thead, tbody, and tfoot
- > thead:last-child > tr:last-child > th:last-child,
- > tbody:last-child > tr:last-child > td:last-child,
- > tbody:last-child > tr:last-child > th:last-child,
- > tfoot:last-child > tr:last-child > td:last-child,
- > tfoot:last-child > tr:last-child > th:last-child {
- border-bottom-right-radius: @border-radius-base;
+ > thead:first-child > tr:first-child > th,
+ > tbody:first-child > tr:first-child > td,
+ > tbody:first-child > tr:first-child > th {
+ // For first th/td in the first row in the first thead or tbody
+ &:first-child{
+ border-top-left-radius: @border-radius-base;
+ }
+ // For last th/td in the first row in the first thead or tbody
+ &:last-child{
+ border-top-right-radius: @border-radius-base;
+ }
+ }
+ > thead:last-child > tr:last-child > th,
+ > tbody:last-child > tr:last-child > td,
+ > tbody:last-child > tr:last-child > th,
+ > tfoot:last-child > tr:last-child > td,
+ > tfoot:last-child > tr:last-child > th {
+ // For first th/td (can be either) in the last row in the last thead, tbody, and tfoot
+ &:first-child{
+ border-bottom-left-radius: @border-radius-base;
+ }
+ // For last th/td (can be either) in the last row in the last thead, tbody, and tfoot
+ &:last-child{
+ border-bottom-right-radius: @border-radius-base;
+ }
}
// Clear border-radius for first and last td in the last row in the last tbody for table with tfoot
@@ -133,19 +131,17 @@ th {
}
// Special fixes to round the left border on the first td/th
- > caption + thead > tr:first-child > th:first-child,
- > caption + tbody > tr:first-child > td:first-child,
- > colgroup + thead > tr:first-child > th:first-child,
- > colgroup + tbody > tr:first-child > td:first-child {
- border-top-left-radius: @border-radius-base;
- }
- > 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 {
- border-top-right-radius: @border-radius-base;
+ > caption + thead > tr:first-child > th,
+ > caption + tbody > tr:first-child > td,
+ > colgroup + thead > tr:first-child > th,
+ > colgroup + tbody > tr:first-child > td {
+ &:first-child{
+ border-top-left-radius: @border-radius-base;
+ }
+ &:last-child{
+ border-top-right-radius: @border-radius-base;
+ }
}
-
}