Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Bootstrap
bootstrap
Commits
d51b408d
Commit
d51b408d
authored
6 years ago
by
Mark Otto
Browse files
Options
Download
Plain Diff
Merge branch 'text-break-util' into v4-dev
parents
2162cb18
f7bf353c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
scss/utilities/_text.scss
+1
-1
scss/utilities/_text.scss
site/docs/4.2/utilities/text.md
+9
-0
site/docs/4.2/utilities/text.md
with
10 additions
and
1 deletion
+10
-1
scss/utilities/_text.scss
+
1
-
1
View file @
d51b408d
...
...
@@ -62,7 +62,7 @@
.text-decoration-none
{
text-decoration
:
none
!
important
;
}
.text-break
{
word-break
:
break-word
!
important
;
}
.text-break
{
word-break
:
break-word
!
important
;
}
// Reset
...
...
This diff is collapsed.
Click to expand it.
site/docs/4.2/utilities/text.md
+
9
-
0
View file @
d51b408d
...
...
@@ -66,6 +66,15 @@ For longer content, you can add a `.text-truncate` class to truncate the text wi
{% endcapture %}
{% include example.html content=example %}
## Word break
Prevent long strings of text from breaking your components' layout by using
`.text-break`
to set
`word-break: break-word`
.
{% capture example %}
<p
class=
"text-break"
>
mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm
</p>
{% endcapture %}
{% include example.html content=example %}
## Text transform
Transform text in components with text capitalization classes.
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets