1 |
efrain |
1 |
// stylelint-disable declaration-no-important
|
|
|
2 |
|
|
|
3 |
//
|
|
|
4 |
// Text
|
|
|
5 |
//
|
|
|
6 |
|
|
|
7 |
.text-monospace { font-family: $font-family-monospace !important; }
|
|
|
8 |
|
|
|
9 |
// Alignment
|
|
|
10 |
|
|
|
11 |
.text-justify { text-align: justify !important; }
|
|
|
12 |
.text-wrap { white-space: normal !important; }
|
|
|
13 |
.text-nowrap { white-space: nowrap !important; }
|
|
|
14 |
.text-truncate { @include text-truncate(); }
|
|
|
15 |
|
|
|
16 |
// Responsive alignment
|
|
|
17 |
|
|
|
18 |
@each $breakpoint in map-keys($grid-breakpoints) {
|
|
|
19 |
@include media-breakpoint-up($breakpoint) {
|
|
|
20 |
$infix: breakpoint-infix($breakpoint, $grid-breakpoints);
|
|
|
21 |
|
|
|
22 |
.text#{$infix}-left { text-align: left !important; }
|
|
|
23 |
.text#{$infix}-right { text-align: right !important; }
|
|
|
24 |
.text#{$infix}-center { text-align: center !important; }
|
|
|
25 |
}
|
|
|
26 |
}
|
|
|
27 |
|
|
|
28 |
// Transformation
|
|
|
29 |
|
|
|
30 |
.text-lowercase { text-transform: lowercase !important; }
|
|
|
31 |
.text-uppercase { text-transform: uppercase !important; }
|
|
|
32 |
.text-capitalize { text-transform: capitalize !important; }
|
|
|
33 |
|
|
|
34 |
// Weight and italics
|
|
|
35 |
|
|
|
36 |
.font-weight-light { font-weight: $font-weight-light !important; }
|
|
|
37 |
.font-weight-lighter { font-weight: $font-weight-lighter !important; }
|
|
|
38 |
.font-weight-normal { font-weight: $font-weight-normal !important; }
|
|
|
39 |
.font-weight-bold { font-weight: $font-weight-bold !important; }
|
|
|
40 |
.font-weight-bolder { font-weight: $font-weight-bolder !important; }
|
|
|
41 |
.font-italic { font-style: italic !important; }
|
|
|
42 |
|
|
|
43 |
// Contextual colors
|
|
|
44 |
|
|
|
45 |
.text-white { color: $white !important; }
|
|
|
46 |
|
|
|
47 |
@each $color, $value in $theme-colors {
|
|
|
48 |
@include text-emphasis-variant(".text-#{$color}", $value, true);
|
|
|
49 |
}
|
|
|
50 |
|
|
|
51 |
.text-body { color: $body-color !important; }
|
|
|
52 |
.text-muted { color: $text-muted !important; }
|
|
|
53 |
|
|
|
54 |
.text-black-50 { color: rgba($black, .5) !important; }
|
|
|
55 |
.text-white-50 { color: rgba($white, .5) !important; }
|
|
|
56 |
|
|
|
57 |
// Misc
|
|
|
58 |
|
|
|
59 |
.text-hide {
|
|
|
60 |
@include text-hide($ignore-warning: true);
|
|
|
61 |
}
|
|
|
62 |
|
|
|
63 |
.text-decoration-none { text-decoration: none !important; }
|
|
|
64 |
|
|
|
65 |
.text-break {
|
|
|
66 |
word-break: break-word !important; // Deprecated, but avoids issues with flex containers
|
|
|
67 |
word-wrap: break-word !important; // Used instead of `overflow-wrap` for IE & Edge Legacy
|
|
|
68 |
}
|
|
|
69 |
|
|
|
70 |
// Reset
|
|
|
71 |
|
|
|
72 |
.text-reset { color: inherit !important; }
|