Skip to content

Commit

Permalink
all themes: make table inherit body's color, fixes #1308 (#1310)
Browse files Browse the repository at this point in the history
  • Loading branch information
bblanchon authored Aug 6, 2024
1 parent 7714899 commit 651bdcc
Show file tree
Hide file tree
Showing 382 changed files with 1,610 additions and 614 deletions.
12 changes: 12 additions & 0 deletions dist/cerulean/_bootswatch.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,18 @@ $text-shadow: 0 1px 0 rgba(0, 0, 0, .05) !default;
@include gradient-y-three-colors(shade-color($color, 20%), shade-color($color, 20%), 60%, shade-color($color, 30%));
}

// Tables

.table-primary,
.table-secondary,
.table-success,
.table-warning,
.table-danger,
.table-info,
.table-light {
--#{$prefix}table-color: #{$body-color};
}

// Navbar

.navbar {
Expand Down
4 changes: 4 additions & 0 deletions dist/cerulean/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ $body-color: $gray-700 !default;

$headings-color: $cyan !default;

// Tables

$table-color: initial !default;

// Dropdowns

$dropdown-link-hover-color: $white !default;
Expand Down
18 changes: 14 additions & 4 deletions dist/cerulean/bootstrap.css
Original file line number Diff line number Diff line change
Expand Up @@ -1867,15 +1867,15 @@ progress {
--bs-table-bg-type: initial;
--bs-table-color-state: initial;
--bs-table-bg-state: initial;
--bs-table-color: var(--bs-emphasis-color);
--bs-table-color: initial;
--bs-table-bg: var(--bs-body-bg);
--bs-table-border-color: var(--bs-border-color);
--bs-table-accent-bg: transparent;
--bs-table-striped-color: var(--bs-emphasis-color);
--bs-table-striped-color: initial;
--bs-table-striped-bg: rgba(var(--bs-emphasis-color-rgb), 0.05);
--bs-table-active-color: var(--bs-emphasis-color);
--bs-table-active-color: initial;
--bs-table-active-bg: rgba(var(--bs-emphasis-color-rgb), 0.1);
--bs-table-hover-color: var(--bs-emphasis-color);
--bs-table-hover-color: initial;
--bs-table-hover-bg: rgba(var(--bs-emphasis-color-rgb), 0.075);
width: 100%;
margin-bottom: 1rem;
Expand Down Expand Up @@ -12060,6 +12060,16 @@ textarea.form-control-lg {
display: none !important;
}
}
.table-primary,
.table-secondary,
.table-success,
.table-warning,
.table-danger,
.table-info,
.table-light {
--bs-table-color: #495057;
}

.navbar.bg-primary {
background-image: linear-gradient(#50b3eb, #2fa4e7 60%, #2c9ad9);
}
Expand Down
2 changes: 1 addition & 1 deletion dist/cerulean/bootstrap.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/cerulean/bootstrap.min.css.map

Large diffs are not rendered by default.

18 changes: 14 additions & 4 deletions dist/cerulean/bootstrap.rtl.css
Original file line number Diff line number Diff line change
Expand Up @@ -1865,15 +1865,15 @@ progress {
--bs-table-bg-type: initial;
--bs-table-color-state: initial;
--bs-table-bg-state: initial;
--bs-table-color: var(--bs-emphasis-color);
--bs-table-color: initial;
--bs-table-bg: var(--bs-body-bg);
--bs-table-border-color: var(--bs-border-color);
--bs-table-accent-bg: transparent;
--bs-table-striped-color: var(--bs-emphasis-color);
--bs-table-striped-color: initial;
--bs-table-striped-bg: rgba(var(--bs-emphasis-color-rgb), 0.05);
--bs-table-active-color: var(--bs-emphasis-color);
--bs-table-active-color: initial;
--bs-table-active-bg: rgba(var(--bs-emphasis-color-rgb), 0.1);
--bs-table-hover-color: var(--bs-emphasis-color);
--bs-table-hover-color: initial;
--bs-table-hover-bg: rgba(var(--bs-emphasis-color-rgb), 0.075);
width: 100%;
margin-bottom: 1rem;
Expand Down Expand Up @@ -12034,6 +12034,16 @@ textarea.form-control-lg {
display: none !important;
}
}
.table-primary,
.table-secondary,
.table-success,
.table-warning,
.table-danger,
.table-info,
.table-light {
--bs-table-color: #495057;
}

.navbar.bg-primary {
background-image: linear-gradient(#50b3eb, #2fa4e7 60%, #2c9ad9);
}
Expand Down
2 changes: 1 addition & 1 deletion dist/cerulean/bootstrap.rtl.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/cerulean/bootstrap.rtl.min.css.map

Large diffs are not rendered by default.

12 changes: 12 additions & 0 deletions dist/cosmo/_bootswatch.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,18 @@ body {
-webkit-font-smoothing: antialiased;
}

// Tables

.table-primary,
.table-secondary,
.table-success,
.table-warning,
.table-danger,
.table-info,
.table-light {
--#{$prefix}table-color: #{$body-color};
}

// Forms

.form-range::-moz-range-thumb {
Expand Down
4 changes: 4 additions & 0 deletions dist/cosmo/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ $body-color: $gray-800 !default;
$font-family-sans-serif: "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol" !default;
$headings-font-weight: 400 !default;

// Tables

$table-color: initial !default;

// Navbar

$navbar-dark-hover-color: rgba($white, 1) !default;
Expand Down
18 changes: 14 additions & 4 deletions dist/cosmo/bootstrap.css
Original file line number Diff line number Diff line change
Expand Up @@ -1866,15 +1866,15 @@ progress {
--bs-table-bg-type: initial;
--bs-table-color-state: initial;
--bs-table-bg-state: initial;
--bs-table-color: var(--bs-emphasis-color);
--bs-table-color: initial;
--bs-table-bg: var(--bs-body-bg);
--bs-table-border-color: var(--bs-border-color);
--bs-table-accent-bg: transparent;
--bs-table-striped-color: var(--bs-emphasis-color);
--bs-table-striped-color: initial;
--bs-table-striped-bg: rgba(var(--bs-emphasis-color-rgb), 0.05);
--bs-table-active-color: var(--bs-emphasis-color);
--bs-table-active-color: initial;
--bs-table-active-bg: rgba(var(--bs-emphasis-color-rgb), 0.1);
--bs-table-hover-color: var(--bs-emphasis-color);
--bs-table-hover-color: initial;
--bs-table-hover-bg: rgba(var(--bs-emphasis-color-rgb), 0.075);
width: 100%;
margin-bottom: 1rem;
Expand Down Expand Up @@ -11787,6 +11787,16 @@ body {
-webkit-font-smoothing: antialiased;
}

.table-primary,
.table-secondary,
.table-success,
.table-warning,
.table-danger,
.table-info,
.table-light {
--bs-table-color: #373a3c;
}

.form-range::-moz-range-thumb {
border-radius: inherit;
}
Expand Down
2 changes: 1 addition & 1 deletion dist/cosmo/bootstrap.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/cosmo/bootstrap.min.css.map

Large diffs are not rendered by default.

18 changes: 14 additions & 4 deletions dist/cosmo/bootstrap.rtl.css
Original file line number Diff line number Diff line change
Expand Up @@ -1864,15 +1864,15 @@ progress {
--bs-table-bg-type: initial;
--bs-table-color-state: initial;
--bs-table-bg-state: initial;
--bs-table-color: var(--bs-emphasis-color);
--bs-table-color: initial;
--bs-table-bg: var(--bs-body-bg);
--bs-table-border-color: var(--bs-border-color);
--bs-table-accent-bg: transparent;
--bs-table-striped-color: var(--bs-emphasis-color);
--bs-table-striped-color: initial;
--bs-table-striped-bg: rgba(var(--bs-emphasis-color-rgb), 0.05);
--bs-table-active-color: var(--bs-emphasis-color);
--bs-table-active-color: initial;
--bs-table-active-bg: rgba(var(--bs-emphasis-color-rgb), 0.1);
--bs-table-hover-color: var(--bs-emphasis-color);
--bs-table-hover-color: initial;
--bs-table-hover-bg: rgba(var(--bs-emphasis-color-rgb), 0.075);
width: 100%;
margin-bottom: 1rem;
Expand Down Expand Up @@ -11761,6 +11761,16 @@ body {
-webkit-font-smoothing: antialiased;
}

.table-primary,
.table-secondary,
.table-success,
.table-warning,
.table-danger,
.table-info,
.table-light {
--bs-table-color: #373a3c;
}

.form-range::-moz-range-thumb {
border-radius: inherit;
}
Expand Down
2 changes: 1 addition & 1 deletion dist/cosmo/bootstrap.rtl.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/cosmo/bootstrap.rtl.min.css.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/cyborg/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ $headings-color: $white !default;

// Tables

$table-color: $white !default;
$table-color: initial !default;
$table-accent-bg: rgba($white, .05) !default;
$table-hover-bg: rgba($white, .075) !default;
$table-border-color: $gray-700 !default;
Expand Down
8 changes: 4 additions & 4 deletions dist/cyborg/bootstrap.css
Original file line number Diff line number Diff line change
Expand Up @@ -1874,15 +1874,15 @@ progress {
--bs-table-bg-type: initial;
--bs-table-color-state: initial;
--bs-table-bg-state: initial;
--bs-table-color: #fff;
--bs-table-color: initial;
--bs-table-bg: var(--bs-body-bg);
--bs-table-border-color: #282828;
--bs-table-accent-bg: rgba(255, 255, 255, 0.05);
--bs-table-striped-color: #fff;
--bs-table-striped-color: initial;
--bs-table-striped-bg: rgba(var(--bs-emphasis-color-rgb), 0.05);
--bs-table-active-color: #fff;
--bs-table-active-color: initial;
--bs-table-active-bg: rgba(var(--bs-emphasis-color-rgb), 0.1);
--bs-table-hover-color: #fff;
--bs-table-hover-color: initial;
--bs-table-hover-bg: rgba(255, 255, 255, 0.075);
width: 100%;
margin-bottom: 1rem;
Expand Down
2 changes: 1 addition & 1 deletion dist/cyborg/bootstrap.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/cyborg/bootstrap.min.css.map

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions dist/cyborg/bootstrap.rtl.css
Original file line number Diff line number Diff line change
Expand Up @@ -1872,15 +1872,15 @@ progress {
--bs-table-bg-type: initial;
--bs-table-color-state: initial;
--bs-table-bg-state: initial;
--bs-table-color: #fff;
--bs-table-color: initial;
--bs-table-bg: var(--bs-body-bg);
--bs-table-border-color: #282828;
--bs-table-accent-bg: rgba(255, 255, 255, 0.05);
--bs-table-striped-color: #fff;
--bs-table-striped-color: initial;
--bs-table-striped-bg: rgba(var(--bs-emphasis-color-rgb), 0.05);
--bs-table-active-color: #fff;
--bs-table-active-color: initial;
--bs-table-active-bg: rgba(var(--bs-emphasis-color-rgb), 0.1);
--bs-table-hover-color: #fff;
--bs-table-hover-color: initial;
--bs-table-hover-bg: rgba(255, 255, 255, 0.075);
width: 100%;
margin-bottom: 1rem;
Expand Down
2 changes: 1 addition & 1 deletion dist/cyborg/bootstrap.rtl.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/cyborg/bootstrap.rtl.min.css.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/darkly/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ $text-muted: $gray-600 !default;

// Tables

$table-color: $white !default;
$table-color: initial !default;

$table-border-color: $gray-700 !default;

Expand Down
8 changes: 4 additions & 4 deletions dist/darkly/bootstrap.css
Original file line number Diff line number Diff line change
Expand Up @@ -1869,15 +1869,15 @@ progress {
--bs-table-bg-type: initial;
--bs-table-color-state: initial;
--bs-table-bg-state: initial;
--bs-table-color: #fff;
--bs-table-color: initial;
--bs-table-bg: var(--bs-body-bg);
--bs-table-border-color: #444;
--bs-table-accent-bg: transparent;
--bs-table-striped-color: #fff;
--bs-table-striped-color: initial;
--bs-table-striped-bg: rgba(var(--bs-emphasis-color-rgb), 0.05);
--bs-table-active-color: #fff;
--bs-table-active-color: initial;
--bs-table-active-bg: rgba(var(--bs-emphasis-color-rgb), 0.1);
--bs-table-hover-color: #fff;
--bs-table-hover-color: initial;
--bs-table-hover-bg: rgba(var(--bs-emphasis-color-rgb), 0.075);
width: 100%;
margin-bottom: 1rem;
Expand Down
2 changes: 1 addition & 1 deletion dist/darkly/bootstrap.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/darkly/bootstrap.min.css.map

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions dist/darkly/bootstrap.rtl.css
Original file line number Diff line number Diff line change
Expand Up @@ -1867,15 +1867,15 @@ progress {
--bs-table-bg-type: initial;
--bs-table-color-state: initial;
--bs-table-bg-state: initial;
--bs-table-color: #fff;
--bs-table-color: initial;
--bs-table-bg: var(--bs-body-bg);
--bs-table-border-color: #444;
--bs-table-accent-bg: transparent;
--bs-table-striped-color: #fff;
--bs-table-striped-color: initial;
--bs-table-striped-bg: rgba(var(--bs-emphasis-color-rgb), 0.05);
--bs-table-active-color: #fff;
--bs-table-active-color: initial;
--bs-table-active-bg: rgba(var(--bs-emphasis-color-rgb), 0.1);
--bs-table-hover-color: #fff;
--bs-table-hover-color: initial;
--bs-table-hover-bg: rgba(var(--bs-emphasis-color-rgb), 0.075);
width: 100%;
margin-bottom: 1rem;
Expand Down
2 changes: 1 addition & 1 deletion dist/darkly/bootstrap.rtl.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/darkly/bootstrap.rtl.min.css.map

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/flatly/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ $h3-font-size: 2rem !default;

// Tables

$table-color: initial !default;
$table-bg-scale: 0% !default;

// Dropdowns
Expand Down
8 changes: 4 additions & 4 deletions dist/flatly/bootstrap.css
Original file line number Diff line number Diff line change
Expand Up @@ -1868,15 +1868,15 @@ progress {
--bs-table-bg-type: initial;
--bs-table-color-state: initial;
--bs-table-bg-state: initial;
--bs-table-color: var(--bs-emphasis-color);
--bs-table-color: initial;
--bs-table-bg: var(--bs-body-bg);
--bs-table-border-color: var(--bs-border-color);
--bs-table-accent-bg: transparent;
--bs-table-striped-color: var(--bs-emphasis-color);
--bs-table-striped-color: initial;
--bs-table-striped-bg: rgba(var(--bs-emphasis-color-rgb), 0.05);
--bs-table-active-color: var(--bs-emphasis-color);
--bs-table-active-color: initial;
--bs-table-active-bg: rgba(var(--bs-emphasis-color-rgb), 0.1);
--bs-table-hover-color: var(--bs-emphasis-color);
--bs-table-hover-color: initial;
--bs-table-hover-bg: rgba(var(--bs-emphasis-color-rgb), 0.075);
width: 100%;
margin-bottom: 1rem;
Expand Down
2 changes: 1 addition & 1 deletion dist/flatly/bootstrap.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/flatly/bootstrap.min.css.map

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions dist/flatly/bootstrap.rtl.css
Original file line number Diff line number Diff line change
Expand Up @@ -1866,15 +1866,15 @@ progress {
--bs-table-bg-type: initial;
--bs-table-color-state: initial;
--bs-table-bg-state: initial;
--bs-table-color: var(--bs-emphasis-color);
--bs-table-color: initial;
--bs-table-bg: var(--bs-body-bg);
--bs-table-border-color: var(--bs-border-color);
--bs-table-accent-bg: transparent;
--bs-table-striped-color: var(--bs-emphasis-color);
--bs-table-striped-color: initial;
--bs-table-striped-bg: rgba(var(--bs-emphasis-color-rgb), 0.05);
--bs-table-active-color: var(--bs-emphasis-color);
--bs-table-active-color: initial;
--bs-table-active-bg: rgba(var(--bs-emphasis-color-rgb), 0.1);
--bs-table-hover-color: var(--bs-emphasis-color);
--bs-table-hover-color: initial;
--bs-table-hover-bg: rgba(var(--bs-emphasis-color-rgb), 0.075);
width: 100%;
margin-bottom: 1rem;
Expand Down
2 changes: 1 addition & 1 deletion dist/flatly/bootstrap.rtl.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/flatly/bootstrap.rtl.min.css.map

Large diffs are not rendered by default.

12 changes: 12 additions & 0 deletions dist/journal/_bootswatch.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,18 @@ $web-font-path: "https://fonts.googleapis.com/css2?family=News+Cycle:wght@400;70
@import url("#{$web-font-path}");
}

// Tables

.table-primary,
.table-secondary,
.table-success,
.table-warning,
.table-danger,
.table-info,
.table-light {
--#{$prefix}table-color: #{$body-color};
}

// Navbar

.navbar {
Expand Down
4 changes: 4 additions & 0 deletions dist/journal/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ $headings-font-family: "News Cycle", "Arial Narrow Bold", sans-serif !default;
$headings-font-weight: 700 !default;
$headings-line-height: 1.1 !default;

// Tables

$table-color: initial !default;

// Buttons

$input-btn-padding-x: 1rem !default;
Expand Down
Loading

0 comments on commit 651bdcc

Please sign in to comment.