@stackoverflow/stacks 0.76.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 (77) hide show
  1. package/LICENSE.MD +9 -9
  2. package/README.md +0 -0
  3. package/dist/controllers/index.d.ts +7 -7
  4. package/dist/controllers/s-expandable-control.d.ts +17 -17
  5. package/dist/controllers/s-modal.d.ts +97 -97
  6. package/dist/controllers/s-navigation-tablist.d.ts +36 -36
  7. package/dist/controllers/s-popover.d.ts +155 -155
  8. package/dist/controllers/s-table.d.ts +8 -8
  9. package/dist/controllers/s-tooltip.d.ts +82 -82
  10. package/dist/controllers/s-uploader.d.ts +48 -48
  11. package/dist/css/stacks.css +4354 -2560
  12. package/dist/css/stacks.min.css +1 -1
  13. package/dist/index.d.ts +3 -3
  14. package/dist/js/stacks.js +1978 -1978
  15. package/dist/js/stacks.min.js +1 -1
  16. package/dist/stacks.d.ts +21 -21
  17. package/lib/css/atomic/{_stacks-borders.less → borders.less} +30 -30
  18. package/lib/css/atomic/{_stacks-colors.less → colors.less} +0 -0
  19. package/lib/css/atomic/{_stacks-flex.less → flex.less} +14 -13
  20. package/lib/css/atomic/{_stacks-grid.less → grid.less} +11 -11
  21. package/lib/css/atomic/{_stacks-misc.less → misc.less} +22 -22
  22. package/lib/css/atomic/spacing.less +332 -0
  23. package/lib/css/atomic/{_stacks-typography.less → typography.less} +29 -29
  24. package/lib/css/atomic/width-height.less +194 -0
  25. package/lib/css/base/{_stacks-body.less → body.less} +2 -2
  26. package/lib/css/base/{_stacks-configuration-static.less → configuration-static.less} +3 -1
  27. package/lib/css/base/{_stacks-icons.less → icons.less} +0 -0
  28. package/lib/css/base/{_stacks-internals.less → internals.less} +0 -0
  29. package/lib/css/base/{_stacks-reset-meyer.less → reset-meyer.less} +0 -0
  30. package/lib/css/base/{_stacks-reset-normalize.less → reset-normalize.less} +0 -0
  31. package/lib/css/base/{_stacks-reset.less → reset.less} +2 -2
  32. package/lib/css/components/{_stacks-activity-indicator.less → activity-indicator.less} +9 -9
  33. package/lib/css/components/{_stacks-avatars.less → avatars.less} +40 -40
  34. package/lib/css/components/{_stacks-badges.less → badges.less} +11 -11
  35. package/lib/css/components/{_stacks-banners.less → banners.less} +5 -5
  36. package/lib/css/components/{_stacks-blank-states.less → blank-states.less} +2 -2
  37. package/lib/css/components/{_stacks-breadcrumbs.less → breadcrumbs.less} +7 -7
  38. package/lib/css/components/{_stacks-button-groups.less → button-groups.less} +2 -2
  39. package/lib/css/components/{_stacks-buttons.less → buttons.less} +46 -39
  40. package/lib/css/components/{_stacks-cards.less → cards.less} +2 -2
  41. package/lib/css/components/{_stacks-code-blocks.less → code-blocks.less} +8 -8
  42. package/lib/css/components/{_stacks-collapsible.less → collapsible.less} +0 -0
  43. package/lib/css/components/{_stacks-inputs.less → inputs.less} +41 -41
  44. package/lib/css/components/{_stacks-link-previews.less → link-previews.less} +17 -17
  45. package/lib/css/components/{_stacks-links.less → links.less} +4 -4
  46. package/lib/css/components/{_stacks-menu.less → menu.less} +5 -5
  47. package/lib/css/components/{_stacks-modals.less → modals.less} +20 -20
  48. package/lib/css/components/{_stacks-navigation.less → navigation.less} +12 -12
  49. package/lib/css/components/{_stacks-notices.less → notices.less} +12 -12
  50. package/lib/css/components/{_stacks-page-titles.less → page-titles.less} +9 -9
  51. package/lib/css/components/{_stacks-pagination.less → pagination.less} +8 -8
  52. package/lib/css/components/{_stacks-popovers.less → popovers.less} +17 -17
  53. package/lib/css/components/{_stacks-post-summary.less → post-summary.less} +35 -35
  54. package/lib/css/components/{_stacks-progress-bars.less → progress-bars.less} +29 -30
  55. package/lib/css/components/{_stacks-prose.less → prose.less} +31 -31
  56. package/lib/css/components/{_stacks-spinner.less → spinner.less} +14 -14
  57. package/lib/css/components/{_stacks-tables.less → tables.less} +10 -10
  58. package/lib/css/components/{_stacks-tags.less → tags.less} +24 -24
  59. package/lib/css/components/{_stacks-toggle-switches.less → toggle-switches.less} +5 -5
  60. package/lib/css/components/{_stacks-topbar.less → topbar.less} +22 -20
  61. package/lib/css/components/{_stacks-uploader.less → uploader.less} +18 -18
  62. package/lib/css/components/{_stacks-user-cards.less → user-cards.less} +14 -14
  63. package/lib/css/components/{_stacks-widget-dynamic.less → widget-dynamic.less} +1 -1
  64. package/lib/css/components/{_stacks-widget-static.less → widget-static.less} +39 -38
  65. package/lib/css/exports/{_stacks-constants-colors.less → constants-colors.less} +9 -29
  66. package/lib/css/exports/constants-helpers.less +108 -0
  67. package/lib/css/exports/constants-type.less +153 -0
  68. package/lib/css/exports/{_stacks-exports.less → exports.less} +4 -4
  69. package/lib/css/exports/{_stacks-mixins.less → mixins.less} +18 -1
  70. package/lib/css/stacks-dynamic.less +12 -12
  71. package/lib/css/stacks-static.less +38 -38
  72. package/lib/css/stacks.less +13 -13
  73. package/package.json +9 -9
  74. package/lib/css/atomic/_stacks-spacing.less +0 -168
  75. package/lib/css/atomic/_stacks-width-height.less +0 -195
  76. package/lib/css/exports/_stacks-constants-helpers.less +0 -139
  77. package/lib/css/exports/_stacks-constants-type.less +0 -152
@@ -1,152 +0,0 @@
1
- //
2
- // STACK OVERFLOW
3
- // CONSTANTS -- TYPOGRAPHY
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
- // These are the Stacks type variables. These should be used in place of
10
- // hard-coded values within CSS declarations.
11
- //
12
- //
13
- // ============================================================================
14
- // $ FONT FAMILY (ff-)
15
- // ----------------------------------------------------------------------------
16
-
17
- // Add Segoe UI Adjusted as a font family, and adjust its baseline
18
- @font-face {
19
- font-family: "Segoe UI Adjusted";
20
- src: local(Segoe UI);
21
- ascent-override: 95%;
22
- }
23
-
24
- // Segoe UI is variable, but only in Windows 11, so add all the variants
25
- @font-face {
26
- font-family: "Segoe UI Adjusted";
27
- src: local(Segoe UI Italic);
28
- ascent-override: 95%;
29
- font-style: italic;
30
- }
31
-
32
- @font-face {
33
- font-family: "Segoe UI Adjusted";
34
- src: local(Segoe UI Semibold);
35
- ascent-override: 95%;
36
- font-weight: 600;
37
- }
38
-
39
- @font-face {
40
- font-family: "Segoe UI Adjusted";
41
- src: local(Segoe UI Semibold Italic);
42
- ascent-override: 95%;
43
- font-style: italic;
44
- font-weight: 600;
45
- }
46
-
47
- @font-face {
48
- font-family: "Segoe UI Adjusted";
49
- src: local(Segoe UI Bold);
50
- ascent-override: 90%;
51
- font-weight: 700;
52
- }
53
-
54
- @font-face {
55
- font-family: "Segoe UI Adjusted";
56
- src: local(Segoe UI Bold Italic);
57
- ascent-override: 95%;
58
- font-style: italic;
59
- font-weight: 700;
60
- }
61
-
62
- @font-face {
63
- font-family: "Segoe UI Adjusted";
64
- src: local(Segoe UI Black);
65
- ascent-override: 95%;
66
- font-weight: 800;
67
- }
68
-
69
- @font-face {
70
- font-family: "Segoe UI Adjusted";
71
- src: local(Segoe UI Black Italic);
72
- ascent-override: 95%;
73
- font-style: italic;
74
- font-weight: 800;
75
- }
76
-
77
- @ff-sans:
78
- -apple-system, BlinkMacSystemFont, // San Francisco on macOS and iOS
79
- "Segoe UI Adjusted", "Segoe UI", // Windows
80
- "Liberation Sans", // Linux
81
- sans-serif; // The final fallback for rendering in sans-serif.
82
- @ff-serif: Georgia, Cambria, "Times New Roman", Times, serif;
83
- @ff-mono:
84
- ui-monospace, // San Francisco Mono on macOS and iOS
85
- "Cascadia Mono", "Segoe UI Mono", // Newer Windows monospace fonts that are optionally installed. Most likely to be rendered in Consolas
86
- "Liberation Mono", // Linux
87
- Menlo, Monaco, Consolas, // A few sensible system font choices
88
- monospace; // The final fallback for rendering in monospace.
89
-
90
- body {
91
- --ff-sans: @ff-sans;
92
- --ff-serif: @ff-serif;
93
- --ff-mono: @ff-mono;
94
- --theme-body-font-family: var(--ff-sans);
95
- }
96
-
97
- // ============================================================================
98
- // $ FONT SIZES (fs-)
99
- // Base font-size is 13px.
100
- // ----------------------------------------------------------------------------
101
- @fs-fine: 11px;
102
- @fs-caption: 12px;
103
- @fs-body1: 13px;
104
-
105
- // Relative to the root element
106
- @fs-body2: 1.153846154rem;
107
- @fs-body3: 1.307692308rem;
108
- @fs-subheading: 1.461538462rem;
109
- @fs-title: 1.615384615rem;
110
- @fs-headline1: 2.076923077rem;
111
- @fs-headline2: 2.615384615rem;
112
- @fs-display1: 3.307692308rem;
113
- @fs-display2: 4.230769231rem;
114
- @fs-display3: 5.307692308rem;
115
- @fs-display4: 7.615384615rem;
116
-
117
- // Relative to the parent
118
- @fs-body2-relative: 1.153846154em;
119
- @fs-body3-relative: 1.307692308em;
120
- @fs-subheading-relative: 1.461538462em;
121
- @fs-title-relative: 1.615384615em;
122
- @fs-headline1-relative: 2.076923077em;
123
- @fs-headline2-relative: 2.615384615em;
124
- @fs-display1-relative: 3.307692308em;
125
- @fs-display2-relative: 4.230769231em;
126
- @fs-display3-relative: 5.307692308em;
127
- @fs-display4-relative: 7.615384615em;
128
-
129
- @fs-base: 13px;
130
-
131
-
132
- // ============================================================================
133
- // $ LINE HEIGHT (lh-)
134
- // ----------------------------------------------------------------------------
135
- // Need to remove the unit off the font-size to make line-height unitless
136
- // FIXME this shouldn't be public.
137
- @_stacks-internals-lh-unit: unit(@fs-base);
138
-
139
- // Now the various line-height variables
140
- @lh-xs: 1;
141
- @lh-sm: ((@_stacks-internals-lh-unit + 2) / @_stacks-internals-lh-unit);
142
- @lh-md: ((@_stacks-internals-lh-unit + 4) / @_stacks-internals-lh-unit);
143
- @lh-lg: ((@_stacks-internals-lh-unit + 8) / @_stacks-internals-lh-unit);
144
- @lh-xl: ((@_stacks-internals-lh-unit + 12) / @_stacks-internals-lh-unit);
145
- @lh-xxl: 2;
146
-
147
- @lh-base: @lh-md;
148
-
149
- // Holdover line-heights from production. These are NOT to be used and
150
- // need to be deprecated.
151
- // ----------------------------------------------------------------------------
152
- @lh-6: ((@_stacks-internals-lh-unit + 6) / @_stacks-internals-lh-unit);