@stackoverflow/stacks 2.7.2 → 2.7.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (85) hide show
  1. package/LICENSE.MD +9 -9
  2. package/README.md +158 -180
  3. package/dist/css/stacks.css +18 -4
  4. package/dist/css/stacks.min.css +1 -1
  5. package/dist/js/stacks.min.js +1 -1
  6. package/lib/atomic/border.less +139 -139
  7. package/lib/atomic/color.less +36 -36
  8. package/lib/atomic/flex.less +426 -426
  9. package/lib/atomic/gap.less +44 -44
  10. package/lib/atomic/grid.less +139 -139
  11. package/lib/atomic/misc.less +374 -374
  12. package/lib/atomic/spacing.less +98 -98
  13. package/lib/atomic/typography.less +266 -264
  14. package/lib/atomic/width-height.less +194 -194
  15. package/lib/base/body.less +44 -44
  16. package/lib/base/configuration-static.less +61 -61
  17. package/lib/base/fieldset.less +5 -5
  18. package/lib/base/icon.less +11 -11
  19. package/lib/base/internal.less +220 -220
  20. package/lib/base/reset-meyer.less +64 -64
  21. package/lib/base/reset-normalize.less +449 -449
  22. package/lib/base/reset.less +20 -20
  23. package/lib/components/activity-indicator/activity-indicator.less +53 -53
  24. package/lib/components/avatar/avatar.less +108 -108
  25. package/lib/components/award-bling/award-bling.less +31 -31
  26. package/lib/components/banner/banner.less +44 -44
  27. package/lib/components/banner/banner.ts +149 -149
  28. package/lib/components/block-link/block-link.less +82 -82
  29. package/lib/components/breadcrumbs/breadcrumbs.less +41 -41
  30. package/lib/components/button-group/button-group.less +82 -82
  31. package/lib/components/card/card.less +37 -37
  32. package/lib/components/check-control/check-control.less +17 -17
  33. package/lib/components/check-group/check-group.less +19 -19
  34. package/lib/components/checkbox_radio/checkbox_radio.less +159 -159
  35. package/lib/components/code-block/code-block.fixtures.ts +88 -88
  36. package/lib/components/code-block/code-block.less +116 -116
  37. package/lib/components/description/description.less +9 -9
  38. package/lib/components/empty-state/empty-state.less +16 -16
  39. package/lib/components/expandable/expandable.less +118 -118
  40. package/lib/components/input-fill/input-fill.less +35 -35
  41. package/lib/components/input-icon/input-icon.less +45 -45
  42. package/lib/components/input-message/input-message.less +49 -49
  43. package/lib/components/label/label.less +110 -110
  44. package/lib/components/link/link.less +7 -1
  45. package/lib/components/link-preview/link-preview.less +148 -148
  46. package/lib/components/menu/menu.less +41 -41
  47. package/lib/components/modal/modal.less +118 -118
  48. package/lib/components/modal/modal.ts +383 -383
  49. package/lib/components/navigation/navigation.less +136 -136
  50. package/lib/components/navigation/navigation.ts +128 -128
  51. package/lib/components/page-title/page-title.less +51 -51
  52. package/lib/components/popover/popover.less +159 -159
  53. package/lib/components/popover/popover.ts +651 -651
  54. package/lib/components/post-summary/post-summary.less +457 -457
  55. package/lib/components/progress-bar/progress-bar.less +291 -291
  56. package/lib/components/prose/prose.less +452 -452
  57. package/lib/components/select/select.less +138 -138
  58. package/lib/components/spinner/spinner.less +103 -103
  59. package/lib/components/table/table.ts +296 -296
  60. package/lib/components/table-container/table-container.less +4 -4
  61. package/lib/components/tag/tag.less +186 -186
  62. package/lib/components/toast/toast.less +35 -35
  63. package/lib/components/toast/toast.ts +357 -357
  64. package/lib/components/toggle-switch/toggle-switch.less +104 -104
  65. package/lib/components/topbar/topbar.less +553 -553
  66. package/lib/components/uploader/uploader.less +205 -205
  67. package/lib/components/user-card/user-card.less +129 -129
  68. package/lib/controllers.ts +33 -33
  69. package/lib/exports/color-mixins.less +283 -283
  70. package/lib/exports/constants-helpers.less +108 -108
  71. package/lib/exports/constants-type.less +155 -155
  72. package/lib/exports/exports.less +15 -15
  73. package/lib/exports/mixins.less +334 -333
  74. package/lib/exports/spacing-mixins.less +67 -67
  75. package/lib/index.ts +32 -32
  76. package/lib/input-utils.less +41 -41
  77. package/lib/stacks-dynamic.less +24 -24
  78. package/lib/stacks-static.less +93 -93
  79. package/lib/stacks.less +13 -13
  80. package/lib/test/assertions.ts +36 -36
  81. package/lib/test/less-test-utils.ts +28 -28
  82. package/lib/test/open-wc-testing-patch.d.ts +26 -26
  83. package/lib/tsconfig.build.json +4 -4
  84. package/lib/tsconfig.json +17 -17
  85. package/package.json +26 -22
@@ -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('.hmn-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('.hmn-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, var(--black-600));
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, var(--white));
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, var(--black-600));
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, var(--white));
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,5 +1,5 @@
1
- fieldset {
2
- border: 0;
3
- min-width: 0;
4
- padding: 0;
5
- }
1
+ fieldset {
2
+ border: 0;
3
+ min-width: 0;
4
+ padding: 0;
5
+ }
@@ -1,11 +1,11 @@
1
- .svg-icon,
2
- .svg-spot {
3
- vertical-align: bottom; // Make SVG play nicely while inline with text by default
4
-
5
- &:not(.native) {
6
- * {
7
- // Targets all sub-elements so we can deliver SVG with full color if we'd like.
8
- fill: currentColor;
9
- }
10
- }
11
- }
1
+ .svg-icon,
2
+ .svg-spot {
3
+ vertical-align: bottom; // Make SVG play nicely while inline with text by default
4
+
5
+ &:not(.native) {
6
+ * {
7
+ // Targets all sub-elements so we can deliver SVG with full color if we'd like.
8
+ fill: currentColor;
9
+ }
10
+ }
11
+ }