File size: 1,283 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
@import '@wordpress/base-styles/colors';
@import '@wordpress/base-styles/variables';

.dashboard-stat__strapline {
	font-size: $font-size-x-small;
	line-height: $font-line-height-medium;
	font-weight: $font-weight-medium;
	color: $gray-700;
	text-transform: uppercase;
}

.dashboard-stat__metric {
	color: $gray-900;
	font-weight: $font-weight-medium;
}

.dashboard-stat__description {
	font-size: $font-size-small;
	line-height: $font-line-height-small;
	color: $gray-700;
}

.dashboard-stat__progress-bar {
	width: 100% !important;
	margin-block: 0.25 * $grid-unit;
	--wp-components-color-foreground: var(--wp-admin-theme-color);
}

.dashboard-stat__progress-bar--alert-yellow {
	--wp-components-color-foreground: #{$alert-yellow};
}

.dashboard-stat__progress-bar--alert-red {
	--wp-components-color-foreground: #{$alert-red};
}

.dashboard-stat__progress-bar--alert-green {
	--wp-components-color-foreground: #{$alert-green};
}

.dashboard-stat--density-low {
	.dashboard-stat__metric {
		font-size: $font-size-2x-large;
		line-height: $font-line-height-2x-large;
	}

	.dashboard-stat__progress-bar {
		height: $grid-unit-05 !important;
	}
}

.dashboard-stat--density-high {
	.dashboard-stat__metric {
		font-size: $font-size-large;
		line-height: $font-line-height-small;
	}
}