aboutsummaryrefslogtreecommitdiff
path: root/static/default.css
blob: 42f5b81607ca4f2fe6f62c648146ea6418cf45bc (plain)
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
body {
	background-color: #fffaf7;
	display: flex;
	flex-direction: column;
	font-family: Liberation Sans, Arial, sans-serif;
	line-height: 1.5;
	min-height: 100vh;
	margin: 0;
}
ul {
	list-style: none;
	padding: 0;
}
.page {
	display: flex;
	display: flex;
	flex-direction: column;
	outline: 1px solid red;
}
.sidebar {
	flex: 0 0 12em;
	order: -1;
	outline: 1px solid red;
}
main {
	flex: 1;
	outline: 1px solid red;
}

@media (min-width: 768px) {
	.page {
		flex-direction: row;
		flex: 1;
	}
	main {
		flex: 1;
	}
	.sidebar {
		/* 12em is the width of the columns */
		flex: 0 0 12em;
	}
}

.chart {
	align-items: stretch;
	display: flex;
	height: 100px;
	margin: 0;
	padding-top: 2em;
	padding-bottom: 2em;
	width: 100%;
}
.chart .slot {
	background: #fafafa;
	flex: 1 1;
	position: relative;
}
.chart .slot.midnight {
	border-left: 1px solid #ddd;
}
.chart .slot:hover {
	background: #f5f5f5;
}
.chart .bar {
	background: #4c92ff;
	border-top-left-radius: 3px;
	border-top-right-radius: 3px;
	bottom: 0;
	left: 0;
	position: absolute;
	right: 0;
}
.chart .slot:hover .bar {
	background: #88b6ff;
}
.chart .slot:before,
.chart .slot:after {
	bottom: 100%;
	content: attr(data-count);
	display: none;
	font-size: .75em;
	left: 50%;
	margin-bottom: .5rem;
	margin-left: -2.5rem;
	position: absolute;
	text-align: center;
	width: 5rem;
}
/* time */
.chart .slot:after {
	content: attr(data-date);
	margin-top: .5rem;
	top: 100%;
}
.chart .slot:hover:before,
.chart .slot:hover:after {
	display: block;
}