-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflipper.css
198 lines (176 loc) · 3.31 KB
/
flipper.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
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
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
body {
font-family: Helvetica, Arial, sans-serif;
font-size: 90%;
background-color="FFFFFF";
}
html, body {
min-height: 100%;
}
a {
color: #4682b4;
}
h1 {
font-family: Helvetica Neue, Helvetica, Arial, sans-serif;
text-align: center;
color: #444;
text-shadow: #fff 0 1px 0;
margin: 2em 0;
}
.centered {
margin: 2em auto;
width: 480px;
}
.centered.countdown {
width: 620px;
}
.centered.peoplecountdown {
width: 500px;
}
.explanation {
clear: both;
margin: 3em 1em;
padding-top: 0.5em;
font-size: 120%;
text-shadow: #fff 0 1px 0;
color: #888;
text-align: center;
}
/* Clock container */
.time {
font-size: 3.5em;
font-weight: bold;
list-style: none;
margin: 0;
height: 70px;
}
.time li {
float: left;
width: 55px;
height: 60px;
position: relative;
/* This setting affects how much the cards stand out from the page.
* Lower numbers make the effect wider/larger, higher make it more shallow. */
-webkit-perspective: 70;
}
.time li.separator {
color: #444;
text-shadow: #fff 0 -1px 3px;
font-weight: lighter;
width: 22px;
text-align: left;
}
.time li.meridiem {
font-size: 16pt;
font-weight: normal;
color: #888;
text-shadow: #fff 0 1px 0;
padding-left: 10px;
padding-top: 48px;
}
/* Normal looking time card */
.time div.card {
background: #444;
padding: 5px 0;
color: #fff;
width: 1em;
text-align: center;
border-radius: 10px;
position: relative;
/* Background gradient */
background: -webkit-gradient(
linear,
left bottom,
left top,
color-stop(0, #090909),
color-stop(1, #323232)
);
background: -moz-linear-gradient(
center bottom,
#090909 0%,
#323232 100%
);
}
.time div.card > .break {
/* Create two colour line */
background: #181818;
border-bottom: 1px solid #343434;
height: 1px;
/* Centre within the pane */
width: 100%;
position: absolute;
top: 50%;
}
/* Elements added when the object is changing */
.time .change {
position: absolute;
top: 0;
height: 60px;
z-index: 2;
-webkit-transition: all .4s ease-in;
-webkit-transform: rotateX(0deg);
-webkit-transform-style: preserve-3d;
-webkit-backface-visibility: hidden;
}
/* The top and bottom segments to the card animation */
.time .top .card {
height: 24px;
overflow: hidden;
box-shadow: 0;
border-bottom-left-radius: 0;
border-bottom-right-radius: 0;
border-bottom: 1px solid #181818;
background: -webkit-gradient(
linear,
left bottom,
left top,
color-stop(0, #181818),
color-stop(1, #323232)
);
}
.time .change.bottom {
top: 0;
padding-top: 36px;
height: 35px;
-webkit-transition: all .4s ease-out;
-webkit-transition-delay: .2s;
-webkit-transform: rotateX(270deg);
}
/* These .flip rules do the actual animation */
.time .change.flip {
-webkit-transform: rotateX(-90deg);
top: 5px;
}
.time .change.bottom.flip {
-webkit-transform: rotateX(0deg);
top: 0;
}
.time .change .bottom {
overflow: hidden;
height: 35px;
}
.time .bottom .card {
margin-top: -36px;
}
.time .new-top {
position: absolute;
top: 0;
z-index: 1;
}
/* Countdown page CSS rules */
.bold {
color: #444;
}
.labels {
list-style: none;
margin: 0;
clear: both;
color: #888;
text-shadow: #fff 0 1px 0;
}
.labels li {
float: left;
width: 113px;
text-align: center;
margin-right: 18px;
margin-top: 10px;
}