2017-10-03 05:34:56 +02:00
|
|
|
// stylelint-disable declaration-no-important
|
|
|
|
|
2015-12-11 04:43:28 +01:00
|
|
|
//
|
|
|
|
// Text
|
|
|
|
//
|
|
|
|
|
|
|
|
// Alignment
|
|
|
|
|
2016-11-28 07:23:12 +01:00
|
|
|
.text-justify { text-align: justify !important; }
|
|
|
|
.text-nowrap { white-space: nowrap !important; }
|
|
|
|
.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
|
|
|
|
|
2017-07-02 05:57:34 +02: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; }
|
2015-12-11 04:43:28 +01:00
|
|
|
|
|
|
|
// Contextual colors
|
|
|
|
|
2017-07-02 03:37:27 +02:00
|
|
|
.text-white { color: #fff !important; }
|
2016-09-09 07:18:40 +02:00
|
|
|
|
2017-06-18 11:57:16 +02:00
|
|
|
@each $color, $value in $theme-colors {
|
2017-10-03 05:34:56 +02:00
|
|
|
@include text-emphasis-variant(".text-#{$color}", $value);
|
2017-06-18 11:57:16 +02:00
|
|
|
}
|
2016-09-12 08:03:12 +02:00
|
|
|
|
2017-07-04 04:04:31 +02:00
|
|
|
.text-muted { color: $text-muted !important; }
|
2017-07-02 03:37:27 +02:00
|
|
|
|
2015-12-11 04:43:28 +01:00
|
|
|
// Misc
|
|
|
|
|
|
|
|
.text-hide {
|
|
|
|
@include text-hide();
|
|
|
|
}
|