Skip to content

Commit de9be7c

Browse files
committed
docs: update theme and content
1 parent db346c3 commit de9be7c

File tree

19 files changed

+37
-92
lines changed

19 files changed

+37
-92
lines changed

docs/assets/scss/_content.scss

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
//
2-
// Bootstrap docs content theming
2+
// CoreUI docs content theming
33
//
44

5+
.docs-intro {
6+
> h2 {
7+
--cui-heading-color: var(--cui-emphasis-color);
8+
}
9+
}
10+
511
.docs-content {
612
> h2,
713
> h3,

docs/content/components/alerts.md

Lines changed: 3 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ myAlert.addEventListener('closed.coreui.alert', event => {
214214

215215
## Customizing
216216

217-
### CSS Variables
217+
### CSS variables
218218

219219
Alerts use local CSS variables on `.alert` for enhanced real-time customization. Values for the CSS variables are set via Sass, so Sass customization is still supported, too.
220220

@@ -224,43 +224,10 @@ Alerts use local CSS variables on `.alert` for enhanced real-time customization.
224224

225225
{{< scss-docs name="alert-variables" file="scss/_variables.scss" >}}
226226

227-
### SASS variants
228-
229-
CoreUI allows defining variant colors in two ways.
230-
231-
Check out [our Sass maps and loops docs]({{< docsref "/customize/sass#maps-and-loops" >}}) for how to customize these loops and extend CoreUI's base-modifier approach to your own code.
232-
233-
#### Manual
234-
235-
You can define each color manually and keep full control of the component appearance.
236-
237-
{{< highlight scss >}}
238-
$alert-variants: (
239-
"primary": (
240-
"background": $your-bg-color,
241-
"border": $your-border-color,
242-
"color": $your-color,
243-
"link-color": $your-link-color
244-
)
245-
...
246-
);
247-
{{< /highlight >}}
248-
249-
#### Color function
250-
251-
The color set can be generated automatically thanks to our `alert-color-map` function.
252-
253-
{{< scss-docs name="alert-color-functions" file="scss/_functions.scss" >}}
254-
255-
{{< highlight scss >}}
256-
$alert-variants: (
257-
"primary": alert-color-map($primary),
258-
...
259-
);
260-
{{< /highlight >}}
261-
262227
### SASS mixin
263228

229+
{{< deprecated-in "4.3.0" >}}
230+
264231
Used in combination with `$alert-variants` to create contextual modifier classes for our alerts.
265232

266233
{{< scss-docs name="alert-variant-mixin" file="scss/mixins/_alert.scss" >}}
@@ -269,6 +236,4 @@ Used in combination with `$alert-variants` to create contextual modifier classes
269236

270237
Loop that generates the modifier classes with the `alert-variant()` mixin.
271238

272-
{{< scss-docs name="alert-variants" file="scss/_variables.scss" >}}
273-
274239
{{< scss-docs name="alert-modifiers" file="scss/_alert.scss" >}}

docs/content/components/badge.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ Apply the `.rounded-pill` modifier class to make badges rounded.
9393

9494
## Customizing
9595

96-
### CSS Variables
96+
### CSS variables
9797

9898
Badges use local CSS variables on `.badge` for enhanced real-time customization. Values for the CSS variables are set via Sass, so Sass customization is still supported, too.
9999

docs/content/components/breadcrumb.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ For more information, see the [ARIA Authoring Practices Guide breadcrumb pattern
103103

104104
## Customizing
105105

106-
### CSS Variables
106+
### CSS variables
107107

108108
Breadcrumbs use local CSS variables on `.breadcrumb` for enhanced real-time customization. Values for the CSS variables are set via Sass, so Sass customization is still supported, too.
109109

docs/content/components/buttons.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ You can combine button with our [CoreUI Icons](https://icons.coreui.io/).
5454
{{< example >}}
5555
{{< buttons.inline >}}
5656
{{- range (index $.Site.Data "theme-colors") }}
57-
<button type="button" class="btn btn-{{ .name }}"><span class="cil-contrast btn-icon mr-2"></span> {{ .name | title }}</button>
57+
<button type="button" class="btn btn-{{ .name }}"><span class="cil-contrast me-2"></span> {{ .name | title }}</button>
5858
{{- end -}}
5959
{{< /buttons.inline >}}
6060

docs/content/components/callout.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Callout component is prepared for any length of text, as well as an optional ele
2727

2828
## Customizing
2929

30-
### CSS Variables
30+
### CSS variables
3131

3232
Callouts use local CSS variables on `.callout` for enhanced real-time customization. Values for the CSS variables are set via Sass, so Sass customization is still supported, too.
3333

docs/content/components/card.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -747,7 +747,7 @@ Just like with card groups, card footers will automatically line up.
747747

748748
## Customizing
749749

750-
### CSS Variables
750+
### CSS variables
751751

752752
Cards use local CSS variables on `.card` for enhanced real-time customization. Values for the CSS variables are set via Sass, so Sass customization is still supported, too.
753753

docs/content/components/close-button.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,5 @@ Change the default `.btn-close` to be white with the `.btn-close-white` class. T
3838

3939
{{< scss-docs name="close-variables" file="scss/_variables.scss" >}}
4040

41-
### CSS Variables
41+
### CSS variables
4242
{{< css-vars-docs file="scss/_close.scss" >}}

docs/content/components/dropdowns.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1095,7 +1095,7 @@ myDropdown.addEventListener('show.coreui.dropdown', event => {
10951095

10961096
## Customizing
10971097

1098-
### CSS Variables
1098+
### CSS variables
10991099

11001100
Dropdowns use local CSS variables on `.dropdown-menu` for enhanced real-time customization. Values for the CSS variables are set via Sass, so Sass customization is still supported, too.
11011101

docs/content/components/list-group.md

Lines changed: 3 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ tabElms.forEach(tabElm => {
475475

476476
## Customizing
477477

478-
### CSS Variables
478+
### CSS variables
479479

480480
List groups use local CSS variables on `.list-group` for enhanced real-time customization. Values for the CSS variables are set via Sass, so Sass customization is still supported, too.
481481

@@ -485,40 +485,10 @@ List groups use local CSS variables on `.list-group` for enhanced real-time cust
485485

486486
{{< scss-docs name="list-group-variables" file="scss/_variables.scss" >}}
487487

488-
### SASS variants
489-
490-
CoreUI allows defining variant colors in two ways.
491-
492-
#### Manual
493-
494-
You can define each color manually and keep full control of the component appearance.
495-
496-
{{< highlight scss >}}
497-
$alert-variants: (
498-
"primary": (
499-
"background": $your-bg-color,
500-
"background-hover": $your-bg-hover-color,
501-
"color": $your-color
502-
)
503-
...
504-
);
505-
{{< /highlight >}}
506-
507-
#### Color function
508-
509-
The color set can be generated automatically thanks to our `list-group-color-map` function.
510-
511-
{{< scss-docs name="list-group-color-functions" file="scss/_functions.scss" >}}
512-
513-
{{< highlight scss >}}
514-
$alert-variants: (
515-
"primary": alert-color-map($primary),
516-
...
517-
);
518-
{{< /highlight >}}
519-
520488
### SASS mixins
521489

490+
{{< deprecated-in "4.3.0" >}}
491+
522492
Used in combination with `$theme-colors` to generate the [contextual variant classes](#contextual-classes) for `.list-group-item`s.
523493

524494
{{< scss-docs name="list-group-mixin" file="scss/mixins/_list-group.scss" >}}

0 commit comments

Comments
 (0)