@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.
- package/dist/css/stacks.css +781 -729
- package/dist/css/stacks.min.css +1 -1
- package/dist/js/stacks.js +0 -14
- package/dist/js/stacks.min.js +1 -1
- package/lib/atomic/border.less +2 -20
- package/lib/atomic/misc.less +1 -1
- package/lib/atomic/typography.less +13 -26
- package/lib/base/body.less +2 -7
- package/lib/components/activity-indicator/activity-indicator.less +17 -13
- package/lib/components/anchor/anchor.less +1 -1
- package/lib/components/avatar/avatar.less +9 -11
- package/lib/components/award-bling/award-bling.less +4 -3
- package/lib/components/badge/badge.less +7 -7
- package/lib/components/block-link/block-link.less +1 -1
- package/lib/components/button/button.less +1 -1
- package/lib/components/button-group/button-group.less +1 -1
- package/lib/components/card/card.less +1 -1
- package/lib/components/checkbox_radio/checkbox_radio.less +13 -11
- package/lib/components/link/link.less +1 -1
- package/lib/components/link-preview/link-preview.less +6 -6
- package/lib/components/modal/modal.less +1 -1
- package/lib/components/notice/notice.less +1 -1
- package/lib/components/pagination/pagination.less +1 -1
- package/lib/components/popover/popover.less +0 -98
- package/lib/components/popover/popover.ts +0 -6
- package/lib/components/popover/tooltip.ts +0 -12
- package/lib/components/post-summary/post-summary.less +3 -3
- package/lib/components/progress-bar/progress-bar.less +13 -12
- package/lib/components/prose/prose.less +2 -2
- package/lib/components/skeleton/skeleton.less +1 -1
- package/lib/components/tag/tag.less +4 -4
- package/lib/components/toggle-switch/toggle-switch.less +4 -2
- package/lib/components/topbar/topbar.less +3 -3
- package/lib/components/uploader/uploader.less +3 -3
- package/lib/exports/color-mixins.less +13 -3
- package/lib/exports/color-sets.less +255 -216
- package/lib/exports/constants-helpers.less +5 -3
- package/lib/exports/constants-type.less +25 -25
- package/lib/exports/mixins.less +2 -2
- package/package.json +1 -1
|
@@ -31,10 +31,12 @@ body {
|
|
|
31
31
|
--zi-modals: 9000; // Modals
|
|
32
32
|
|
|
33
33
|
// Border Radius
|
|
34
|
-
--br-
|
|
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:
|
|
103
|
-
--fs-caption:
|
|
104
|
-
--fs-body1:
|
|
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.
|
|
108
|
-
--fs-body3: 1.
|
|
109
|
-
--fs-subheading: 1.
|
|
110
|
-
--fs-title: 1.
|
|
111
|
-
--fs-headline1:
|
|
112
|
-
--fs-headline2: 2.
|
|
113
|
-
--fs-display1: 3.
|
|
114
|
-
--fs-display2: 4.
|
|
115
|
-
--fs-display3: 5.
|
|
116
|
-
--fs-display4: 7.
|
|
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.
|
|
120
|
-
--fs-body3-relative: 1.
|
|
121
|
-
--fs-subheading-relative: 1.
|
|
122
|
-
--fs-title-relative: 1.
|
|
123
|
-
--fs-headline1-relative:
|
|
124
|
-
--fs-headline2-relative: 2.
|
|
125
|
-
--fs-display1-relative: 3.
|
|
126
|
-
--fs-display2-relative: 4.
|
|
127
|
-
--fs-display3-relative: 5.
|
|
128
|
-
--fs-display4-relative: 7.
|
|
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:
|
|
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:
|
|
139
|
+
--stacks-internals-lh-unit: 14;
|
|
140
140
|
|
|
141
141
|
// Now the various line-height variables
|
|
142
142
|
--lh-xs: 1;
|
package/lib/exports/mixins.less
CHANGED
|
@@ -242,7 +242,7 @@
|
|
|
242
242
|
|
|
243
243
|
// md
|
|
244
244
|
& when (@size = md) and (@style = br) {
|
|
245
|
-
--_@{prefix}-br: calc(var(--br-
|
|
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-
|
|
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.
|
|
4
|
+
"version": "3.0.0-beta.2",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
7
7
|
"lib",
|