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: site/content/docs/0.1/components/links.md
+26-3Lines changed: 26 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,6 +22,17 @@ Visited links don't have a specific style by default. The `:visited` status can
22
22
</div>
23
23
{{< /example >}}
24
24
25
+
The `.link` class is intended to be used in conjunction with our link variants used to display chevron or icon, or to serve as a basis for your own custom styles.
26
+
27
+
## Variants on colored background
28
+
29
+
OUDS Web offers a few variations to use on [colored backgrounds]({{< docsref "/utilities/background#colored-background" >}}). Their accessibility (readability) is ensured by suitable semi-opaque backgrounds.
30
+
31
+
{{< callout warning >}}
32
+
**Heads up!**
33
+
- Background utilities used to make colored backgrounds, should always be used with the appropriate color theme (see an example below). Please refer to [backgrounds documentation]({{< docsref "/utilities/background/#data-bs-theme-attribute" >}})
34
+
{{< /callout >}}
35
+
25
36
{{< example class="p-none">}}
26
37
<divclass="bg-brand-primary p-tall">
27
38
<divdata-bs-theme="light">
@@ -43,15 +54,13 @@ Visited links don't have a specific style by default. The `:visited` status can
43
54
</div>
44
55
{{< /example >}}
45
56
46
-
The `.link` class is intended to be used in conjunction with our link variants used to display chevron or icon, or to serve as a basis for your own custom styles.
47
-
48
57
## Link chevron
49
58
50
59
Add `.link-chevron` to enhance your link with a chevron on the right side. Use the additional `.back` class to display the chevron on the left side.
51
60
52
61
{{< example >}}
53
62
<div><aclass="link link-chevron"href="#">This is an example of a link with chevron</a></div>
54
-
<div><aclass="link link-chevron back"href="#">This is an example of a link with chevron</a></div>
63
+
<div><aclass="link link-chevron back"href="#">This is an example of a link with a back chevron</a></div>
55
64
{{< /example >}}
56
65
57
66
## Icon link
@@ -88,6 +97,20 @@ Add `.icon-link-hover` to move the icon to the right on hover.
88
97
{{< /example >}}
89
98
{{< /bootstrap-compatibility >}}
90
99
100
+
## CSS
101
+
102
+
### Variables
103
+
104
+
As part of OUDS Web's evolving CSS variables approach, links use local CSS variables on `.link` for enhanced real-time customization. Values for the CSS variables are set via Sass, so Sass customization is still supported too.
0 commit comments