]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Add table-hover-color variables
authorMark Otto <markdotto@gmail.com>
Sat, 15 Dec 2018 22:01:09 +0000 (14:01 -0800)
committerMark Otto <markdotto@gmail.com>
Sat, 15 Dec 2018 22:01:09 +0000 (14:01 -0800)
Fixes #26465

scss/_tables.scss
scss/_variables.scss

index a1150420f172134ae76ae1c8e86d9eb21af38168..bb9491b0b6cbbe825b9c2be1c967236597fdfade 100644 (file)
@@ -88,6 +88,7 @@
 .table-hover {
   tbody tr {
     @include hover {
+      color: $table-hover-color;
       background-color: $table-hover-bg;
     }
   }
   &.table-hover {
     tbody tr {
       @include hover {
+        color: $table-dark-hover-color;
         background-color: $table-dark-hover-bg;
       }
     }
index 339c0d872b8362a197f77b96e16ecf68e48889c4..0d4c19efd65003fc398726fe98015b2666756bc9 100644 (file)
@@ -352,8 +352,10 @@ $hr-margin-y:                 $spacer !default;
 $table-cell-padding:          .75rem !default;
 $table-cell-padding-sm:       .3rem !default;
 
+$table-color:                 $body-color !default;
 $table-bg:                    transparent !default;
 $table-accent-bg:             rgba($black, .05) !default;
+$table-hover-color:           $table-color !default;
 $table-hover-bg:              rgba($black, .075) !default;
 $table-active-bg:             $table-hover-bg !default;
 
@@ -363,11 +365,12 @@ $table-border-color:          $gray-300 !default;
 $table-head-bg:               $gray-200 !default;
 $table-head-color:            $gray-700 !default;
 
+$table-dark-color:            $white !default;
 $table-dark-bg:               $gray-900 !default;
 $table-dark-accent-bg:        rgba($white, .05) !default;
+$table-dark-hover-color:      $table-dark-color !default;
 $table-dark-hover-bg:         rgba($white, .075) !default;
 $table-dark-border-color:     lighten($gray-900, 7.5%) !default;
-$table-dark-color:            $white !default;
 
 $table-striped-order:         odd !default;