summaryrefslogtreecommitdiffhomepage
path: root/style.css
blob: a8afdcb6eb76dc6b528e4b83d0a1b60a339763d1 (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
body {
	margin: 0;
	font-family: sans-serif;
	font-size: 12px;
}

.wreck {
	width: 20px;
	cursor: pointer;
	padding: 2px;
	fill: none;
	stroke: #eee;
	stroke-width: 0.4;
	stroke-dasharray: 1;
}

.wreck.killed {
	stroke: none;
	fill: #eee;
}

.wreck:hover {
	border: 2px solid #eee;
}

.wreck::before {
	display: block;
	content: '';
	position: absolute;
	bottom: 1px;
	right: 1px;
	width: 6px;
	height: 6px;
	overflow: hidden;
}

.wreck.teamA::before {
	background: #cc0899;
}

.wreck.teamB::before {
	background: #14ea6a;
}

.wreck::after {
	display: block;
	content: attr(data-label);
	color: #eee;
	position: absolute;
	top: -0.2em;
	left: calc(100% + 0.4em);
	padding: 0.2em 0.5em;
	background: #000b;
	border-radius: 0.5em;
	border: 1px solid #444;
	pointer-events: none;
	width: max-content;
}

#wrapper {
	display: flex;
	width: 100vw;
	height: 100vh;
	flex-direction: column;
}

#container {
	position: relative;
	overflow: hidden;
	flex-grow: 1;
}

#toolbar {
	background: #eee;
	padding: 1em;
}