This repository has been archived by the owner on Feb 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 220
/
style.scss
73 lines (68 loc) · 1.46 KB
/
style.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
.wc-block-components-button:not(.is-link) {
@include reset-typography();
align-items: center;
background-color: $gray-900;
color: $white;
display: inline-flex;
font-weight: bold;
min-height: 3em;
justify-content: center;
line-height: 1;
padding: 0 em($gap);
text-align: center;
text-decoration: none;
text-transform: none;
position: relative;
&:disabled,
&:hover,
&:focus,
&:active {
background-color: $gray-900;
color: $white;
}
.wc-block-components-button__text {
display: block;
> svg {
fill: currentColor;
}
}
.wc-block-components-button__spinner {
width: 1em;
height: 1em;
position: absolute;
top: 50%;
left: 0;
width: 100%;
height: 100%;
margin-top: -0.5em;
color: inherit;
box-sizing: content-box;
&::after {
content: " ";
display: inline-block;
margin: 0 auto;
width: 1em;
height: 1em;
box-sizing: border-box;
transform-origin: 50% 50%;
transform: translateZ(0) scale(0.5);
backface-visibility: hidden;
border-radius: 50%;
border: 0.2em solid currentColor;
border-left-color: transparent;
animation: wc-block-components-button__spinner__animation 1s infinite linear;
}
}
.wc-block-components-button__spinner + .wc-block-components-button__text {
visibility: hidden;
}
}
@keyframes wc-block-components-button__spinner__animation {
0% {
animation-timing-function: cubic-bezier(0.5856, 0.0703, 0.4143, 0.9297);
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}