File size: 2,224 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
@import "@wordpress/base-styles/breakpoints";
@import "@automattic/components/src/styles/typography";
@import "@automattic/typography/styles/variables";

.category-pill-navigation {
	--color-accent: #3858e9;

	background: var(--studio-white);
	display: flex;
	align-items: center;

	@media (max-width: $break-mobile) {
		display: block;
	}
}

.category-pill-navigation__button-divider {
	flex-shrink: 0;
	width: 1px;
	height: 14px;
	display: block;
	border-radius: 2px;
	background: #2c3338;
	margin-left: 16px;
}

.category-pill-navigation__list {
	overflow: hidden;
	position: relative;

	.category-pill-navigation__list-inner {
		overflow: auto;
		display: flex;
		gap: 16px;
		align-items: center;
		// Chrome, Edge, Firefox
		scrollbar-width: none;

		// Safari
		&::-webkit-scrollbar {
			display: none;
		}

		.category-pill-navigation__button:first-child {
			margin-left: 16px;
		}
	}

	.category-pill-navigation__arrow {
		display: block;
		width: 44px;
		height: 44px;
		position: absolute;
		left: 0;
		top: 0;
		z-index: 2;
		transform: rotate(180deg);
		cursor: pointer;

		&:focus:not(:disabled) {
			box-shadow: none;
		}

		&::before {
			content: "";
			position: absolute;
			top: 0;
			right: 0;
			width: 68px;
			height: 44px;
			background: linear-gradient(270deg, var(--studio-white) 45.38%, transparent 100%);
			cursor: none;
			pointer-events: none;
		}

		svg {
			z-index: 2;
			position: relative;
		}

		&.right {
			left: auto;
			right: 0;
			transform: rotate(0);
		}

		@media (max-width: $break-large) {
			width: 0;
			padding: 0;
		}
	}
}

.category-pill-navigation__button {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	height: 44px;
	padding: 0 16px;
	border-radius: 4px;
	gap: 8px;
	font-family: $font-sf-pro-text;
	font-size: rem(14px);
	letter-spacing: -0.15px;
	color: #2c3338;
	background: #f2f2f2;
	white-space: nowrap;

	&:visited {
		color: #2c3338;
	}

	&.is-active {
		background: var(--color-accent);
		color: var(--studio-white);

		svg {
			fill: var(--studio-white);
		}
	}
}

.category-pill-navigation__children {
	padding-left: 32px;
	flex: none;
	margin-left: auto;
}

.category-pill-navigation__mobile-select .select-dropdown__container {
	width: 100%;
}