-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
102 lines (85 loc) · 1.37 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
90
91
92
93
94
95
96
97
98
99
100
101
102
* {
box-sizing: border-box;
font-family: 'Kodchasan', sans-serif;
}
body {
width: 300px;
margin: 0 auto;
}
header {
text-align: center;
margin: 3em;
}
.blink-title {
animation: blinker 1s linear infinite;
}
@keyframes blinker {
80% {
opacity: 0;
}
}
.grid {
background-color: #6666FF;
height: 7em;
width: 7em;
margin: 0 auto;
}
.buttons {
display: flex;
justify-content: space-around;
}
button {
margin: 3.2em;
height: 3em;
width: 6.6em;
border: none;
background-color: skyblue;
color: white;
border-radius: 1em;
}
button:hover {
background-color: yellow;
color: black;
}
#notification {
display: none;
background-color: #CD5C5C;
position: absolute;
height: 5em;
width: 10em;
border-radius: 1em;
margin-left: -10px;
margin-top: -9.5em;
padding-top: 50px;
padding-bottom: 50px;
text-align: center;
font-size: 2em;
color: white;
animation: shake 0.82s cubic-bezier(.36,.07,.19,.97) both;
}
@keyframes shake {
10%, 90% {
transform: translate3d(-1px, 0, 0);
}
20%, 80% {
transform: translate3d(2px, 0, 0);
}
30%, 50%, 70% {
transform: translate3d(-4px, 0, 0);
}
40%, 60% {
transform: translate3d(4px, 0, 0);
}
}
#notification:hover {
opacity: .8;
/*add transition here*/
}
#message {
text-align: center;
}
.scoreboard {
display: flex;
justify-content: space-between;
}
/* shake credits to SARAH DRASNER @ https://css-tricks.com/ */