@stackoverflow/stacks 0.76.0 → 1.0.0-beta.0
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/LICENSE.MD +9 -9
- package/README.md +47 -47
- package/dist/controllers/index.d.ts +7 -7
- package/dist/controllers/s-expandable-control.d.ts +17 -17
- package/dist/controllers/s-modal.d.ts +97 -97
- package/dist/controllers/s-navigation-tablist.d.ts +36 -36
- package/dist/controllers/s-popover.d.ts +155 -155
- package/dist/controllers/s-table.d.ts +8 -8
- package/dist/controllers/s-tooltip.d.ts +82 -82
- package/dist/controllers/s-uploader.d.ts +48 -48
- package/dist/css/stacks.css +4321 -2635
- package/dist/css/stacks.min.css +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/js/stacks.js +1978 -1978
- package/dist/js/stacks.min.js +1 -1
- package/dist/stacks.d.ts +21 -21
- package/lib/css/atomic/{_stacks-borders.less → borders.less} +378 -378
- package/lib/css/atomic/{_stacks-colors.less → colors.less} +209 -209
- package/lib/css/atomic/{_stacks-flex.less → flex.less} +375 -374
- package/lib/css/atomic/{_stacks-grid.less → grid.less} +174 -174
- package/lib/css/atomic/{_stacks-misc.less → misc.less} +343 -343
- package/lib/css/atomic/spacing.less +314 -0
- package/lib/css/atomic/{_stacks-typography.less → typography.less} +273 -273
- package/lib/css/atomic/width-height.less +194 -0
- package/lib/css/base/{_stacks-body.less → body.less} +44 -44
- package/lib/css/base/{_stacks-configuration-static.less → configuration-static.less} +61 -59
- package/lib/css/base/{_stacks-icons.less → icons.less} +20 -20
- package/lib/css/base/{_stacks-internals.less → internals.less} +220 -220
- package/lib/css/base/{_stacks-reset-meyer.less → reset-meyer.less} +64 -64
- package/lib/css/base/{_stacks-reset-normalize.less → reset-normalize.less} +449 -449
- package/lib/css/base/{_stacks-reset.less → reset.less} +20 -20
- package/lib/css/components/{_stacks-activity-indicator.less → activity-indicator.less} +45 -45
- package/lib/css/components/{_stacks-avatars.less → avatars.less} +189 -189
- package/lib/css/components/{_stacks-badges.less → badges.less} +209 -209
- package/lib/css/components/{_stacks-banners.less → banners.less} +80 -80
- package/lib/css/components/{_stacks-blank-states.less → blank-states.less} +26 -26
- package/lib/css/components/{_stacks-breadcrumbs.less → breadcrumbs.less} +44 -44
- package/lib/css/components/{_stacks-button-groups.less → button-groups.less} +104 -104
- package/lib/css/components/{_stacks-buttons.less → buttons.less} +665 -658
- package/lib/css/components/{_stacks-cards.less → cards.less} +44 -44
- package/lib/css/components/{_stacks-code-blocks.less → code-blocks.less} +130 -130
- package/lib/css/components/{_stacks-collapsible.less → collapsible.less} +104 -104
- package/lib/css/components/{_stacks-inputs.less → inputs.less} +728 -728
- package/lib/css/components/{_stacks-link-previews.less → link-previews.less} +136 -136
- package/lib/css/components/{_stacks-links.less → links.less} +218 -218
- package/lib/css/components/{_stacks-menu.less → menu.less} +47 -47
- package/lib/css/components/{_stacks-modals.less → modals.less} +133 -133
- package/lib/css/components/{_stacks-navigation.less → navigation.less} +146 -146
- package/lib/css/components/{_stacks-notices.less → notices.less} +233 -233
- package/lib/css/components/{_stacks-page-titles.less → page-titles.less} +60 -60
- package/lib/css/components/{_stacks-pagination.less → pagination.less} +55 -55
- package/lib/css/components/{_stacks-popovers.less → popovers.less} +197 -197
- package/lib/css/components/{_stacks-post-summary.less → post-summary.less} +425 -425
- package/lib/css/components/{_stacks-progress-bars.less → progress-bars.less} +330 -331
- package/lib/css/components/{_stacks-prose.less → prose.less} +503 -503
- package/lib/css/components/{_stacks-spinner.less → spinner.less} +107 -107
- package/lib/css/components/{_stacks-tables.less → tables.less} +341 -341
- package/lib/css/components/{_stacks-tags.less → tags.less} +236 -236
- package/lib/css/components/{_stacks-toggle-switches.less → toggle-switches.less} +144 -144
- package/lib/css/components/{_stacks-topbar.less → topbar.less} +427 -425
- package/lib/css/components/{_stacks-uploader.less → uploader.less} +210 -210
- package/lib/css/components/{_stacks-user-cards.less → user-cards.less} +169 -169
- package/lib/css/components/{_stacks-widget-dynamic.less → widget-dynamic.less} +33 -33
- package/lib/css/components/{_stacks-widget-static.less → widget-static.less} +273 -272
- package/lib/css/exports/{_stacks-constants-colors.less → constants-colors.less} +1092 -1112
- package/lib/css/exports/constants-helpers.less +108 -0
- package/lib/css/exports/{_stacks-constants-type.less → constants-type.less} +153 -152
- package/lib/css/exports/{_stacks-exports.less → exports.less} +15 -15
- package/lib/css/exports/{_stacks-mixins.less → mixins.less} +237 -220
- package/lib/css/stacks-dynamic.less +35 -35
- package/lib/css/stacks-static.less +86 -86
- package/lib/ts/controllers/index.ts +7 -7
- package/lib/ts/controllers/s-expandable-control.ts +188 -188
- package/lib/ts/controllers/s-modal.ts +321 -321
- package/lib/ts/controllers/s-navigation-tablist.ts +117 -117
- package/lib/ts/controllers/s-popover.ts +547 -547
- package/lib/ts/controllers/s-table.ts +220 -220
- package/lib/ts/controllers/s-tooltip.ts +246 -246
- package/lib/ts/controllers/s-uploader.ts +172 -172
- package/lib/ts/index.ts +20 -20
- package/lib/ts/stacks.ts +88 -88
- package/lib/tsconfig.json +13 -13
- package/package.json +87 -87
- package/lib/css/atomic/_stacks-spacing.less +0 -168
- package/lib/css/atomic/_stacks-width-height.less +0 -195
- package/lib/css/exports/_stacks-constants-helpers.less +0 -139
|
@@ -1,107 +1,107 @@
|
|
|
1
|
-
//
|
|
2
|
-
// STACK OVERFLOW
|
|
3
|
-
// SPINNER
|
|
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
|
-
// TABLE OF CONTENTS
|
|
10
|
-
// • BASE STYLE
|
|
11
|
-
//
|
|
12
|
-
// ============================================================================
|
|
13
|
-
// $ SPINNER BASE STYLE
|
|
14
|
-
// ----------------------------------------------------------------------------
|
|
15
|
-
|
|
16
|
-
.s-spinner {
|
|
17
|
-
position: relative;
|
|
18
|
-
width:
|
|
19
|
-
height:
|
|
20
|
-
text-align: left; // When within a parent that has text-align: center, the spinner's entire container spins, not just the spinner. Let's force text-align left so things spin internally.
|
|
21
|
-
|
|
22
|
-
&:before,
|
|
23
|
-
&:after {
|
|
24
|
-
content: '';
|
|
25
|
-
position: absolute;
|
|
26
|
-
width: 100%;
|
|
27
|
-
height: 100%;
|
|
28
|
-
border: 3px solid currentColor;
|
|
29
|
-
border-radius:
|
|
30
|
-
}
|
|
31
|
-
&:before {
|
|
32
|
-
opacity: 0.25;
|
|
33
|
-
transform: rotate(90deg); // (*)
|
|
34
|
-
}
|
|
35
|
-
&:after {
|
|
36
|
-
border-top-color: transparent;
|
|
37
|
-
border-right-color: transparent;
|
|
38
|
-
border-bottom-color: transparent;
|
|
39
|
-
animation: s-spinner-rotate 0.9s infinite cubic-bezier(0.5, 0.1, 0.5, 0.9);
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
&.s-spinner__xs {
|
|
43
|
-
width:
|
|
44
|
-
height:
|
|
45
|
-
&:before,
|
|
46
|
-
&:after {
|
|
47
|
-
border-width: 1px;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
&.s-spinner__sm {
|
|
52
|
-
width:
|
|
53
|
-
height:
|
|
54
|
-
&:before,
|
|
55
|
-
&:after {
|
|
56
|
-
border-width:
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
&.s-spinner__md {
|
|
61
|
-
width:
|
|
62
|
-
height:
|
|
63
|
-
&:before,
|
|
64
|
-
&:after {
|
|
65
|
-
border-width:
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
&.s-spinner__lg {
|
|
70
|
-
width:
|
|
71
|
-
height:
|
|
72
|
-
&:before,
|
|
73
|
-
&:after {
|
|
74
|
-
border-width:
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
// Cross-browser fixes. These are all practically no-ops, so we could just specify them
|
|
79
|
-
// without browser hacks, but that would be punishing non-broken browsers with extra
|
|
80
|
-
// unnecessary compositing work.
|
|
81
|
-
&,
|
|
82
|
-
&:before,
|
|
83
|
-
&:after {
|
|
84
|
-
// Safari: At least at 1dpp resolution, Safari crops the transformed elements
|
|
85
|
-
// too aggressively, leading to a very visible flat edge part of the circle.
|
|
86
|
-
// This invisible box shadow increases the area that the effects work on and thus
|
|
87
|
-
// makes the circle round again.
|
|
88
|
-
//
|
|
89
|
-
// Targeting only Safari:
|
|
90
|
-
// https://browserstrangeness.bitbucket.io/css_hacks.html#safari
|
|
91
|
-
@media not all and (min-resolution: 0.001dpcm) {
|
|
92
|
-
@supports (-webkit-appearance:none) and (stroke-color:transparent) {
|
|
93
|
-
box-shadow: 0 0 0 2px transparent;
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
// Keyframes
|
|
100
|
-
@keyframes s-spinner-rotate {
|
|
101
|
-
from {
|
|
102
|
-
transform: rotate(0deg);
|
|
103
|
-
}
|
|
104
|
-
to {
|
|
105
|
-
transform: rotate(360deg);
|
|
106
|
-
}
|
|
107
|
-
}
|
|
1
|
+
//
|
|
2
|
+
// STACK OVERFLOW
|
|
3
|
+
// SPINNER
|
|
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
|
+
// TABLE OF CONTENTS
|
|
10
|
+
// • BASE STYLE
|
|
11
|
+
//
|
|
12
|
+
// ============================================================================
|
|
13
|
+
// $ SPINNER BASE STYLE
|
|
14
|
+
// ----------------------------------------------------------------------------
|
|
15
|
+
|
|
16
|
+
.s-spinner {
|
|
17
|
+
position: relative;
|
|
18
|
+
width: var(--su-static24);
|
|
19
|
+
height: var(--su-static24);
|
|
20
|
+
text-align: left; // When within a parent that has text-align: center, the spinner's entire container spins, not just the spinner. Let's force text-align left so things spin internally.
|
|
21
|
+
|
|
22
|
+
&:before,
|
|
23
|
+
&:after {
|
|
24
|
+
content: '';
|
|
25
|
+
position: absolute;
|
|
26
|
+
width: 100%;
|
|
27
|
+
height: 100%;
|
|
28
|
+
border: 3px solid currentColor;
|
|
29
|
+
border-radius: var(--br-circle);
|
|
30
|
+
}
|
|
31
|
+
&:before {
|
|
32
|
+
opacity: 0.25;
|
|
33
|
+
transform: rotate(90deg); // (*)
|
|
34
|
+
}
|
|
35
|
+
&:after {
|
|
36
|
+
border-top-color: transparent;
|
|
37
|
+
border-right-color: transparent;
|
|
38
|
+
border-bottom-color: transparent;
|
|
39
|
+
animation: s-spinner-rotate 0.9s infinite cubic-bezier(0.5, 0.1, 0.5, 0.9);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
&.s-spinner__xs {
|
|
43
|
+
width: var(--su-static12);
|
|
44
|
+
height: var(--su-static12);
|
|
45
|
+
&:before,
|
|
46
|
+
&:after {
|
|
47
|
+
border-width: 1px;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
&.s-spinner__sm {
|
|
52
|
+
width: var(--su-static16);
|
|
53
|
+
height: var(--su-static16);
|
|
54
|
+
&:before,
|
|
55
|
+
&:after {
|
|
56
|
+
border-width: var(--su-static2);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
&.s-spinner__md {
|
|
61
|
+
width: var(--su-static32);
|
|
62
|
+
height: var(--su-static32);
|
|
63
|
+
&:before,
|
|
64
|
+
&:after {
|
|
65
|
+
border-width: var(--su-static4);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
&.s-spinner__lg {
|
|
70
|
+
width: var(--su-static48);
|
|
71
|
+
height: var(--su-static48);
|
|
72
|
+
&:before,
|
|
73
|
+
&:after {
|
|
74
|
+
border-width: var(--su-static6);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
// Cross-browser fixes. These are all practically no-ops, so we could just specify them
|
|
79
|
+
// without browser hacks, but that would be punishing non-broken browsers with extra
|
|
80
|
+
// unnecessary compositing work.
|
|
81
|
+
&,
|
|
82
|
+
&:before,
|
|
83
|
+
&:after {
|
|
84
|
+
// Safari: At least at 1dpp resolution, Safari crops the transformed elements
|
|
85
|
+
// too aggressively, leading to a very visible flat edge part of the circle.
|
|
86
|
+
// This invisible box shadow increases the area that the effects work on and thus
|
|
87
|
+
// makes the circle round again.
|
|
88
|
+
//
|
|
89
|
+
// Targeting only Safari:
|
|
90
|
+
// https://browserstrangeness.bitbucket.io/css_hacks.html#safari
|
|
91
|
+
@media not all and (min-resolution: 0.001dpcm) {
|
|
92
|
+
@supports (-webkit-appearance:none) and (stroke-color:transparent) {
|
|
93
|
+
box-shadow: 0 0 0 2px transparent;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
// Keyframes
|
|
100
|
+
@keyframes s-spinner-rotate {
|
|
101
|
+
from {
|
|
102
|
+
transform: rotate(0deg);
|
|
103
|
+
}
|
|
104
|
+
to {
|
|
105
|
+
transform: rotate(360deg);
|
|
106
|
+
}
|
|
107
|
+
}
|