-
Notifications
You must be signed in to change notification settings - Fork 4
/
counter.css
60 lines (51 loc) · 1.04 KB
/
counter.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
.counter-digit {
width: 22px;
display: inline-block;
position: relative;
}
.flip .counter-top {
-webkit-transform: rotateX(180deg);
}
.flip .counter-bottom {
background: #3c3c3c;
}
.counter-top,
.counter-bottom,
.counter-next {
height: 10px;
overflow: hidden;
position: absolute;
display: inline-block;
font-size: 16px;
padding: 5px;
color: white;
}
.counter-next,
.counter-top {
padding-bottom: 0;
-webkit-border-radius: 3px 3px 0 0;
background: -webkit-linear-gradient(#3c3c3c, #636363);
-webkit-box-shadow: 0 0 0 1px #636363;
}
.counter-next {
background: #636363;
}
.counter-top {
-webkit-transform-origin: bottom;
-webkit-transition: -webkit-transform 200ms ease-out;
}
.counter-bottom {
padding-top: 0;
-webkit-border-radius: 0 0 3px 3px;
background: blue;
margin-top: 15px;
background: -webkit-linear-gradient(#636363, #3c3c3c);
border-bottom: 1px solid #7b7b7b;
-webkit-box-shadow: 0 0 0 1px #636363, 0 2px 5px #888;
top: 0;
left: 0;
}
.counter-bottom span {
position: relative;
top: -10px;
}