diff --git a/docs/content/tables.md b/docs/content/tables.md
index fc6a6b19b2..3b4d58b369 100644
--- a/docs/content/tables.md
+++ b/docs/content/tables.md
@@ -188,6 +188,39 @@ Use `.table-striped` to add zebra-striping to any table row within the `
`
{% endexample %}
+{% example html %}
+
+
+
+ # |
+ First Name |
+ Last Name |
+ Username |
+
+
+
+
+ 1 |
+ Mark |
+ Otto |
+ @mdo |
+
+
+ 2 |
+ Jacob |
+ Thornton |
+ @fat |
+
+
+ 3 |
+ Larry |
+ the Bird |
+ @twitter |
+
+
+
+{% endexample %}
+
## Bordered table
Add `.table-bordered` for borders on all sides of the table and cells.
@@ -230,6 +263,44 @@ Add `.table-bordered` for borders on all sides of the table and cells.
{% endexample %}
+{% example html %}
+
+
+
+ # |
+ First Name |
+ Last Name |
+ Username |
+
+
+
+
+ 1 |
+ Mark |
+ Otto |
+ @mdo |
+
+
+ 2 |
+ Mark |
+ Otto |
+ @TwBootstrap |
+
+
+ 3 |
+ Jacob |
+ Thornton |
+ @fat |
+
+
+ 4 |
+ Larry the Bird |
+ @twitter |
+
+
+
+{% endexample %}
+
## Hoverable rows
Add `.table-hover` to enable a hover state on table rows within a ``.
@@ -266,6 +337,38 @@ Add `.table-hover` to enable a hover state on table rows within a ``.
{% endexample %}
+{% example html %}
+
+
+
+ # |
+ First Name |
+ Last Name |
+ Username |
+
+
+
+
+ 1 |
+ Mark |
+ Otto |
+ @mdo |
+
+
+ 2 |
+ Jacob |
+ Thornton |
+ @fat |
+
+
+ 3 |
+ Larry the Bird |
+ @twitter |
+
+
+
+{% endexample %}
+
## Small table
Add `.table-sm` to make tables more compact by cutting cell padding in half.
@@ -302,6 +405,38 @@ Add `.table-sm` to make tables more compact by cutting cell padding in half.
{% endexample %}
+{% example html %}
+
+
+
+ # |
+ First Name |
+ Last Name |
+ Username |
+
+
+
+
+ 1 |
+ Mark |
+ Otto |
+ @mdo |
+
+
+ 2 |
+ Jacob |
+ Thornton |
+ @fat |
+
+
+ 3 |
+ Larry the Bird |
+ @twitter |
+
+
+
+{% endexample %}
+
## Contextual classes
Use contextual classes to color table rows or individual cells.
diff --git a/scss/_tables.scss b/scss/_tables.scss
index c04e7c9b8a..d865884ec0 100644
--- a/scss/_tables.scss
+++ b/scss/_tables.scss
@@ -99,6 +99,41 @@
@include table-row-variant(danger, $state-danger-bg);
+// Inverse styles
+//
+// Same table markup, but inverted color scheme—dark background and light text.
+
+.thead-inverse {
+ th {
+ color: #fff;
+ background-color: $gray-dark;
+ }
+}
+
+.thead-default {
+ th {
+ color: $gray;
+ background-color: $gray-lighter;
+ }
+}
+
+.table-inverse {
+ color: $gray-lighter;
+ background-color: $gray-dark;
+
+ th,
+ td,
+ thead th {
+ border-color: $gray;
+ }
+
+ &.table-bordered {
+ border: 0;
+ }
+}
+
+
+
// Responsive tables
//
// Wrap your tables in `.table-responsive` and we'll make them mobile friendly
@@ -118,35 +153,6 @@
}
-.thead-inverse {
- th {
- color: #fff;
- background-color: $gray-dark;
- }
-}
-.thead-default {
- th {
- color: $gray;
- background-color: $gray-lighter;
- }
-}
-
-.table-inverse {
- color: $gray-lighter;
- background-color: $gray-dark;
-
- &.table-bordered {
- border: 0;
- }
-
- th,
- td,
- thead th {
- border-color: $gray;
- }
-}
-
-
.table-reflow {
thead {
float: left;
diff --git a/scss/_variables.scss b/scss/_variables.scss
index 5be9795454..a98f4edbe2 100644
--- a/scss/_variables.scss
+++ b/scss/_variables.scss
@@ -244,8 +244,8 @@ $table-cell-padding: .75rem !default;
$table-sm-cell-padding: .3rem !default;
$table-bg: transparent !default;
-$table-bg-accent: #f9f9f9 !default;
-$table-bg-hover: #f5f5f5 !default;
+$table-bg-accent: rgba(0,0,0,.05) !default;
+$table-bg-hover: rgba(0,0,0,.075) !default;
$table-bg-active: $table-bg-hover !default;
$table-border-width: $border-width !default;