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

.stats__plan-usage {
	margin-bottom: 32px;
	border-top: 1px solid var(--studio-gray-5);

	@media (max-width: $break-medium) {
		border-bottom: 1px solid var(--studio-gray-5);
		margin-bottom: 0;
	}
}

.plan-usage {
	font-family: $font-sf-pro-text;
	margin-top: 48px;
	border-radius: 4px;
	padding: 24px;
	border: 1px solid var(--studio-gray-5);
	font-size: $font-body-small;
	font-weight: 500;
	color: var(--studio-gray-100);
	background-color: var(--studio-white);

	@media (max-width: $break-medium) {
		border: 0;
		margin-top: 0;
	}
}

.plan-usage-heading {
	font-family: $font-sf-pro-display;
	font-size: $font-title-small;
	line-height: 26px;
}

.plan-usage-progress {
	box-sizing: border-box;
	display: flex;
	justify-content: space-between;
	position: relative;
	margin-top: 16px;
	width: 100%;
	height: 36px;
	line-height: 36px;
	padding: 0 10px;
	background-color: var(--studio-gray-0);
	border-radius: 2px;
	overflow: hidden;

	&.is-over-limit {
		.plan-usage-progress-bar {
			background-color: color-mix(in srgb, var(--studio-red-40) 15%, transparent);
		}
	}

	.plan-usage-progress-bar {
		position: absolute;
		left: 0;
		height: 100%;
		background-color: color-mix(in srgb, var(--studio-jetpack-green-40) 15%, transparent);
		border-radius: 2px;
	}
}

.plan-usage-note {
	margin-top: 16px;
	color: var(--studio-gray-60);
	font-weight: 400;

	b {
		font-weight: 700;
	}

	a {
		font-weight: 500;
		color: inherit;
		border-bottom: 1px solid var(--studio-gray-60);
	}
}