File size: 1,270 Bytes
1e92f2d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
.button-group {
	.button {
		border-left-width: 0;
		border-radius: 0;

		&:focus {
			// fixes focus styles in stacking context
			position: relative;
			z-index: z-index("button-group-parent", ".button-group .button:focus");
		}
	}

	.button:first-child {
		border-left-width: 1px;
		border-top-left-radius: 2px;
		border-bottom-left-radius: 2px;
		&:active {
			border-right-width: 0;
		}
	}

	.button:last-child {
		border-top-right-radius: 2px;
		border-bottom-right-radius: 2px;
		&:active {
			border-left-width: 0;
		}
	}

	.section-header & .button {
		margin-right: 0;
	}

	&.is-primary {
		&.is-busy {
			background-size: 120px 100%;
			background-image: linear-gradient(-45deg, var(--color-accent) 28%, var(--color-accent-60) 28%, var(--color-accent-60) 72%, var(--color-accent) 72%);
		}
	}

	&.is-busy {
		pointer-events: none;
		animation: button__busy-animation 3000ms infinite linear;
		background-size: 120px 100%;
		background-image: linear-gradient(-45deg, var(--color-neutral-0) 28%, var(--color-surface) 28%, var(--color-surface) 72%, var(--color-neutral-0) 72%);
		display: inline-block;
		border-radius: 2px;

		.button {
			background-color: transparent;
		}
	}

}

@keyframes button__busy-animation {
	0% {
		background-position: 240px 0;
	}
}