This repository has been archived on 2020-05-08. You can view files and clone it, but cannot push or open issues or pull requests.
understrap/src/sass/bootstrap4/utilities/_text.scss

53 lines
1.3 KiB
SCSS
Raw Normal View History

2017-10-23 09:53:15 +00:00
// stylelint-disable declaration-no-important
2017-03-02 09:46:58 +00:00
//
// Text
//
// Alignment
.text-justify { text-align: justify !important; }
.text-nowrap { white-space: nowrap !important; }
.text-truncate { @include text-truncate; }
// Responsive alignment
@each $breakpoint in map-keys($grid-breakpoints) {
@include media-breakpoint-up($breakpoint) {
$infix: breakpoint-infix($breakpoint, $grid-breakpoints);
.text#{$infix}-left { text-align: left !important; }
.text#{$infix}-right { text-align: right !important; }
.text#{$infix}-center { text-align: center !important; }
}
}
// Transformation
.text-lowercase { text-transform: lowercase !important; }
.text-uppercase { text-transform: uppercase !important; }
.text-capitalize { text-transform: capitalize !important; }
// Weight and italics
2017-08-11 15:29:45 +00:00
.font-weight-light { font-weight: $font-weight-light !important; }
.font-weight-normal { font-weight: $font-weight-normal !important; }
.font-weight-bold { font-weight: $font-weight-bold !important; }
.font-italic { font-style: italic !important; }
2017-03-02 09:46:58 +00:00
// Contextual colors
2017-08-11 15:29:45 +00:00
.text-white { color: #fff !important; }
2017-03-02 09:46:58 +00:00
2017-08-11 15:29:45 +00:00
@each $color, $value in $theme-colors {
2017-10-23 09:53:15 +00:00
@include text-emphasis-variant(".text-#{$color}", $value);
2017-08-11 15:29:45 +00:00
}
2017-03-02 09:46:58 +00:00
2017-08-11 15:29:45 +00:00
.text-muted { color: $text-muted !important; }
2017-03-02 09:46:58 +00:00
// Misc
.text-hide {
@include text-hide();
}