-
Notifications
You must be signed in to change notification settings - Fork 3
/
MMM-Advent.css
108 lines (97 loc) · 1.89 KB
/
MMM-Advent.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
106
107
108
.candle-container {
height: 400px;
position: relative;
width: 120px;
margin-top: 60px;
}
.candle-top-shape {
border-radius: 0px 0px 50px 50px;
height: 60px;
width: 100%;
left: 0px;
position: absolute;
background: black;
}
.candle-body {
height: 340px;
width: 80px;
position: absolute;
background-color: white;
bottom: 0px;
border-radius: 15px;
left: 20px;
}
.mark {
position: absolute;
font-size: 12px;
line-height: 1em;
color: black;
width: 40px;
text-align: center;
left: 40px;
font-weight: normal;
font-style: normal;
}
/* source for the flame animation: https://codepen.io/dazulu/pen/fGFyj */
.flame-container{
width: 60px;
position: absolute;
left: 30px;
top: 35px;
transform-origin: center bottom;
animation-name: flicker;
animation-duration: 3ms;
animation-delay: 200ms;
animation-timing-function: ease-in;
animation-iteration-count: infinite;
animation-direction: alternate;
}
.flame{
bottom:0;
position:absolute;
border-bottom-right-radius: 50%;
border-bottom-left-radius: 50%;
border-top-left-radius: 50%;
transform:rotate(-45deg) scale(1.5,1.5);
}
.yellow{
left:15px;
width: 30px;
height: 30px;
background:gold;
box-shadow: 0px 0px 9px 4px gold;
}
.orange{
left:10px;
width: 40px;
height: 40px;
background:orange;
box-shadow: 0px 0px 9px 4px orange;
}
.red{
left:5px;
width: 50px;
height: 50px;
background:OrangeRed;
box-shadow: 0px 0px 5px 4px OrangeRed;
}
.white{
left:15px;
bottom:-4px;
width: 30px;
height: 30px;
background:white;
box-shadow: 0px 0px 9px 4px white;
}
.circle{
border-radius: 50%;
position:absolute;
}
@keyframes flicker{
0% {transform: rotate(-1deg);}
20% {transform: rotate(1deg);}
40% {transform: rotate(-1deg);}
60% {transform: rotate(1deg) scaleY(1.02);}
80% {transform: rotate(-2deg) scaleY(0.96);}
100% {transform: rotate(1deg);}
}