1 | @import '../mixins';
|
2 |
|
3 |
|
4 |
|
5 |
|
6 | @mixin gl-text-left {
|
7 | text-align: left;
|
8 | }
|
9 |
|
10 | @mixin gl-text-center {
|
11 | text-align: center;
|
12 | }
|
13 |
|
14 | @mixin gl-text-right {
|
15 | text-align: right;
|
16 | }
|
17 |
|
18 | @mixin gl-reset-text-align {
|
19 | text-align: inherit;
|
20 | }
|
21 |
|
22 |
|
23 |
|
24 |
|
25 | @mixin gl-text-decoration-none($active: true, $focus: true, $hover: true) {
|
26 | text-decoration: none;
|
27 | }
|
28 |
|
29 | @mixin gl-text-decoration-underline($active: true, $focus: true, $hover: true) {
|
30 | text-decoration: underline;
|
31 | }
|
32 |
|
33 | @mixin gl-reset-text-decoration-color {
|
34 | text-decoration-color: inherit;
|
35 | }
|
36 |
|
37 | @mixin gl-text-decoration-color-gray-500 {
|
38 | text-decoration-color: $gray-500;
|
39 | }
|
40 |
|
41 | @mixin gl-text-decoration-color-gray-700 {
|
42 | text-decoration-color: $gray-700;
|
43 | }
|
44 |
|
45 | @mixin gl-text-decoration-color-gray-900 {
|
46 | text-decoration-color: $gray-900;
|
47 | }
|
48 |
|
49 | @mixin gl-text-transform-none {
|
50 | text-transform: none;
|
51 | }
|
52 |
|
53 | @mixin gl-text-transform-capitalize {
|
54 | text-transform: capitalize;
|
55 | }
|
56 |
|
57 | @mixin gl-text-transform-uppercase {
|
58 | text-transform: uppercase;
|
59 | }
|
60 |
|
61 |
|
62 |
|
63 |
|
64 |
|
65 |
|
66 | @mixin gl-text-overflow-ellipsis {
|
67 | text-overflow: ellipsis;
|
68 | }
|
69 |
|
70 |
|
71 |
|
72 |
|
73 |
|
74 |
|
75 | @mixin gl-line-clamp-1 {
|
76 | white-space: normal;
|
77 | -webkit-line-clamp: 1;
|
78 | -webkit-box-orient: vertical;
|
79 |
|
80 | display: -webkit-box;
|
81 | overflow: hidden;
|
82 | }
|
83 |
|
84 | @mixin gl-line-clamp-2 {
|
85 | white-space: normal;
|
86 | -webkit-line-clamp: 2;
|
87 | -webkit-box-orient: vertical;
|
88 |
|
89 | display: -webkit-box;
|
90 | overflow: hidden;
|
91 | }
|
92 |
|
93 | @mixin gl-line-clamp-3 {
|
94 | white-space: normal;
|
95 | -webkit-line-clamp: 3;
|
96 | -webkit-box-orient: vertical;
|
97 |
|
98 | display: -webkit-box;
|
99 | overflow: hidden;
|
100 | }
|
101 |
|
102 |
|
103 |
|
104 |
|
105 |
|
106 |
|
107 | @mixin gl-text-indent-0 {
|
108 | text-indent: 0;
|
109 | }
|
110 |
|
111 | @mixin gl-text-indent-hide {
|
112 | text-indent: -9999px;
|
113 | }
|
114 |
|
115 |
|
116 |
|
117 |
|
118 |
|
119 |
|
120 | @mixin gl-white-space-normal {
|
121 | white-space: normal;
|
122 | }
|
123 |
|
124 | @mixin gl-white-space-nowrap {
|
125 | white-space: nowrap;
|
126 | }
|
127 |
|
128 | @mixin gl-white-space-pre-wrap {
|
129 | white-space: pre-wrap;
|
130 | }
|
131 |
|
132 | @mixin gl-white-space-pre-line {
|
133 | white-space: pre-line;
|
134 | }
|
135 |
|
136 |
|
137 |
|
138 |
|
139 |
|
140 |
|
141 |
|
142 | @mixin gl-md-white-space-nowrap {
|
143 | @include gl-media-breakpoint-up(md) {
|
144 | white-space: nowrap;
|
145 | }
|
146 | }
|
147 |
|
148 |
|
149 |
|
150 |
|
151 |
|
152 |
|
153 |
|
154 | @mixin gl-word-break-all {
|
155 | word-break: break-all;
|
156 | }
|
157 |
|
158 | @mixin gl-word-break-word {
|
159 | word-break: break-word;
|
160 | }
|
161 |
|
162 | @mixin gl-overflow-break-word {
|
163 | overflow-wrap: break-word;
|
164 | hyphens: auto;
|
165 | }
|
166 |
|
167 | @mixin gl-overflow-anywhere {
|
168 | hyphens: auto;
|
169 | overflow-wrap: anywhere;
|
170 | word-break: normal;
|
171 | }
|
172 |
|
173 |
|
174 | @mixin gl-str-truncated {
|
175 | @include str-truncated;
|
176 | }
|
177 |
|
178 |
|
179 | @mixin gl-text-truncate {
|
180 | overflow: hidden;
|
181 | text-overflow: ellipsis;
|
182 | white-space: nowrap;
|
183 | }
|