From 8437be2f335ff4e9228c08ce85bf858e0e29324d Mon Sep 17 00:00:00 2001 From: Shohei Yoshida Date: Wed, 5 Jun 2019 03:46:52 +0900 Subject: Rename the text helper page (#28869) --- site/content/docs/4.3/helpers/text-truncation.md | 25 ++++++++++++++++++++++++ site/content/docs/4.3/helpers/text.md | 25 ------------------------ site/data/nav.yml | 2 +- 3 files changed, 26 insertions(+), 26 deletions(-) create mode 100644 site/content/docs/4.3/helpers/text-truncation.md delete mode 100644 site/content/docs/4.3/helpers/text.md diff --git a/site/content/docs/4.3/helpers/text-truncation.md b/site/content/docs/4.3/helpers/text-truncation.md new file mode 100644 index 000000000..466bb1c46 --- /dev/null +++ b/site/content/docs/4.3/helpers/text-truncation.md @@ -0,0 +1,25 @@ +--- +layout: docs +title: Text truncation +description: Truncate long strings of text with an ellipsis. +group: helpers +toc: true +--- + +## 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 >}} + +
+
+ Praeterea iter est quasdam res quas ex communi. +
+
+ + + + Praeterea iter est quasdam res quas ex communi. + +{{< /example >}} diff --git a/site/content/docs/4.3/helpers/text.md b/site/content/docs/4.3/helpers/text.md deleted file mode 100644 index bd5709942..000000000 --- a/site/content/docs/4.3/helpers/text.md +++ /dev/null @@ -1,25 +0,0 @@ ---- -layout: docs -title: Text -description: Documentation and examples for common text utilities to control alignment, wrapping, weight, and more. -group: helpers -toc: true ---- - -## 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 >}} - -
-
- Praeterea iter est quasdam res quas ex communi. -
-
- - - - Praeterea iter est quasdam res quas ex communi. - -{{< /example >}} diff --git a/site/data/nav.yml b/site/data/nav.yml index 3851fa206..67c64b9f7 100644 --- a/site/data/nav.yml +++ b/site/data/nav.yml @@ -60,7 +60,7 @@ - title: Position - title: Screen readers - title: Stretched link - - title: Text + - title: Text truncation - title: Utilities pages: -- cgit v1.2.3