-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
105 lines (93 loc) · 1.78 KB
/
style.css
File metadata and controls
105 lines (93 loc) · 1.78 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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
body {
margin: 0;
padding: 0;
}
canvas {
display: block;
margin: 0 auto;
width: 100%;
}
.canvas-container {
background: linear-gradient(to bottom, #87ceeb, #78bfdc, #69b0cd, #96ddfa);
max-width: 90%;
margin: 0 auto;
}
:root {
--bg-r: 67;
--bg-g: 172;
--bg-b: 221;
}
.droplet {
width: 18rem;
height: 19rem;
/* background-color: rgb(67, 172, 221) ; */
background-color: rgba(var(--bg-r), var(--bg-g), var(--bg-b), 0.288);
border-radius: 40rem/40rem;
position: relative;
box-shadow: inset 6px 42px 20px 0
rgba(var(--bg-r), var(--bg-g), var(--bg-b), 0.288),
inset 18px 89px 12px 0 rgba(var(--bg-r), var(--bg-g), var(--bg-b), 0.288),
12px 18px 17px 0px rgba(var(--bg-r), var(--bg-g), var(--bg-b), 0.288);
}
.droplet::before {
position: absolute;
content: "";
background-color: #f4f1f44f;
width: 1rem;
height: 1rem;
left: 2.5rem;
top: 5rem;
border-radius: 50%;
transform: rotate(50deg);
}
.droplet::after {
position: absolute;
content: "";
background-color: #f4f1f44f;
width: 1.5rem;
height: 4rem;
left: 5rem;
top: 1.5rem;
transform: rotate(60deg);
border-radius: 37% 54% 46% 46%;
}
.mobile-controller {
border-radius: 20px;
background-color: rgba(0, 0, 0, 0.5);
display: none;
justify-content: center;
align-items: center;
flex-wrap: wrap;
width: 200px;
height: 200px;
margin: 0 auto;
position: fixed;
bottom: 10px;
right: 10px;
}
.mobile-controller button {
width: 60px;
height: 50px;
border-radius: 20px;
margin: 10px;
position: relative;
}
#downButton,
#upButton {
width: 90%;
}
#leftButton,
#rightButton {
width: 43%;
}
#leftButton {
margin-right: auto;
}
#rightButton {
margin-left: auto;
}
@media screen and (max-width: 768px) {
.mobile-controller {
display: block;
}
}