File size: 1,919 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
$barDarkColor: var(--color-primary-60);

.stats-widget-minichart {
	border-bottom: 1px solid #c3c4c7;

	// For empty chart placeholder
	.chart.is-placeholder {
		padding: 8px 16px;

		.chart__y-axis-marker.is-hundred {
			display: none;
		}

		.chart__bar {
			&,
			&:hover {
				.chart__bar-section {
					background-color: var(--studio-blue-0);
				}
			}
		}
	}

	.stats-widget-minichart__chart-head {
		display: flex;
		flex-flow: row wrap;
		justify-content: space-between;
		align-items: center;
		width: 100%;
		padding: 16px 24px;
		box-sizing: border-box;
	}

	.chart__legend {
		margin: 16px 0;
		padding: 0;

		.chart__legend-options {
			margin: auto;
		}
	}

	.chart__legend-option {
		.chart__legend-checkbox {
			display: none;
		}

		.chart__legend-label.is-selectable.form-label {
			cursor: auto;
		}

		.chart__legend-color {
			width: 14px;
			height: 14px;
			vertical-align: middle;
			margin-top: -3px;

			&.is-dark-blue {
				background-color: $barDarkColor;
			}
		}
	}

	.chart__legend-label {
		font-size: $font-body-small;
		font-weight: 400;
		line-height: 24px;
		margin-top: -3px;
		vertical-align: middle;
		color: var(--studio-gray-100);
		letter-spacing: -0.02em;
	}

	.chart__y-axis-marker {
		border-color: color-mix(in srgb, var(--color-neutral-5) 50%, transparent);
	}

	.chart__y-axis {
		padding: 0 5px;
	}

	.chart__x-axis-label,
	.chart__y-axis-label {
		&:not(.chart__x-axis-width-spacer) {
			font-size: $font-body-extra-small;
			letter-spacing: -0.02em;
			color: var(--color-neutral-60);
			white-space: nowrap;
		}
	}

	.chart__bar-section-inner {
		background-color: $barDarkColor;
	}

	.stats__empty-state {
		.empty-state-card {
			padding: 24px;
			border: 1px solid var(--studio-gray-5);
			box-shadow: none;
		}

		.empty-state-card-heading {
			font-size: $font-body-large;
		}

		.empty-state-card-info {
			margin: 0;
			color: var(--studio-gray-60);
		}
	}
}