-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.css
executable file
·150 lines (134 loc) · 3.05 KB
/
main.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
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
@charset "utf-8";
/* CSS Document */
html, body {
width: 100%;
height: 100%;
padding: 0;
margin: 0;
}
body {
font-family: 'Press Start 2P', cursive;
/* W3C */
background: linear-gradient(top, #ff3232 0%,#fcf528 16%,#28fc28 32%,#28fcf8 50%,#272ef9 66%,#ff28fb 82%,#ff3232 100%);
/* Firefox */
background: -moz-linear-gradient(top, #ff3232 0%, #fcf528 16%, #28fc28 32%, #28fcf8 50%, #272ef9 66%, #ff28fb 82%, #ff3232 100%);
/* Chrome,Safari4+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ff3232), color-stop(16%,#fcf528), color-stop(32%,#28fc28), color-stop(50%,#28fcf8), color-stop(66%,#272ef9), color-stop(82%,#ff28fb), color-stop(100%,#ff3232));
/* Chrome10+,Safari5.1+ */
background: -webkit-linear-gradient(top, #ff3232 0%,#fcf528 16%,#28fc28 32%,#28fcf8 50%,#272ef9 66%,#ff28fb 82%,#ff3232 100%);
background-size: 1000%;
-moz-background-size: 1000%;
-webkit-background-size: 1000%;
/* W3C */
animation-name: fun-time-awesome;
animation-duration: 40s;
animation-timing-function: linear;
animation-iteration-count: infinite;
animation-direction: alternate;
animation-play-state: running;
/* Firefox: */
-moz-animation-name: fun-time-awesome;
-moz-animation-duration: 40s;
-moz-animation-timing-function: linear;
-moz-animation-iteration-count: infinite;
-moz-animation-direction: alternate;
-moz-animation-play-state: running;
/* Chrome, Safari */
-webkit-animation-name: fun-time-awesome;
-webkit-animation-duration: 40s;
-webkit-animation-timing-function: linear;
-webkit-animation-iteration-count: infinite;
-webkit-animation-direction: alternate;
-webkit-animation-play-state: running;
}
/* W3C */
@keyframes fun-time-awesome {
0% {background-position: left top;}
100% {background-position: left bottom;}
}
/* Firefox */
@-moz-keyframes fun-time-awesome {
0% {background-position: left top;}
100% {background-position: left bottom;}
}
/* Chrome, Safari */
@-webkit-keyframes fun-time-awesome {
0% {background-position: left top;}
100% {background-position: left bottom;}
}
h1 {
position: absolute;
top: 10px;
left: 10px;
z-index: 50;
font-size: 40px;
}
h2 {
position: absolute;
top: 70px;
left: 10px;
z-index: 50;
font-size: 20px;
}
h2 span {
font-size: 10px;
}
h1, h2 {
color: #fff;
text-shadow: 0px 1px 0px #999, 0px 2px 0px #888, 0px 3px 0px #777, 0px 4px 0px #666, 0px 5px 0px #555, 0px 6px 0px #444, 0px 7px 0px #333, 0px 8px 7px #001135;
}
div {
position: relative;
z-index: 20;
}
#crushin {
position: absolute;
bottom: 10px;
left: 10px;
z-index: 50;
}
audio {
position: absolute;
bottom: 10px;
right: 10px;
z-index: 50;
opacity: 0;
}
#counter {
position: absolute;
bottom: 10px;
width: 100%;
text-align: center;
z-index: 50;
}
.face-source {
display: none;
}
#faces-container {
height: 100%;
}
/* mobile phone */
@media screen and (max-device-width: 480px) {
body {
height: 120%;
}
h1 {
font-size: 25px;
}
h2 {
font-size: 12px;
top: 50px;
}
audio {
opacity: 1;
bottom: 30px;
top: 90px;
left: 10px;
}
#crushin {
display: none;
}
#counter {
top: 380px;
}
}