@stackoverflow/stacks 1.0.0-beta.0 → 1.1.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.
Files changed (74) hide show
  1. package/README.md +47 -47
  2. package/dist/controllers/s-popover.d.ts +11 -2
  3. package/dist/css/stacks.css +214 -3
  4. package/dist/css/stacks.min.css +1 -1
  5. package/dist/js/stacks.js +18 -2
  6. package/dist/js/stacks.min.js +1 -1
  7. package/lib/css/atomic/borders.less +378 -378
  8. package/lib/css/atomic/colors.less +209 -209
  9. package/lib/css/atomic/flex.less +375 -375
  10. package/lib/css/atomic/grid.less +174 -174
  11. package/lib/css/atomic/misc.less +343 -343
  12. package/lib/css/atomic/spacing.less +342 -314
  13. package/lib/css/atomic/typography.less +273 -273
  14. package/lib/css/atomic/width-height.less +194 -194
  15. package/lib/css/base/body.less +44 -44
  16. package/lib/css/base/configuration-static.less +61 -61
  17. package/lib/css/base/icons.less +20 -20
  18. package/lib/css/base/internals.less +220 -220
  19. package/lib/css/base/reset-meyer.less +64 -64
  20. package/lib/css/base/reset-normalize.less +449 -449
  21. package/lib/css/base/reset.less +20 -20
  22. package/lib/css/components/activity-indicator.less +44 -45
  23. package/lib/css/components/avatars.less +189 -189
  24. package/lib/css/components/badges.less +209 -209
  25. package/lib/css/components/banners.less +80 -80
  26. package/lib/css/components/blank-states.less +26 -26
  27. package/lib/css/components/breadcrumbs.less +44 -44
  28. package/lib/css/components/button-groups.less +104 -104
  29. package/lib/css/components/buttons.less +665 -665
  30. package/lib/css/components/cards.less +44 -44
  31. package/lib/css/components/code-blocks.less +130 -130
  32. package/lib/css/components/collapsible.less +104 -104
  33. package/lib/css/components/inputs.less +728 -728
  34. package/lib/css/components/link-previews.less +136 -136
  35. package/lib/css/components/links.less +218 -218
  36. package/lib/css/components/menu.less +47 -47
  37. package/lib/css/components/modals.less +133 -133
  38. package/lib/css/components/navigation.less +146 -146
  39. package/lib/css/components/notices.less +233 -233
  40. package/lib/css/components/page-titles.less +60 -60
  41. package/lib/css/components/pagination.less +55 -55
  42. package/lib/css/components/popovers.less +197 -197
  43. package/lib/css/components/post-summary.less +425 -425
  44. package/lib/css/components/progress-bars.less +330 -330
  45. package/lib/css/components/prose.less +503 -503
  46. package/lib/css/components/spinner.less +107 -107
  47. package/lib/css/components/tables.less +341 -341
  48. package/lib/css/components/tags.less +236 -236
  49. package/lib/css/components/toggle-switches.less +144 -144
  50. package/lib/css/components/topbar.less +427 -427
  51. package/lib/css/components/uploader.less +210 -210
  52. package/lib/css/components/user-cards.less +169 -169
  53. package/lib/css/components/widget-dynamic.less +33 -33
  54. package/lib/css/components/widget-static.less +273 -273
  55. package/lib/css/exports/constants-colors.less +1092 -1092
  56. package/lib/css/exports/constants-helpers.less +108 -108
  57. package/lib/css/exports/constants-type.less +153 -153
  58. package/lib/css/exports/exports.less +15 -15
  59. package/lib/css/exports/mixins.less +237 -237
  60. package/lib/css/stacks-dynamic.less +35 -35
  61. package/lib/css/stacks-static.less +86 -86
  62. package/lib/css/stacks.less +13 -13
  63. package/lib/ts/controllers/index.ts +7 -7
  64. package/lib/ts/controllers/s-expandable-control.ts +188 -188
  65. package/lib/ts/controllers/s-modal.ts +321 -321
  66. package/lib/ts/controllers/s-navigation-tablist.ts +117 -117
  67. package/lib/ts/controllers/s-popover.ts +567 -547
  68. package/lib/ts/controllers/s-table.ts +220 -220
  69. package/lib/ts/controllers/s-tooltip.ts +246 -246
  70. package/lib/ts/controllers/s-uploader.ts +172 -172
  71. package/lib/ts/index.ts +20 -20
  72. package/lib/ts/stacks.ts +88 -88
  73. package/lib/tsconfig.json +13 -13
  74. package/package.json +86 -87
@@ -1,194 +1,194 @@
1
- //
2
- // STACK OVERFLOW
3
- // WIDTH & HEIGHT
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
- // • WIDTH
10
- // • PERCENTAGE
11
- // • STATIC
12
- // • MAX-WIDTH
13
- // • MIN-WIDTH
14
- // • HEIGHT
15
- // • PERCENTAGE
16
- // • STATIC
17
- // • MAX-HEIGHT
18
- // • MIN-HEIGHT
19
- //
20
- // ============================================================================
21
- // $ WIDTH
22
- // ----------------------------------------------------------------------------
23
- // $$ PERCENTAGE AND VIEWPORT UNITS
24
- .w0 { width: 0 !important; }
25
- .w10 { width: 10% !important; }
26
- .w20 { width: 20% !important; }
27
- #stacks-internals #responsify('.w25', { width: 25% !important; });
28
- .w30 { width: 30% !important; }
29
- #stacks-internals #responsify('.w33', { width: 33.33333% !important; });
30
- .w40 { width: 40% !important; }
31
- #stacks-internals #responsify('.w50', { width: 50% !important; });
32
- .w60 { width: 60% !important; }
33
- #stacks-internals #responsify('.w66', { width: 66.66667% !important; });
34
- .w70 { width: 70% !important; }
35
- #stacks-internals #responsify('.w75', { width: 75% !important; });
36
- .w80 { width: 80% !important; }
37
- .w90 { width: 90% !important; }
38
- #stacks-internals #responsify('.w100', { width: 100% !important; });
39
- #stacks-internals #responsify('.w-auto', { width: auto !important; });
40
- #stacks-internals #responsify('.w-screen', { width: 100vw !important; });
41
-
42
- // $$ STATIC
43
- .ws0,
44
- .w0 { width: 0 !important; }
45
- .ws1 { width: var(--s-step) !important; }
46
- .ws2 { width: calc(var(--s-step) * 2) !important; }
47
- .ws3 { width: calc(var(--s-step) * 3) !important; }
48
- .ws4 { width: calc(var(--s-step) * 4) !important; }
49
- .ws5 { width: calc(var(--s-step) * 5) !important; }
50
- .ws6 { width: calc(var(--s-step) * 6) !important; }
51
- .ws7 { width: calc(var(--s-step) * 7) !important; }
52
- .ws8 { width: calc(var(--s-step) * 8) !important; }
53
- .ws9 { width: calc(var(--s-step) * 9) !important; }
54
- .ws10 { width: calc(var(--s-step) * 10) !important; }
55
- .ws11 { width: calc(var(--s-step) * 11) !important; }
56
- .ws12 { width: var(--s-full) !important; }
57
-
58
- // $$ SPACING UNITS
59
- .w2 { width: var(--su-static2) !important; }
60
- .w4 { width: var(--su-static4) !important; }
61
- .w6 { width: var(--su-static6) !important; }
62
- .w8 { width: var(--su-static8) !important; }
63
- .w12 { width: var(--su-static12) !important; }
64
- .w16 { width: var(--su-static16) !important; }
65
- .w24 { width: var(--su-static24) !important; }
66
- .w32 { width: var(--su-static32) !important; }
67
- .w48 { width: var(--su-static48) !important; }
68
- .w64 { width: var(--su-static64) !important; }
69
- .w96 { width: var(--su-static96) !important; }
70
- .w128 { width: var(--su-static128) !important; }
71
-
72
- // ============================================================================
73
- // $ MAX-WIDTH
74
- // ----------------------------------------------------------------------------
75
- .wmx0 { max-width: 0 !important; }
76
- .wmx1 { max-width: var(--s-step) !important; }
77
- .wmx2 { max-width: calc(var(--s-step) * 2) !important; }
78
- .wmx25 { max-width: 25% !important; }
79
- .wmx3 { max-width: calc(var(--s-step) * 3) !important; }
80
- .wmx4 { max-width: calc(var(--s-step) * 4) !important; }
81
- .wmx5 { max-width: calc(var(--s-step) * 5) !important; }
82
- .wmx50 { max-width: 50% !important; }
83
- .wmx6 { max-width: calc(var(--s-step) * 6) !important; }
84
- .wmx7 { max-width: calc(var(--s-step) * 7) !important; }
85
- .wmx75 { max-width: 75% !important; }
86
- .wmx8 { max-width: calc(var(--s-step) * 8) !important; }
87
- .wmx9 { max-width: calc(var(--s-step) * 9) !important; }
88
- .wmx10 { max-width: calc(var(--s-step) * 10) !important; }
89
- .wmx11 { max-width: calc(var(--s-step) * 11) !important; }
90
- .wmx12 { max-width: var(--s-full) !important; }
91
- #stacks-internals #responsify('.wmx100', { max-width: 100% !important; });
92
- #stacks-internals #responsify('.wmx-initial', { max-width: initial !important; });
93
- #stacks-internals #responsify('.wmx-screen', { max-width: 100vw !important; });
94
-
95
- // ============================================================================
96
- // $ MIN-WIDTH
97
- // ----------------------------------------------------------------------------
98
- .wmn0 { min-width: 0 !important; }
99
- .wmn1 { min-width: var(--s-step) !important; }
100
- .wmn2 { min-width: calc(var(--s-step) * 2) !important; }
101
- .wmn25 { min-width: 25% !important; }
102
- .wmn3 { min-width: calc(var(--s-step) * 3) !important; }
103
- .wmn4 { min-width: calc(var(--s-step) * 4) !important; }
104
- .wmn5 { min-width: calc(var(--s-step) * 5) !important; }
105
- .wmn50 { min-width: 50% !important; }
106
- .wmn6 { min-width: calc(var(--s-step) * 6) !important; }
107
- .wmn7 { min-width: calc(var(--s-step) * 7) !important; }
108
- .wmn75 { min-width: 75% !important; }
109
- .wmn8 { min-width: calc(var(--s-step) * 8) !important; }
110
- .wmn9 { min-width: calc(var(--s-step) * 9) !important; }
111
- .wmn10 { min-width: calc(var(--s-step) * 10) !important; }
112
- .wmn11 { min-width: calc(var(--s-step) * 11) !important; }
113
- .wmn12 { min-width: var(--s-full) !important; }
114
- #stacks-internals #responsify('.wmn100', { min-width: 100% !important; });
115
- #stacks-internals #responsify('.wmn-initial', { min-width: initial !important; });
116
-
117
- // ============================================================================
118
- // $ HEIGHT
119
- // ----------------------------------------------------------------------------
120
- // $$ PERCENTAGE AND VIEWPORT UNITS
121
- .h0 { height: 0 !important; }
122
- #stacks-internals #responsify('.h100', { height: 100% !important; });
123
- #stacks-internals #responsify('.h-auto', { height: auto !important; });
124
- #stacks-internals #responsify('.h-screen', { height: 100vh !important; });
125
-
126
- // $$ STATIC
127
- .hs0,
128
- .h0 { height: 0 !important; }
129
- .hs1 { height: var(--s-step) !important; }
130
- .hs2 { height: calc(var(--s-step) * 2) !important; }
131
- .hs3 { height: calc(var(--s-step) * 3) !important; }
132
- .hs4 { height: calc(var(--s-step) * 4) !important; }
133
- .hs5 { height: calc(var(--s-step) * 5) !important; }
134
- .hs6 { height: calc(var(--s-step) * 6) !important; }
135
- .hs7 { height: calc(var(--s-step) * 7) !important; }
136
- .hs8 { height: calc(var(--s-step) * 8) !important; }
137
- .hs9 { height: calc(var(--s-step) * 9) !important; }
138
- .hs10 { height: calc(var(--s-step) * 10) !important; }
139
- .hs11 { height: calc(var(--s-step) * 11) !important; }
140
- .hs12 { height: var(--s-full) !important; }
141
-
142
- // $$ SPACING UNITS
143
- .h2 { height: var(--su-static2) !important; }
144
- .h4 { height: var(--su-static4) !important; }
145
- .h6 { height: var(--su-static6) !important; }
146
- .h8 { height: var(--su-static8) !important; }
147
- .h12 { height: var(--su-static12) !important; }
148
- .h16 { height: var(--su-static16) !important; }
149
- .h24 { height: var(--su-static24) !important; }
150
- .h32 { height: var(--su-static32) !important; }
151
- .h48 { height: var(--su-static48) !important; }
152
- .h64 { height: var(--su-static64) !important; }
153
- .h96 { height: var(--su-static96) !important; }
154
- .h128 { height: var(--su-static128) !important; }
155
-
156
- // ============================================================================
157
- // $ MAX-HEIGHT
158
- // ----------------------------------------------------------------------------
159
- .hmx0 { max-height: 0 !important; }
160
- .hmx1 { max-height: var(--s-step) !important; }
161
- .hmx2 { max-height: calc(var(--s-step) * 2) !important; }
162
- .hmx3 { max-height: calc(var(--s-step) * 3) !important; }
163
- .hmx4 { max-height: calc(var(--s-step) * 4) !important; }
164
- .hmx5 { max-height: calc(var(--s-step) * 5) !important; }
165
- .hmx6 { max-height: calc(var(--s-step) * 6) !important; }
166
- .hmx7 { max-height: calc(var(--s-step) * 7) !important; }
167
- .hmx8 { max-height: calc(var(--s-step) * 8) !important; }
168
- .hmx9 { max-height: calc(var(--s-step) * 9) !important; }
169
- .hmx10 { max-height: calc(var(--s-step) * 10) !important; }
170
- .hmx11 { max-height: calc(var(--s-step) * 11) !important; }
171
- .hmx12 { max-height: var(--s-full) !important; }
172
- #stacks-internals #responsify('.hmx100', { max-height: 100% !important; });
173
- #stacks-internals #responsify('.hmx-initial', { max-height: initial !important; });
174
- #stacks-internals #responsify('.hmx-screen', { max-height: 100vh !important; });
175
-
176
- // ============================================================================
177
- // $ MIN-HEIGHT
178
- // ----------------------------------------------------------------------------
179
- .hmn0 { min-height: 0 !important; }
180
- .hmn1 { min-height: var(--s-step) !important; }
181
- .hmn2 { min-height: calc(var(--s-step) * 2) !important; }
182
- .hmn3 { min-height: calc(var(--s-step) * 3) !important; }
183
- .hmn4 { min-height: calc(var(--s-step) * 4) !important; }
184
- .hmn5 { min-height: calc(var(--s-step) * 5) !important; }
185
- .hmn6 { min-height: calc(var(--s-step) * 6) !important; }
186
- .hmn7 { min-height: calc(var(--s-step) * 7) !important; }
187
- .hmn8 { min-height: calc(var(--s-step) * 8) !important; }
188
- .hmn9 { min-height: calc(var(--s-step) * 9) !important; }
189
- .hmn10 { min-height: calc(var(--s-step) * 10) !important; }
190
- .hmn11 { min-height: calc(var(--s-step) * 11) !important; }
191
- .hmn12 { min-height: var(--s-full) !important; }
192
- #stacks-internals #responsify('.hmn100', { min-height: 100% !important; });
193
- #stacks-internals #responsify('.hmn-initial', { min-height: initial !important; });
194
- #stacks-internals #responsify('.hmx-screen', { min-height: 100vh !important; });
1
+ //
2
+ // STACK OVERFLOW
3
+ // WIDTH & HEIGHT
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
+ // • WIDTH
10
+ // • PERCENTAGE
11
+ // • STATIC
12
+ // • MAX-WIDTH
13
+ // • MIN-WIDTH
14
+ // • HEIGHT
15
+ // • PERCENTAGE
16
+ // • STATIC
17
+ // • MAX-HEIGHT
18
+ // • MIN-HEIGHT
19
+ //
20
+ // ============================================================================
21
+ // $ WIDTH
22
+ // ----------------------------------------------------------------------------
23
+ // $$ PERCENTAGE AND VIEWPORT UNITS
24
+ .w0 { width: 0 !important; }
25
+ .w10 { width: 10% !important; }
26
+ .w20 { width: 20% !important; }
27
+ #stacks-internals #responsify('.w25', { width: 25% !important; });
28
+ .w30 { width: 30% !important; }
29
+ #stacks-internals #responsify('.w33', { width: 33.33333% !important; });
30
+ .w40 { width: 40% !important; }
31
+ #stacks-internals #responsify('.w50', { width: 50% !important; });
32
+ .w60 { width: 60% !important; }
33
+ #stacks-internals #responsify('.w66', { width: 66.66667% !important; });
34
+ .w70 { width: 70% !important; }
35
+ #stacks-internals #responsify('.w75', { width: 75% !important; });
36
+ .w80 { width: 80% !important; }
37
+ .w90 { width: 90% !important; }
38
+ #stacks-internals #responsify('.w100', { width: 100% !important; });
39
+ #stacks-internals #responsify('.w-auto', { width: auto !important; });
40
+ #stacks-internals #responsify('.w-screen', { width: 100vw !important; });
41
+
42
+ // $$ STATIC
43
+ .ws0,
44
+ .w0 { width: 0 !important; }
45
+ .ws1 { width: var(--s-step) !important; }
46
+ .ws2 { width: calc(var(--s-step) * 2) !important; }
47
+ .ws3 { width: calc(var(--s-step) * 3) !important; }
48
+ .ws4 { width: calc(var(--s-step) * 4) !important; }
49
+ .ws5 { width: calc(var(--s-step) * 5) !important; }
50
+ .ws6 { width: calc(var(--s-step) * 6) !important; }
51
+ .ws7 { width: calc(var(--s-step) * 7) !important; }
52
+ .ws8 { width: calc(var(--s-step) * 8) !important; }
53
+ .ws9 { width: calc(var(--s-step) * 9) !important; }
54
+ .ws10 { width: calc(var(--s-step) * 10) !important; }
55
+ .ws11 { width: calc(var(--s-step) * 11) !important; }
56
+ .ws12 { width: var(--s-full) !important; }
57
+
58
+ // $$ SPACING UNITS
59
+ .w2 { width: var(--su-static2) !important; }
60
+ .w4 { width: var(--su-static4) !important; }
61
+ .w6 { width: var(--su-static6) !important; }
62
+ .w8 { width: var(--su-static8) !important; }
63
+ .w12 { width: var(--su-static12) !important; }
64
+ .w16 { width: var(--su-static16) !important; }
65
+ .w24 { width: var(--su-static24) !important; }
66
+ .w32 { width: var(--su-static32) !important; }
67
+ .w48 { width: var(--su-static48) !important; }
68
+ .w64 { width: var(--su-static64) !important; }
69
+ .w96 { width: var(--su-static96) !important; }
70
+ .w128 { width: var(--su-static128) !important; }
71
+
72
+ // ============================================================================
73
+ // $ MAX-WIDTH
74
+ // ----------------------------------------------------------------------------
75
+ .wmx0 { max-width: 0 !important; }
76
+ .wmx1 { max-width: var(--s-step) !important; }
77
+ .wmx2 { max-width: calc(var(--s-step) * 2) !important; }
78
+ .wmx25 { max-width: 25% !important; }
79
+ .wmx3 { max-width: calc(var(--s-step) * 3) !important; }
80
+ .wmx4 { max-width: calc(var(--s-step) * 4) !important; }
81
+ .wmx5 { max-width: calc(var(--s-step) * 5) !important; }
82
+ .wmx50 { max-width: 50% !important; }
83
+ .wmx6 { max-width: calc(var(--s-step) * 6) !important; }
84
+ .wmx7 { max-width: calc(var(--s-step) * 7) !important; }
85
+ .wmx75 { max-width: 75% !important; }
86
+ .wmx8 { max-width: calc(var(--s-step) * 8) !important; }
87
+ .wmx9 { max-width: calc(var(--s-step) * 9) !important; }
88
+ .wmx10 { max-width: calc(var(--s-step) * 10) !important; }
89
+ .wmx11 { max-width: calc(var(--s-step) * 11) !important; }
90
+ .wmx12 { max-width: var(--s-full) !important; }
91
+ #stacks-internals #responsify('.wmx100', { max-width: 100% !important; });
92
+ #stacks-internals #responsify('.wmx-initial', { max-width: initial !important; });
93
+ #stacks-internals #responsify('.wmx-screen', { max-width: 100vw !important; });
94
+
95
+ // ============================================================================
96
+ // $ MIN-WIDTH
97
+ // ----------------------------------------------------------------------------
98
+ .wmn0 { min-width: 0 !important; }
99
+ .wmn1 { min-width: var(--s-step) !important; }
100
+ .wmn2 { min-width: calc(var(--s-step) * 2) !important; }
101
+ .wmn25 { min-width: 25% !important; }
102
+ .wmn3 { min-width: calc(var(--s-step) * 3) !important; }
103
+ .wmn4 { min-width: calc(var(--s-step) * 4) !important; }
104
+ .wmn5 { min-width: calc(var(--s-step) * 5) !important; }
105
+ .wmn50 { min-width: 50% !important; }
106
+ .wmn6 { min-width: calc(var(--s-step) * 6) !important; }
107
+ .wmn7 { min-width: calc(var(--s-step) * 7) !important; }
108
+ .wmn75 { min-width: 75% !important; }
109
+ .wmn8 { min-width: calc(var(--s-step) * 8) !important; }
110
+ .wmn9 { min-width: calc(var(--s-step) * 9) !important; }
111
+ .wmn10 { min-width: calc(var(--s-step) * 10) !important; }
112
+ .wmn11 { min-width: calc(var(--s-step) * 11) !important; }
113
+ .wmn12 { min-width: var(--s-full) !important; }
114
+ #stacks-internals #responsify('.wmn100', { min-width: 100% !important; });
115
+ #stacks-internals #responsify('.wmn-initial', { min-width: initial !important; });
116
+
117
+ // ============================================================================
118
+ // $ HEIGHT
119
+ // ----------------------------------------------------------------------------
120
+ // $$ PERCENTAGE AND VIEWPORT UNITS
121
+ .h0 { height: 0 !important; }
122
+ #stacks-internals #responsify('.h100', { height: 100% !important; });
123
+ #stacks-internals #responsify('.h-auto', { height: auto !important; });
124
+ #stacks-internals #responsify('.h-screen', { height: 100vh !important; });
125
+
126
+ // $$ STATIC
127
+ .hs0,
128
+ .h0 { height: 0 !important; }
129
+ .hs1 { height: var(--s-step) !important; }
130
+ .hs2 { height: calc(var(--s-step) * 2) !important; }
131
+ .hs3 { height: calc(var(--s-step) * 3) !important; }
132
+ .hs4 { height: calc(var(--s-step) * 4) !important; }
133
+ .hs5 { height: calc(var(--s-step) * 5) !important; }
134
+ .hs6 { height: calc(var(--s-step) * 6) !important; }
135
+ .hs7 { height: calc(var(--s-step) * 7) !important; }
136
+ .hs8 { height: calc(var(--s-step) * 8) !important; }
137
+ .hs9 { height: calc(var(--s-step) * 9) !important; }
138
+ .hs10 { height: calc(var(--s-step) * 10) !important; }
139
+ .hs11 { height: calc(var(--s-step) * 11) !important; }
140
+ .hs12 { height: var(--s-full) !important; }
141
+
142
+ // $$ SPACING UNITS
143
+ .h2 { height: var(--su-static2) !important; }
144
+ .h4 { height: var(--su-static4) !important; }
145
+ .h6 { height: var(--su-static6) !important; }
146
+ .h8 { height: var(--su-static8) !important; }
147
+ .h12 { height: var(--su-static12) !important; }
148
+ .h16 { height: var(--su-static16) !important; }
149
+ .h24 { height: var(--su-static24) !important; }
150
+ .h32 { height: var(--su-static32) !important; }
151
+ .h48 { height: var(--su-static48) !important; }
152
+ .h64 { height: var(--su-static64) !important; }
153
+ .h96 { height: var(--su-static96) !important; }
154
+ .h128 { height: var(--su-static128) !important; }
155
+
156
+ // ============================================================================
157
+ // $ MAX-HEIGHT
158
+ // ----------------------------------------------------------------------------
159
+ .hmx0 { max-height: 0 !important; }
160
+ .hmx1 { max-height: var(--s-step) !important; }
161
+ .hmx2 { max-height: calc(var(--s-step) * 2) !important; }
162
+ .hmx3 { max-height: calc(var(--s-step) * 3) !important; }
163
+ .hmx4 { max-height: calc(var(--s-step) * 4) !important; }
164
+ .hmx5 { max-height: calc(var(--s-step) * 5) !important; }
165
+ .hmx6 { max-height: calc(var(--s-step) * 6) !important; }
166
+ .hmx7 { max-height: calc(var(--s-step) * 7) !important; }
167
+ .hmx8 { max-height: calc(var(--s-step) * 8) !important; }
168
+ .hmx9 { max-height: calc(var(--s-step) * 9) !important; }
169
+ .hmx10 { max-height: calc(var(--s-step) * 10) !important; }
170
+ .hmx11 { max-height: calc(var(--s-step) * 11) !important; }
171
+ .hmx12 { max-height: var(--s-full) !important; }
172
+ #stacks-internals #responsify('.hmx100', { max-height: 100% !important; });
173
+ #stacks-internals #responsify('.hmx-initial', { max-height: initial !important; });
174
+ #stacks-internals #responsify('.hmx-screen', { max-height: 100vh !important; });
175
+
176
+ // ============================================================================
177
+ // $ MIN-HEIGHT
178
+ // ----------------------------------------------------------------------------
179
+ .hmn0 { min-height: 0 !important; }
180
+ .hmn1 { min-height: var(--s-step) !important; }
181
+ .hmn2 { min-height: calc(var(--s-step) * 2) !important; }
182
+ .hmn3 { min-height: calc(var(--s-step) * 3) !important; }
183
+ .hmn4 { min-height: calc(var(--s-step) * 4) !important; }
184
+ .hmn5 { min-height: calc(var(--s-step) * 5) !important; }
185
+ .hmn6 { min-height: calc(var(--s-step) * 6) !important; }
186
+ .hmn7 { min-height: calc(var(--s-step) * 7) !important; }
187
+ .hmn8 { min-height: calc(var(--s-step) * 8) !important; }
188
+ .hmn9 { min-height: calc(var(--s-step) * 9) !important; }
189
+ .hmn10 { min-height: calc(var(--s-step) * 10) !important; }
190
+ .hmn11 { min-height: calc(var(--s-step) * 11) !important; }
191
+ .hmn12 { min-height: var(--s-full) !important; }
192
+ #stacks-internals #responsify('.hmn100', { min-height: 100% !important; });
193
+ #stacks-internals #responsify('.hmn-initial', { min-height: initial !important; });
194
+ #stacks-internals #responsify('.hmx-screen', { min-height: 100vh !important; });
@@ -1,44 +1,44 @@
1
- //
2
- // STACK OVERFLOW
3
- // BODY & HTML STYLES
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
- // This is where all the magic happens.
10
- //
11
- // TABLE OF CONTENTS
12
- // • BODY / HTML
13
- //
14
- // ============================================================================
15
- // $ BODY / HTML
16
- // Various properties we need to reset to make everything better.
17
- // ----------------------------------------------------------------------------
18
-
19
- html,
20
- body {
21
- color: var(--theme-body-font-color);
22
- font-family: var(--theme-body-font-family);
23
- font-size: var(--fs-base);
24
- line-height: var(--lh-base);
25
- }
26
-
27
- #stacks-internals #screen-sm({
28
- &,
29
- body {
30
- font-size: 11px;
31
- }
32
- }, @force-selector: true);
33
-
34
- body {
35
- box-sizing: border-box;
36
- min-height: 100%;
37
- background-color: var(--theme-background-color);
38
-
39
- *,
40
- *:before,
41
- *:after {
42
- box-sizing: inherit;
43
- }
44
- }
1
+ //
2
+ // STACK OVERFLOW
3
+ // BODY & HTML STYLES
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
+ // This is where all the magic happens.
10
+ //
11
+ // TABLE OF CONTENTS
12
+ // • BODY / HTML
13
+ //
14
+ // ============================================================================
15
+ // $ BODY / HTML
16
+ // Various properties we need to reset to make everything better.
17
+ // ----------------------------------------------------------------------------
18
+
19
+ html,
20
+ body {
21
+ color: var(--theme-body-font-color);
22
+ font-family: var(--theme-body-font-family);
23
+ font-size: var(--fs-base);
24
+ line-height: var(--lh-base);
25
+ }
26
+
27
+ #stacks-internals #screen-sm({
28
+ &,
29
+ body {
30
+ font-size: 11px;
31
+ }
32
+ }, @force-selector: true);
33
+
34
+ body {
35
+ box-sizing: border-box;
36
+ min-height: 100%;
37
+ background-color: var(--theme-background-color);
38
+
39
+ *,
40
+ *:before,
41
+ *:after {
42
+ box-sizing: inherit;
43
+ }
44
+ }
@@ -1,61 +1,61 @@
1
- // DEPRECATED - DO NOT USE
2
- //
3
- // Usage of these options is similar to what's described in configuration-dynamic.less, but the options
4
- // in this file also apply to the "static" part of Stacks. In particular this means that these options cannot
5
- // be different per-site in the Q&A project, because the static part is a shared CSS file across all Q&A sites.
6
-
7
- // OPTIONS
8
- // -------
9
- //
10
- // #stacks-config-static { @css-reset: normalize; }
11
- //
12
- // `normalize` is the default, which will include normalize.css (the Nicolas Gallagher reset). Other
13
- // legal options are `meyer` for the Eric Meyer reset, and `none` if no CSS reset should be compiled in.
14
- //
15
- //
16
- // #stacks-config-static { @breakpoints: 1264px, 980px, 640px; }
17
- //
18
- // @breakpoints is a list of values "optional_selector1, large_breakpoint1, medium_breakpoint1, small_breakpoint1, optional_selector2, ..."
19
- //
20
- // Example:
21
- //
22
- // @breakpoints:
23
- // 1264px, 980px, 640px,
24
- // 'html.smaller_breakpoints', 1164px, 880px, 540px,
25
- // 'html.even_smaller_breakpoints', 200px, 100px, 50px;
26
- //
27
- // This will generate the responsive atomic classes for each group of breakpoints. If a breakpoint group is preceded by a string,
28
- // that string will be prepended to the selector, so the breakpoints can be different based on a root element class. This also allows
29
- // you to completely disable the responsive atomic class unless a modifier class is present somewhere, by not providing a
30
- // breakpoint group that has no selector. Note that it doesn't make sense to have more than one group that leaves the selector off.
31
- // Also note that if you have a group *with* a selector and a group *without* one, or selectors that aren't mutually exclusive otherwise,
32
- // you may end up with undesireable effects. For example:
33
- //
34
- // <html class="smaller_breakpoints"
35
- // ...
36
- // <div class="lg:d-none"></div>
37
- // ...
38
- // </html>
39
- //
40
- // With the example @breakpoints setting from above, this <div> will be hidden below 1264px even though the smaller_breakpoints class
41
- // is on the root element, because the selector-free breakpoint group still applies.
42
- //
43
- // Any selector, if given, MUST select the root (html) element.
44
- //
45
- // Previously, the CSS reset option was a simple global variable. For backwards compatibility, we'll handle it correctly for a bit.
46
- @stacks-include-css-reset: this-is-deprecated;
47
-
48
- #stacks-config-static {
49
-
50
- #handle-old-reset-option() when (@stacks-include-css-reset = this-is-deprecated) {
51
- // the variable wasn't overridden -- good!
52
- @css-reset: normalize; // other possible values are `meyer` and `none`
53
- }
54
- #handle-old-reset-option() when not (@stacks-include-css-reset = this-is-deprecated) {
55
- // Somebody overwrote the variable, so this project is using the legacy option. Handle it.
56
- @css-reset: @stacks-include-css-reset;
57
- }
58
- #handle-old-reset-option();
59
-
60
- @breakpoints: @breakpoint-lg, @breakpoint-md, @breakpoint-sm;
61
- }
1
+ // DEPRECATED - DO NOT USE
2
+ //
3
+ // Usage of these options is similar to what's described in configuration-dynamic.less, but the options
4
+ // in this file also apply to the "static" part of Stacks. In particular this means that these options cannot
5
+ // be different per-site in the Q&A project, because the static part is a shared CSS file across all Q&A sites.
6
+
7
+ // OPTIONS
8
+ // -------
9
+ //
10
+ // #stacks-config-static { @css-reset: normalize; }
11
+ //
12
+ // `normalize` is the default, which will include normalize.css (the Nicolas Gallagher reset). Other
13
+ // legal options are `meyer` for the Eric Meyer reset, and `none` if no CSS reset should be compiled in.
14
+ //
15
+ //
16
+ // #stacks-config-static { @breakpoints: 1264px, 980px, 640px; }
17
+ //
18
+ // @breakpoints is a list of values "optional_selector1, large_breakpoint1, medium_breakpoint1, small_breakpoint1, optional_selector2, ..."
19
+ //
20
+ // Example:
21
+ //
22
+ // @breakpoints:
23
+ // 1264px, 980px, 640px,
24
+ // 'html.smaller_breakpoints', 1164px, 880px, 540px,
25
+ // 'html.even_smaller_breakpoints', 200px, 100px, 50px;
26
+ //
27
+ // This will generate the responsive atomic classes for each group of breakpoints. If a breakpoint group is preceded by a string,
28
+ // that string will be prepended to the selector, so the breakpoints can be different based on a root element class. This also allows
29
+ // you to completely disable the responsive atomic class unless a modifier class is present somewhere, by not providing a
30
+ // breakpoint group that has no selector. Note that it doesn't make sense to have more than one group that leaves the selector off.
31
+ // Also note that if you have a group *with* a selector and a group *without* one, or selectors that aren't mutually exclusive otherwise,
32
+ // you may end up with undesireable effects. For example:
33
+ //
34
+ // <html class="smaller_breakpoints"
35
+ // ...
36
+ // <div class="lg:d-none"></div>
37
+ // ...
38
+ // </html>
39
+ //
40
+ // With the example @breakpoints setting from above, this <div> will be hidden below 1264px even though the smaller_breakpoints class
41
+ // is on the root element, because the selector-free breakpoint group still applies.
42
+ //
43
+ // Any selector, if given, MUST select the root (html) element.
44
+ //
45
+ // Previously, the CSS reset option was a simple global variable. For backwards compatibility, we'll handle it correctly for a bit.
46
+ @stacks-include-css-reset: this-is-deprecated;
47
+
48
+ #stacks-config-static {
49
+
50
+ #handle-old-reset-option() when (@stacks-include-css-reset = this-is-deprecated) {
51
+ // the variable wasn't overridden -- good!
52
+ @css-reset: normalize; // other possible values are `meyer` and `none`
53
+ }
54
+ #handle-old-reset-option() when not (@stacks-include-css-reset = this-is-deprecated) {
55
+ // Somebody overwrote the variable, so this project is using the legacy option. Handle it.
56
+ @css-reset: @stacks-include-css-reset;
57
+ }
58
+ #handle-old-reset-option();
59
+
60
+ @breakpoints: @breakpoint-lg, @breakpoint-md, @breakpoint-sm;
61
+ }
@@ -1,20 +1,20 @@
1
- //
2
- // STACK OVERFLOW
3
- // ICON STYLES
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
- .svg-icon,
11
- .svg-spot {
12
- vertical-align: bottom; // Make SVG play nicely while inline with text by default
13
-
14
- &:not(.native) {
15
- * {
16
- // Targets all sub-elements so we can deliver SVG with full color if we'd like.
17
- fill: currentColor;
18
- }
19
- }
20
- }
1
+ //
2
+ // STACK OVERFLOW
3
+ // ICON STYLES
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
+ .svg-icon,
11
+ .svg-spot {
12
+ vertical-align: bottom; // Make SVG play nicely while inline with text by default
13
+
14
+ &:not(.native) {
15
+ * {
16
+ // Targets all sub-elements so we can deliver SVG with full color if we'd like.
17
+ fill: currentColor;
18
+ }
19
+ }
20
+ }