From d9bfbfb485ea20e5a6a1b7efa64c3d7d65fdd9a3 Mon Sep 17 00:00:00 2001 From: "louismaxime.piton" Date: Fri, 17 Nov 2023 12:13:14 +0100 Subject: [PATCH] First draft for bi colors --- site/assets/scss/_component-examples.scss | 10 +++++++++- site/content/docs/5.3/customize/color.md | 23 +++++++++++++++++++++++ 2 files changed, 32 insertions(+), 1 deletion(-) diff --git a/site/assets/scss/_component-examples.scss b/site/assets/scss/_component-examples.scss index b1f38edf7e..24d695323d 100644 --- a/site/assets/scss/_component-examples.scss +++ b/site/assets/scss/_component-examples.scss @@ -443,11 +443,19 @@ } .color-copy:hover { - transform: scale(1.1); + transform: scale(1.07); } .color-copy { // stylelint-disable-next-line property-disallowed-list transition: transform .15s ease-in-out; } + +.double-figure { + background: linear-gradient(to bottom, #fff, #fff calc((100% - 28px) * .5), #141414 calc((100% - 28px) * .5), #141414 calc(100% - 28px), transparent calc(100% - 28px)); // stylelint-disable-line function-disallowed-list + + .color-copy { + margin: calc(var(--bs-gutter-x) * .5) 0; // stylelint-disable-line function-disallowed-list + } +} // End mod diff --git a/site/content/docs/5.3/customize/color.md b/site/content/docs/5.3/customize/color.md index f6a2db5309..e4e7c5e35e 100644 --- a/site/content/docs/5.3/customize/color.md +++ b/site/content/docs/5.3/customize/color.md @@ -86,6 +86,29 @@ Boosted core uses Bootstrap's naming for maintenance ease, but **you're encourag +### Functional colors + +{{< palette.inline >}} +{{- range where $.Site.Data.palette "category" "Functional colors" }} +
+ {{- range $color := .colors }} +
+ +
+ --bs-{{- $color.level -}} +
+
+ {{ end -}} +
+{{ end -}} +{{< /palette.inline >}} +
TODO