File size: 1,660 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
@import "@wordpress/base-styles/breakpoints";
@import "../../../modernized-mixins";

.stats-module-devices {
	@include segmented-controls;

	// Set layout for chart inside the StatsCard.
	.stats-card--body__chart {
		padding: 0 24px;
	}

	.pie-chart {
		padding: 32px 0;
	}

	// Override the default legend styles.
	.pie-chart__legend {
		flex-direction: row;
		align-items: center;
		flex-wrap: wrap;
		column-gap: 20px;
		row-gap: 12px;
		padding: 0 20px;

		.legend-item {
			flex-direction: row;

			&:not(:first-child) {
				margin-top: 0;
			}
		}

		.legend-item__title {
			&::after {
				content: ":";
			}

			& > svg {
				width: 14px;
				height: 14px;
				margin-right: 4px;
			}
		}

		.legend-item__detail {
			margin-left: 4px;
		}
	}

	.pie-chart__chart-section-0,
	.pie-chart__legend-sample-0 {
		fill: var(--color-primary-70);
	}
	.pie-chart__chart-section-1,
	.pie-chart__legend-sample-1 {
		fill: var(--color-primary-50);
	}
	.pie-chart__chart-section-2,
	.pie-chart__legend-sample-2 {
		fill: var(--color-primary-30);
	}
	.pie-chart__chart-section-3,
	.pie-chart__legend-sample-3 {
		fill: var(--color-primary-10);
	}
}

.stats-module-upgrade-overlay {
	.stats-card--column-header {
		filter: blur(10px);
	}

	.stats-card__content {
		// Prevent blur elements from being interactable.
		pointer-events: none;
		user-select: none;
	}
}

.stats-module-devices__tabs {
	// Align items by resetting the margin set from the segmented-controls mixin.
	&.segmented-control {
		@media (max-width: 660px) {
			margin-top: 0;
		}
	}

	.segmented-control__item {
		min-width: 80px;

		@media (max-width: $break-small) {
			min-width: auto;
		}
	}
}