-
Notifications
You must be signed in to change notification settings - Fork 41
/
ghost.css
62 lines (59 loc) · 1.12 KB
/
ghost.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
*, *:after, *:before {
box-sizing: border-box;
}
body {
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
background-color: #eee;
}
.ghost {
height: 124px;
width: 104px;
background-color: #FFF;
border-radius: 99em 99em 0 0;
box-shadow: inset -10px 0 0 0 #DDD;
border-top: 4px solid #000;
border-left: 4px solid #000;
border-right: 4px solid #000;
position: relative;
&:before {
content: "";
display: block;
position: absolute;
width: 24px;
height: 32px;
background-color: #999;
border: 4px solid #000;
border-radius: 50%;
left: 30px;
top: 64px;
box-shadow:
-16px -36px 0 -8px #999,
-16px -36px 0 -4px #000,
16px -36px 0 -8px #999,
16px -36px 0 -4px #000;
}
&:after {
content: "";
display: block;
position: absolute;
width: 32px;
height: 32px;
background-color: #FFF;
border: 4px solid #000;
border-radius: 25% 60%;
bottom: -16px;
right: -4px;
z-index: -1;
box-shadow:
inset -10px 0 0 #DDD,
-24px 0 0 -4px #fff,
-24px 0 0 0 #000,
-48px 0 0 -4px #fff,
-48px 0 0 0 #000,
-72px 0 0 -4px #fff,
-72px 0 0 0 #000;
}
}