blob: 2ae4a56ddada67cb84c18a69b6ee5f2cb321c6e8 [file] [log] [blame]
Unknowne3ebd892018-10-13 05:35:38 -04001/* --------------------------------
2
3Main Components
4Source: https://codepen.io/elorenn/pen/qXzXPv
5
6-------------------------------- */
Unknown286d2942018-10-13 12:34:42 -04007.bsection {
Unknowne3ebd892018-10-13 05:35:38 -04008 position: relative;
9 display: flex;
10 flex-direction: column;
11 justify-content: center;
12 align-items: center;
13 min-width: 1em;
14 overflow: scroll;
15 flex-wrap: wrap;
16 flex-basis: 50%;
17}
Unknown286d2942018-10-13 12:34:42 -040018.bsection:first-of-type {
Unknowne3ebd892018-10-13 05:35:38 -040019 border-right: 2px solid #fff;
20}
21
22.badge {
23 cursor: help;
24 background: #e7cc9c;
25 height: 33%;
26 width: 33%;
27 min-width: 30%;
28 border-radius: 50%;
29 display: flex;
30 justify-content: center;
31 align-items: center;
32 position: relative;
33 -webkit-filter: drop-shadow(0px 0px 0px rgba(0, 0, 0, 0));
34 filter: drop-shadow(0px 0px 0px rgba(0, 0, 0, 0));
35 transition: 150ms linear;
36}
37.badge:hover {
38 -webkit-transform: translateY(-2px);
39 transform: translateY(-2px);
40 -webkit-filter: drop-shadow(5px 5px 5px rgba(0, 0, 0, 0.15));
41 filter: drop-shadow(5px 5px 5px rgba(0, 0, 0, 0.15));
42}
43.badge:active:after {
44 content: 'Prost!';
45 position: absolute;
46 color: #fff;
47 font-family: sans-serif;
48 text-transform: uppercase;
49 font-weight: bold;
50 font-size: 3em;
51 letter-spacing: .1em;
52 top: -25%;
53}
54.badge.anim {
55 height: 33%;
56 width: 33%;
57}
58.badge.anim:active:after {
59 content: 'cheers!';
60}
61
62.beer-single-div {
63 position: relative;
64 height: 150px;
65 width: 112.5px;
66 min-width: 112.5px;
67 margin-top: 30px;
68 background-image: radial-gradient(97.5px 22.5px at 50% 103%, #f1ecdb 40%, transparent 40%), radial-gradient(6px 9px at 15% 67%, #ffe799 80%, transparent 83%), radial-gradient(6px 9px at 15% 18%, #ffe799 80%, transparent 83%), radial-gradient(9px 9px at 25% 85%, #ffda66 80%, transparent 80%), radial-gradient(25.5px 45px at 15% 90%, #ffc200 70%, transparent 70%), radial-gradient(25.5px 25.5px at 15% 5%, #ffc200 70%, transparent 70%), linear-gradient(to right, transparent 0%, transparent 10%, #ffe799 10%, #ffe799 20%, transparent 20%), radial-gradient(6px 6px at 70% 45%, #fecf75 80%, transparent 80%), radial-gradient(7.5px 7.5px at 35% 27%, #ffda66 80%, transparent 80%), radial-gradient(4.5px 4.5px at 80% 12%, #fecf75 80%, transparent 80%), radial-gradient(6px 6px at 60% 81%, #fecf75 80%, transparent 80%), radial-gradient(4.5px 4.5px at 89% 89%, #fecf75 80%, transparent 80%), radial-gradient(7.5px 7.5px at 77% 78%, #fecf75 80%, transparent 80%), radial-gradient(4.5px 4.5px at 40% 57%, #ffda66 80%, transparent 80%), linear-gradient(to right, #ffc200 50%, #fdac10 50%);
69 border-radius: 0 0 15% 15%;
70 border: 9px solid #f1ecdb;
71 /*mug*/
72 box-sizing: border-box;
73}
74.beer-single-div:before {
75 content: '';
76 position: absolute;
77 z-index: -1;
78 border-radius: 0 50% 50% 0;
79 height: 75px;
80 width: 52.5px;
81 top: 22.5px;
82 right: -49.5px;
83 background-color: transparent;
84 box-sizing: border-box;
85 border: 12px solid #f1ecdb;
86 /*mug handle*/
87 border-left: 12px solid transparent;
88}
89.beer-single-div:after {
90 content: '';
91 position: absolute;
92 top: -20%;
93 right: 20%;
94 height: 15px;
95 width: 15px;
96 background: #fffef8;
97 border-radius: 25.5px;
98 box-shadow: 0 16.5px 0 10.5px #fff9de, 0 10.5px 0 10.5px #fffef8, -40.5px 10.5px 0 6px #fff9de, -58.5px 9px 0 9px #fffef8, -27px 18px 0 6px #fff9de, -75px 12px 0 6px #fff9de, -22.5px 0 0 9px #fffef8, 21px 10.5px 0 9px #fffef8, -48px -12px 0 7.5px #fffef8, -27px -21px 0 7.5px #fff9de, -7.5px -10.5px 0 7.5px #fff9de, 10.5px -7.5px 0 1.5px #fffef8, 13.5px -10.5px 0 1.5px #fff9de, 37.5px 10.5px 0 1.5px #fff9de;
99}
100
101.beer-animation-wrapper {
102 position: relative;
103 overflow-y: hidden;
104 padding: 25.5px;
105 padding-right: 0;
106 padding-top: 10%;
107}
108.beer-animation-wrapper .beer {
109 position: relative;
110 height: 150px;
111 width: 112.5px;
112 min-width: 112.5px;
113 margin-top: 48px;
114 margin-right: 40.5px;
115 margin-left: 13.5px;
116 z-index: -2;
117 background-image: radial-gradient(97.5px 22.5px at 50% 103%, #f1ecdb 40%, transparent 40%), linear-gradient(to right, #ffc200 50%, #fdac10 50%);
118 border-radius: 0 0 15% 15%;
119 /*mug*/
120 border: 9px solid #f1ecdb;
121 box-sizing: border-box;
122}
123.beer-animation-wrapper .beer:before {
124 content: '';
125 position: absolute;
126 height: 130%;
127 width: 100%;
128 bottom: -5%;
129 z-index: -1;
130 opacity: 1;
131 -webkit-animation: 3s bubbles linear infinite;
132 animation: 3s bubbles linear infinite;
133 background: radial-gradient(9px 9px at 25% 85%, #ffda66 80%, transparent 80%), radial-gradient(6px 6px at 70% 45%, #fecf75 80%, transparent 80%), radial-gradient(7.5px 7.5px at 35% 40%, #fecf75 80%, transparent 80%), radial-gradient(4.5px 4.5px at 80% 30%, #fecf75 80%, transparent 80%), radial-gradient(6px 6px at 60% 81%, #fecf75 80%, transparent 80%), radial-gradient(4.5px 4.5px at 89% 89%, #fecf75 80%, transparent 80%), radial-gradient(7.5px 7.5px at 77% 78%, #fecf75 80%, transparent 80%), radial-gradient(4.5px 4.5px at 40% 57%, #ffda66 80%, transparent 80%), radial-gradient(3px 3px at 30% 67%, #ffda66 80%, transparent 80%), radial-gradient(3px 3px at 30% 17%, #ffda66 80%, transparent 80%), radial-gradient(4.5px 4.5px at 40% 10%, #ffda66 80%, transparent 80%), radial-gradient(7.5px 7.5px at 62% 24%, #ffda66 80%, transparent 80%), radial-gradient(6px 6px at 18% 31%, #ffda66 80%, transparent 80%), radial-gradient(9px 9px at 83% 60%, #ffda66 80%, transparent 80%);
134}
135.beer-animation-wrapper .beer:after {
136 /*mug handle*/
137 content: '';
138 position: absolute;
139 border-radius: 0 50% 50% 0;
140 height: 75px;
141 width: 49.5px;
142 top: 22.5px;
143 right: -49.5px;
144 background-color: transparent;
145 box-sizing: border-box;
146 border: 12px solid #f1ecdb;
147 border-left: 9px solid #f1ecdb;
148}
149.beer-animation-wrapper .foam {
150 position: relative;
151 top: -20%;
152 left: 63%;
153 height: 15px;
154 width: 15px;
155 background: #fffef8;
156 border-radius: 25.5px;
157 box-shadow: -52.5px 42px 0 -2.25px #ffe799, -52.5px 43.5px 0 -2.25px #ffe799, -52.5px 45px 0 -2.25px #ffe799, -52.5px 46.5px 0 -2.25px #ffe799, -52.5px 48px 0 -2.25px #ffe799, -52.5px 49.5px 0 -2.25px #ffe799, -52.5px 51px 0 -2.25px #ffe799, -52.5px 52.5px 0 -2.25px #ffe799, -52.5px 54px 0 -2.25px #ffe799, -52.5px 55.5px 0 -2.25px #ffe799, -52.5px 57px 0 -2.25px #ffe799, -52.5px 58.5px 0 -2.25px #ffe799, -52.5px 60px 0 -2.25px #ffe799, -52.5px 61.5px 0 -2.25px #ffe799, -52.5px 63px 0 -2.25px #ffe799, -52.5px 64.5px 0 -2.25px #ffe799, -52.5px 66px 0 -2.25px #ffe799, -52.5px 67.5px 0 -2.25px #ffe799, -52.5px 69px 0 -2.25px #ffe799, -52.5px 70.5px 0 -2.25px #ffe799, -52.5px 72px 0 -2.25px #ffe799, -52.5px 73.5px 0 -2.25px #ffe799, -52.5px 75px 0 -2.25px #ffe799, -52.5px 76.5px 0 -2.25px #ffe799, -52.5px 78px 0 -2.25px #ffe799, -52.5px 79.5px 0 -2.25px #ffe799, -52.5px 81px 0 -2.25px #ffe799, -52.5px 82.5px 0 -2.25px #ffe799, -52.5px 84px 0 -2.25px #ffe799, -52.5px 85.5px 0 -2.25px #ffe799, -52.5px 87px 0 -2.25px #ffe799, -52.5px 88.5px 0 -2.25px #ffe799, -52.5px 90px 0 -2.25px #ffe799, -52.5px 91.5px 0 -2.25px #ffe799, -52.5px 93px 0 -2.25px #ffe799, -52.5px 94.5px 0 -2.25px #ffe799, -52.5px 96px 0 -2.25px #ffe799, -52.5px 97.5px 0 -2.25px #ffe799, -52.5px 99px 0 -2.25px #ffe799, -52.5px 100.5px 0 -2.25px #ffe799, -52.5px 102px 0 -2.25px #ffe799, -52.5px 103.5px 0 -2.25px #ffe799, -52.5px 105px 0 -2.25px #ffe799, -52.5px 106.5px 0 -2.25px #ffe799, -52.5px 108px 0 -2.25px #ffe799, -52.5px 109.5px 0 -2.25px #ffe799, 0 16.5px 0 10.5px #fff9de, 0 10.5px 0 10.5px #fffef8, -40.5px 10.5px 0 6px #fff9de, -58.5px 9px 0 9px #fffef8, -27px 18px 0 6px #fff9de, -75px 12px 0 6px #fff9de, -22.5px 0 0 9px #fffef8, 21px 10.5px 0 9px #fffef8, -48px -12px 0 7.5px #fffef8, -27px -21px 0 7.5px #fff9de, -7.5px -10.5px 0 7.5px #fff9de, 10.5px -7.5px 0 1.5px #fffef8, 13.5px -10.5px 0 1.5px #fff9de, 37.5px 10.5px 0 1.5px #fff9de;
158}
159.beer-animation-wrapper .foam:before, .beer-animation-wrapper .foam:after {
160 z-index: -1;
161 content: '';
162 position: absolute;
163 top: 200%;
164 width: 15px;
165 border-radius: 25.5px;
166 background: #fff9de;
167 background: linear-gradient(to right, #fff9de 75%, #fffef8 75%);
168}
169.beer-animation-wrapper .foam:after {
170 left: 100%;
171 height: 0px;
172 -webkit-animation: drip1 2s ease-out forwards;
173 animation: drip1 2s ease-out forwards;
174}
175.beer-animation-wrapper .foam:before {
176 right: 25%;
177 height: 0px;
178 -webkit-animation: drip2 5s ease-out forwards;
179 animation: drip2 5s ease-out forwards;
180}
181
182@-webkit-keyframes drip2 {
183 0% {
184 height: 0px;
185 }
186 50% {
187 height: 45px;
188 }
189 75% {
190 height: 45px;
191 }
192 80% {
193 height: 45px;
194 }
195 100% {
196 height: 52.5px;
197 }
198}
199
200@keyframes drip2 {
201 0% {
202 height: 0px;
203 }
204 50% {
205 height: 45px;
206 }
207 75% {
208 height: 45px;
209 }
210 80% {
211 height: 45px;
212 }
213 100% {
214 height: 52.5px;
215 }
216}
217@-webkit-keyframes drip1 {
218 0% {
219 height: 0px;
220 }
221 100% {
222 height: 75px;
223 }
224}
225@keyframes drip1 {
226 0% {
227 height: 0px;
228 }
229 100% {
230 height: 75px;
231 }
232}
233@-webkit-keyframes bubbles {
234 0% {
235 -webkit-transform: translatey(0%);
236 transform: translatey(0%);
237 }
238 99% {
239 -webkit-transform: translatey(-50%);
240 transform: translatey(-50%);
241 }
242 100% {
243 opacity: 0;
244 }
245}
246@keyframes bubbles {
247 0% {
248 -webkit-transform: translatey(0%);
249 transform: translatey(0%);
250 }
251 99% {
252 -webkit-transform: translatey(-50%);
253 transform: translatey(-50%);
254 }
255 100% {
256 opacity: 0;
257 }
258}