File size: 1,925 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
.visx-tooltip {
	background-color: transparent !important;
	border: none !important;
	box-shadow: none !important;

	.stats-line-chart-tooltip {
		color: var(--color-text-inverted);
		background: var(--color-neutral-100);
		border-radius: 4px;
		font-size: $font-body-small;
		padding: 16px 24px;

		// Default tooltip is 230px wide. We need a bit more room
		// to account for longer date labels and post titles.
		width: fit-content;
		min-width: 230px;
		max-width: 300px;

		ul {
			list-style: none;
			margin: 0;
			padding: 0;

			li {
				font-size: $font-body-small;
				font-weight: 500;
				line-height: 20px;
				letter-spacing: -0.24px;
				margin-bottom: 10px;
				text-transform: none;

				.wrapper {
					display: block;
					line-height: 24px;
					clear: both;
				}

				.value {
					color: inherit;
					text-align: right;
					float: right;
					min-width: 22px;
				}

				.label {
					display: block;
					overflow: hidden;
					word-break: break-all;
					vertical-align: baseline;
				}

				.gridicon {
					margin-right: 12px;
					vertical-align: middle;
					margin-top: -3px;
				}

				&:last-child {
					margin-bottom: 0;
				}
			}
		}

		.module-content-list-item {
			&.is-date-label {
				font-weight: 600;
				border-bottom: 0;
			}

			&.is-published {
				margin-bottom: 4px;
			}

			&.is-published-item {
				height: auto;
				font-size: $font-body-extra-small;
				margin-bottom: 0;
				padding-left: 30px;

				.label {
					height: auto;
					line-height: 20px;
					color: inherit;
					letter-spacing: inherit;
					word-break: break-word;
				}

				// Override the default gradient.
				.value::before {
					background: none;
				}
			}
		}

	}

}

.stats-line-chart {
	position: relative;
	box-sizing: border-box;

	.stats__empty-state {
		position: absolute;
		top: 50%;
		left: 50%;
		transform: translate(-50%, -50%);
		max-width: 75%;
		z-index: 1;
		margin: 0;
	}
}