From 22ccf545f9d5124cfdf53e16b466c78ea5066191 Mon Sep 17 00:00:00 2001 From: Louis-Maxime Piton Date: Fri, 27 Oct 2023 14:12:08 +0200 Subject: [PATCH] Dark mode: Cards (#2318) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Julien Déramond --- scss/_variables.scss | 6 +- site/content/docs/5.3/components/card.md | 4 +- site/content/docs/5.3/content/figures.md | 4 +- site/content/docs/5.3/content/images.md | 12 +- site/content/docs/5.3/dark-mode.md | 327 +++++++++++++++++- .../docs/5.3/examples/cards-rtl/index.html | 154 +-------- .../docs/5.3/examples/cards/index.html | 154 +-------- .../docs/5.3/examples/masonry/index.html | 2 +- site/content/docs/5.3/layout/columns.md | 2 +- site/content/docs/5.3/utilities/borders.md | 36 +- site/content/docs/5.3/utilities/object-fit.md | 20 +- site/layouts/shortcodes/card.html | 12 +- site/layouts/shortcodes/placeholder.html | 20 +- 13 files changed, 405 insertions(+), 348 deletions(-) diff --git a/scss/_variables.scss b/scss/_variables.scss index 51e95c375e..1a6a355697 100644 --- a/scss/_variables.scss +++ b/scss/_variables.scss @@ -1710,15 +1710,15 @@ $card-box-shadow: null !default; $card-inner-border-radius: subtract($card-border-radius, $card-border-width) !default; $card-cap-padding-y: $card-spacer-bottom * .5 !default; // Boosted mod $card-cap-padding-x: $card-spacer-x !default; -$card-cap-bg: $black !default; // Boosted mod: instead of `rgba(var(--#{$prefix}body-color-rgb), .03)` -$card-cap-color: $white !default; // Boosted mod: instead of `null` +$card-cap-bg: var(--#{$prefix}highlight-bg) !default; // Boosted mod: instead of `rgba(var(--#{$prefix}body-color-rgb), .03)` +$card-cap-color: var(--#{$prefix}highlight-color) !default; // Boosted mod: instead of `null` $card-cap-font-weight: $font-weight-bold !default; // Boosted mod $card-height: null !default; $card-color: null !default; $card-bg: var(--#{$prefix}body-bg) !default; $card-img-overlay-padding: $spacer !default; $card-group-margin: $grid-gutter-width * .5 !default; -$card-footer-color: $gray-700 !default; // Boosted mod +$card-footer-color: var(--#{$prefix}placeholder-color) !default; // Boosted mod // scss-docs-end card-variables // Accordion diff --git a/site/content/docs/5.3/components/card.md b/site/content/docs/5.3/components/card.md index e9dee949ad..04e59e888b 100644 --- a/site/content/docs/5.3/components/card.md +++ b/site/content/docs/5.3/components/card.md @@ -302,7 +302,7 @@ Add some navigation to a card's header (or block) with Boosted's [nav components {{< example >}}
-
+