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
d7f49856
Commit
d7f49856
authored
9 years ago
by
Mark Otto
Browse files
Options
Download
Email Patches
Plain Diff
addresses #14217, add responsive text alignment classes
parent
b814a96a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scss/_utilities.scss
+33
-1
scss/_utilities.scss
with
33 additions
and
1 deletion
+33
-1
scss/_utilities.scss
+
33
-
1
View file @
d7f49856
...
...
@@ -55,6 +55,7 @@
//
// Alignment
.text-left
{
text-align
:
left
;
}
.text-right
{
text-align
:
right
;
}
.text-center
{
text-align
:
center
;
}
...
...
@@ -62,13 +63,44 @@
.text-nowrap
{
white-space
:
nowrap
;
}
.text-truncate
{
@include
text-truncate
;
}
// Responsive alignment
.text-xs-left
{
text-align
:
left
;
}
.text-xs-right
{
text-align
:
right
;
}
.text-xs-center
{
text-align
:
center
;
}
@include
media-breakpoint-up
(
sm
)
{
.text-sm-left
{
text-align
:
left
;
}
.text-sm-right
{
text-align
:
right
;
}
.text-sm-center
{
text-align
:
center
;
}
}
@include
media-breakpoint-up
(
md
)
{
.text-md-left
{
text-align
:
left
;
}
.text-md-right
{
text-align
:
right
;
}
.text-md-center
{
text-align
:
center
;
}
}
@include
media-breakpoint-up
(
lg
)
{
.text-lg-left
{
text-align
:
left
;
}
.text-lg-right
{
text-align
:
right
;
}
.text-lg-center
{
text-align
:
center
;
}
}
@include
media-breakpoint-up
(
xl
)
{
.text-xl-left
{
text-align
:
left
;
}
.text-xl-right
{
text-align
:
right
;
}
.text-xl-center
{
text-align
:
center
;
}
}
// Transformation
.text-lowercase
{
text-transform
:
lowercase
;
}
.text-uppercase
{
text-transform
:
uppercase
;
}
.text-capitalize
{
text-transform
:
capitalize
;
}
// Contextual colors
.text-muted
{
color
:
$text-muted
;
}
...
...
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