-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
177 lines (150 loc) · 2.86 KB
/
style.css
File metadata and controls
177 lines (150 loc) · 2.86 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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
@import url('https://fonts.googleapis.com/css?family=Nunito');
/* HTML Reset / Alignment */
html, body {
height: 100%;
width: 100%;
}
body {
background: #0086ff;
font-family: 'Nunito', sans-serif;
margin: 0;
padding: 0;
display: flex;
align-items: center;
justify-content: center;
}
/*Uncomment the rule below to show a border around all of the div elements*/
/*
* {
border: 1px solid black;
box-sizing: border-box;
}
*/
/* Sizing */
.container {
width: 600px;
text-align: center;
color: #fff;
}
.cake {
margin-bottom: 100px;
height: 550px;
max-height: 100%;
}
.sponge {
width: 98%;
height: 45%;
}
.icing {
height: 15%;
}
.candle {
width: 5%;
height: 40%;
}
.candle > .flame {
width: 60%;
margin-top: 30%;
height: 25%;
}
.candle > .wick {
width: 5%;
height: 5%;
}
.candle > .wax {
width: 100%;
height: 70%;
}
/* Styling */
.balloon {
align-self: flex-start;
width: 300px;
max-width: 100%;
}
.balloon > img {
display: block;
max-width: 100%;
}
.sponge {
position: relative;
margin: 0 auto;
background: #ffd878;
border-radius: 0 0 30px 30px;
}
.filling {
position: absolute;
width: 100%;
height: 0px;
top: 40%;
left: 0;
border-top: 22px solid #ea5774;
border-bottom: 20px solid #fff;
}
.icing {
position: relative;
z-index: 10;
background-color: #fff;
width: 100%;
border-radius: 30px 30px 0 0;
}
.icing:after {
position: absolute;
display: block;
content: '';
top: 50%;
left: 0;
width: 100%;
height: 100%;
background-image: radial-gradient(#fff 70%, transparent 50%);
background-repeat: repeat-x;
background-size: 14.4% 100%;
}
.candle {
margin: 0 auto;
overflow: visible;
}
.candle > .flame {
margin: 0 auto;
background-image: radial-gradient(circle, #ea5774, #ffd45c);
border-radius: 8px 8px 8px 8px / 20px 20px 8px 8px;
animation:
candle-wind 5s ease-in-out infinite,
candle-size 10s ease-in-out infinite,
candle-flickr 5s ease-in-out infinite;
transform-origin: 50% 100%;
}
.candle > .wick {
margin: 0 auto;
background: #fff;
border-radius: 2px 2px 0 0;
}
.candle > .wax {
background: #64c8ff;
border: 1px solid #0074b3;
border-radius: 10px 10px 0 0;
}
/* CSS Animation */
@keyframes candle-wind {
0%, 22%, 49%, 62%, 81%, 100% {
border-radius: 2px 14px 8px 8px / 20px 20px 8px 8px;
}
14%, 32%, 56%, 70%, 89% {
border-radius: 14px 2px 8px 8px / 20px 20px 8px 8px;
}
}
@keyframes candle-size {
0%, 22%, 49%, 62%, 81%, 100% {
transform: scale(1,1);
}
14%, 32%, 56%, 70%, 89% {
transform: scale(0.9, 1.2);
}
}
@keyframes candle-flickr {
0%, 22%, 49%, 62%, 81%, 100% {
box-shadow: 0 0 20px 0 rgba(255,202,0,0.7);
}
14%, 32%, 56%, 70%, 89% {
box-shadow: 0 0 20px 0 rgba(255,202,0,.8);
}
}