@stackoverflow/stacks 1.0.0 → 1.2.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/README.md +47 -47
- package/dist/controllers/s-popover.d.ts +11 -2
- package/dist/css/stacks.css +257 -8
- package/dist/css/stacks.min.css +1 -1
- package/dist/js/stacks.js +18 -2
- package/dist/js/stacks.min.js +1 -1
- package/lib/css/atomic/borders.less +378 -378
- package/lib/css/atomic/colors.less +209 -209
- package/lib/css/atomic/flex.less +375 -375
- package/lib/css/atomic/grid.less +174 -174
- package/lib/css/atomic/misc.less +343 -343
- package/lib/css/atomic/spacing.less +342 -314
- package/lib/css/atomic/typography.less +273 -273
- package/lib/css/atomic/width-height.less +194 -194
- package/lib/css/base/body.less +44 -44
- package/lib/css/base/configuration-static.less +61 -61
- package/lib/css/base/icons.less +20 -20
- package/lib/css/base/internals.less +220 -220
- package/lib/css/base/reset-meyer.less +64 -64
- package/lib/css/base/reset-normalize.less +449 -449
- package/lib/css/base/reset.less +20 -20
- package/lib/css/components/activity-indicator.less +44 -45
- package/lib/css/components/avatars.less +189 -189
- package/lib/css/components/badges.less +254 -209
- package/lib/css/components/banners.less +80 -80
- package/lib/css/components/blank-states.less +26 -26
- package/lib/css/components/breadcrumbs.less +44 -44
- package/lib/css/components/button-groups.less +104 -104
- package/lib/css/components/buttons.less +665 -665
- package/lib/css/components/cards.less +44 -44
- package/lib/css/components/code-blocks.less +130 -130
- package/lib/css/components/collapsible.less +104 -104
- package/lib/css/components/inputs.less +728 -728
- package/lib/css/components/link-previews.less +136 -136
- package/lib/css/components/links.less +218 -218
- package/lib/css/components/menu.less +47 -47
- package/lib/css/components/modals.less +133 -133
- package/lib/css/components/navigation.less +146 -146
- package/lib/css/components/notices.less +233 -233
- package/lib/css/components/page-titles.less +60 -60
- package/lib/css/components/pagination.less +55 -55
- package/lib/css/components/popovers.less +197 -197
- package/lib/css/components/post-summary.less +436 -425
- package/lib/css/components/progress-bars.less +330 -330
- package/lib/css/components/prose.less +503 -503
- package/lib/css/components/spinner.less +107 -107
- package/lib/css/components/tables.less +341 -341
- package/lib/css/components/tags.less +236 -236
- package/lib/css/components/toggle-switches.less +144 -144
- package/lib/css/components/topbar.less +427 -427
- package/lib/css/components/uploader.less +210 -210
- package/lib/css/components/user-cards.less +169 -169
- package/lib/css/components/widget-dynamic.less +33 -33
- package/lib/css/components/widget-static.less +273 -273
- package/lib/css/exports/constants-colors.less +1092 -1092
- package/lib/css/exports/constants-helpers.less +108 -108
- package/lib/css/exports/constants-type.less +153 -153
- package/lib/css/exports/exports.less +15 -15
- package/lib/css/exports/mixins.less +237 -237
- package/lib/css/stacks-dynamic.less +35 -35
- package/lib/css/stacks-static.less +86 -86
- package/lib/css/stacks.less +13 -13
- package/lib/ts/controllers/index.ts +7 -7
- package/lib/ts/controllers/s-expandable-control.ts +188 -188
- package/lib/ts/controllers/s-modal.ts +321 -321
- package/lib/ts/controllers/s-navigation-tablist.ts +117 -117
- package/lib/ts/controllers/s-popover.ts +567 -547
- package/lib/ts/controllers/s-table.ts +220 -220
- package/lib/ts/controllers/s-tooltip.ts +246 -246
- package/lib/ts/controllers/s-uploader.ts +172 -172
- package/lib/ts/index.ts +20 -20
- package/lib/ts/stacks.ts +88 -88
- package/lib/tsconfig.json +13 -13
- package/package.json +86 -87
|
@@ -1,425 +1,436 @@
|
|
|
1
|
-
//
|
|
2
|
-
// STACK OVERFLOW
|
|
3
|
-
// POST SUMMARY
|
|
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
|
-
|
|
10
|
-
.s-post-summary {
|
|
11
|
-
position: relative;
|
|
12
|
-
display: flex;
|
|
13
|
-
border-bottom: 1px solid var(--bc-light);
|
|
14
|
-
padding: var(--su16);
|
|
15
|
-
|
|
16
|
-
&:last-child {
|
|
17
|
-
border-bottom-width: 0;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
#stacks-internals #screen-md({
|
|
21
|
-
flex-direction: column;
|
|
22
|
-
});
|
|
23
|
-
|
|
24
|
-
&.s-post-summary__minimal {
|
|
25
|
-
flex-direction: column;
|
|
26
|
-
|
|
27
|
-
.s-post-summary--stats {
|
|
28
|
-
width: auto;
|
|
29
|
-
flex-direction: row;
|
|
30
|
-
align-items: center;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.s-post-summary--content {
|
|
34
|
-
width: 100%;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
&.s-post-summary__legacy {
|
|
39
|
-
padding-left: 0; // Since stats have padding, we don't need it on the parent
|
|
40
|
-
|
|
41
|
-
#stacks-internals #screen-md({
|
|
42
|
-
padding-left: var(--su16);
|
|
43
|
-
});
|
|
44
|
-
|
|
45
|
-
.s-post-summary--stats {
|
|
46
|
-
width: auto;
|
|
47
|
-
flex-direction: row;
|
|
48
|
-
align-items: center;
|
|
49
|
-
gap: var(--su2);
|
|
50
|
-
|
|
51
|
-
.s-post-summary--stats-item {
|
|
52
|
-
min-width: var(--su64);
|
|
53
|
-
height: var(--su48);
|
|
54
|
-
flex-direction: column;
|
|
55
|
-
gap: 0;
|
|
56
|
-
font-size: var(--fs-caption);
|
|
57
|
-
|
|
58
|
-
&.s-post-summary--stats-item__emphasized {
|
|
59
|
-
color: inherit;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
&.has-accepted-answer .svg-icon {
|
|
63
|
-
display: none;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
.s-post-summary--stats-item-number {
|
|
67
|
-
font-weight: normal;
|
|
68
|
-
font-size: var(--fs-body3);
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
&.is-deleted,
|
|
72
|
-
&.is-published,
|
|
73
|
-
&.is-draft,
|
|
74
|
-
&.is-review,
|
|
75
|
-
&.is-closed,
|
|
76
|
-
&.is-archived,
|
|
77
|
-
&.is-pinned {
|
|
78
|
-
display: none;
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
#stacks-internals #screen-md({
|
|
83
|
-
flex-direction: row;
|
|
84
|
-
align-items: center;
|
|
85
|
-
gap: var(--su8);
|
|
86
|
-
|
|
87
|
-
.s-post-summary--stats-item {
|
|
88
|
-
min-width: auto;
|
|
89
|
-
height: auto;
|
|
90
|
-
flex-direction: row;
|
|
91
|
-
gap: 3px; // HTML spacing
|
|
92
|
-
|
|
93
|
-
.s-post-summary--stats-item-number {
|
|
94
|
-
font-size: inherit;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
&.s-post-summary--stats-item__emphasized {
|
|
98
|
-
color: var(--fc-dark);
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
&.has-accepted-answer .svg-icon {
|
|
102
|
-
display: block;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
&.is-deleted,
|
|
106
|
-
&.is-published,
|
|
107
|
-
&.is-draft,
|
|
108
|
-
&.is-review,
|
|
109
|
-
&.is-closed,
|
|
110
|
-
&.is-archived,
|
|
111
|
-
&.is-pinned {
|
|
112
|
-
display: block;
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
});
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
// [1] To override .s-btn class attributes
|
|
121
|
-
.s-post-summary--content-menu-button {
|
|
122
|
-
position: absolute !important; // [1]
|
|
123
|
-
top: var(--su8);
|
|
124
|
-
right: var(--su8);
|
|
125
|
-
padding: var(--su8) !important; // [1]
|
|
126
|
-
|
|
127
|
-
.svg-icon {
|
|
128
|
-
margin: 0 !important;
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
.s-post-summary--stats {
|
|
133
|
-
gap: var(--su6);
|
|
134
|
-
margin-right: var(--su16);
|
|
135
|
-
margin-bottom: var(--su4);
|
|
136
|
-
width: calc(var(--su96) + var(--su12));
|
|
137
|
-
display: flex;
|
|
138
|
-
flex-direction: column;
|
|
139
|
-
flex-shrink: 0;
|
|
140
|
-
flex-wrap: wrap;
|
|
141
|
-
align-items: flex-end;
|
|
142
|
-
font-size: var(--fs-body1);
|
|
143
|
-
color: var(--fc-light);
|
|
144
|
-
|
|
145
|
-
.s-post-summary--stats-item {
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
&.
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
&.
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
&.
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
color: var(--
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
color: var(--
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
color: var(--
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
color: var(--
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
}
|
|
297
|
-
}
|
|
298
|
-
|
|
299
|
-
.s-post-summary--content-
|
|
300
|
-
|
|
301
|
-
margin-bottom: var(--
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
}
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
}
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
width:
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
.s-post-summary__deleted {
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
1
|
+
//
|
|
2
|
+
// STACK OVERFLOW
|
|
3
|
+
// POST SUMMARY
|
|
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
|
+
|
|
10
|
+
.s-post-summary {
|
|
11
|
+
position: relative;
|
|
12
|
+
display: flex;
|
|
13
|
+
border-bottom: 1px solid var(--bc-light);
|
|
14
|
+
padding: var(--su16);
|
|
15
|
+
|
|
16
|
+
&:last-child {
|
|
17
|
+
border-bottom-width: 0;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
#stacks-internals #screen-md({
|
|
21
|
+
flex-direction: column;
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
&.s-post-summary__minimal {
|
|
25
|
+
flex-direction: column;
|
|
26
|
+
|
|
27
|
+
.s-post-summary--stats {
|
|
28
|
+
width: auto;
|
|
29
|
+
flex-direction: row;
|
|
30
|
+
align-items: center;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.s-post-summary--content {
|
|
34
|
+
width: 100%;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
&.s-post-summary__legacy {
|
|
39
|
+
padding-left: 0; // Since stats have padding, we don't need it on the parent
|
|
40
|
+
|
|
41
|
+
#stacks-internals #screen-md({
|
|
42
|
+
padding-left: var(--su16);
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
.s-post-summary--stats {
|
|
46
|
+
width: auto;
|
|
47
|
+
flex-direction: row;
|
|
48
|
+
align-items: center;
|
|
49
|
+
gap: var(--su2);
|
|
50
|
+
|
|
51
|
+
.s-post-summary--stats-item {
|
|
52
|
+
min-width: var(--su64);
|
|
53
|
+
height: var(--su48);
|
|
54
|
+
flex-direction: column;
|
|
55
|
+
gap: 0;
|
|
56
|
+
font-size: var(--fs-caption);
|
|
57
|
+
|
|
58
|
+
&.s-post-summary--stats-item__emphasized {
|
|
59
|
+
color: inherit;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
&.has-accepted-answer .svg-icon {
|
|
63
|
+
display: none;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.s-post-summary--stats-item-number {
|
|
67
|
+
font-weight: normal;
|
|
68
|
+
font-size: var(--fs-body3);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
&.is-deleted,
|
|
72
|
+
&.is-published,
|
|
73
|
+
&.is-draft,
|
|
74
|
+
&.is-review,
|
|
75
|
+
&.is-closed,
|
|
76
|
+
&.is-archived,
|
|
77
|
+
&.is-pinned {
|
|
78
|
+
display: none;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
#stacks-internals #screen-md({
|
|
83
|
+
flex-direction: row;
|
|
84
|
+
align-items: center;
|
|
85
|
+
gap: var(--su8);
|
|
86
|
+
|
|
87
|
+
.s-post-summary--stats-item {
|
|
88
|
+
min-width: auto;
|
|
89
|
+
height: auto;
|
|
90
|
+
flex-direction: row;
|
|
91
|
+
gap: 3px; // HTML spacing
|
|
92
|
+
|
|
93
|
+
.s-post-summary--stats-item-number {
|
|
94
|
+
font-size: inherit;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
&.s-post-summary--stats-item__emphasized {
|
|
98
|
+
color: var(--fc-dark);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
&.has-accepted-answer .svg-icon {
|
|
102
|
+
display: block;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
&.is-deleted,
|
|
106
|
+
&.is-published,
|
|
107
|
+
&.is-draft,
|
|
108
|
+
&.is-review,
|
|
109
|
+
&.is-closed,
|
|
110
|
+
&.is-archived,
|
|
111
|
+
&.is-pinned {
|
|
112
|
+
display: block;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
// [1] To override .s-btn class attributes
|
|
121
|
+
.s-post-summary--content-menu-button {
|
|
122
|
+
position: absolute !important; // [1]
|
|
123
|
+
top: var(--su8);
|
|
124
|
+
right: var(--su8);
|
|
125
|
+
padding: var(--su8) !important; // [1]
|
|
126
|
+
|
|
127
|
+
.svg-icon {
|
|
128
|
+
margin: 0 !important;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.s-post-summary--stats {
|
|
133
|
+
gap: var(--su6);
|
|
134
|
+
margin-right: var(--su16);
|
|
135
|
+
margin-bottom: var(--su4);
|
|
136
|
+
width: calc(var(--su96) + var(--su12));
|
|
137
|
+
display: flex;
|
|
138
|
+
flex-direction: column;
|
|
139
|
+
flex-shrink: 0;
|
|
140
|
+
flex-wrap: wrap;
|
|
141
|
+
align-items: flex-end;
|
|
142
|
+
font-size: var(--fs-body1);
|
|
143
|
+
color: var(--fc-light);
|
|
144
|
+
|
|
145
|
+
.s-post-summary--stats-item {
|
|
146
|
+
&:not(.s-badge) {
|
|
147
|
+
display: inline-flex;
|
|
148
|
+
gap: 0.3em;
|
|
149
|
+
align-items: center;
|
|
150
|
+
justify-content: center;
|
|
151
|
+
white-space: nowrap;
|
|
152
|
+
border: 1px solid transparent;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
&.s-post-summary--stats-item__emphasized {
|
|
156
|
+
color: var(--fc-dark);
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.s-post-summary--stats-item-number {
|
|
160
|
+
font-weight: 500;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
&.s-badge {
|
|
164
|
+
font-size: var(--fs-body1);
|
|
165
|
+
line-height: var(--lh-md);
|
|
166
|
+
padding: var(--su2) var(--su4);
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
&.has-answers,
|
|
170
|
+
// TODO DEPRECATED: Remove .has-bounty styling
|
|
171
|
+
&.has-bounty,
|
|
172
|
+
&.is-deleted,
|
|
173
|
+
&.is-published,
|
|
174
|
+
&.is-draft,
|
|
175
|
+
&.is-review,
|
|
176
|
+
&.is-closed,
|
|
177
|
+
&.is-archived,
|
|
178
|
+
&.is-pinned {
|
|
179
|
+
border-radius: var(--br-sm);
|
|
180
|
+
padding: var(--su2) var(--su4);
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
&.has-answers {
|
|
184
|
+
color: var(--green-600);
|
|
185
|
+
border: 1px solid var(--green-600);
|
|
186
|
+
|
|
187
|
+
&.has-accepted-answer {
|
|
188
|
+
color: @white;
|
|
189
|
+
background-color: var(--green-500);
|
|
190
|
+
border-color: var(--green-500);
|
|
191
|
+
|
|
192
|
+
.highcontrast-mode({
|
|
193
|
+
color: var(--white);
|
|
194
|
+
});
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
// TODO DEPRECATED: Remove and replace with references with `s-badge s-badge__bounty`
|
|
199
|
+
&.has-bounty {
|
|
200
|
+
color: var(--white);
|
|
201
|
+
background-color: var(--blue-600);
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
&.is-warm {
|
|
205
|
+
color: var(--orange-800);
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
&.is-hot {
|
|
209
|
+
color: var(--orange-600);
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
&.is-supernova {
|
|
213
|
+
color: var(--orange-400);
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
&.is-published {
|
|
217
|
+
color: var(--black-800);
|
|
218
|
+
background-color: var(--black-050);
|
|
219
|
+
}
|
|
220
|
+
// TODO DEPRECATED: Remove and replace with references with `s-badge s-badge__info s-badge__icon`
|
|
221
|
+
&.is-draft {
|
|
222
|
+
color: var(--blue-900);
|
|
223
|
+
background-color: var(--blue-100);
|
|
224
|
+
border-color: var(--blue-600);
|
|
225
|
+
}
|
|
226
|
+
// TODO DEPRECATED: Remove and replace with references with `s-badge s-badge__warning s-badge__icon`
|
|
227
|
+
&.is-review {
|
|
228
|
+
color: var(--yellow-900);
|
|
229
|
+
background-color: var(--yellow-100);
|
|
230
|
+
border-color: var(--yellow-600);
|
|
231
|
+
}
|
|
232
|
+
// TODO DEPRECATED: Remove and replace with references with `s-badge s-badge__danger s-badge__icon`
|
|
233
|
+
&.is-closed {
|
|
234
|
+
color: var(--red-900);
|
|
235
|
+
background-color: var(--red-100);
|
|
236
|
+
border-color: var(--red-600);
|
|
237
|
+
}
|
|
238
|
+
// TODO DEPRECATED: Remove and replace with references with `s-badge s-badge__muted s-badge__icon`
|
|
239
|
+
&.is-archived {
|
|
240
|
+
color: var(--black-900);
|
|
241
|
+
background-color: var(--black-100);
|
|
242
|
+
border-color: var(--black-600);
|
|
243
|
+
}
|
|
244
|
+
// TODO DEPRECATED: Remove and replace with references with `s-badge s-badge__muted s-badge__filled s-badge__icon`
|
|
245
|
+
&.is-pinned {
|
|
246
|
+
color: var(--white);
|
|
247
|
+
background-color: var(--black-700);
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
#stacks-internals #screen-md({
|
|
252
|
+
flex-direction: row;
|
|
253
|
+
align-items: center;
|
|
254
|
+
width: auto;
|
|
255
|
+
});
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
.s-post-summary--content {
|
|
259
|
+
flex-grow: 1;
|
|
260
|
+
max-width: 100%;
|
|
261
|
+
|
|
262
|
+
.s-post-summary--content-title {
|
|
263
|
+
display: block;
|
|
264
|
+
font-size: var(--fs-body3);
|
|
265
|
+
margin-top: -0.15rem; // Optical alignment to compensate for title's containing block
|
|
266
|
+
margin-bottom: 0.3846rem;
|
|
267
|
+
padding-right: var(--su24);
|
|
268
|
+
line-height: var(--lh-md);
|
|
269
|
+
font-weight: normal;
|
|
270
|
+
.break-word;
|
|
271
|
+
|
|
272
|
+
.iconShield {
|
|
273
|
+
color: var(--fc-light);
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
.svg-icon {
|
|
277
|
+
vertical-align: text-bottom; // Optical alignment
|
|
278
|
+
position: relative;
|
|
279
|
+
top: -1px;
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
a {
|
|
283
|
+
.break-word;
|
|
284
|
+
|
|
285
|
+
color: var(--theme-post-title-color);
|
|
286
|
+
font-family: var(--theme-post-title-font-family);
|
|
287
|
+
|
|
288
|
+
&:visited {
|
|
289
|
+
color: var(--theme-post-title-color-visited);
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
&:hover,
|
|
293
|
+
&:active {
|
|
294
|
+
color: var(--theme-post-title-color-hover);
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
.s-post-summary--content-type {
|
|
300
|
+
color: var(--fc-medium);
|
|
301
|
+
margin-bottom: var(--su4);
|
|
302
|
+
|
|
303
|
+
.svg-icon {
|
|
304
|
+
margin-left: calc(var(--su2) * -1);
|
|
305
|
+
color: var(--fc-light);
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
.s-post-summary--content-excerpt {
|
|
310
|
+
margin-top: calc(var(--su2) * -1);
|
|
311
|
+
margin-bottom: var(--su8);
|
|
312
|
+
font-family: var(--theme-post-body-font-family);
|
|
313
|
+
color: var(--fc-medium);
|
|
314
|
+
.v-truncate2;
|
|
315
|
+
.break-word;
|
|
316
|
+
|
|
317
|
+
&.s-post-summary--content-excerpt__sm {
|
|
318
|
+
.v-truncate1;
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
&.s-post-summary--content-excerpt__md {
|
|
322
|
+
.v-truncate3;
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
&.s-post-summary--content-excerpt__lg {
|
|
326
|
+
.v-truncate4;
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
.s-post-summary--meta {
|
|
332
|
+
display: flex;
|
|
333
|
+
align-items: center;
|
|
334
|
+
justify-content: space-between;
|
|
335
|
+
flex-wrap: wrap;
|
|
336
|
+
column-gap: var(--su6);
|
|
337
|
+
row-gap: var(--su8);
|
|
338
|
+
|
|
339
|
+
.s-post-summary--meta-tags {
|
|
340
|
+
display: flex;
|
|
341
|
+
flex-wrap: wrap;
|
|
342
|
+
gap: var(--su4);
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
.s-user-card {
|
|
346
|
+
flex-wrap: wrap;
|
|
347
|
+
margin-left: auto;
|
|
348
|
+
justify-content: flex-end;
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
.s-post-summary--answer {
|
|
353
|
+
position: relative;
|
|
354
|
+
margin: var(--su16) 1em 0 1em;
|
|
355
|
+
padding: 0.5em 0 0.5em calc(1em + var(--su4));
|
|
356
|
+
|
|
357
|
+
+ .s-post-summary--answer {
|
|
358
|
+
margin-top: var(--su16);
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
&:before {
|
|
362
|
+
content: "";
|
|
363
|
+
display: block;
|
|
364
|
+
position: absolute;
|
|
365
|
+
top: 0;
|
|
366
|
+
bottom: 0;
|
|
367
|
+
left: 0;
|
|
368
|
+
width: var(--su4);
|
|
369
|
+
border-radius: var(--su8);
|
|
370
|
+
background: var(--black-150);
|
|
371
|
+
|
|
372
|
+
.highcontrast-mode({
|
|
373
|
+
background: var(--black-600);
|
|
374
|
+
});
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
.s-post-summary--stats {
|
|
378
|
+
width: auto;
|
|
379
|
+
flex-direction: row;
|
|
380
|
+
align-items: center;
|
|
381
|
+
margin-bottom: var(--su4);
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
.s-post-summary--answer-excerpt {
|
|
385
|
+
color: var(--black-600);
|
|
386
|
+
margin-bottom: var(--su8);
|
|
387
|
+
.v-truncate4;
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
.s-post-summary__watched {
|
|
392
|
+
background-color: var(--yellow-050);
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
.s-post-summary__deleted {
|
|
396
|
+
background-color: var(--red-050);
|
|
397
|
+
|
|
398
|
+
.is-deleted {
|
|
399
|
+
color: @white;
|
|
400
|
+
background-color: var(--red-500);
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
.s-post-summary__ignored,
|
|
405
|
+
.s-post-summary__deleted {
|
|
406
|
+
.s-post-summary--content > *:not(.s-post-summary--content-menu-button) {
|
|
407
|
+
opacity: 0.6;
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
// TODO DEPRECATED remove `:not(.is-deleted)`
|
|
411
|
+
.s-post-summary--stats-item:not(.s-badge):not(.is-deleted) {
|
|
412
|
+
opacity: 0.6;
|
|
413
|
+
filter: grayscale(100%);
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
.s-post-summary--content-title a {
|
|
417
|
+
color: var(--black-600);
|
|
418
|
+
|
|
419
|
+
&:hover,
|
|
420
|
+
&:active {
|
|
421
|
+
color: var(--black-500);
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
&:visited {
|
|
425
|
+
color: var(--black-700);
|
|
426
|
+
}
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
.s-post-summary--content-excerpt {
|
|
430
|
+
color: var(--black-500);
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
.s-post-summary--meta {
|
|
434
|
+
filter: grayscale(100%);
|
|
435
|
+
}
|
|
436
|
+
}
|