Skip to content

Commit f7aa38c

Browse files
committed
docs: update content
1 parent c94f5e5 commit f7aa38c

File tree

4 files changed

+15
-4
lines changed

4 files changed

+15
-4
lines changed

docs/content/customize/css-variables.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ Here are the variables we include (note that the `:root` is required) that can b
2828
{{< /root.inline >}}
2929
```
3030

31+
3132
## Component variables
3233

3334
CoreUI is increasingly making use of custom properties as local variables for various components. This way we reduce our compiled CSS, ensure styles aren't inherited in places like nested tables, and allow some basic restyling and extending of Bootstrap components after Sass compilation.

docs/content/utilities/background.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,13 @@ Similar to the contextual text color classes, set the background of an element t
1616
<div class="p-3 mb-2 bg-{{ .name }}{{ if .contrast_color }} text-{{ .contrast_color }}{{ else }} text-white{{ end }}">.bg-{{ .name }}</div>
1717
{{- end -}}
1818
{{< /colors.inline >}}
19-
<div class="p-3 mb-2 bg-body text-dark">.bg-body</div>
19+
<p class="p-3 mb-2 bg-body-secondary">.bg-body-secondary</p>
20+
<p class="p-3 mb-2 bg-body-tertiary">.bg-body-tertiary</p>
21+
22+
<div class="p-3 mb-2 bg-body text-body">.bg-body</div>
23+
<div class="p-3 mb-2 bg-black text-white">.bg-black</div>
2024
<div class="p-3 mb-2 bg-white text-dark">.bg-white</div>
21-
<div class="p-3 mb-2 bg-transparent text-dark">.bg-transparent</div>
25+
<div class="p-3 mb-2 bg-transparent text-body">.bg-transparent</div>
2226
{{< /example >}}
2327

2428
## Background gradient
@@ -33,6 +37,7 @@ Do you need a gradient in your custom CSS? Just add `background-image: var(gradi
3337
<div class="p-3 mb-2 bg-{{ .name }} bg-gradient{{ with .contrast_color }} text-{{ . }}{{ else }} text-white{{ end }}">.bg-{{ .name }}.bg-gradient</div>
3438
{{- end -}}
3539
{{< /colors.inline >}}
40+
<div class="p-3 mb-2 bg-black bg-gradient text-white">.bg-black.bg-gradient</div>
3641
{{< /markdown >}}
3742

3843
## Opacity

docs/content/utilities/borders.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ Change the border color using utilities built on our theme colors.
4242
<span class="border border-{{ .name }}"></span>
4343
{{- end -}}
4444
{{< /border.inline >}}
45+
<span class="border border-black"></span>
4546
<span class="border border-white"></span>
4647
{{< /example >}}
4748

docs/content/utilities/colors.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,13 @@ Colorize text with color utilities. If you want to colorize links, you can use t
1717
{{- end -}}
1818
{{< /colors.inline >}}
1919
<p class="text-body">.text-body</p>
20-
<p class="text-muted">.text-muted</p>
20+
<p class="text-body-emphasis">.text-body-emphasis</p>
21+
<p class="text-body-secondary">.text-body-secondary</p>
22+
<p class="text-body-tertiary">.text-body-tertiary</p>
23+
24+
<p class="text-black bg-white">.text-black</p>
2125
<p class="text-white bg-dark">.text-white</p>
22-
<p class="text-black-50">.text-black-50</p>
26+
<p class="text-black-50 bg-white">.text-black-50</p>
2327
<p class="text-white-50 bg-dark">.text-white-50</p>
2428
{{< /example >}}
2529

0 commit comments

Comments
 (0)