-
Notifications
You must be signed in to change notification settings - Fork 1
/
style.css
124 lines (111 loc) · 2.38 KB
/
style.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
body {
margin: 3vmin 0;
overflow: hidden;
}
footer {
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
text-align: center;
margin-top: 20px;
color: gray;
}
footer a {
text-decoration: none;
color: #208ad2;
}
.demo-container {
width: 100vw;
margin: 0;
padding: 0;
text-align: center;
}
.demo-container.clocks.single .clock {
height: 85vmin;
width: 85vmin;
padding: 0;
margin: auto;
border: 10px solid #424242;
}
.clock {
border-radius: 50%;
background: -webkit-radial-gradient(#000, #000 0.1em, #fff 0.1em, #fff), #fff;
background: radial-gradient(#000, #000 0.1em, #fff 0.1em, #fff), #fff;
display: inline-block;
padding-bottom: 31.333%;
position: relative;
width: 31.333%;
}
.clock::after {
display: none;
background: red;
border-radius: 50%;
content: "";
position: absolute;
left: 50%;
top: 50%;
-webkit-transform: translate(-50%, -50%);
-ms-transform: translate(-50%, -50%);
transform: translate(-50%, -50%);
width: 4%;
height: 4%;
z-index: 10;
}
.clock.station {
background: #fff url('images/station_clock.svg') no-repeat center;
background-size: 95%;
box-shadow: 0 0 1em rgba(0, 0, 0, 0.2) inset;
}
.clock.station .seconds::before {
background: red;
border-radius: 100%;
content: "";
position: absolute;
top: -15%;
left: -342%;
height: 23.98765%;
width: 800%;
}
.minutes-container, .hours-container, .seconds-container {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
opacity: 0;
}
.seconds {
background: red;
width: 1.25%;
height: 42%;
position: absolute;
left: 49.39%;
top: 20%;
-webkit-transform-origin: 50% 71%;
-ms-transform-origin: 50% 71%;
transform-origin: 50% 71%;
z-index: 8;
}
.minutes {
background: #000;
width: 4.2%;
height: 55%;
position: absolute;
left: 48.1%;
top: 6.95%;
-webkit-transform-origin: 50% 78.5%;
-ms-transform-origin: 50% 78.5%;
transform-origin: 50% 78.5%;
}
.hours {
background: #000;
width: 3.5%;
height: 40%;
position: absolute;
left: 48.25%;
top: 22%;
-webkit-transform-origin: 50% 71%;
-ms-transform-origin: 50% 71%;
transform-origin: 50% 71%;
}
article div div, article div div:before {
box-shadow: 0 0 5px 0px rgba(0, 0, 0, 0.05);
}