From 19ee63ad25491aeafc9df9006ef370edf08cffbf Mon Sep 17 00:00:00 2001 From: Martijn Cuppens Date: Sat, 17 Aug 2019 20:19:00 +0200 Subject: Link helpers & use utility API for all utilities --- site/content/docs/4.3/helpers/colored-links.md | 17 +++++++++++++++++ site/content/docs/4.3/helpers/text-truncation.md | 4 +--- site/content/docs/4.3/migration.md | 1 + site/content/docs/4.3/utilities/colors.md | 14 ++------------ 4 files changed, 21 insertions(+), 15 deletions(-) create mode 100644 site/content/docs/4.3/helpers/colored-links.md (limited to 'site/content/docs') diff --git a/site/content/docs/4.3/helpers/colored-links.md b/site/content/docs/4.3/helpers/colored-links.md new file mode 100644 index 000000000..f75cae427 --- /dev/null +++ b/site/content/docs/4.3/helpers/colored-links.md @@ -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") }} +{{ .name | title }} link +{{- end -}} +{{< /colored-links.inline >}} +{{< /example >}} diff --git a/site/content/docs/4.3/helpers/text-truncation.md b/site/content/docs/4.3/helpers/text-truncation.md index 466bb1c46..a92a171fd 100644 --- a/site/content/docs/4.3/helpers/text-truncation.md +++ b/site/content/docs/4.3/helpers/text-truncation.md @@ -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 >}} diff --git a/site/content/docs/4.3/migration.md b/site/content/docs/4.3/migration.md index b530421b6..c550b69b7 100644 --- a/site/content/docs/4.3/migration.md +++ b/site/content/docs/4.3/migration.md @@ -60,6 +60,7 @@ Changes to Reboot, typography, tables, and more. - Reset default horizontal `padding-left` on `