2017-10-02 23:34:56 -04:00
|
|
|
// stylelint-disable declaration-no-important
|
|
|
|
|
2015-12-10 22:43:28 -05:00
|
|
|
//
|
|
|
|
// Text
|
|
|
|
//
|
|
|
|
|
2018-04-01 00:04:54 -04:00
|
|
|
.text-monospace { font-family: $font-family-monospace; }
|
|
|
|
|
2015-12-10 22:43:28 -05:00
|
|
|
// Alignment
|
|
|
|
|
2016-11-28 01:23:12 -05:00
|
|
|
.text-justify { text-align: justify !important; }
|
|
|
|
.text-nowrap { white-space: nowrap !important; }
|
|
|
|
.text-truncate { @include text-truncate; }
|
2015-12-10 22:43:28 -05:00
|
|
|
|
|
|
|
// Responsive alignment
|
|
|
|
|
|
|
|
@each $breakpoint in map-keys($grid-breakpoints) {
|
|
|
|
@include media-breakpoint-up($breakpoint) {
|
2016-11-28 16:23:59 -05:00
|
|
|
$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; }
|
2015-12-10 22:43:28 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Transformation
|
|
|
|
|
2016-11-28 01:23:12 -05:00
|
|
|
.text-lowercase { text-transform: lowercase !important; }
|
|
|
|
.text-uppercase { text-transform: uppercase !important; }
|
|
|
|
.text-capitalize { text-transform: capitalize !important; }
|
2015-12-10 22:43:28 -05:00
|
|
|
|
|
|
|
// Weight and italics
|
|
|
|
|
2018-07-24 20:23:17 -04:00
|
|
|
.font-weight-light { font-weight: $font-weight-light !important; }
|
|
|
|
.font-weight-lighter { font-weight: $font-weight-lighter !important; }
|
|
|
|
.font-weight-normal { font-weight: $font-weight-normal !important; }
|
|
|
|
.font-weight-bold { font-weight: $font-weight-bold !important; }
|
|
|
|
.font-weight-bolder { font-weight: $font-weight-bolder !important; }
|
|
|
|
.font-italic { font-style: italic !important; }
|
2015-12-10 22:43:28 -05:00
|
|
|
|
|
|
|
// Contextual colors
|
|
|
|
|
2018-03-12 13:19:37 -04:00
|
|
|
.text-white { color: $white !important; }
|
2016-09-09 01:18:40 -04:00
|
|
|
|
2017-06-18 05:57:16 -04:00
|
|
|
@each $color, $value in $theme-colors {
|
2017-10-02 23:34:56 -04:00
|
|
|
@include text-emphasis-variant(".text-#{$color}", $value);
|
2017-06-18 05:57:16 -04:00
|
|
|
}
|
2016-09-12 02:03:12 -04:00
|
|
|
|
2018-03-31 17:39:43 -04:00
|
|
|
.text-body { color: $body-color !important; }
|
2017-07-03 22:04:31 -04:00
|
|
|
.text-muted { color: $text-muted !important; }
|
2017-07-01 21:37:27 -04:00
|
|
|
|
2018-03-31 17:45:14 -04:00
|
|
|
.text-black-50 { color: rgba($black, .5) !important; }
|
|
|
|
.text-white-50 { color: rgba($white, .5) !important; }
|
|
|
|
|
2015-12-10 22:43:28 -05:00
|
|
|
// Misc
|
|
|
|
|
|
|
|
.text-hide {
|
2018-04-16 02:45:07 -04:00
|
|
|
@include text-hide($ignore-warning: true);
|
2015-12-10 22:43:28 -05:00
|
|
|
}
|
2018-07-24 20:24:20 -04:00
|
|
|
|
|
|
|
.text-decoration-none { text-decoration: none !important; }
|