vendor/assets/stylesheets/twitter/bootstrap/_tables.scss in bootstrap-sass-rails-rtl-2.2.2.0 vs vendor/assets/stylesheets/twitter/bootstrap/_tables.scss in bootstrap-sass-rails-rtl-2.3.1.0

- old
+ new

@@ -92,28 +92,36 @@ 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 + // 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 { - @include border-top-left-radius($baseBorderRadius); + tbody:first-child tr:first-child > td:first-child, + tbody:first-child tr:first-child > th:first-child { + @include border-top-left-radius($baseBorderRadius); } + // 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 { - @include border-top-right-radius($baseBorderRadius); + tbody:first-child tr:first-child > td:last-child, + tbody:first-child tr:first-child > th:last-child { + @include border-top-right-radius($baseBorderRadius); } - // For first th or td in the last row in the last thead or tbody + // 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, - tfoot: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 { @include border-bottom-left-radius($baseBorderRadius); } + // 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, - tfoot: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 { @include border-bottom-right-radius($baseBorderRadius); } // Clear border-radius for first and last td in the last row in the last tbody for table with tfoot tfoot + tbody:last-child tr:last-child td:first-child { @@ -121,11 +129,10 @@ } tfoot + tbody:last-child tr:last-child td:last-child { @include border-bottom-right-radius(0); } - // 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 { @@ -160,12 +167,12 @@ // HOVER EFFECT // ------------ // Placed here since it has to come after the potential zebra striping .table-hover { tbody { - tr:hover td, - tr:hover th { + tr:hover > td, + tr:hover > th { background-color: $tableBackgroundHover; } } } @@ -217,34 +224,34 @@ // TABLE BACKGROUNDS // ----------------- // Exact selectors below required to override .table-striped .table tbody tr { - &.success td { + &.success > td { background-color: $successBackground; } - &.error td { + &.error > td { background-color: $errorBackground; } - &.warning td { + &.warning > td { background-color: $warningBackground; } - &.info td { + &.info > td { background-color: $infoBackground; } } // Hover states for .table-hover .table-hover tbody tr { - &.success:hover td { + &.success:hover > td { background-color: darken($successBackground, 5%); } - &.error:hover td { + &.error:hover > td { background-color: darken($errorBackground, 5%); } - &.warning:hover td { + &.warning:hover > td { background-color: darken($warningBackground, 5%); } - &.info:hover td { + &.info:hover > td { background-color: darken($infoBackground, 5%); } }