You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/content/4.0/utilities/colors.md
+2-4Lines changed: 2 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -49,14 +49,12 @@ Similar to the contextual text color classes, easily set the background of an el
49
49
50
50
## Background gradient
51
51
52
-
By adding a `.bg-gradient` class, a linear gradient is added as background image to the backgrounds. This gradient starts with a semi-transparent white which fades out to the bottom.
53
-
54
-
Do you need a gradient in your custom CSS? Just add `background-image: var(--coreui-gradient);`.
52
+
By adding a `.bg-{color}-gradient` class, a linear gradient is added as background image to the backgrounds.
55
53
56
54
{{< markdown >}}
57
55
{{< colors.inline >}}
58
56
{{- range (index $.Site.Data "theme-colors") }}
59
-
<divclass="p-3 mb-2 bg-{{ .name }} bg-gradient{{ with .contrast_color }} text-{{ . }}{{ else }} text-white{{ end }}">.bg-{{ .name }}.bg-gradient</div>
57
+
<divclass="p-3 mb-2 bg-{{ .name }}-gradient{{ with .contrast_color }} text-{{ . }}{{ else }} text-white{{ end }}">.bg-{{ .name }}-gradient</div>
0 commit comments