From 3ea39841c8049525e31e9f4d6300f0c60cdb42de Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Tue, 24 Jan 2023 13:33:51 +0100 Subject: Adding upstream version 5.2.3+dfsg. Signed-off-by: Daniel Baumann --- site/content/docs/5.2/helpers/text-truncation.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 site/content/docs/5.2/helpers/text-truncation.md (limited to 'site/content/docs/5.2/helpers/text-truncation.md') diff --git a/site/content/docs/5.2/helpers/text-truncation.md b/site/content/docs/5.2/helpers/text-truncation.md new file mode 100644 index 0000000..799f205 --- /dev/null +++ b/site/content/docs/5.2/helpers/text-truncation.md @@ -0,0 +1,23 @@ +--- +layout: docs +title: Text truncation +description: Truncate long strings of text with an ellipsis. +group: helpers +toc: false +--- + +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 >}} + +
+
+ This text is quite long, and will be truncated once displayed. +
+
+ + + + This text is quite long, and will be truncated once displayed. + +{{< /example >}} -- cgit v1.2.3