@stackoverflow/stacks 1.0.0 → 1.0.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 (71) hide show
  1. package/README.md +47 -47
  2. package/dist/css/stacks.css +108 -0
  3. package/dist/css/stacks.min.css +1 -1
  4. package/lib/css/atomic/borders.less +378 -378
  5. package/lib/css/atomic/colors.less +209 -209
  6. package/lib/css/atomic/flex.less +375 -375
  7. package/lib/css/atomic/grid.less +174 -174
  8. package/lib/css/atomic/misc.less +343 -343
  9. package/lib/css/atomic/spacing.less +332 -314
  10. package/lib/css/atomic/typography.less +273 -273
  11. package/lib/css/atomic/width-height.less +194 -194
  12. package/lib/css/base/body.less +44 -44
  13. package/lib/css/base/configuration-static.less +61 -61
  14. package/lib/css/base/icons.less +20 -20
  15. package/lib/css/base/internals.less +220 -220
  16. package/lib/css/base/reset-meyer.less +64 -64
  17. package/lib/css/base/reset-normalize.less +449 -449
  18. package/lib/css/base/reset.less +20 -20
  19. package/lib/css/components/activity-indicator.less +45 -45
  20. package/lib/css/components/avatars.less +189 -189
  21. package/lib/css/components/badges.less +209 -209
  22. package/lib/css/components/banners.less +80 -80
  23. package/lib/css/components/blank-states.less +26 -26
  24. package/lib/css/components/breadcrumbs.less +44 -44
  25. package/lib/css/components/button-groups.less +104 -104
  26. package/lib/css/components/buttons.less +665 -665
  27. package/lib/css/components/cards.less +44 -44
  28. package/lib/css/components/code-blocks.less +130 -130
  29. package/lib/css/components/collapsible.less +104 -104
  30. package/lib/css/components/inputs.less +728 -728
  31. package/lib/css/components/link-previews.less +136 -136
  32. package/lib/css/components/links.less +218 -218
  33. package/lib/css/components/menu.less +47 -47
  34. package/lib/css/components/modals.less +133 -133
  35. package/lib/css/components/navigation.less +146 -146
  36. package/lib/css/components/notices.less +233 -233
  37. package/lib/css/components/page-titles.less +60 -60
  38. package/lib/css/components/pagination.less +55 -55
  39. package/lib/css/components/popovers.less +197 -197
  40. package/lib/css/components/post-summary.less +425 -425
  41. package/lib/css/components/progress-bars.less +330 -330
  42. package/lib/css/components/prose.less +503 -503
  43. package/lib/css/components/spinner.less +107 -107
  44. package/lib/css/components/tables.less +341 -341
  45. package/lib/css/components/tags.less +236 -236
  46. package/lib/css/components/toggle-switches.less +144 -144
  47. package/lib/css/components/topbar.less +427 -427
  48. package/lib/css/components/uploader.less +210 -210
  49. package/lib/css/components/user-cards.less +169 -169
  50. package/lib/css/components/widget-dynamic.less +33 -33
  51. package/lib/css/components/widget-static.less +273 -273
  52. package/lib/css/exports/constants-colors.less +1092 -1092
  53. package/lib/css/exports/constants-helpers.less +108 -108
  54. package/lib/css/exports/constants-type.less +153 -153
  55. package/lib/css/exports/exports.less +15 -15
  56. package/lib/css/exports/mixins.less +237 -237
  57. package/lib/css/stacks-dynamic.less +35 -35
  58. package/lib/css/stacks-static.less +86 -86
  59. package/lib/css/stacks.less +13 -13
  60. package/lib/ts/controllers/index.ts +7 -7
  61. package/lib/ts/controllers/s-expandable-control.ts +188 -188
  62. package/lib/ts/controllers/s-modal.ts +321 -321
  63. package/lib/ts/controllers/s-navigation-tablist.ts +117 -117
  64. package/lib/ts/controllers/s-popover.ts +547 -547
  65. package/lib/ts/controllers/s-table.ts +220 -220
  66. package/lib/ts/controllers/s-tooltip.ts +246 -246
  67. package/lib/ts/controllers/s-uploader.ts +172 -172
  68. package/lib/ts/index.ts +20 -20
  69. package/lib/ts/stacks.ts +88 -88
  70. package/lib/tsconfig.json +13 -13
  71. package/package.json +87 -87
package/README.md CHANGED
@@ -1,47 +1,47 @@
1
- # Stacks
2
-
3
- Stacks is Stack Overflow’s design system. It includes the resources needed to create consistent, predictable interfaces and workflows that conform to Stack Overflow’s principles, design language, and best practices.
4
-
5
- Our documentation is built with Stacks itself, using its [immutable, atomic classes](http://johnpolacek.com/rethinking/) and components.
6
-
7
- The Stacks website documents:
8
-
9
- ### Product
10
- - Semantic and accessible component markup
11
- - Cross-browser compatible Less / CSS
12
- - An [icon library](https://github.com/StackExchange/Stacks-Icons)
13
-
14
- ### Email
15
- - Email templates & components
16
-
17
- Stacks documentation can be found at https://stackoverflow.design/
18
-
19
- ## Table of contents
20
-
21
- - [Using Stacks](#using-stacks)
22
- - [Building Stacks](#building-stacks)
23
- - [Bugs and feature requests](#bugs-and-feature-requests)
24
- - [Contributing](#contributing)
25
- - [License](#license)
26
-
27
- ## Using Stacks
28
- Using Stacks is outlined in our [usage guidelines](https://stackoverflow.design/product/guidelines/using-stacks).
29
-
30
- ## Building Stacks
31
- To contribute to Stacks documentation or its CSS library, you’ll need to build Stacks locally. View our [building guidelines](https://stackoverflow.design/product/guidelines/building).
32
-
33
- Having trouble getting these steps to work? Open [an issue](https://github.com/StackExchange/Stacks/issues/new) with a `setup` label.
34
-
35
- ## Testing Stacks
36
- Stacks has implemented visual regression testing with [Backstop](https://github.com/garris/BackstopJS). To test if your new feature introduces visual regressions, run `npm run test` in a new Terminal window while Stacks is running. After the tests have run, a new browser window with any regressions will show. If the regressions are desired, you can run `npm run approve` to establish the new baseline.
37
-
38
- Individual routes to test are found in [backstop.json](/backstop.json)
39
-
40
- ## Bugs and feature requests
41
- Have a bug or feature request? First search existing or closed issues to make sure the issue hasn’t been noted yet. If not, review our [issue guidelines](/CONTRIBUTING.md#open-an-issue) for submitting [a bug report](/CONTRIBUTING.md#reporting-bugs) or [feature request](/CONTRIBUTING.md#feature-requests).
42
-
43
- ## Contributing
44
- If you’d like to contribute to Stacks, please read through our [contribution guidelines](/CONTRIBUTING.md). Included are directions for opening issues, coding standards, and notes on development.
45
-
46
- ## License
47
- Code and documentation copyright 2017-2022 Stack Exchange, Inc and released under the [MIT License](/LICENSE.MD).
1
+ # Stacks
2
+
3
+ Stacks is Stack Overflow’s design system. It includes the resources needed to create consistent, predictable interfaces and workflows that conform to Stack Overflow’s principles, design language, and best practices.
4
+
5
+ Our documentation is built with Stacks itself, using its [immutable, atomic classes](http://johnpolacek.com/rethinking/) and components.
6
+
7
+ The Stacks website documents:
8
+
9
+ ### Product
10
+ - Semantic and accessible component markup
11
+ - Cross-browser compatible Less / CSS
12
+ - An [icon library](https://github.com/StackExchange/Stacks-Icons)
13
+
14
+ ### Email
15
+ - Email templates & components
16
+
17
+ Stacks documentation can be found at https://stackoverflow.design/
18
+
19
+ ## Table of contents
20
+
21
+ - [Using Stacks](#using-stacks)
22
+ - [Building Stacks](#building-stacks)
23
+ - [Bugs and feature requests](#bugs-and-feature-requests)
24
+ - [Contributing](#contributing)
25
+ - [License](#license)
26
+
27
+ ## Using Stacks
28
+ Using Stacks is outlined in our [usage guidelines](https://stackoverflow.design/product/guidelines/using-stacks).
29
+
30
+ ## Building Stacks
31
+ To contribute to Stacks documentation or its CSS library, you’ll need to build Stacks locally. View our [building guidelines](https://stackoverflow.design/product/guidelines/building).
32
+
33
+ Having trouble getting these steps to work? Open [an issue](https://github.com/StackExchange/Stacks/issues/new) with a `setup` label.
34
+
35
+ ## Testing Stacks
36
+ Stacks has implemented visual regression testing with [Backstop](https://github.com/garris/BackstopJS). To test if your new feature introduces visual regressions, run `npm run test` in a new Terminal window while Stacks is running. After the tests have run, a new browser window with any regressions will show. If the regressions are desired, you can run `npm run approve` to establish the new baseline.
37
+
38
+ Individual routes to test are found in [backstop.json](/backstop.json)
39
+
40
+ ## Bugs and feature requests
41
+ Have a bug or feature request? First search existing or closed issues to make sure the issue hasn’t been noted yet. If not, review our [issue guidelines](/CONTRIBUTING.md#open-an-issue) for submitting [a bug report](/CONTRIBUTING.md#reporting-bugs) or [feature request](/CONTRIBUTING.md#feature-requests).
42
+
43
+ ## Contributing
44
+ If you’d like to contribute to Stacks, please read through our [contribution guidelines](/CONTRIBUTING.md). Included are directions for opening issues, coding standards, and notes on development.
45
+
46
+ ## License
47
+ Code and documentation copyright 2017-2022 Stack Exchange, Inc and released under the [MIT License](/LICENSE.MD).
@@ -11638,6 +11638,9 @@ body {
11638
11638
  .m128 {
11639
11639
  margin: var(--su128) !important;
11640
11640
  }
11641
+ .m0 {
11642
+ margin: 0 !important;
11643
+ }
11641
11644
  .mn1 {
11642
11645
  margin: calc(var(--su1) * -1) !important;
11643
11646
  }
@@ -11716,6 +11719,9 @@ body {
11716
11719
  .mt128 {
11717
11720
  margin-top: var(--su128) !important;
11718
11721
  }
11722
+ .mt0 {
11723
+ margin-top: 0 !important;
11724
+ }
11719
11725
  .mtn1 {
11720
11726
  margin-top: calc(var(--su1) * -1) !important;
11721
11727
  }
@@ -11794,6 +11800,9 @@ body {
11794
11800
  .mr128 {
11795
11801
  margin-right: var(--su128) !important;
11796
11802
  }
11803
+ .mr0 {
11804
+ margin-right: 0 !important;
11805
+ }
11797
11806
  .mrn1 {
11798
11807
  margin-right: calc(var(--su1) * -1) !important;
11799
11808
  }
@@ -11872,6 +11881,9 @@ body {
11872
11881
  .mb128 {
11873
11882
  margin-bottom: var(--su128) !important;
11874
11883
  }
11884
+ .mb0 {
11885
+ margin-bottom: 0 !important;
11886
+ }
11875
11887
  .mbn1 {
11876
11888
  margin-bottom: calc(var(--su1) * -1) !important;
11877
11889
  }
@@ -11950,6 +11962,9 @@ body {
11950
11962
  .ml128 {
11951
11963
  margin-left: var(--su128) !important;
11952
11964
  }
11965
+ .ml0 {
11966
+ margin-left: 0 !important;
11967
+ }
11953
11968
  .mln1 {
11954
11969
  margin-left: calc(var(--su1) * -1) !important;
11955
11970
  }
@@ -12155,6 +12170,9 @@ body {
12155
12170
  .p128 {
12156
12171
  padding: var(--su128) !important;
12157
12172
  }
12173
+ .p0 {
12174
+ padding: 0 !important;
12175
+ }
12158
12176
  .pt1 {
12159
12177
  padding-top: var(--su1) !important;
12160
12178
  }
@@ -12194,6 +12212,9 @@ body {
12194
12212
  .pt128 {
12195
12213
  padding-top: var(--su128) !important;
12196
12214
  }
12215
+ .pt0 {
12216
+ padding-top: 0 !important;
12217
+ }
12197
12218
  .pr1 {
12198
12219
  padding-right: var(--su1) !important;
12199
12220
  }
@@ -12272,6 +12293,9 @@ body {
12272
12293
  .pb128 {
12273
12294
  padding-bottom: var(--su128) !important;
12274
12295
  }
12296
+ .pr0 {
12297
+ padding-right: 0 !important;
12298
+ }
12275
12299
  .pl1 {
12276
12300
  padding-left: var(--su1) !important;
12277
12301
  }
@@ -12311,6 +12335,9 @@ body {
12311
12335
  .pl128 {
12312
12336
  padding-left: var(--su128) !important;
12313
12337
  }
12338
+ .pl0 {
12339
+ padding-left: 0 !important;
12340
+ }
12314
12341
  .px1 {
12315
12342
  padding-left: var(--su1) !important;
12316
12343
  padding-right: var(--su1) !important;
@@ -14797,6 +14824,9 @@ ol {
14797
14824
  .lg\:m128 {
14798
14825
  margin: var(--su128) !important;
14799
14826
  }
14827
+ .lg\:m0 {
14828
+ margin: 0 !important;
14829
+ }
14800
14830
  .lg\:mn1 {
14801
14831
  margin: calc(var(--su1) * -1) !important;
14802
14832
  }
@@ -14875,6 +14905,9 @@ ol {
14875
14905
  .lg\:mt128 {
14876
14906
  margin-top: var(--su128) !important;
14877
14907
  }
14908
+ .lg\:mt0 {
14909
+ margin-top: 0 !important;
14910
+ }
14878
14911
  .lg\:mtn1 {
14879
14912
  margin-top: calc(var(--su1) * -1) !important;
14880
14913
  }
@@ -14953,6 +14986,9 @@ ol {
14953
14986
  .lg\:mr128 {
14954
14987
  margin-right: var(--su128) !important;
14955
14988
  }
14989
+ .lg\:mr0 {
14990
+ margin-right: 0 !important;
14991
+ }
14956
14992
  .lg\:mrn1 {
14957
14993
  margin-right: calc(var(--su1) * -1) !important;
14958
14994
  }
@@ -15031,6 +15067,9 @@ ol {
15031
15067
  .lg\:mb128 {
15032
15068
  margin-bottom: var(--su128) !important;
15033
15069
  }
15070
+ .lg\:mb0 {
15071
+ margin-bottom: 0 !important;
15072
+ }
15034
15073
  .lg\:mbn1 {
15035
15074
  margin-bottom: calc(var(--su1) * -1) !important;
15036
15075
  }
@@ -15109,6 +15148,9 @@ ol {
15109
15148
  .lg\:ml128 {
15110
15149
  margin-left: var(--su128) !important;
15111
15150
  }
15151
+ .lg\:ml0 {
15152
+ margin-left: 0 !important;
15153
+ }
15112
15154
  .lg\:mln1 {
15113
15155
  margin-left: calc(var(--su1) * -1) !important;
15114
15156
  }
@@ -15187,6 +15229,9 @@ ol {
15187
15229
  .lg\:p128 {
15188
15230
  padding: var(--su128) !important;
15189
15231
  }
15232
+ .lg\:p0 {
15233
+ padding: 0 !important;
15234
+ }
15190
15235
  .lg\:pt1 {
15191
15236
  padding-top: var(--su1) !important;
15192
15237
  }
@@ -15226,6 +15271,9 @@ ol {
15226
15271
  .lg\:pt128 {
15227
15272
  padding-top: var(--su128) !important;
15228
15273
  }
15274
+ .lg\:pt0 {
15275
+ padding-top: 0 !important;
15276
+ }
15229
15277
  .lg\:pr1 {
15230
15278
  padding-right: var(--su1) !important;
15231
15279
  }
@@ -15304,6 +15352,9 @@ ol {
15304
15352
  .lg\:pb128 {
15305
15353
  padding-bottom: var(--su128) !important;
15306
15354
  }
15355
+ .lg\:pr0 {
15356
+ padding-right: 0 !important;
15357
+ }
15307
15358
  .lg\:pl1 {
15308
15359
  padding-left: var(--su1) !important;
15309
15360
  }
@@ -15343,6 +15394,9 @@ ol {
15343
15394
  .lg\:pl128 {
15344
15395
  padding-left: var(--su128) !important;
15345
15396
  }
15397
+ .lg\:pl0 {
15398
+ padding-left: 0 !important;
15399
+ }
15346
15400
  .lg\:t1 {
15347
15401
  top: var(--su1) !important;
15348
15402
  }
@@ -16340,6 +16394,9 @@ ol {
16340
16394
  .md\:m128 {
16341
16395
  margin: var(--su128) !important;
16342
16396
  }
16397
+ .md\:m0 {
16398
+ margin: 0 !important;
16399
+ }
16343
16400
  .md\:mn1 {
16344
16401
  margin: calc(var(--su1) * -1) !important;
16345
16402
  }
@@ -16418,6 +16475,9 @@ ol {
16418
16475
  .md\:mt128 {
16419
16476
  margin-top: var(--su128) !important;
16420
16477
  }
16478
+ .md\:mt0 {
16479
+ margin-top: 0 !important;
16480
+ }
16421
16481
  .md\:mtn1 {
16422
16482
  margin-top: calc(var(--su1) * -1) !important;
16423
16483
  }
@@ -16496,6 +16556,9 @@ ol {
16496
16556
  .md\:mr128 {
16497
16557
  margin-right: var(--su128) !important;
16498
16558
  }
16559
+ .md\:mr0 {
16560
+ margin-right: 0 !important;
16561
+ }
16499
16562
  .md\:mrn1 {
16500
16563
  margin-right: calc(var(--su1) * -1) !important;
16501
16564
  }
@@ -16574,6 +16637,9 @@ ol {
16574
16637
  .md\:mb128 {
16575
16638
  margin-bottom: var(--su128) !important;
16576
16639
  }
16640
+ .md\:mb0 {
16641
+ margin-bottom: 0 !important;
16642
+ }
16577
16643
  .md\:mbn1 {
16578
16644
  margin-bottom: calc(var(--su1) * -1) !important;
16579
16645
  }
@@ -16652,6 +16718,9 @@ ol {
16652
16718
  .md\:ml128 {
16653
16719
  margin-left: var(--su128) !important;
16654
16720
  }
16721
+ .md\:ml0 {
16722
+ margin-left: 0 !important;
16723
+ }
16655
16724
  .md\:mln1 {
16656
16725
  margin-left: calc(var(--su1) * -1) !important;
16657
16726
  }
@@ -16730,6 +16799,9 @@ ol {
16730
16799
  .md\:p128 {
16731
16800
  padding: var(--su128) !important;
16732
16801
  }
16802
+ .md\:p0 {
16803
+ padding: 0 !important;
16804
+ }
16733
16805
  .md\:pt1 {
16734
16806
  padding-top: var(--su1) !important;
16735
16807
  }
@@ -16769,6 +16841,9 @@ ol {
16769
16841
  .md\:pt128 {
16770
16842
  padding-top: var(--su128) !important;
16771
16843
  }
16844
+ .md\:pt0 {
16845
+ padding-top: 0 !important;
16846
+ }
16772
16847
  .md\:pr1 {
16773
16848
  padding-right: var(--su1) !important;
16774
16849
  }
@@ -16847,6 +16922,9 @@ ol {
16847
16922
  .md\:pb128 {
16848
16923
  padding-bottom: var(--su128) !important;
16849
16924
  }
16925
+ .md\:pr0 {
16926
+ padding-right: 0 !important;
16927
+ }
16850
16928
  .md\:pl1 {
16851
16929
  padding-left: var(--su1) !important;
16852
16930
  }
@@ -16886,6 +16964,9 @@ ol {
16886
16964
  .md\:pl128 {
16887
16965
  padding-left: var(--su128) !important;
16888
16966
  }
16967
+ .md\:pl0 {
16968
+ padding-left: 0 !important;
16969
+ }
16889
16970
  .md\:t1 {
16890
16971
  top: var(--su1) !important;
16891
16972
  }
@@ -17883,6 +17964,9 @@ ol {
17883
17964
  .sm\:m128 {
17884
17965
  margin: var(--su128) !important;
17885
17966
  }
17967
+ .sm\:m0 {
17968
+ margin: 0 !important;
17969
+ }
17886
17970
  .sm\:mn1 {
17887
17971
  margin: calc(var(--su1) * -1) !important;
17888
17972
  }
@@ -17961,6 +18045,9 @@ ol {
17961
18045
  .sm\:mt128 {
17962
18046
  margin-top: var(--su128) !important;
17963
18047
  }
18048
+ .sm\:mt0 {
18049
+ margin-top: 0 !important;
18050
+ }
17964
18051
  .sm\:mtn1 {
17965
18052
  margin-top: calc(var(--su1) * -1) !important;
17966
18053
  }
@@ -18039,6 +18126,9 @@ ol {
18039
18126
  .sm\:mr128 {
18040
18127
  margin-right: var(--su128) !important;
18041
18128
  }
18129
+ .sm\:mr0 {
18130
+ margin-right: 0 !important;
18131
+ }
18042
18132
  .sm\:mrn1 {
18043
18133
  margin-right: calc(var(--su1) * -1) !important;
18044
18134
  }
@@ -18117,6 +18207,9 @@ ol {
18117
18207
  .sm\:mb128 {
18118
18208
  margin-bottom: var(--su128) !important;
18119
18209
  }
18210
+ .sm\:mb0 {
18211
+ margin-bottom: 0 !important;
18212
+ }
18120
18213
  .sm\:mbn1 {
18121
18214
  margin-bottom: calc(var(--su1) * -1) !important;
18122
18215
  }
@@ -18195,6 +18288,9 @@ ol {
18195
18288
  .sm\:ml128 {
18196
18289
  margin-left: var(--su128) !important;
18197
18290
  }
18291
+ .sm\:ml0 {
18292
+ margin-left: 0 !important;
18293
+ }
18198
18294
  .sm\:mln1 {
18199
18295
  margin-left: calc(var(--su1) * -1) !important;
18200
18296
  }
@@ -18273,6 +18369,9 @@ ol {
18273
18369
  .sm\:p128 {
18274
18370
  padding: var(--su128) !important;
18275
18371
  }
18372
+ .sm\:p0 {
18373
+ padding: 0 !important;
18374
+ }
18276
18375
  .sm\:pt1 {
18277
18376
  padding-top: var(--su1) !important;
18278
18377
  }
@@ -18312,6 +18411,9 @@ ol {
18312
18411
  .sm\:pt128 {
18313
18412
  padding-top: var(--su128) !important;
18314
18413
  }
18414
+ .sm\:pt0 {
18415
+ padding-top: 0 !important;
18416
+ }
18315
18417
  .sm\:pr1 {
18316
18418
  padding-right: var(--su1) !important;
18317
18419
  }
@@ -18390,6 +18492,9 @@ ol {
18390
18492
  .sm\:pb128 {
18391
18493
  padding-bottom: var(--su128) !important;
18392
18494
  }
18495
+ .sm\:pr0 {
18496
+ padding-right: 0 !important;
18497
+ }
18393
18498
  .sm\:pl1 {
18394
18499
  padding-left: var(--su1) !important;
18395
18500
  }
@@ -18429,6 +18534,9 @@ ol {
18429
18534
  .sm\:pl128 {
18430
18535
  padding-left: var(--su128) !important;
18431
18536
  }
18537
+ .sm\:pl0 {
18538
+ padding-left: 0 !important;
18539
+ }
18432
18540
  .sm\:t1 {
18433
18541
  top: var(--su1) !important;
18434
18542
  }