0
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-01-18 10:52:19 +01:00

Add $table-border-width; refs #18150

This commit is contained in:
Chris Rebert 2015-11-14 23:24:48 -08:00
parent c174d7ab4e
commit 6a66d2dd92
2 changed files with 13 additions and 12 deletions

View File

@ -12,16 +12,16 @@
padding: $table-cell-padding; padding: $table-cell-padding;
line-height: $line-height; line-height: $line-height;
vertical-align: top; vertical-align: top;
border-top: 1px solid $table-border-color; border-top: $table-border-width solid $table-border-color;
} }
thead th { thead th {
vertical-align: bottom; vertical-align: bottom;
border-bottom: 2px solid $table-border-color; border-bottom: (2 * $table-border-width) solid $table-border-color;
} }
tbody + tbody { tbody + tbody {
border-top: 2px solid $table-border-color; border-top: (2 * $table-border-width) solid $table-border-color;
} }
.table { .table {
@ -47,17 +47,17 @@
// Add borders all around the table and between all the columns. // Add borders all around the table and between all the columns.
.table-bordered { .table-bordered {
border: 1px solid $table-border-color; border: $table-border-width solid $table-border-color;
th, th,
td { td {
border: 1px solid $table-border-color; border: $table-border-width solid $table-border-color;
} }
thead { thead {
th, th,
td { td {
border-bottom-width: 2px; border-bottom-width: (2 * $table-border-width);
} }
} }
} }
@ -114,7 +114,7 @@
// TODO: find out if we need this still. // TODO: find out if we need this still.
// //
// border: 1px solid $table-border-color; // border: $table-border-width solid $table-border-color;
// -ms-overflow-style: -ms-autohiding-scrollbar; // See https://github.com/twbs/bootstrap/pull/10057 // -ms-overflow-style: -ms-autohiding-scrollbar; // See https://github.com/twbs/bootstrap/pull/10057
} }
@ -160,11 +160,11 @@
th, th,
td { td {
border-top: 1px solid $table-border-color; border-top: $table-border-width solid $table-border-color;
border-left: 1px solid $table-border-color; border-left: $table-border-width solid $table-border-color;
&:last-child { &:last-child {
border-right: 1px solid $table-border-color; border-right: $table-border-width solid $table-border-color;
} }
} }
@ -175,7 +175,7 @@
tr:last-child { tr:last-child {
th, th,
td { td {
border-bottom: 1px solid $table-border-color; border-bottom: $table-border-width solid $table-border-color;
} }
} }
} }
@ -187,7 +187,7 @@
th, th,
td { td {
display: block !important; display: block !important;
border: 1px solid $table-border-color; border: $table-border-width solid $table-border-color;
} }
} }
} }

View File

@ -207,6 +207,7 @@ $table-bg-accent: #f9f9f9 !default;
$table-bg-hover: #f5f5f5 !default; $table-bg-hover: #f5f5f5 !default;
$table-bg-active: $table-bg-hover !default; $table-bg-active: $table-bg-hover !default;
$table-border-width: $border-width !default;
$table-border-color: $gray-lighter !default; $table-border-color: $gray-lighter !default;