File size: 898 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
@import "@wordpress/base-styles/breakpoints";

.pattern-library__toggle {
	border-radius: 2px;
	border: 1px solid var(--wp-components-color-gray-600, #949494);
	display: grid;
	grid-auto-columns: 1fr;
	grid-auto-flow: column;
	padding: 2px;
	position: relative;
}

.pattern-library__toggle-option,
.pattern-library__toggle-option:visited {
	align-items: center;
	border-radius: 2px;
	box-sizing: border-box;
	color: inherit;
	font-size: rem(13px);
	display: flex;
	height: 34px;
	justify-content: center;
	padding: 0 10px;
	position: relative;
	transition: color 200ms linear;
	white-space: nowrap;
	width: 100%;

	@media (max-width: $break-medium) {
		height: 36px;
	}

	&:hover {
		color: inherit;
	}

	&.is-active {
		color: #fff;
	}

	path {
		fill: currentColor;
	}
}

.pattern-library__toggle-backdrop {
	background: #000;
	border-radius: 2px;
	inset: 0;
	position: absolute;
	z-index: -1;
}