-
Notifications
You must be signed in to change notification settings - Fork 0
/
clock.css
94 lines (83 loc) · 1.45 KB
/
clock.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
body {
margin: 0; padding: 0;
background:#CCC;
font-family: 'Droid Sans', sans-serif;
color: #333;
box-shadow: inset 0 100px 100px -100px #888;
text-align: center;
font-variant: small-caps;
text-transform: capitalize;
}
.clock-box {
width: 300px;
display: inline-block;
margin: 50px;
}
.clock {
height: 300px;
width: 300px;
position: relative;
background: #FFF;
border-radius: 50%;
box-shadow: inset 0 0 8px #000, 0 5px 20px #222;
border: 10px solid #111;
background-image: url('clockface.svg');
background-size: 100%;
}
.clock-label {
margin: 50px 50px;
padding: 10px;
font-size: 1.5em;
text-align: center;
background-color: #EEE;
border: 2px solid #555;
box-shadow: 0 2px 10px #444;
}
.clock-rot {
position: absolute;
border-radius: 50%;
left: 150px;
top: 50%;
margin: -3% 0 0 -3%;
width: 6%;
height: 6%;
background-color: #000;
}
.clock-rot.hours {
-webkit-transform: rotate(-90deg);
box-shadow: 0 0 2px #111;
}
.clock-rot.minutes {
-webkit-transform: rotate(-75deg);
}
.clock-hand {
box-shadow: 0 0 2px #444;
position: absolute;
left: 50%;
top: 50%;
margin-left: -3px;
margin-top: -3px;
height: 6px;
}
.clock-hand.hours {
background: #000;
width: 75px;
height: 8px;
margin-top: -4px;
}
.clock-hand.minutes {
background: #000;
width: 110px;
}
.clock-hand.seconds {
background: #D00;
width: 150px;
margin-left: -75%;
margin-top: -2px;
height: 4px;
}
.tz-time {
font-size: 0.5em;
display: block;
color: #666;
}