Mercurial > nebulaweb3
comparison default/assets/scss/vendors/bootstrap/utilities/_text.scss @ 0:1d038bc9b3d2 default tip
Up:default
author | Liny <dev@neowd.com> |
---|---|
date | Sat, 31 May 2025 09:21:51 +0800 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:1d038bc9b3d2 |
---|---|
1 // | |
2 // Text | |
3 // | |
4 | |
5 // Alignment | |
6 | |
7 .text-justify { text-align: justify !important; } | |
8 .text-nowrap { white-space: nowrap !important; } | |
9 .text-truncate { @include text-truncate; } | |
10 | |
11 // Responsive alignment | |
12 | |
13 @each $breakpoint in map-keys($grid-breakpoints) { | |
14 @include media-breakpoint-up($breakpoint) { | |
15 $infix: breakpoint-infix($breakpoint, $grid-breakpoints); | |
16 | |
17 .text#{$infix}-left { text-align: left !important; } | |
18 .text#{$infix}-right { text-align: right !important; } | |
19 .text#{$infix}-center { text-align: center !important; } | |
20 } | |
21 } | |
22 | |
23 // Transformation | |
24 | |
25 .text-lowercase { text-transform: lowercase !important; } | |
26 .text-uppercase { text-transform: uppercase !important; } | |
27 .text-capitalize { text-transform: capitalize !important; } | |
28 | |
29 // Weight and italics | |
30 | |
31 .font-weight-normal { font-weight: $font-weight-normal; } | |
32 .font-weight-bold { font-weight: $font-weight-bold; } | |
33 .font-italic { font-style: italic; } | |
34 | |
35 // Contextual colors | |
36 | |
37 .text-white { color: #fff !important; } | |
38 | |
39 @each $color, $value in $theme-colors { | |
40 @include text-emphasis-variant('.text-#{$color}', $value); | |
41 } | |
42 | |
43 .text-muted { color: $text-muted !important; } | |
44 | |
45 // Misc | |
46 | |
47 .text-hide { | |
48 @include text-hide(); | |
49 } |