@stackoverflow/stacks 1.9.0 → 1.9.1

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 (132) hide show
  1. package/README.md +161 -153
  2. package/dist/components/table/table.d.ts +26 -4
  3. package/dist/css/stacks.css +21 -6
  4. package/dist/css/stacks.min.css +1 -1
  5. package/dist/js/stacks.js +93 -64
  6. package/dist/js/stacks.min.js +1 -1
  7. package/lib/atomic/border.less +397 -397
  8. package/lib/atomic/color.less +210 -210
  9. package/lib/atomic/flex.less +426 -426
  10. package/lib/atomic/gap.less +44 -44
  11. package/lib/atomic/grid.less +139 -139
  12. package/lib/atomic/misc.less +343 -343
  13. package/lib/atomic/spacing.less +342 -342
  14. package/lib/atomic/typography.less +267 -267
  15. package/lib/atomic/width-height.less +194 -194
  16. package/lib/base/body.less +44 -44
  17. package/lib/base/configuration-static.less +61 -61
  18. package/lib/base/fieldset.less +5 -5
  19. package/lib/base/icon.less +11 -11
  20. package/lib/base/internal.less +220 -220
  21. package/lib/base/reset-meyer.less +64 -64
  22. package/lib/base/reset-normalize.less +449 -449
  23. package/lib/base/reset.less +20 -20
  24. package/lib/components/activity-indicator/activity-indicator.a11y.test.ts +21 -21
  25. package/lib/components/activity-indicator/activity-indicator.less +40 -40
  26. package/lib/components/activity-indicator/activity-indicator.visual.test.ts +23 -23
  27. package/lib/components/anchor/anchor.less +61 -61
  28. package/lib/components/avatar/avatar.a11y.test.ts +36 -36
  29. package/lib/components/avatar/avatar.less +108 -108
  30. package/lib/components/avatar/avatar.visual.test.ts +54 -54
  31. package/lib/components/award-bling/award-bling.a11y.test.ts +17 -0
  32. package/lib/components/award-bling/award-bling.less +31 -31
  33. package/lib/components/award-bling/award-bling.visual.test.ts +26 -0
  34. package/lib/components/badge/badge.less +251 -251
  35. package/lib/components/banner/banner.a11y.test.ts +37 -0
  36. package/lib/components/banner/banner.less +51 -51
  37. package/lib/components/banner/banner.test.ts +73 -77
  38. package/lib/components/banner/banner.ts +149 -149
  39. package/lib/components/banner/banner.visual.test.ts +37 -36
  40. package/lib/components/block-link/block-link.a11y.test.ts +68 -0
  41. package/lib/components/block-link/block-link.less +80 -80
  42. package/lib/components/block-link/block-link.visual.test.ts +61 -0
  43. package/lib/components/breadcrumbs/breadcrumbs.a11y.test.ts +37 -0
  44. package/lib/components/breadcrumbs/breadcrumbs.less +41 -41
  45. package/lib/components/breadcrumbs/breadcrumbs.visual.test.ts +37 -0
  46. package/lib/components/button/button.a11y.test.ts +32 -32
  47. package/lib/components/button/button.less +502 -502
  48. package/lib/components/button/button.visual.test.ts +52 -52
  49. package/lib/components/button-group/button-group.less +83 -83
  50. package/lib/components/card/card.a11y.test.ts +13 -0
  51. package/lib/components/card/card.less +29 -29
  52. package/lib/components/card/card.visual.test.ts +54 -0
  53. package/lib/components/check-control/check-control.less +17 -17
  54. package/lib/components/check-group/check-group.less +19 -19
  55. package/lib/components/checkbox_radio/checkbox_radio.less +158 -158
  56. package/lib/components/code-block/code-block.less +116 -116
  57. package/lib/components/description/description.less +9 -9
  58. package/lib/components/empty-state/empty-state.less +16 -16
  59. package/lib/components/expandable/expandable.less +118 -118
  60. package/lib/components/expandable/expandable.test.ts +51 -53
  61. package/lib/components/expandable/expandable.ts +238 -238
  62. package/lib/components/input-fill/input-fill.less +35 -35
  63. package/lib/components/input-icon/input-icon.less +45 -45
  64. package/lib/components/input-message/input-message.less +48 -48
  65. package/lib/components/input_textarea/input_textarea.less +166 -166
  66. package/lib/components/label/label.less +111 -111
  67. package/lib/components/link/link.less +119 -119
  68. package/lib/components/link-preview/link-preview.less +139 -139
  69. package/lib/components/menu/menu.less +41 -41
  70. package/lib/components/modal/modal.less +113 -113
  71. package/lib/components/modal/modal.ts +379 -379
  72. package/lib/components/navigation/navigation.less +134 -134
  73. package/lib/components/navigation/navigation.ts +128 -128
  74. package/lib/components/notice/notice.less +203 -203
  75. package/lib/components/page-title/page-title.less +51 -51
  76. package/lib/components/pagination/pagination.less +52 -52
  77. package/lib/components/popover/popover.less +148 -148
  78. package/lib/components/popover/popover.ts +651 -651
  79. package/lib/components/popover/tooltip.test.ts +62 -66
  80. package/lib/components/popover/tooltip.ts +343 -343
  81. package/lib/components/popover/tooltip.visual.test.ts +31 -31
  82. package/lib/components/post-summary/post-summary.less +415 -415
  83. package/lib/components/progress-bar/progress-bar.less +291 -291
  84. package/lib/components/prose/prose.less +452 -452
  85. package/lib/components/select/select.less +148 -148
  86. package/lib/components/sidebar-widget/sidebar-widget.less +257 -258
  87. package/lib/components/spinner/spinner.less +103 -103
  88. package/lib/components/table/table.less +307 -292
  89. package/lib/components/table/table.test.ts +366 -0
  90. package/lib/components/table/table.ts +296 -263
  91. package/lib/components/table-container/table-container.less +4 -4
  92. package/lib/components/tag/tag.less +213 -213
  93. package/lib/components/toast/toast.less +35 -35
  94. package/lib/components/toast/toast.test.ts +63 -67
  95. package/lib/components/toast/toast.ts +357 -357
  96. package/lib/components/toast/toast.visual.test.ts +27 -27
  97. package/lib/components/toggle-switch/toggle-switch.less +110 -110
  98. package/lib/components/topbar/topbar.less +436 -435
  99. package/lib/components/uploader/uploader.less +195 -195
  100. package/lib/components/uploader/uploader.ts +205 -205
  101. package/lib/components/user-card/user-card.less +129 -129
  102. package/lib/controllers.ts +33 -33
  103. package/lib/exports/constants-colors.less +1112 -1111
  104. package/lib/exports/constants-helpers.less +108 -108
  105. package/lib/exports/constants-type.less +153 -153
  106. package/lib/exports/exports.less +15 -15
  107. package/lib/exports/mixins.less +299 -299
  108. package/lib/index.ts +32 -32
  109. package/lib/input-utils.less +44 -44
  110. package/lib/stacks-dynamic.less +24 -24
  111. package/lib/stacks-static.less +93 -93
  112. package/lib/stacks.less +13 -13
  113. package/lib/stacks.ts +113 -113
  114. package/lib/test/open-wc-testing-patch.d.ts +26 -0
  115. package/lib/test/test-utils.ts +466 -444
  116. package/lib/tsconfig.build.json +4 -0
  117. package/lib/tsconfig.json +16 -13
  118. package/package.json +106 -105
  119. package/dist/components/activity-indicator/activity-indicator.a11y.test.d.ts +0 -1
  120. package/dist/components/activity-indicator/activity-indicator.visual.test.d.ts +0 -1
  121. package/dist/components/avatar/avatar.a11y.test.d.ts +0 -1
  122. package/dist/components/avatar/avatar.visual.test.d.ts +0 -1
  123. package/dist/components/banner/banner.test.d.ts +0 -1
  124. package/dist/components/banner/banner.visual.test.d.ts +0 -1
  125. package/dist/components/button/button.a11y.test.d.ts +0 -1
  126. package/dist/components/button/button.visual.test.d.ts +0 -1
  127. package/dist/components/expandable/expandable.test.d.ts +0 -1
  128. package/dist/components/popover/tooltip.test.d.ts +0 -1
  129. package/dist/components/popover/tooltip.visual.test.d.ts +0 -1
  130. package/dist/components/toast/toast.test.d.ts +0 -1
  131. package/dist/components/toast/toast.visual.test.d.ts +0 -1
  132. package/dist/test/test-utils.d.ts +0 -136
@@ -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);
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,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
+ }