-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
126 lines (106 loc) · 1.96 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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
body {
font-family: "Palatino", Georgia, serif;
color: #41381A;
background: #A6CCBA;
}
.egg {
font-size: 48px;
font-weight: bold;
text-align: center;
display: grid;
align-items: center;
position: absolute;
border-style: solid;
border-width: 4px;
border-radius: 50% 60% 50% 50% / 70% 70% 40% 40%;
background: #FFEFCA;
border-color: #41381A;
animation: wiggle 2s ease 0s infinite normal forwards;
}
.egg.ready {
animation: wiggle_more 2s ease 0s infinite normal forwards;
}
.top-bar {
display: flex;
justify-content: center;
}
.controls {
display: inline-block;
padding: 10px;
border-radius: 10px;
border-width: 4px;
}
.time-control {
cursor: pointer;
user-select: none;
padding: 10px;
font-size: 64px;
font-weight: bold;
}
#pan {
width: 100%;
height: 100vh;
}
/*https://stackoverflow.com/questions/53544872/how-to-style-the-input-type-time*/
input[type=time] {
border: none;
background: none;
font-size: 64px;
font-family: "Palatino", Georgia, serif;;
color: #41381A;
}
input[type="time"]::-webkit-calendar-picker-indicator {
display: none;
}
@keyframes wiggle {
0%,
100% {
transform: rotate(0deg);
transform-origin: 50% 50%;
}
10% {
transform: rotate(2deg);
}
20%,
40%,
60% {
transform: rotate(-3deg);
}
30%,
50%,
70% {
transform: rotate(3deg);
}
80% {
transform: rotate(-2deg);
}
90% {
transform: rotate(2deg);
}
}
@keyframes wiggle_more {
0%,
100% {
transform: rotate(0deg);
transform-origin: 50% 50%;
}
10% {
transform: rotate(8deg);
}
20%,
40%,
60% {
transform: rotate(-10deg);
}
30%,
50%,
70% {
transform: rotate(10deg);
}
80% {
transform: rotate(-8deg);
}
90% {
transform: rotate(8deg);
}
}