-
Notifications
You must be signed in to change notification settings - Fork 1
/
scorebug.html
52 lines (50 loc) · 1.35 KB
/
scorebug.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>Scorebug</title>
<script src="js/webcg-framework.umd.js"></script>
<link rel="stylesheet" href="css/global.css" />
<script type="text/javascript" src="js/score.js"></script>
<link rel="stylesheet" href="https://use.typekit.net/qro8nwd.css" />
<style>
.overlay {
position: absolute;
top: calc(var(--margin) / 2);
left: calc(var(--margin) / 2);
/* transform: translate(-50%, -50%); */
opacity: 0;
transition: opacity 0.5s;
width: auto;
}
.line {
/* Define padding relative to the font size */
padding: 0.2em 1em;
margin: 0;
/* background-color: rgba(var(--teamACol), 1); */
/* color: white; */
position: relative;
float: left;
text-align: center;
font-size: 3vh;
}
.team-a,
.team-b {
min-width: 8vw;
}
.score-a, .score-b {
min-width: 4vw;
background-color: rgba(255, 255, 255, 0.699);
color: black;
}
</style>
</head>
<body>
<div class="overlay">
<div class="line team-a grad-teamA"></div>
<div class="line score-a"></div>
<div class="line score-b"></div>
<div class="line team-b grad-teamB"></div>
</div>
</body>
</html>