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