-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathstyle.css
68 lines (58 loc) · 1.12 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
:root {
--face-color: whitesmoke;
--face-height: 100vh;
--face-width: 100vw;
--eye-size: 33.33vmin;
--eye-color: black;
--eyelid-color: whitesmoke;
}
body {
background-color: white;
margin: 0px;
}
.buttons {
position: relative;
z-index: 3;
}
.face {
background-color: var(--face-color);
margin: auto;
height: var(--face-height);
width: var(--face-width);
position: relative;
overflow: hidden;
}
.face div {
position: absolute;
}
.eye {
background-color: var(--eye-color);
border-radius: 100%;
height: var(--eye-size);
width: var(--eye-size);
bottom: calc(var(--eye-size) / 3);
z-index: 1;
transform: rotateX(0);
}
.eye.left {
left: calc(var(--eye-size) / 3);
}
.eye.right {
right: calc(var(--eye-size) / 3);
}
.eyelid {
background-color: var(--eyelid-color);
height: var(--eye-size);
width: calc(var(--eye-size) * 1.75);
z-index: 2;
transform: rotate(0deg);
}
.eyelid.upper {
bottom: calc(var(--eye-size) * 1);
left: calc(var(--eye-size) * -0.375);
}
.eyelid.lower {
border-radius: 100%;
bottom: calc(var(--eye-size) * -1);
left: calc(var(--eye-size) * -0.375);
}