2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-14 18:42:30 +03:00

Link helpers & use utility API for all utilities

This commit is contained in:
Martijn Cuppens
2019-08-17 20:19:00 +02:00
parent a5cbb5e71a
commit 19ee63ad25
18 changed files with 91 additions and 95 deletions
@@ -0,0 +1,17 @@
---
layout: docs
title: Colored links
description: Colored links with hover states
group: helpers
toc: false
---
You can use the `.link-*` classes to colorize links. Unlike the [`.text-*` classes]({{< docsref "/utilities/colors#colors" >}}), these classes have a `:hover` and `:focus` state.
{{< example >}}
{{< colored-links.inline >}}
{{- range (index $.Site.Data "theme-colors") }}
<a href="#" class="link-{{ .name }}">{{ .name | title }} link</a>
{{- end -}}
{{< /colored-links.inline >}}
{{< /example >}}
@@ -3,11 +3,9 @@ layout: docs
title: Text truncation
description: Truncate long strings of text with an ellipsis.
group: helpers
toc: true
toc: false
---
## Text truncation
For longer content, you can add a `.text-truncate` class to truncate the text with an ellipsis. **Requires `display: inline-block` or `display: block`.**
{{< example >}}