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