-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
105 lines (95 loc) · 2.13 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
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,500;0,600;0,700;0,800;0,900;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
html. body{
padding: 0px;
margin: 0px;
box-sizing: border-box;
height: 100vh;
background: whitesmoke;
display: flex;
justify-content: center;
align-items: center;
}
.container{
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
height: 100vh;
}
p, h2{
font-family: "Poppins", sans-serif;
text-align: center;
font-size: 18px;
color: whitesmoke;
font-style: italic;
line-height: 1.6;
font-weight: 500;
margin-top: 30px;
}
h2{
font-size: 32px;
color: #E24A3B;
margin-top: 30px;
font-family: Pacifico;
}
.lamp-container{
width: 350px;
height: 550px;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
background: #2C2825;
border-radius: 4px;
padding: 24px;
cursor: pointer;
box-shadow: rgba(255, 255, 255, 0.1) 0px 1px 1px 0px inset, rgba(50, 50, 93, 0.25) 0px 50px 100px -20px, rgba(0, 0, 0, 0.3) 0px 30px 60px -30px;
}
.lamp{
position: relative;
width: 180px;
height: 80px;
background: #E24A3B;
margin-top: 40px;
border-bottom-left-radius: 80px;
border-bottom-right-radius: 80px;
}
.lamp::before{
content: "";
position: absolute;
top: -20px;
width: 100%;
height: 40px;
background: whitesmoke;
border-radius: 50%;
border: 10px solid #E24A3B;
box-sizing: border-box;
}
.lamp::after{
content: "";
position: absolute;
top: calc(-50% - 10px);
left: 50%;
height: 50px;
width: 20px;
background: #FFF;
border-radius: 50%;
filter: blur(5px);
transform-origin: bottom;
box-shadow: 0 0 0 5px #eff000, 0 0 0 10px rgba(255,255,255,.2);
animation: flame 2.5s linear infinite;
}
@keyframes flame {
0%{
transform: translateX(-50%) scaleY(1.4);
}
50%{
transform: translateX(-50%) scaleY(1.1);
}
75%{
transform: translateX(-50%) scaleY(1.5);
}
100%{
transform: translateX(-50%) scaleY(1);
}
}