@stackoverflow/stacks 3.0.0-beta.0 → 3.0.0-beta.2

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 (40) hide show
  1. package/dist/css/stacks.css +781 -729
  2. package/dist/css/stacks.min.css +1 -1
  3. package/dist/js/stacks.js +0 -14
  4. package/dist/js/stacks.min.js +1 -1
  5. package/lib/atomic/border.less +2 -20
  6. package/lib/atomic/misc.less +1 -1
  7. package/lib/atomic/typography.less +13 -26
  8. package/lib/base/body.less +2 -7
  9. package/lib/components/activity-indicator/activity-indicator.less +17 -13
  10. package/lib/components/anchor/anchor.less +1 -1
  11. package/lib/components/avatar/avatar.less +9 -11
  12. package/lib/components/award-bling/award-bling.less +4 -3
  13. package/lib/components/badge/badge.less +7 -7
  14. package/lib/components/block-link/block-link.less +1 -1
  15. package/lib/components/button/button.less +1 -1
  16. package/lib/components/button-group/button-group.less +1 -1
  17. package/lib/components/card/card.less +1 -1
  18. package/lib/components/checkbox_radio/checkbox_radio.less +13 -11
  19. package/lib/components/link/link.less +1 -1
  20. package/lib/components/link-preview/link-preview.less +6 -6
  21. package/lib/components/modal/modal.less +1 -1
  22. package/lib/components/notice/notice.less +1 -1
  23. package/lib/components/pagination/pagination.less +1 -1
  24. package/lib/components/popover/popover.less +0 -98
  25. package/lib/components/popover/popover.ts +0 -6
  26. package/lib/components/popover/tooltip.ts +0 -12
  27. package/lib/components/post-summary/post-summary.less +3 -3
  28. package/lib/components/progress-bar/progress-bar.less +13 -12
  29. package/lib/components/prose/prose.less +2 -2
  30. package/lib/components/skeleton/skeleton.less +1 -1
  31. package/lib/components/tag/tag.less +4 -4
  32. package/lib/components/toggle-switch/toggle-switch.less +4 -2
  33. package/lib/components/topbar/topbar.less +3 -3
  34. package/lib/components/uploader/uploader.less +3 -3
  35. package/lib/exports/color-mixins.less +13 -3
  36. package/lib/exports/color-sets.less +255 -216
  37. package/lib/exports/constants-helpers.less +5 -3
  38. package/lib/exports/constants-type.less +25 -25
  39. package/lib/exports/mixins.less +2 -2
  40. package/package.json +1 -1
@@ -31,10 +31,12 @@ body {
31
31
  --zi-modals: 9000; // Modals
32
32
 
33
33
  // Border Radius
34
- --br-sm: calc(var(--su-static4));
35
- --br-md: calc(var(--su-static6));
36
- --br-lg: calc(var(--su-static8));
34
+ --br-md: calc(var(--su-static4) + var(--su-static6)); // 10px;
37
35
  --br-circle: 50%;
36
+ --br-pill: 1000px;
37
+ // TODO SHINE Retaining legacy border radius for backward compatibility
38
+ --br-sm: var(--br-md); // Retaining legacy border radius for backward compatibility
39
+ --br-lg: var(--br-md); // Retaining legacy border radius for backward compatibility
38
40
 
39
41
  // Transition easings
40
42
  --te-smooth-slow: cubic-bezier(0.25, 0.46, 0.45, 0.94); // easeOutQuad
@@ -99,44 +99,44 @@ body {
99
99
  // $ FONT SIZES (fs-)
100
100
  // Base font-size is 13px.
101
101
  // ----------------------------------------------------------------------------
102
- --fs-fine: 11px;
103
- --fs-caption: 12px;
104
- --fs-body1: 13px;
102
+ --fs-fine: 12px;
103
+ --fs-caption: 13px;
104
+ --fs-body1: 14px;
105
105
 
106
106
  // Relative to the root element
107
- --fs-body2: 1.153846154rem;
108
- --fs-body3: 1.307692308rem;
109
- --fs-subheading: 1.461538462rem;
110
- --fs-title: 1.615384615rem;
111
- --fs-headline1: 2.076923077rem;
112
- --fs-headline2: 2.615384615rem;
113
- --fs-display1: 3.307692308rem;
114
- --fs-display2: 4.230769231rem;
115
- --fs-display3: 5.307692308rem;
116
- --fs-display4: 7.615384615rem;
107
+ --fs-body2: 1.143rem; // 16px
108
+ --fs-body3: 1.286rem; // 18px
109
+ --fs-subheading: 1.429rem; // 20px
110
+ --fs-title: 1.571rem; // 22px
111
+ --fs-headline1: 2rem; // 28px
112
+ --fs-headline2: 2.571rem; // 36px
113
+ --fs-display1: 3.286rem; // 46px
114
+ --fs-display2: 4.143rem; // 58px
115
+ --fs-display3: 5.143rem; // 72px
116
+ --fs-display4: 7.143rem; // 100px
117
117
 
118
118
  // Relative to the parent
119
- --fs-body2-relative: 1.153846154em;
120
- --fs-body3-relative: 1.307692308em;
121
- --fs-subheading-relative: 1.461538462em;
122
- --fs-title-relative: 1.615384615em;
123
- --fs-headline1-relative: 2.076923077em;
124
- --fs-headline2-relative: 2.615384615em;
125
- --fs-display1-relative: 3.307692308em;
126
- --fs-display2-relative: 4.230769231em;
127
- --fs-display3-relative: 5.307692308em;
128
- --fs-display4-relative: 7.615384615em;
119
+ --fs-body2-relative: 1.143rem; // 16px
120
+ --fs-body3-relative: 1.286rem; // 18px
121
+ --fs-subheading-relative: 1.429rem; // 20px
122
+ --fs-title-relative: 1.571rem; // 22px
123
+ --fs-headline1-relative: 2rem; // 28px
124
+ --fs-headline2-relative: 2.571rem; // 36px
125
+ --fs-display1-relative: 3.286rem; // 46px
126
+ --fs-display2-relative: 4.143rem; // 58px
127
+ --fs-display3-relative: 5.143rem; // 72px
128
+ --fs-display4-relative: 7.143rem; // 100px
129
129
 
130
130
  // this value is not using spacing units because the calc involved results
131
131
  // in unexpected sizing. I'm not sure why, honestly.
132
- --fs-base: 13px;
132
+ --fs-base: 14px;
133
133
 
134
134
  // ============================================================================
135
135
  // $ LINE HEIGHT (lh-)
136
136
  // ----------------------------------------------------------------------------
137
137
  // Need to remove the unit off the font-size to make line-height unitless
138
138
  // FIXME this shouldn't be public. Find a way to use unitless `--fs-base`.
139
- --stacks-internals-lh-unit: 13;
139
+ --stacks-internals-lh-unit: 14;
140
140
 
141
141
  // Now the various line-height variables
142
142
  --lh-xs: 1;
@@ -242,7 +242,7 @@
242
242
 
243
243
  // md
244
244
  & when (@size = md) and (@style = br) {
245
- --_@{prefix}-br: calc(var(--br-sm) + var(--su-static1));
245
+ --_@{prefix}-br: calc(var(--br-md) + var(--su-static1));
246
246
  }
247
247
  & when (@size = md) and (@style = fs) {
248
248
  --_@{prefix}-fs: var(--fs-body3);
@@ -250,7 +250,7 @@
250
250
 
251
251
  // lg
252
252
  & when (@size = lg) and (@style = br) {
253
- --_@{prefix}-br: calc(var(--br-sm) + var(--su-static1));
253
+ --_@{prefix}-br: calc(var(--br-md) + var(--su-static1));
254
254
  }
255
255
  & when (@size = lg) and (@style = fs) {
256
256
  --_@{prefix}-fs: var(--fs-title);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stackoverflow/stacks",
3
3
  "description": "Stack Overflow’s CSS and Design Pattern Library. Stacks is an atomic CSS library with classes and components for rapidly building Stack Overflow.",
4
- "version": "3.0.0-beta.0",
4
+ "version": "3.0.0-beta.2",
5
5
  "files": [
6
6
  "dist",
7
7
  "lib",