-
Notifications
You must be signed in to change notification settings - Fork 19
/
style.css
89 lines (88 loc) · 1.47 KB
/
style.css
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
html,
body {
overscroll-behavior: none;
}
body {
font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", sans-serif;
margin: 0;
line-height: 1.5;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
-webkit-text-size-adjust: 100%;
background: #fbf9f6;
}
a {
color: inherit;
}
#canvas {
height: 96vh;
width: 100%;
max-width: 640px;
overflow: hidden;
box-sizing: border-box;
margin: auto;
flex-direction: column;
justify-content: space-around;
}
#canvas svg {
width: 100%;
}
#about {
text-align: center;
font-size: 1.2rem;
line-height: 1.75;
padding: 0rem 2rem 1rem;
color: #2c3d51;
}
#about a {
font-weight: 500;
}
#ball {
transform: translateZ(0);
animation: rot 2000ms infinite linear;
animation-play-state: paused;
}
#ball.started {
animation-play-state: running;
}
#play {
cursor: pointer;
}
#finalscore,
#best {
font-size: 70%;
fill: #34495e;
}
#best {
font-style: italic;
font-size: 50%;
}
#tip {
font-weight: 300;
font-size: 18%;
font-style: italic;
padding: 0.5rem 2rem 0rem;
}
#shareBtn {
background: #1d9bf0;
color: #fff;
width: 150px;
text-align: center;
text-decoration: none;
border-radius: 2rem;
padding: 0.3rem 1.5rem;
margin: 1rem auto 0px;
font-size: 1.25rem;
display: block;
}
#shareBtn.hide {
visibility: hidden;
}
@keyframes rot {
from {
transform: rotate(0deg) translate(40%) rotate(0deg);
}
to {
transform: rotate(360deg) translate(40%) rotate(-360deg);
}
}