aboutsummaryrefslogtreecommitdiff
path: root/assets/css/bootstrap-3.3.2/tables.less
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--assets/css/bootstrap-3.3.2/tables.less (renamed from assets/css/lib/bootstrap/_tables.scss)65
1 files changed, 33 insertions, 32 deletions
diff --git a/assets/css/lib/bootstrap/_tables.scss b/assets/css/bootstrap-3.3.2/tables.less
index 7c5d5bb..2242c03 100644
--- a/assets/css/lib/bootstrap/_tables.scss
+++ b/assets/css/bootstrap-3.3.2/tables.less
@@ -4,7 +4,13 @@
table {
- background-color: $table-bg;
+ background-color: @table-bg;
+}
+caption {
+ padding-top: @table-cell-padding;
+ padding-bottom: @table-cell-padding;
+ color: @text-muted;
+ text-align: left;
}
th {
text-align: left;
@@ -16,7 +22,7 @@ th {
.table {
width: 100%;
max-width: 100%;
- margin-bottom: $line-height-computed;
+ margin-bottom: @line-height-computed;
// Cells
> thead,
> tbody,
@@ -24,17 +30,17 @@ th {
> tr {
> th,
> td {
- padding: $table-cell-padding;
- line-height: $line-height-base;
+ padding: @table-cell-padding;
+ line-height: @line-height-base;
vertical-align: top;
- border-top: 1px solid $table-border-color;
+ border-top: 1px solid @table-border-color;
}
}
}
// Bottom align for column headings
> thead > tr > th {
vertical-align: bottom;
- border-bottom: 2px solid $table-border-color;
+ border-bottom: 2px solid @table-border-color;
}
// Remove top border from thead by default
> caption + thead,
@@ -49,12 +55,12 @@ th {
}
// Account for multiple tbody instances
> tbody + tbody {
- border-top: 2px solid $table-border-color;
+ border-top: 2px solid @table-border-color;
}
// Nesting
.table {
- background-color: $body-bg;
+ background-color: @body-bg;
}
}
@@ -68,7 +74,7 @@ th {
> tr {
> th,
> td {
- padding: $table-condensed-cell-padding;
+ padding: @table-condensed-cell-padding;
}
}
}
@@ -80,14 +86,14 @@ th {
// Add borders all around the table and between all the columns.
.table-bordered {
- border: 1px solid $table-border-color;
+ border: 1px solid @table-border-color;
> thead,
> tbody,
> tfoot {
> tr {
> th,
> td {
- border: 1px solid $table-border-color;
+ border: 1px solid @table-border-color;
}
}
}
@@ -105,11 +111,8 @@ th {
// Default zebra-stripe styles (alternating gray and transparent backgrounds)
.table-striped {
- > tbody > tr:nth-child(odd) {
- > td,
- > th {
- background-color: $table-bg-accent;
- }
+ > tbody > tr:nth-of-type(odd) {
+ background-color: @table-bg-accent;
}
}
@@ -120,10 +123,7 @@ th {
.table-hover {
> tbody > tr:hover {
- > td,
- > th {
- background-color: $table-bg-hover;
- }
+ background-color: @table-bg-hover;
}
}
@@ -133,7 +133,7 @@ th {
// Reset default table behavior
table col[class*="col-"] {
- position: static; // Prevent border hiding in Firefox and IE9/10 (see https://github.com/twbs/bootstrap/issues/11623)
+ position: static; // Prevent border hiding in Firefox and IE9-11 (see https://github.com/twbs/bootstrap/issues/11623)
float: none;
display: table-column;
}
@@ -141,7 +141,7 @@ table {
td,
th {
&[class*="col-"] {
- position: static; // Prevent border hiding in Firefox and IE9/10 (see https://github.com/twbs/bootstrap/issues/11623)
+ position: static; // Prevent border hiding in Firefox and IE9-11 (see https://github.com/twbs/bootstrap/issues/11623)
float: none;
display: table-cell;
}
@@ -155,11 +155,11 @@ table {
// inheritance to nested tables.
// Generate the contextual variants
-@include table-row-variant('active', $table-bg-active);
-@include table-row-variant('success', $state-success-bg);
-@include table-row-variant('info', $state-info-bg);
-@include table-row-variant('warning', $state-warning-bg);
-@include table-row-variant('danger', $state-danger-bg);
+.table-row-variant(active; @table-bg-active);
+.table-row-variant(success; @state-success-bg);
+.table-row-variant(info; @state-info-bg);
+.table-row-variant(warning; @state-warning-bg);
+.table-row-variant(danger; @state-danger-bg);
// Responsive tables
@@ -169,14 +169,15 @@ table {
// will display normally.
.table-responsive {
- @media screen and (max-width: $screen-xs-max) {
+ overflow-x: auto;
+ min-height: 0.01%; // Workaround for IE9 bug (see https://github.com/twbs/bootstrap/issues/14837)
+
+ @media screen and (max-width: @screen-xs-max) {
width: 100%;
- margin-bottom: ($line-height-computed * 0.75);
+ margin-bottom: (@line-height-computed * 0.75);
overflow-y: hidden;
- overflow-x: auto;
-ms-overflow-style: -ms-autohiding-scrollbar;
- border: 1px solid $table-border-color;
- -webkit-overflow-scrolling: touch;
+ border: 1px solid @table-border-color;
// Tighten up spacing
> .table {