From 88be1ce5021229ba9615413fceaed1902c8d693e Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Sun, 17 Jan 2021 00:06:19 +0200 Subject: Update docs for color and bg utilities - Split colors from background utilities with new docs page - Add Sass docs for both pages --- site/content/docs/5.0/components/card.md | 2 +- site/content/docs/5.0/components/navbar.md | 2 +- site/content/docs/5.0/components/toasts.md | 2 +- site/content/docs/5.0/customize/color.md | 2 +- site/content/docs/5.0/helpers/colored-links.md | 2 +- site/content/docs/5.0/utilities/background.md | 78 ++++++++++++++++++++++++++ site/content/docs/5.0/utilities/colors.md | 69 ++++++++++++----------- site/content/docs/5.0/utilities/display.md | 8 +++ site/data/sidebar.yml | 1 + 9 files changed, 127 insertions(+), 39 deletions(-) create mode 100644 site/content/docs/5.0/utilities/background.md (limited to 'site') diff --git a/site/content/docs/5.0/components/card.md b/site/content/docs/5.0/components/card.md index e38432692..2db1a1f40 100644 --- a/site/content/docs/5.0/components/card.md +++ b/site/content/docs/5.0/components/card.md @@ -417,7 +417,7 @@ Cards include various options for customizing their backgrounds, borders, and co ### Background and color -Use [text and background utilities]({{< docsref "/utilities/colors" >}}) to change the appearance of a card. +Use [text color]({{< docsref "/utilities/colors" >}}) and [background utilities]({{< docsref "/utilities/background" >}}) to change the appearance of a card. {{< example >}} {{< card.inline >}} diff --git a/site/content/docs/5.0/components/navbar.md b/site/content/docs/5.0/components/navbar.md index 3591b343c..b9b00c3bb 100644 --- a/site/content/docs/5.0/components/navbar.md +++ b/site/content/docs/5.0/components/navbar.md @@ -74,7 +74,7 @@ Here's an example of all the sub-components included in a responsive light-theme {{< /example >}} -This example uses [color]({{< docsref "/utilities/colors" >}}) (`bg-light`) and [spacing]({{< docsref "/utilities/spacing" >}}) (`my-2`, `my-lg-0`, `me-sm-0`, `my-sm-0`) utility classes. +This example uses [background]({{< docsref "/utilities/background" >}}) (`bg-light`) and [spacing]({{< docsref "/utilities/spacing" >}}) (`my-2`, `my-lg-0`, `me-sm-0`, `my-sm-0`) utility classes. ### Brand diff --git a/site/content/docs/5.0/components/toasts.md b/site/content/docs/5.0/components/toasts.md index eb879b650..5f7a59db6 100644 --- a/site/content/docs/5.0/components/toasts.md +++ b/site/content/docs/5.0/components/toasts.md @@ -162,7 +162,7 @@ Alternatively, you can also add additional controls and components to toasts. ### Color schemes -Building on the above example, you can create different toast color schemes with our [color utilities]({{< docsref "/utilities/colors" >}}). Here we've added `.bg-primary` and `.text-white` to the `.toast`, and then added `.btn-close-white` to our close button. For a crisp edge, we remove the default border with `.border-0`. +Building on the above example, you can create different toast color schemes with our [color]({{< docsref "/utilities/colors" >}}) and [background]({{< docsref "/utilities/background" >}}). Here we've added `.bg-primary` and `.text-white` to the `.toast`, and then added `.btn-close-white` to our close button. For a crisp edge, we remove the default border with `.border-0`. {{< example class="bg-light" >}}