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