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