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
|
|
|
|
|
2016-11-28 07:23:12 +01:00
|
|
|
.font-weight-normal { font-weight: $font-weight-normal; }
|
|
|
|
.font-weight-bold { font-weight: $font-weight-bold; }
|
|
|
|
.font-italic { font-style: italic; }
|
2015-12-11 04:43:28 +01:00
|
|
|
|
|
|
|
// Contextual colors
|
|
|
|
|
2016-09-09 07:18:40 +02:00
|
|
|
.text-white {
|
|
|
|
color: #fff !important;
|
|
|
|
}
|
|
|
|
|
2016-01-06 14:47:44 +01:00
|
|
|
@include text-emphasis-variant('.text-muted', $text-muted);
|
2015-12-11 04:43:28 +01:00
|
|
|
|
|
|
|
@include text-emphasis-variant('.text-primary', $brand-primary);
|
|
|
|
|
|
|
|
@include text-emphasis-variant('.text-success', $brand-success);
|
|
|
|
|
|
|
|
@include text-emphasis-variant('.text-info', $brand-info);
|
|
|
|
|
|
|
|
@include text-emphasis-variant('.text-warning', $brand-warning);
|
|
|
|
|
|
|
|
@include text-emphasis-variant('.text-danger', $brand-danger);
|
|
|
|
|
2016-09-12 08:03:12 +02:00
|
|
|
// Font color
|
|
|
|
|
|
|
|
@include text-emphasis-variant('.text-gray-dark', $gray-dark);
|
|
|
|
|
2015-12-11 04:43:28 +01:00
|
|
|
// Misc
|
|
|
|
|
|
|
|
.text-hide {
|
|
|
|
@include text-hide();
|
|
|
|
}
|