@stackoverflow/stacks 2.7.3 → 2.7.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.MD +9 -9
- package/README.md +158 -180
- package/dist/css/stacks.css +6 -0
- package/dist/js/stacks.min.js +1 -1
- package/lib/atomic/border.less +139 -139
- package/lib/atomic/color.less +36 -36
- package/lib/atomic/flex.less +426 -426
- package/lib/atomic/gap.less +44 -44
- package/lib/atomic/grid.less +139 -139
- package/lib/atomic/misc.less +374 -374
- package/lib/atomic/spacing.less +98 -98
- package/lib/atomic/typography.less +266 -264
- package/lib/atomic/width-height.less +194 -194
- package/lib/base/body.less +44 -44
- package/lib/base/configuration-static.less +61 -61
- package/lib/base/fieldset.less +5 -5
- package/lib/base/icon.less +11 -11
- package/lib/base/internal.less +220 -220
- package/lib/base/reset-meyer.less +64 -64
- package/lib/base/reset-normalize.less +449 -449
- package/lib/base/reset.less +20 -20
- package/lib/components/activity-indicator/activity-indicator.less +53 -53
- package/lib/components/avatar/avatar.less +108 -108
- package/lib/components/award-bling/award-bling.less +31 -31
- package/lib/components/banner/banner.less +44 -44
- package/lib/components/banner/banner.ts +149 -149
- package/lib/components/block-link/block-link.less +82 -82
- package/lib/components/breadcrumbs/breadcrumbs.less +41 -41
- package/lib/components/button-group/button-group.less +82 -82
- package/lib/components/card/card.less +37 -37
- package/lib/components/check-control/check-control.less +17 -17
- package/lib/components/check-group/check-group.less +19 -19
- package/lib/components/checkbox_radio/checkbox_radio.less +159 -159
- package/lib/components/code-block/code-block.fixtures.ts +88 -88
- package/lib/components/code-block/code-block.less +116 -116
- package/lib/components/description/description.less +9 -9
- package/lib/components/empty-state/empty-state.less +16 -16
- package/lib/components/expandable/expandable.less +118 -118
- package/lib/components/input-fill/input-fill.less +35 -35
- package/lib/components/input-icon/input-icon.less +45 -45
- package/lib/components/input-message/input-message.less +49 -49
- package/lib/components/label/label.less +110 -110
- package/lib/components/link-preview/link-preview.less +148 -148
- package/lib/components/menu/menu.less +41 -41
- package/lib/components/modal/modal.less +118 -118
- package/lib/components/modal/modal.ts +383 -383
- package/lib/components/navigation/navigation.less +136 -136
- package/lib/components/navigation/navigation.ts +128 -128
- package/lib/components/page-title/page-title.less +51 -51
- package/lib/components/popover/popover.less +159 -159
- package/lib/components/popover/popover.ts +651 -651
- package/lib/components/post-summary/post-summary.less +457 -457
- package/lib/components/progress-bar/progress-bar.less +291 -291
- package/lib/components/prose/prose.less +452 -452
- package/lib/components/select/select.less +138 -138
- package/lib/components/spinner/spinner.less +103 -103
- package/lib/components/table/table.ts +296 -296
- package/lib/components/table-container/table-container.less +4 -4
- package/lib/components/tag/tag.less +186 -186
- package/lib/components/toast/toast.less +35 -35
- package/lib/components/toast/toast.ts +357 -357
- package/lib/components/toggle-switch/toggle-switch.less +104 -104
- package/lib/components/topbar/topbar.less +553 -553
- package/lib/components/uploader/uploader.less +205 -205
- package/lib/components/user-card/user-card.less +129 -129
- package/lib/controllers.ts +33 -33
- package/lib/exports/color-mixins.less +283 -283
- package/lib/exports/constants-helpers.less +108 -108
- package/lib/exports/constants-type.less +155 -155
- package/lib/exports/exports.less +15 -15
- package/lib/exports/mixins.less +334 -333
- package/lib/exports/spacing-mixins.less +67 -67
- package/lib/index.ts +32 -32
- package/lib/input-utils.less +41 -41
- package/lib/stacks-dynamic.less +24 -24
- package/lib/stacks-static.less +93 -93
- package/lib/stacks.less +13 -13
- package/lib/test/assertions.ts +36 -36
- package/lib/test/less-test-utils.ts +28 -28
- package/lib/test/open-wc-testing-patch.d.ts +26 -26
- package/lib/tsconfig.build.json +4 -4
- package/lib/tsconfig.json +17 -17
- package/package.json +26 -22
|
@@ -1,264 +1,266 @@
|
|
|
1
|
-
//
|
|
2
|
-
// STACK OVERFLOW
|
|
3
|
-
// TYPOGRAPHY
|
|
4
|
-
//
|
|
5
|
-
// This CSS comes from Stacks, our CSS & Pattern library for rapidly building
|
|
6
|
-
// Stack Overflow. For documentation of all these classes and how to contribute,
|
|
7
|
-
// visit https://stackoverflow.design/
|
|
8
|
-
//
|
|
9
|
-
// TABLE OF CONTENTS
|
|
10
|
-
// • ATOMIC CLASSES
|
|
11
|
-
//
|
|
12
|
-
// ============================================================================
|
|
13
|
-
// $ TYPE RESETS
|
|
14
|
-
// ----------------------------------------------------------------------------
|
|
15
|
-
h1,
|
|
16
|
-
h2,
|
|
17
|
-
h3,
|
|
18
|
-
h4,
|
|
19
|
-
h5,
|
|
20
|
-
h6,
|
|
21
|
-
p {
|
|
22
|
-
margin-top: 0;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
// ============================================================================
|
|
26
|
-
// $ TEXT SIZES
|
|
27
|
-
// ----------------------------------------------------------------------------
|
|
28
|
-
// Declare font sizes
|
|
29
|
-
.fs-display4 { font-size: var(--fs-display4) !important; }
|
|
30
|
-
.fs-display3 { font-size: var(--fs-display3) !important; }
|
|
31
|
-
.fs-display2 { font-size: var(--fs-display2) !important; }
|
|
32
|
-
.fs-display1 { font-size: var(--fs-display1) !important; }
|
|
33
|
-
.fs-headline2 { font-size: var(--fs-headline2) !important; }
|
|
34
|
-
.fs-headline1 { font-size: var(--fs-headline1) !important; }
|
|
35
|
-
.fs-title { font-size: var(--fs-title) !important; }
|
|
36
|
-
.fs-subheading { font-size: var(--fs-subheading) !important; }
|
|
37
|
-
.fs-body3 { font-size: var(--fs-body3) !important; }
|
|
38
|
-
.fs-body2 { font-size: var(--fs-body2) !important; }
|
|
39
|
-
.fs-body1 { font-size: var(--fs-body1) !important; }
|
|
40
|
-
|
|
41
|
-
.fs-caption,
|
|
42
|
-
.fs-category { font-size: var(--fs-caption) !important; }
|
|
43
|
-
.fs-fine { font-size: var(--fs-fine) !important; }
|
|
44
|
-
|
|
45
|
-
#stacks-internals #screen-sm({
|
|
46
|
-
.fs-display4 { font-size: 3.8rem !important; }
|
|
47
|
-
.fs-display3 { font-size: 3.3rem !important; }
|
|
48
|
-
.fs-display2 { font-size: 3rem !important; }
|
|
49
|
-
.fs-display1 { font-size: 2.6rem !important; }
|
|
50
|
-
.fs-headline2 { font-size: 2.3rem !important; }
|
|
51
|
-
.fs-headline1 { font-size: 2rem !important; }
|
|
52
|
-
.fs-title { font-size: 1.8rem !important; }
|
|
53
|
-
.fs-subheading { font-size: 1.6rem !important; }
|
|
54
|
-
.fs-body3 { font-size: 1.4rem !important; }
|
|
55
|
-
.fs-body2 { font-size: 1.3rem !important; }
|
|
56
|
-
}, @force-selector: true);
|
|
57
|
-
|
|
58
|
-
.fs-category {
|
|
59
|
-
font-weight: 700;
|
|
60
|
-
text-transform: uppercase;
|
|
61
|
-
|
|
62
|
-
// If a top border is desired
|
|
63
|
-
&.has-border {
|
|
64
|
-
width: 100%;
|
|
65
|
-
padding: var(--su4) 0;
|
|
66
|
-
border-top: var(--su-static1) solid var(--bc-medium);
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
// ============================================================================
|
|
71
|
-
// $ LINE HEIGHTS
|
|
72
|
-
// ----------------------------------------------------------------------------
|
|
73
|
-
.lh-xs { line-height: var(--lh-xs) !important; }
|
|
74
|
-
.lh-sm { line-height: var(--lh-sm) !important; }
|
|
75
|
-
.lh-md { line-height: var(--lh-md) !important; }
|
|
76
|
-
.lh-lg { line-height: var(--lh-lg) !important; }
|
|
77
|
-
.lh-xl { line-height: var(--lh-xl) !important; }
|
|
78
|
-
.lh-xxl { line-height: var(--lh-xxl) !important; }
|
|
79
|
-
.lh-unset { line-height: initial !important; }
|
|
80
|
-
|
|
81
|
-
// ============================================================================
|
|
82
|
-
// $$ TEXT STYLES & UTILITIES
|
|
83
|
-
// ----------------------------------------------------------------------------
|
|
84
|
-
// -- Font Family
|
|
85
|
-
.ff-sans { font-family: var(--ff-sans) !important; }
|
|
86
|
-
.ff-serif { font-family: var(--ff-serif) !important; }
|
|
87
|
-
.ff-mono { font-family: var(--ff-mono) !important; }
|
|
88
|
-
.ff-inherit { font-family: inherit !important; }
|
|
89
|
-
|
|
90
|
-
// -- Font Weight
|
|
91
|
-
.fw-normal { font-weight: 400 !important; }
|
|
92
|
-
.fw-bold { font-weight: 700 !important; }
|
|
93
|
-
|
|
94
|
-
// -- Font Styles
|
|
95
|
-
.fs-normal { font-style: normal !important; }
|
|
96
|
-
.fs-italic { font-style: italic !important; }
|
|
97
|
-
.fs-unset { font-style: unset !important; }
|
|
98
|
-
|
|
99
|
-
// -- Text Align
|
|
100
|
-
#stacks-internals #responsify('.ta-left', { text-align: left !important; });
|
|
101
|
-
#stacks-internals #responsify('.ta-center', { text-align: center !important; });
|
|
102
|
-
#stacks-internals #responsify('.ta-right', { text-align: right !important; });
|
|
103
|
-
.ta-justify { text-align: justify !important; }
|
|
104
|
-
.ta-unset { text-align: unset !important; }
|
|
105
|
-
|
|
106
|
-
// -- Text Decoration
|
|
107
|
-
.td-none { text-decoration: none !important; }
|
|
108
|
-
.td-underline { text-decoration: underline !important; }
|
|
109
|
-
|
|
110
|
-
// -- Text Transform
|
|
111
|
-
.tt-capitalize { text-transform: capitalize !important; }
|
|
112
|
-
.tt-lowercase { text-transform: lowercase !important; }
|
|
113
|
-
.tt-uppercase { text-transform: uppercase !important; }
|
|
114
|
-
.tt-none { text-transform: none !important; }
|
|
115
|
-
.tt-unset { text-transform: unset !important; }
|
|
116
|
-
|
|
117
|
-
// -- Text Truncate
|
|
118
|
-
.truncate {
|
|
119
|
-
overflow: hidden;
|
|
120
|
-
max-width: 100%;
|
|
121
|
-
text-overflow: ellipsis !important;
|
|
122
|
-
white-space: nowrap;
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
.v-truncate1 {
|
|
126
|
-
.truncation(1);
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
.v-truncate2 {
|
|
130
|
-
.truncation(2);
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
.v-truncate3 {
|
|
134
|
-
.truncation(3);
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
.v-truncate4 {
|
|
138
|
-
.truncation(4);
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
.v-truncate5 {
|
|
142
|
-
.truncation(5);
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
.truncation(@count) {
|
|
146
|
-
// Despite these all being webkit-specific properties, this works across
|
|
147
|
-
// Safari, Chrome, Edge, and Firefox.
|
|
148
|
-
display: -webkit-box;
|
|
149
|
-
-webkit-line-clamp: @count;
|
|
150
|
-
-webkit-box-orient: vertical;
|
|
151
|
-
overflow: hidden;
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
.v-truncate-fade {
|
|
155
|
-
overflow: hidden;
|
|
156
|
-
-webkit-mask-image: linear-gradient(180deg, #000 calc(var(--lh-md) * 9em), transparent);
|
|
157
|
-
mask-image: linear-gradient(180deg, #000 calc(var(--lh-md) * 9em), transparent);
|
|
158
|
-
max-height: calc(var(--lh-md) * 12em);
|
|
159
|
-
|
|
160
|
-
&.v-truncate-fade__sm {
|
|
161
|
-
-webkit-mask-image: linear-gradient(180deg, #000 calc(var(--lh-md) * 3em), transparent);
|
|
162
|
-
mask-image: linear-gradient(180deg, #000 calc(var(--lh-md) * 3em), transparent);
|
|
163
|
-
max-height: calc(var(--lh-md) * 6em);
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
&.v-truncate-fade__lg {
|
|
167
|
-
-webkit-mask-image: linear-gradient(180deg, #000 calc(var(--lh-md) * 21em), transparent);
|
|
168
|
-
mask-image: linear-gradient(180deg, #000 calc(var(--lh-md) * 21em), transparent);
|
|
169
|
-
max-height: calc(var(--lh-md) * 24em);
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
// -- Whitespace
|
|
174
|
-
.ws-normal { white-space: normal !important; }
|
|
175
|
-
.ws-nowrap { white-space: nowrap !important; }
|
|
176
|
-
.ws-pre { white-space: pre !important; }
|
|
177
|
-
.ws-pre-wrap { white-space: pre-wrap !important; }
|
|
178
|
-
.ws-pre-line { white-space: pre-line !important; }
|
|
179
|
-
.ws-unset { white-space: unset !important; }
|
|
180
|
-
|
|
181
|
-
// -- Word Break
|
|
182
|
-
.wb-normal { word-break: normal !important; }
|
|
183
|
-
.wb-break-all { word-break: break-all !important; }
|
|
184
|
-
.wb-keep-all { word-break: keep-all !important; }
|
|
185
|
-
.wb-inherit { word-break: inherit !important; }
|
|
186
|
-
.wb-initial { word-break: initial !important; }
|
|
187
|
-
.wb-unset { word-break: unset !important; }
|
|
188
|
-
|
|
189
|
-
// -- Overflow Wrap
|
|
190
|
-
.ow-normal {
|
|
191
|
-
overflow-wrap: normal !important;
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
.ow-anywhere {
|
|
195
|
-
overflow-wrap: anywhere !important;
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
.ow-break-word {
|
|
199
|
-
overflow-wrap: break-word !important;
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
.ow-inherit {
|
|
203
|
-
overflow-wrap: inherit !important;
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
.ow-initial {
|
|
207
|
-
overflow-wrap: initial !important;
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
.ow-unset {
|
|
211
|
-
overflow-wrap: unset !important;
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
// -- Hyphenation
|
|
215
|
-
.hyphens-none { hyphens: none !important; }
|
|
216
|
-
.hyphens-auto {
|
|
217
|
-
-ms-hyphens: auto !important;
|
|
218
|
-
-webkit-hyphens: auto !important;
|
|
219
|
-
hyphens: auto !important;
|
|
220
|
-
}
|
|
221
|
-
.hyphens-unset { hyphens: unset !important; }
|
|
222
|
-
|
|
223
|
-
// -- Break word
|
|
224
|
-
.break-word {
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
-
|
|
228
|
-
-
|
|
229
|
-
-
|
|
230
|
-
hyphens: auto !important;
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
//
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
.list-ls-
|
|
260
|
-
.list-ls-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
1
|
+
//
|
|
2
|
+
// STACK OVERFLOW
|
|
3
|
+
// TYPOGRAPHY
|
|
4
|
+
//
|
|
5
|
+
// This CSS comes from Stacks, our CSS & Pattern library for rapidly building
|
|
6
|
+
// Stack Overflow. For documentation of all these classes and how to contribute,
|
|
7
|
+
// visit https://stackoverflow.design/
|
|
8
|
+
//
|
|
9
|
+
// TABLE OF CONTENTS
|
|
10
|
+
// • ATOMIC CLASSES
|
|
11
|
+
//
|
|
12
|
+
// ============================================================================
|
|
13
|
+
// $ TYPE RESETS
|
|
14
|
+
// ----------------------------------------------------------------------------
|
|
15
|
+
h1,
|
|
16
|
+
h2,
|
|
17
|
+
h3,
|
|
18
|
+
h4,
|
|
19
|
+
h5,
|
|
20
|
+
h6,
|
|
21
|
+
p {
|
|
22
|
+
margin-top: 0;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
// ============================================================================
|
|
26
|
+
// $ TEXT SIZES
|
|
27
|
+
// ----------------------------------------------------------------------------
|
|
28
|
+
// Declare font sizes
|
|
29
|
+
.fs-display4 { font-size: var(--fs-display4) !important; }
|
|
30
|
+
.fs-display3 { font-size: var(--fs-display3) !important; }
|
|
31
|
+
.fs-display2 { font-size: var(--fs-display2) !important; }
|
|
32
|
+
.fs-display1 { font-size: var(--fs-display1) !important; }
|
|
33
|
+
.fs-headline2 { font-size: var(--fs-headline2) !important; }
|
|
34
|
+
.fs-headline1 { font-size: var(--fs-headline1) !important; }
|
|
35
|
+
.fs-title { font-size: var(--fs-title) !important; }
|
|
36
|
+
.fs-subheading { font-size: var(--fs-subheading) !important; }
|
|
37
|
+
.fs-body3 { font-size: var(--fs-body3) !important; }
|
|
38
|
+
.fs-body2 { font-size: var(--fs-body2) !important; }
|
|
39
|
+
.fs-body1 { font-size: var(--fs-body1) !important; }
|
|
40
|
+
|
|
41
|
+
.fs-caption,
|
|
42
|
+
.fs-category { font-size: var(--fs-caption) !important; }
|
|
43
|
+
.fs-fine { font-size: var(--fs-fine) !important; }
|
|
44
|
+
|
|
45
|
+
#stacks-internals #screen-sm({
|
|
46
|
+
.fs-display4 { font-size: 3.8rem !important; }
|
|
47
|
+
.fs-display3 { font-size: 3.3rem !important; }
|
|
48
|
+
.fs-display2 { font-size: 3rem !important; }
|
|
49
|
+
.fs-display1 { font-size: 2.6rem !important; }
|
|
50
|
+
.fs-headline2 { font-size: 2.3rem !important; }
|
|
51
|
+
.fs-headline1 { font-size: 2rem !important; }
|
|
52
|
+
.fs-title { font-size: 1.8rem !important; }
|
|
53
|
+
.fs-subheading { font-size: 1.6rem !important; }
|
|
54
|
+
.fs-body3 { font-size: 1.4rem !important; }
|
|
55
|
+
.fs-body2 { font-size: 1.3rem !important; }
|
|
56
|
+
}, @force-selector: true);
|
|
57
|
+
|
|
58
|
+
.fs-category {
|
|
59
|
+
font-weight: 700;
|
|
60
|
+
text-transform: uppercase;
|
|
61
|
+
|
|
62
|
+
// If a top border is desired
|
|
63
|
+
&.has-border {
|
|
64
|
+
width: 100%;
|
|
65
|
+
padding: var(--su4) 0;
|
|
66
|
+
border-top: var(--su-static1) solid var(--bc-medium);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
// ============================================================================
|
|
71
|
+
// $ LINE HEIGHTS
|
|
72
|
+
// ----------------------------------------------------------------------------
|
|
73
|
+
.lh-xs { line-height: var(--lh-xs) !important; }
|
|
74
|
+
.lh-sm { line-height: var(--lh-sm) !important; }
|
|
75
|
+
.lh-md { line-height: var(--lh-md) !important; }
|
|
76
|
+
.lh-lg { line-height: var(--lh-lg) !important; }
|
|
77
|
+
.lh-xl { line-height: var(--lh-xl) !important; }
|
|
78
|
+
.lh-xxl { line-height: var(--lh-xxl) !important; }
|
|
79
|
+
.lh-unset { line-height: initial !important; }
|
|
80
|
+
|
|
81
|
+
// ============================================================================
|
|
82
|
+
// $$ TEXT STYLES & UTILITIES
|
|
83
|
+
// ----------------------------------------------------------------------------
|
|
84
|
+
// -- Font Family
|
|
85
|
+
.ff-sans { font-family: var(--ff-sans) !important; }
|
|
86
|
+
.ff-serif { font-family: var(--ff-serif) !important; }
|
|
87
|
+
.ff-mono { font-family: var(--ff-mono) !important; }
|
|
88
|
+
.ff-inherit { font-family: inherit !important; }
|
|
89
|
+
|
|
90
|
+
// -- Font Weight
|
|
91
|
+
.fw-normal { font-weight: 400 !important; }
|
|
92
|
+
.fw-bold { font-weight: 700 !important; }
|
|
93
|
+
|
|
94
|
+
// -- Font Styles
|
|
95
|
+
.fs-normal { font-style: normal !important; }
|
|
96
|
+
.fs-italic { font-style: italic !important; }
|
|
97
|
+
.fs-unset { font-style: unset !important; }
|
|
98
|
+
|
|
99
|
+
// -- Text Align
|
|
100
|
+
#stacks-internals #responsify('.ta-left', { text-align: left !important; });
|
|
101
|
+
#stacks-internals #responsify('.ta-center', { text-align: center !important; });
|
|
102
|
+
#stacks-internals #responsify('.ta-right', { text-align: right !important; });
|
|
103
|
+
.ta-justify { text-align: justify !important; }
|
|
104
|
+
.ta-unset { text-align: unset !important; }
|
|
105
|
+
|
|
106
|
+
// -- Text Decoration
|
|
107
|
+
.td-none { text-decoration: none !important; }
|
|
108
|
+
.td-underline { text-decoration: underline !important; }
|
|
109
|
+
|
|
110
|
+
// -- Text Transform
|
|
111
|
+
.tt-capitalize { text-transform: capitalize !important; }
|
|
112
|
+
.tt-lowercase { text-transform: lowercase !important; }
|
|
113
|
+
.tt-uppercase { text-transform: uppercase !important; }
|
|
114
|
+
.tt-none { text-transform: none !important; }
|
|
115
|
+
.tt-unset { text-transform: unset !important; }
|
|
116
|
+
|
|
117
|
+
// -- Text Truncate
|
|
118
|
+
.truncate {
|
|
119
|
+
overflow: hidden;
|
|
120
|
+
max-width: 100%;
|
|
121
|
+
text-overflow: ellipsis !important;
|
|
122
|
+
white-space: nowrap;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.v-truncate1 {
|
|
126
|
+
.truncation(1);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.v-truncate2 {
|
|
130
|
+
.truncation(2);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.v-truncate3 {
|
|
134
|
+
.truncation(3);
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.v-truncate4 {
|
|
138
|
+
.truncation(4);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.v-truncate5 {
|
|
142
|
+
.truncation(5);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.truncation(@count) {
|
|
146
|
+
// Despite these all being webkit-specific properties, this works across
|
|
147
|
+
// Safari, Chrome, Edge, and Firefox.
|
|
148
|
+
display: -webkit-box;
|
|
149
|
+
-webkit-line-clamp: @count;
|
|
150
|
+
-webkit-box-orient: vertical;
|
|
151
|
+
overflow: hidden;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.v-truncate-fade {
|
|
155
|
+
overflow: hidden;
|
|
156
|
+
-webkit-mask-image: linear-gradient(180deg, #000 calc(var(--lh-md) * 9em), transparent);
|
|
157
|
+
mask-image: linear-gradient(180deg, #000 calc(var(--lh-md) * 9em), transparent);
|
|
158
|
+
max-height: calc(var(--lh-md) * 12em);
|
|
159
|
+
|
|
160
|
+
&.v-truncate-fade__sm {
|
|
161
|
+
-webkit-mask-image: linear-gradient(180deg, #000 calc(var(--lh-md) * 3em), transparent);
|
|
162
|
+
mask-image: linear-gradient(180deg, #000 calc(var(--lh-md) * 3em), transparent);
|
|
163
|
+
max-height: calc(var(--lh-md) * 6em);
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
&.v-truncate-fade__lg {
|
|
167
|
+
-webkit-mask-image: linear-gradient(180deg, #000 calc(var(--lh-md) * 21em), transparent);
|
|
168
|
+
mask-image: linear-gradient(180deg, #000 calc(var(--lh-md) * 21em), transparent);
|
|
169
|
+
max-height: calc(var(--lh-md) * 24em);
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
// -- Whitespace
|
|
174
|
+
.ws-normal { white-space: normal !important; }
|
|
175
|
+
.ws-nowrap { white-space: nowrap !important; }
|
|
176
|
+
.ws-pre { white-space: pre !important; }
|
|
177
|
+
.ws-pre-wrap { white-space: pre-wrap !important; }
|
|
178
|
+
.ws-pre-line { white-space: pre-line !important; }
|
|
179
|
+
.ws-unset { white-space: unset !important; }
|
|
180
|
+
|
|
181
|
+
// -- Word Break
|
|
182
|
+
.wb-normal { word-break: normal !important; }
|
|
183
|
+
.wb-break-all { word-break: break-all !important; }
|
|
184
|
+
.wb-keep-all { word-break: keep-all !important; }
|
|
185
|
+
.wb-inherit { word-break: inherit !important; }
|
|
186
|
+
.wb-initial { word-break: initial !important; }
|
|
187
|
+
.wb-unset { word-break: unset !important; }
|
|
188
|
+
|
|
189
|
+
// -- Overflow Wrap
|
|
190
|
+
.ow-normal {
|
|
191
|
+
overflow-wrap: normal !important;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
.ow-anywhere {
|
|
195
|
+
overflow-wrap: anywhere !important;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
.ow-break-word {
|
|
199
|
+
overflow-wrap: break-word !important;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
.ow-inherit {
|
|
203
|
+
overflow-wrap: inherit !important;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
.ow-initial {
|
|
207
|
+
overflow-wrap: initial !important;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
.ow-unset {
|
|
211
|
+
overflow-wrap: unset !important;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
// -- Hyphenation
|
|
215
|
+
.hyphens-none { hyphens: none !important; }
|
|
216
|
+
.hyphens-auto {
|
|
217
|
+
-ms-hyphens: auto !important;
|
|
218
|
+
-webkit-hyphens: auto !important;
|
|
219
|
+
hyphens: auto !important;
|
|
220
|
+
}
|
|
221
|
+
.hyphens-unset { hyphens: unset !important; }
|
|
222
|
+
|
|
223
|
+
// -- Break word
|
|
224
|
+
.break-word {
|
|
225
|
+
// DEPRECATED: https://developer.mozilla.org/en-US/docs/Web/CSS/word-break
|
|
226
|
+
/* stylelint-disable-next-line declaration-property-value-keyword-no-deprecated */
|
|
227
|
+
word-break: break-word !important;
|
|
228
|
+
overflow-wrap: break-word !important;
|
|
229
|
+
-webkit-hyphens: auto !important;
|
|
230
|
+
-moz-hyphens: auto !important;
|
|
231
|
+
-ms-hyphens: auto !important;
|
|
232
|
+
hyphens: auto !important;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
// ============================================================================
|
|
236
|
+
// $ LISTS
|
|
237
|
+
// ----------------------------------------------------------------------------
|
|
238
|
+
ul,
|
|
239
|
+
ol {
|
|
240
|
+
padding: 0;
|
|
241
|
+
margin-left: 2.8em;
|
|
242
|
+
|
|
243
|
+
ul,
|
|
244
|
+
ol {
|
|
245
|
+
margin-bottom: 0;
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
ul { list-style-type: disc; }
|
|
250
|
+
ol { list-style-type: decimal; }
|
|
251
|
+
|
|
252
|
+
.list-reset {
|
|
253
|
+
list-style: none;
|
|
254
|
+
margin: 0;
|
|
255
|
+
padding: 0;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
// -- List Style Types
|
|
259
|
+
.list-ls-none { list-style: none !important; }
|
|
260
|
+
.list-ls-disc { list-style-type: disc !important; }
|
|
261
|
+
.list-ls-decimal { list-style-type: decimal !important; }
|
|
262
|
+
.list-ls-unset { list-style-type: unset !important; }
|
|
263
|
+
|
|
264
|
+
// -- List Position
|
|
265
|
+
.list-inside { list-style-position: inside !important; }
|
|
266
|
+
.list-outside { list-style-position: outside !important; }
|