]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
fix
authorlouismaxime.piton <louismaxime.piton@orange.com>
Mon, 26 Jun 2023 12:58:48 +0000 (14:58 +0200)
committerlouismaxime.piton <louismaxime.piton@orange.com>
Mon, 26 Jun 2023 12:58:48 +0000 (14:58 +0200)
scss/_tables.scss
scss/mixins/_table-variants.scss

index ebfc00a5c6520414493d5bdd4ac4b20a501502ad..fbef19a4ae179f38ef0f8b656a30353558a3c5b1 100644 (file)
@@ -8,9 +8,9 @@
   --#{$prefix}table-bg-type: initial;
   --#{$prefix}table-color-state: initial;
   --#{$prefix}table-bg-state: initial;
+  --#{$prefix}table-color: initial;
+  --#{$prefix}table-bg: initial;
   // End of reset
-  --#{$prefix}table-color: #{$table-color};
-  --#{$prefix}table-bg: #{$table-bg};
   --#{$prefix}table-border-color: #{$table-border-color};
   --#{$prefix}table-accent-bg: #{$table-accent-bg};
   --#{$prefix}table-striped-color: #{$table-striped-color};
@@ -22,7 +22,9 @@
 
   width: 100%;
   margin-bottom: $spacer;
+  color: $table-color;
   vertical-align: $table-cell-vertical-align;
+  background-color: $table-bg;
   border-color: var(--#{$prefix}table-border-color);
 
   // Target th & td
@@ -33,8 +35,8 @@
   > :not(caption) > * > * {
     padding: $table-cell-padding-y $table-cell-padding-x;
     // Following the precept of cascades: https://codepen.io/miriamsuzanne/full/vYNgodb
-    color: var(--#{$prefix}table-color-state, var(--#{$prefix}table-color-type, var(--#{$prefix}table-color)));
-    background-color: var(--#{$prefix}table-bg);
+    color: var(--#{$prefix}table-color-state, var(--#{$prefix}table-color-type, var(--#{$prefix}table-color, inherit)));
+    background-color: var(--#{$prefix}table-bg, inherit);
     border-bottom-width: $table-border-width;
     box-shadow: inset 0 0 0 9999px var(--#{$prefix}table-bg-state, var(--#{$prefix}table-bg-type, var(--#{$prefix}table-accent-bg)));
   }
index 5fe1b9b20da59206b86bc97c81bb372d56ba53bf..ba1e2b87f0b8e1dbc2ea22a8fd61708f9777a999 100644 (file)
@@ -17,7 +17,6 @@
     --#{$prefix}table-hover-bg: #{$hover-bg};
     --#{$prefix}table-hover-color: #{color-contrast($hover-bg)};
 
-    color: var(--#{$prefix}table-color);
     border-color: var(--#{$prefix}table-border-color);
   }
 }