@stackoverflow/stacks 3.0.0-beta.20 → 3.0.0-beta.22

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/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.20",
4
+ "version": "3.0.0-beta.22",
5
5
  "files": [
6
6
  "dist",
7
7
  "lib",
@@ -1,103 +0,0 @@
1
- .s-spinner {
2
- --_sp-baw: calc(var(--su-static1) * 3); // 3px
3
- --_sp-size: var(--su-static24);
4
-
5
- // MODIFIERS
6
- &&__xs {
7
- --_sp-baw: var(--su-static1);
8
- --_sp-size: var(--su-static12);
9
- }
10
-
11
- &&__sm {
12
- --_sp-baw: var(--su-static2);
13
- --_sp-size: var(--su-static16);
14
- }
15
-
16
- &&__md {
17
- --_sp-baw: var(--su-static4);
18
- --_sp-size: var(--su-static32);
19
- }
20
-
21
- &&__lg {
22
- --_sp-baw: var(--su-static6);
23
- --_sp-size: var(--su-static48);
24
- }
25
-
26
- // CHILD ELEMENTS
27
- &:after,
28
- &:before {
29
- border: var(--_sp-baw) solid currentColor;
30
-
31
- border-radius: var(--br-circle);
32
- content: '';
33
- height: 100%;
34
- position: absolute;
35
- width: 100%;
36
- }
37
-
38
- &:after {
39
- border-top-color: transparent;
40
- border-right-color: transparent;
41
- border-bottom-color: transparent;
42
- animation: s-spinner-rotate 0.9s infinite cubic-bezier(0.5, 0.1, 0.5, 0.9);
43
- }
44
-
45
- &:before {
46
- opacity: 0.25;
47
- transform: rotate(90deg); // [1]
48
- }
49
-
50
- height: var(--_sp-size);
51
- width: var(--_sp-size);
52
-
53
- position: relative;
54
- text-align: left; // [2]
55
- }
56
-
57
- .is-loading {
58
- --_li-offset: 0.6em;
59
- --_il-size: 1.23076923em;
60
-
61
- &:after,
62
- &:before {
63
- border-radius: var(--br-circle);
64
- border-style: solid;
65
- border-width: var(--su-static2);
66
- content: "";
67
- height: var(--_il-size);
68
- left: var(--_li-offset);
69
- position: absolute;
70
- top: calc(50% - var(--_li-offset));
71
- width: var(--_il-size);
72
- }
73
-
74
- &:after {
75
- animation: s-spinner-rotate 0.9s infinite cubic-bezier(0.5, 0.1, 0.5, 0.9);
76
- border-color: transparent;
77
- border-left-color: currentColor;
78
- filter: invert(0); // [1]
79
- transform-origin: 50% 50% var(--su-static1); // [1]
80
- }
81
-
82
- &:before {
83
- border-color: currentColor;
84
- opacity: 0.3;
85
- }
86
-
87
- padding-left: 2.2em;
88
- position: relative;
89
- }
90
-
91
- // Keyframes
92
- @keyframes s-spinner-rotate {
93
- from {
94
- transform: rotate(0deg);
95
- }
96
- to {
97
- transform: rotate(360deg);
98
- }
99
- }
100
-
101
- // [1] no-op to reduce wobble in Edge. More info: https://github.com/StackExchange/Stacks/blob/d2af26aca06c47e3f1f7a638e49b221a9e28e450/lib/css/components/_stacks-spinner.less#L16-L26
102
-
103
- // [2] 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.