-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
83 lines (74 loc) · 1.46 KB
/
styles.css
File metadata and controls
83 lines (74 loc) · 1.46 KB
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
*, *::before, *::after
{
box-sizing: border-box;
font-family: 'Audiowide', sans-serif;
}
:root
{
--hue: 200;
--saturation: 50%;
--foreground-color: hsl(var(--hue), var(--saturation), 75%);
--background-color: hsl(var(--hue), var(--saturation), 25%);
}
body
{
margin: 0em;
overflow: hidden;
background-color: var(--background-color);
}
.paddle
{
width: 1vh;
height: 10vh;
border-top-left-radius: 4em;
border-top-right-radius: 4em;
border-bottom-left-radius: 4em;
border-bottom-right-radius: 4em;
--position: 50;
top: calc(var(--position)*1vh);
transform: translateY(-50%);
position: absolute;
background-color: var(--foreground-color);
}
.paddle.left
{
left: 1vw;
}
.paddle.right
{
right: 1vw;
}
.ball
{
width: 2.5vh;
height: 2.5vh;
--x: 50;
--y: 50;
left: calc(var(--x)*1vw);
top: calc(var(--y)*1vh);
transform: translate(-50%, -50%);
position: absolute;
border-radius: 50%;
background-color: var(--foreground-color);
}
.score
{
display: flex;
justify-content: center;
color: var(--foreground-color);
font-size: 8vh;
font-weight: bold;
}
.score > *
{
margin: 1vh 0vh;
padding: 0vh 2vh;
flex-grow: 1;
flex-basis: 0;
opacity: 0.5;
}
.score > :first-child
{
text-align: right;
border-right: 0.5vh solid var(--foreground-color);
}