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:
@@ -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 >}}
|
||||
|
||||
Reference in New Issue
Block a user