@stackoverflow/stacks 0.75.0 → 0.76.0
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 +47 -47
- package/dist/controllers/index.d.ts +7 -0
- package/dist/controllers/s-expandable-control.d.ts +17 -0
- package/dist/controllers/s-modal.d.ts +97 -0
- package/dist/controllers/s-navigation-tablist.d.ts +36 -0
- package/dist/controllers/s-popover.d.ts +155 -0
- package/dist/controllers/s-table.d.ts +8 -0
- package/dist/controllers/s-tooltip.d.ts +82 -0
- package/dist/controllers/s-uploader.d.ts +48 -0
- package/dist/css/stacks.css +86 -53
- package/dist/css/stacks.min.css +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/js/stacks.js +6128 -5505
- package/dist/js/stacks.min.js +1 -1
- package/dist/stacks.d.ts +21 -0
- package/lib/css/atomic/_stacks-borders.less +378 -378
- package/lib/css/atomic/_stacks-colors.less +209 -209
- package/lib/css/atomic/_stacks-flex.less +374 -374
- package/lib/css/atomic/_stacks-grid.less +174 -173
- package/lib/css/atomic/_stacks-misc.less +343 -343
- package/lib/css/atomic/_stacks-spacing.less +168 -168
- package/lib/css/atomic/_stacks-typography.less +273 -273
- package/lib/css/atomic/_stacks-width-height.less +195 -195
- package/lib/css/base/_stacks-body.less +44 -46
- package/lib/css/base/_stacks-configuration-static.less +59 -59
- package/lib/css/base/_stacks-icons.less +20 -20
- package/lib/css/base/_stacks-internals.less +220 -230
- package/lib/css/base/_stacks-reset-meyer.less +64 -64
- package/lib/css/base/_stacks-reset-normalize.less +449 -449
- package/lib/css/base/_stacks-reset.less +20 -20
- package/lib/css/components/_stacks-activity-indicator.less +45 -45
- package/lib/css/components/_stacks-avatars.less +189 -189
- package/lib/css/components/_stacks-badges.less +209 -209
- package/lib/css/components/_stacks-banners.less +80 -81
- package/lib/css/components/_stacks-blank-states.less +26 -26
- package/lib/css/components/_stacks-breadcrumbs.less +44 -44
- package/lib/css/components/_stacks-button-groups.less +104 -104
- package/lib/css/components/_stacks-buttons.less +658 -660
- package/lib/css/components/_stacks-cards.less +44 -44
- package/lib/css/components/_stacks-code-blocks.less +130 -130
- package/lib/css/components/_stacks-collapsible.less +104 -104
- package/lib/css/components/_stacks-inputs.less +728 -728
- package/lib/css/components/_stacks-link-previews.less +136 -136
- package/lib/css/components/_stacks-links.less +218 -218
- package/lib/css/components/_stacks-menu.less +47 -47
- package/lib/css/components/_stacks-modals.less +133 -133
- package/lib/css/components/_stacks-navigation.less +146 -146
- package/lib/css/components/_stacks-notices.less +233 -233
- package/lib/css/components/_stacks-page-titles.less +60 -60
- package/lib/css/components/_stacks-pagination.less +55 -55
- package/lib/css/components/_stacks-popovers.less +197 -197
- package/lib/css/components/_stacks-post-summary.less +425 -425
- package/lib/css/components/_stacks-progress-bars.less +331 -331
- package/lib/css/components/_stacks-prose.less +503 -503
- package/lib/css/components/_stacks-spinner.less +107 -107
- package/lib/css/components/_stacks-tables.less +341 -341
- package/lib/css/components/_stacks-tags.less +236 -244
- package/lib/css/components/_stacks-toggle-switches.less +144 -144
- package/lib/css/components/_stacks-topbar.less +425 -440
- package/lib/css/components/_stacks-uploader.less +210 -210
- package/lib/css/components/_stacks-user-cards.less +169 -169
- package/lib/css/components/_stacks-widget-dynamic.less +33 -33
- package/lib/css/components/_stacks-widget-static.less +272 -272
- package/lib/css/exports/_stacks-constants-colors.less +1112 -1112
- package/lib/css/exports/_stacks-constants-helpers.less +139 -139
- package/lib/css/exports/_stacks-constants-type.less +152 -91
- package/lib/css/exports/_stacks-exports.less +15 -15
- package/lib/css/exports/_stacks-mixins.less +220 -220
- package/lib/css/stacks-dynamic.less +35 -36
- package/lib/css/stacks-static.less +86 -86
- package/lib/ts/controllers/index.ts +8 -0
- package/lib/ts/controllers/s-expandable-control.ts +189 -190
- package/lib/ts/controllers/s-modal.ts +321 -323
- package/lib/ts/controllers/s-navigation-tablist.ts +118 -119
- package/lib/ts/controllers/s-popover.ts +547 -549
- package/lib/ts/controllers/s-table.ts +220 -220
- package/lib/ts/controllers/s-tooltip.ts +246 -247
- package/lib/ts/controllers/s-uploader.ts +172 -174
- package/lib/ts/index.ts +20 -0
- package/lib/ts/stacks.ts +88 -83
- package/lib/tsconfig.json +13 -11
- package/package.json +87 -71
- package/dist/css/stacks-flexgrid-shim.min.css +0 -1
- package/lib/css/base/_stacks-configuration-dynamic.less +0 -106
- package/lib/ts/finalize.ts +0 -1
- package/lib/ts/stimulus.d.ts +0 -4
|
@@ -1,273 +1,273 @@
|
|
|
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: @fs-display4 !important; }
|
|
30
|
-
.fs-display3 { font-size: @fs-display3 !important; }
|
|
31
|
-
.fs-display2 { font-size: @fs-display2 !important; }
|
|
32
|
-
.fs-display1 { font-size: @fs-display1 !important; }
|
|
33
|
-
.fs-headline2 { font-size: @fs-headline2 !important; }
|
|
34
|
-
.fs-headline1 { font-size: @fs-headline1 !important; }
|
|
35
|
-
.fs-title { font-size: @fs-title !important; }
|
|
36
|
-
.fs-subheading { font-size: @fs-subheading !important; }
|
|
37
|
-
.fs-body3 { font-size: @fs-body3 !important; }
|
|
38
|
-
.fs-body2 { font-size: @fs-body2 !important; }
|
|
39
|
-
.fs-body1 { font-size: @fs-body1 !important; }
|
|
40
|
-
|
|
41
|
-
.fs-caption,
|
|
42
|
-
.fs-category { font-size: @fs-caption !important; }
|
|
43
|
-
.fs-fine { font-size: @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: 600;
|
|
60
|
-
text-transform: uppercase;
|
|
61
|
-
|
|
62
|
-
// If a top border is desired
|
|
63
|
-
&.has-border {
|
|
64
|
-
width: 100%;
|
|
65
|
-
padding: @su4 0;
|
|
66
|
-
border-top: 1px solid var(--bc-medium);
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
// ============================================================================
|
|
71
|
-
// $$ TEXT COLORS
|
|
72
|
-
// ----------------------------------------------------------------------------
|
|
73
|
-
.fc-dark { color: var(--fc-dark) !important; }
|
|
74
|
-
.fc-medium { color: var(--fc-medium) !important; }
|
|
75
|
-
.fc-light { color: var(--fc-light) !important; }
|
|
76
|
-
|
|
77
|
-
// ============================================================================
|
|
78
|
-
// $ LINE HEIGHTS
|
|
79
|
-
// ----------------------------------------------------------------------------
|
|
80
|
-
.lh-xs { line-height: @lh-xs !important; }
|
|
81
|
-
.lh-sm { line-height: @lh-sm !important; }
|
|
82
|
-
.lh-md { line-height: @lh-md !important; }
|
|
83
|
-
.lh-lg { line-height: @lh-lg !important; }
|
|
84
|
-
.lh-xl { line-height: @lh-xl !important; }
|
|
85
|
-
.lh-xxl { line-height: @lh-xxl !important; }
|
|
86
|
-
.lh-unset { line-height: initial !important; }
|
|
87
|
-
|
|
88
|
-
// ============================================================================
|
|
89
|
-
// $$ TEXT STYLES & UTILITIES
|
|
90
|
-
// ----------------------------------------------------------------------------
|
|
91
|
-
// -- Font Family
|
|
92
|
-
.ff-sans { font-family: var(--ff-sans) !important; }
|
|
93
|
-
.ff-serif { font-family: var(--ff-serif) !important; }
|
|
94
|
-
.ff-mono { font-family: var(--ff-mono) !important; }
|
|
95
|
-
.ff-inherit { font-family: inherit !important; }
|
|
96
|
-
|
|
97
|
-
// -- Font Weight
|
|
98
|
-
.fw-normal { font-weight: 400 !important; }
|
|
99
|
-
.fw-bold { font-weight: 600 !important; }
|
|
100
|
-
|
|
101
|
-
// -- Font Styles
|
|
102
|
-
.fs-normal { font-style: normal !important; }
|
|
103
|
-
.fs-italic { font-style: italic !important; }
|
|
104
|
-
.fs-unset { font-style: unset !important; }
|
|
105
|
-
|
|
106
|
-
// -- Text Align
|
|
107
|
-
#stacks-internals #responsify('.ta-left', { text-align: left !important; });
|
|
108
|
-
#stacks-internals #responsify('.ta-center', { text-align: center !important; });
|
|
109
|
-
#stacks-internals #responsify('.ta-right', { text-align: right !important; });
|
|
110
|
-
.ta-justify { text-align: justify !important; }
|
|
111
|
-
.ta-unset { text-align: unset !important; }
|
|
112
|
-
|
|
113
|
-
// -- Text Decoration
|
|
114
|
-
.td-none { text-decoration: none !important; }
|
|
115
|
-
.td-underline { text-decoration: underline !important; }
|
|
116
|
-
|
|
117
|
-
// -- Text Transform
|
|
118
|
-
.tt-capitalize { text-transform: capitalize !important; }
|
|
119
|
-
.tt-lowercase { text-transform: lowercase !important; }
|
|
120
|
-
.tt-uppercase { text-transform: uppercase !important; }
|
|
121
|
-
.tt-none { text-transform: none !important; }
|
|
122
|
-
.tt-unset { text-transform: unset !important; }
|
|
123
|
-
|
|
124
|
-
// -- Text Truncate
|
|
125
|
-
.truncate {
|
|
126
|
-
overflow: hidden;
|
|
127
|
-
max-width: 100%;
|
|
128
|
-
text-overflow: ellipsis !important;
|
|
129
|
-
white-space: nowrap;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
.v-truncate1 {
|
|
133
|
-
.truncation(1);
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
.v-truncate2 {
|
|
137
|
-
.truncation(2);
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
.v-truncate3 {
|
|
141
|
-
.truncation(3);
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
.v-truncate4 {
|
|
145
|
-
.truncation(4);
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
.v-truncate5 {
|
|
149
|
-
.truncation(5);
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
.truncation(@count) {
|
|
153
|
-
// Despite these all being webkit-specific properties, this works across
|
|
154
|
-
// Safari, Chrome, Edge, and Firefox.
|
|
155
|
-
display: -webkit-box;
|
|
156
|
-
-webkit-line-clamp: @count;
|
|
157
|
-
-webkit-box-orient: vertical;
|
|
158
|
-
overflow: hidden;
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
.v-truncate-fade {
|
|
162
|
-
overflow: hidden;
|
|
163
|
-
-webkit-mask-image: linear-gradient(180deg, #000 @lh-md * 9em, transparent);
|
|
164
|
-
mask-image: linear-gradient(180deg, #000 @lh-md * 9em, transparent);
|
|
165
|
-
max-height: @lh-md * 12em;
|
|
166
|
-
|
|
167
|
-
&.v-truncate-fade__sm {
|
|
168
|
-
-webkit-mask-image: linear-gradient(180deg, #000 @lh-md * 3em, transparent);
|
|
169
|
-
mask-image: linear-gradient(180deg, #000 @lh-md * 3em, transparent);
|
|
170
|
-
max-height: @lh-md * 6em;
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
&.v-truncate-fade__lg {
|
|
174
|
-
-webkit-mask-image: linear-gradient(180deg, #000 @lh-md * 21em, transparent);
|
|
175
|
-
mask-image: linear-gradient(180deg, #000 @lh-md * 21em, transparent);
|
|
176
|
-
max-height: @lh-md * 24em;
|
|
177
|
-
}
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
// -- Whitespace
|
|
181
|
-
.ws-normal { white-space: normal !important; }
|
|
182
|
-
.ws-nowrap { white-space: nowrap !important; }
|
|
183
|
-
.ws-pre { white-space: pre !important; }
|
|
184
|
-
.ws-pre-wrap { white-space: pre-wrap !important; }
|
|
185
|
-
.ws-pre-line { white-space: pre-line !important; }
|
|
186
|
-
.ws-unset { white-space: unset !important; }
|
|
187
|
-
|
|
188
|
-
// -- Word Break
|
|
189
|
-
.wb-normal { word-break: normal !important; }
|
|
190
|
-
.wb-break-all { word-break: break-all !important; }
|
|
191
|
-
.wb-keep-all { word-break: keep-all !important; }
|
|
192
|
-
.wb-inherit { word-break: inherit !important; }
|
|
193
|
-
.wb-initial { word-break: initial !important; }
|
|
194
|
-
.wb-unset { word-break: unset !important; }
|
|
195
|
-
|
|
196
|
-
// -- Overflow Wrap
|
|
197
|
-
.ow-normal {
|
|
198
|
-
overflow-wrap: normal !important;
|
|
199
|
-
word-wrap: normal !important;
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
.ow-break-word {
|
|
203
|
-
overflow-wrap: break-word !important;
|
|
204
|
-
word-wrap: break-word !important;
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
.ow-inherit {
|
|
208
|
-
overflow-wrap: inherit !important;
|
|
209
|
-
word-wrap: inherit !important;
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
.ow-initial {
|
|
213
|
-
overflow-wrap: initial !important;
|
|
214
|
-
word-wrap: initial !important;
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
.ow-unset {
|
|
218
|
-
overflow-wrap: unset !important;
|
|
219
|
-
word-wrap: unset !important;
|
|
220
|
-
}
|
|
221
|
-
|
|
222
|
-
// -- Hyphenation
|
|
223
|
-
.hyphens-none { hyphens: none !important; }
|
|
224
|
-
.hyphens-auto {
|
|
225
|
-
-ms-hyphens: auto !important;
|
|
226
|
-
-webkit-hyphens: auto !important;
|
|
227
|
-
hyphens: auto !important;
|
|
228
|
-
}
|
|
229
|
-
.hyphens-unset { hyphens: unset !important; }
|
|
230
|
-
|
|
231
|
-
// -- Break word
|
|
232
|
-
.break-word {
|
|
233
|
-
word-break: break-word !important;
|
|
234
|
-
word-wrap: break-word !important;
|
|
235
|
-
overflow-wrap: break-word !important;
|
|
236
|
-
-webkit-hyphens: auto !important;
|
|
237
|
-
-moz-hyphens: auto !important;
|
|
238
|
-
-ms-hyphens: auto !important;
|
|
239
|
-
hyphens: auto !important;
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
// ============================================================================
|
|
243
|
-
// $ LISTS
|
|
244
|
-
// ----------------------------------------------------------------------------
|
|
245
|
-
ul,
|
|
246
|
-
ol {
|
|
247
|
-
padding: 0;
|
|
248
|
-
margin-left: 2.8em;
|
|
249
|
-
|
|
250
|
-
ul,
|
|
251
|
-
ol {
|
|
252
|
-
margin-bottom: 0;
|
|
253
|
-
}
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
ul { list-style-type: disc; }
|
|
257
|
-
ol { list-style-type: decimal; }
|
|
258
|
-
|
|
259
|
-
.list-reset {
|
|
260
|
-
list-style: none;
|
|
261
|
-
margin: 0;
|
|
262
|
-
padding: 0;
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
// -- List Style Types
|
|
266
|
-
.list-ls-none { list-style: none !important; }
|
|
267
|
-
.list-ls-disc { list-style-type: disc !important; }
|
|
268
|
-
.list-ls-decimal { list-style-type: decimal !important; }
|
|
269
|
-
.list-ls-unset { list-style-type: unset !important; }
|
|
270
|
-
|
|
271
|
-
// -- List Position
|
|
272
|
-
.list-inside { list-style-position: inside !important; }
|
|
273
|
-
.list-outside { list-style-position: outside !important; }
|
|
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: @fs-display4 !important; }
|
|
30
|
+
.fs-display3 { font-size: @fs-display3 !important; }
|
|
31
|
+
.fs-display2 { font-size: @fs-display2 !important; }
|
|
32
|
+
.fs-display1 { font-size: @fs-display1 !important; }
|
|
33
|
+
.fs-headline2 { font-size: @fs-headline2 !important; }
|
|
34
|
+
.fs-headline1 { font-size: @fs-headline1 !important; }
|
|
35
|
+
.fs-title { font-size: @fs-title !important; }
|
|
36
|
+
.fs-subheading { font-size: @fs-subheading !important; }
|
|
37
|
+
.fs-body3 { font-size: @fs-body3 !important; }
|
|
38
|
+
.fs-body2 { font-size: @fs-body2 !important; }
|
|
39
|
+
.fs-body1 { font-size: @fs-body1 !important; }
|
|
40
|
+
|
|
41
|
+
.fs-caption,
|
|
42
|
+
.fs-category { font-size: @fs-caption !important; }
|
|
43
|
+
.fs-fine { font-size: @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: 600;
|
|
60
|
+
text-transform: uppercase;
|
|
61
|
+
|
|
62
|
+
// If a top border is desired
|
|
63
|
+
&.has-border {
|
|
64
|
+
width: 100%;
|
|
65
|
+
padding: @su4 0;
|
|
66
|
+
border-top: 1px solid var(--bc-medium);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
// ============================================================================
|
|
71
|
+
// $$ TEXT COLORS
|
|
72
|
+
// ----------------------------------------------------------------------------
|
|
73
|
+
.fc-dark { color: var(--fc-dark) !important; }
|
|
74
|
+
.fc-medium { color: var(--fc-medium) !important; }
|
|
75
|
+
.fc-light { color: var(--fc-light) !important; }
|
|
76
|
+
|
|
77
|
+
// ============================================================================
|
|
78
|
+
// $ LINE HEIGHTS
|
|
79
|
+
// ----------------------------------------------------------------------------
|
|
80
|
+
.lh-xs { line-height: @lh-xs !important; }
|
|
81
|
+
.lh-sm { line-height: @lh-sm !important; }
|
|
82
|
+
.lh-md { line-height: @lh-md !important; }
|
|
83
|
+
.lh-lg { line-height: @lh-lg !important; }
|
|
84
|
+
.lh-xl { line-height: @lh-xl !important; }
|
|
85
|
+
.lh-xxl { line-height: @lh-xxl !important; }
|
|
86
|
+
.lh-unset { line-height: initial !important; }
|
|
87
|
+
|
|
88
|
+
// ============================================================================
|
|
89
|
+
// $$ TEXT STYLES & UTILITIES
|
|
90
|
+
// ----------------------------------------------------------------------------
|
|
91
|
+
// -- Font Family
|
|
92
|
+
.ff-sans { font-family: var(--ff-sans) !important; }
|
|
93
|
+
.ff-serif { font-family: var(--ff-serif) !important; }
|
|
94
|
+
.ff-mono { font-family: var(--ff-mono) !important; }
|
|
95
|
+
.ff-inherit { font-family: inherit !important; }
|
|
96
|
+
|
|
97
|
+
// -- Font Weight
|
|
98
|
+
.fw-normal { font-weight: 400 !important; }
|
|
99
|
+
.fw-bold { font-weight: 600 !important; }
|
|
100
|
+
|
|
101
|
+
// -- Font Styles
|
|
102
|
+
.fs-normal { font-style: normal !important; }
|
|
103
|
+
.fs-italic { font-style: italic !important; }
|
|
104
|
+
.fs-unset { font-style: unset !important; }
|
|
105
|
+
|
|
106
|
+
// -- Text Align
|
|
107
|
+
#stacks-internals #responsify('.ta-left', { text-align: left !important; });
|
|
108
|
+
#stacks-internals #responsify('.ta-center', { text-align: center !important; });
|
|
109
|
+
#stacks-internals #responsify('.ta-right', { text-align: right !important; });
|
|
110
|
+
.ta-justify { text-align: justify !important; }
|
|
111
|
+
.ta-unset { text-align: unset !important; }
|
|
112
|
+
|
|
113
|
+
// -- Text Decoration
|
|
114
|
+
.td-none { text-decoration: none !important; }
|
|
115
|
+
.td-underline { text-decoration: underline !important; }
|
|
116
|
+
|
|
117
|
+
// -- Text Transform
|
|
118
|
+
.tt-capitalize { text-transform: capitalize !important; }
|
|
119
|
+
.tt-lowercase { text-transform: lowercase !important; }
|
|
120
|
+
.tt-uppercase { text-transform: uppercase !important; }
|
|
121
|
+
.tt-none { text-transform: none !important; }
|
|
122
|
+
.tt-unset { text-transform: unset !important; }
|
|
123
|
+
|
|
124
|
+
// -- Text Truncate
|
|
125
|
+
.truncate {
|
|
126
|
+
overflow: hidden;
|
|
127
|
+
max-width: 100%;
|
|
128
|
+
text-overflow: ellipsis !important;
|
|
129
|
+
white-space: nowrap;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.v-truncate1 {
|
|
133
|
+
.truncation(1);
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.v-truncate2 {
|
|
137
|
+
.truncation(2);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.v-truncate3 {
|
|
141
|
+
.truncation(3);
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.v-truncate4 {
|
|
145
|
+
.truncation(4);
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.v-truncate5 {
|
|
149
|
+
.truncation(5);
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.truncation(@count) {
|
|
153
|
+
// Despite these all being webkit-specific properties, this works across
|
|
154
|
+
// Safari, Chrome, Edge, and Firefox.
|
|
155
|
+
display: -webkit-box;
|
|
156
|
+
-webkit-line-clamp: @count;
|
|
157
|
+
-webkit-box-orient: vertical;
|
|
158
|
+
overflow: hidden;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.v-truncate-fade {
|
|
162
|
+
overflow: hidden;
|
|
163
|
+
-webkit-mask-image: linear-gradient(180deg, #000 @lh-md * 9em, transparent);
|
|
164
|
+
mask-image: linear-gradient(180deg, #000 @lh-md * 9em, transparent);
|
|
165
|
+
max-height: @lh-md * 12em;
|
|
166
|
+
|
|
167
|
+
&.v-truncate-fade__sm {
|
|
168
|
+
-webkit-mask-image: linear-gradient(180deg, #000 @lh-md * 3em, transparent);
|
|
169
|
+
mask-image: linear-gradient(180deg, #000 @lh-md * 3em, transparent);
|
|
170
|
+
max-height: @lh-md * 6em;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
&.v-truncate-fade__lg {
|
|
174
|
+
-webkit-mask-image: linear-gradient(180deg, #000 @lh-md * 21em, transparent);
|
|
175
|
+
mask-image: linear-gradient(180deg, #000 @lh-md * 21em, transparent);
|
|
176
|
+
max-height: @lh-md * 24em;
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
// -- Whitespace
|
|
181
|
+
.ws-normal { white-space: normal !important; }
|
|
182
|
+
.ws-nowrap { white-space: nowrap !important; }
|
|
183
|
+
.ws-pre { white-space: pre !important; }
|
|
184
|
+
.ws-pre-wrap { white-space: pre-wrap !important; }
|
|
185
|
+
.ws-pre-line { white-space: pre-line !important; }
|
|
186
|
+
.ws-unset { white-space: unset !important; }
|
|
187
|
+
|
|
188
|
+
// -- Word Break
|
|
189
|
+
.wb-normal { word-break: normal !important; }
|
|
190
|
+
.wb-break-all { word-break: break-all !important; }
|
|
191
|
+
.wb-keep-all { word-break: keep-all !important; }
|
|
192
|
+
.wb-inherit { word-break: inherit !important; }
|
|
193
|
+
.wb-initial { word-break: initial !important; }
|
|
194
|
+
.wb-unset { word-break: unset !important; }
|
|
195
|
+
|
|
196
|
+
// -- Overflow Wrap
|
|
197
|
+
.ow-normal {
|
|
198
|
+
overflow-wrap: normal !important;
|
|
199
|
+
word-wrap: normal !important;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
.ow-break-word {
|
|
203
|
+
overflow-wrap: break-word !important;
|
|
204
|
+
word-wrap: break-word !important;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
.ow-inherit {
|
|
208
|
+
overflow-wrap: inherit !important;
|
|
209
|
+
word-wrap: inherit !important;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
.ow-initial {
|
|
213
|
+
overflow-wrap: initial !important;
|
|
214
|
+
word-wrap: initial !important;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
.ow-unset {
|
|
218
|
+
overflow-wrap: unset !important;
|
|
219
|
+
word-wrap: unset !important;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
// -- Hyphenation
|
|
223
|
+
.hyphens-none { hyphens: none !important; }
|
|
224
|
+
.hyphens-auto {
|
|
225
|
+
-ms-hyphens: auto !important;
|
|
226
|
+
-webkit-hyphens: auto !important;
|
|
227
|
+
hyphens: auto !important;
|
|
228
|
+
}
|
|
229
|
+
.hyphens-unset { hyphens: unset !important; }
|
|
230
|
+
|
|
231
|
+
// -- Break word
|
|
232
|
+
.break-word {
|
|
233
|
+
word-break: break-word !important;
|
|
234
|
+
word-wrap: break-word !important;
|
|
235
|
+
overflow-wrap: break-word !important;
|
|
236
|
+
-webkit-hyphens: auto !important;
|
|
237
|
+
-moz-hyphens: auto !important;
|
|
238
|
+
-ms-hyphens: auto !important;
|
|
239
|
+
hyphens: auto !important;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
// ============================================================================
|
|
243
|
+
// $ LISTS
|
|
244
|
+
// ----------------------------------------------------------------------------
|
|
245
|
+
ul,
|
|
246
|
+
ol {
|
|
247
|
+
padding: 0;
|
|
248
|
+
margin-left: 2.8em;
|
|
249
|
+
|
|
250
|
+
ul,
|
|
251
|
+
ol {
|
|
252
|
+
margin-bottom: 0;
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
ul { list-style-type: disc; }
|
|
257
|
+
ol { list-style-type: decimal; }
|
|
258
|
+
|
|
259
|
+
.list-reset {
|
|
260
|
+
list-style: none;
|
|
261
|
+
margin: 0;
|
|
262
|
+
padding: 0;
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
// -- List Style Types
|
|
266
|
+
.list-ls-none { list-style: none !important; }
|
|
267
|
+
.list-ls-disc { list-style-type: disc !important; }
|
|
268
|
+
.list-ls-decimal { list-style-type: decimal !important; }
|
|
269
|
+
.list-ls-unset { list-style-type: unset !important; }
|
|
270
|
+
|
|
271
|
+
// -- List Position
|
|
272
|
+
.list-inside { list-style-position: inside !important; }
|
|
273
|
+
.list-outside { list-style-position: outside !important; }
|