File size: 1,604 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
@import "@wordpress/base-styles/breakpoints";
@import "@automattic/components/src/styles/typography";

$stats-utm-popover-min-width: 270px;
$stats-utm-border: 1px solid var(--gray-gray-5, #dcdcde);

.stats-utm-picker {
	> .components-button {
		align-items: center;
		background: #fff;
		border: 1px solid var(--gray-gray-10, #c3c4c7);
		border-radius: 4px;
		color: var(--studio-black);
		display: flex;
		font-family: $font-sf-pro-display;
		font-size: 14px;
		font-style: normal;
		font-weight: 500;
		gap: 8px;
		justify-content: flex-end;
		line-height: 20px;
		padding: 12px 10px;
	}
}

.stats-utm-picker__popover-wrapper {
	min-width: $stats-utm-popover-min-width;
}

.stats-utm-picker__popover-list {
	padding: 8px 0;
	box-sizing: border-box;
	list-style: none;
	margin: 0;
}

.stats-utm-picker__popover-list-item {
	display: flex;
	flex-direction: column; // allow for a divider line between grouped items
	min-width: $stats-utm-popover-min-width;

	&:hover {
		.components-button {
			background-color: var(--color-primary-0);
		}
	}

	& + & {
		margin-top: 2px; // space for an outline for the current item and hover for the next
	}

	&.is-selected {
		.components-button {
			background-color: var(--color-accent-5);
		}
	}

	.components-button {
		margin: 2px 10px; // 10px 10px for the first and the last item (8 + 2)
		display: flex;
		justify-content: space-between;
		border-radius: 4px;
		min-height: 36px;
		flex: 1; // take full width
	}

	&.is-grouped + &.is-not-grouped {
		&::before {
			content: "";
			margin: 2px 0;
			display: block;
			border-top: $stats-utm-border;
		}
	}
}