-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathclock.css
184 lines (165 loc) · 3.99 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
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
@-webkit-keyframes blink {
0% { opacity: 0 } 50% { opacity: 0 }
50.01% { opacity: 1 } 100% { opacity: 1 }
}
html, body {
height: 100%;
width: 100%;
padding: 0;
margin: 0;
}
body {
display: -moz-box;
display: -webkit-box;
display: box;
-moz-box-orient : horizontal;
-moz-box-pack : center;
-moz-box-align : center;
-webkit-box-orient : horizontal;
-webkit-box-pack : center;
-webkit-box-align : center;
box-orient : horizontal;
box-pack : center;
box-align : center;
background-color: #000;
background-image: -webkit-gradient(linear, left top, left bottom, from(rgba(0,0,0,0)), to(rgba(0,0,0,.4)));
background-image: -moz-linear-gradient(top, rgba(0,0,0,0), rgba(0,0,0, .4));
-moz-transition-property: background-color;
-moz-transition-duration: 1s;
-moz-transition-timing-function: linear;
-webkit-transition: background-color 1s linear;
-o-transition: background-color 1s linear;
transition: background-color 1s linear;
font-family: Arial, sans-serif;
font-size: 12px;
}
time {
display: block;
color: rgba(255,255,255,1);
/*text-shadow: 0 0 15px rgba(0,0,0,.1), 0 0 1px rgba(0,0,0,.3);*/
text-shadow: 0px 1px 0px rgba(255,255,255,0.3), 0px -1px 1px rgba(0,0,0,0.3), 0 0 15px rgba(0,0,0,.1), 0 0 1px rgba(0,0,0,.3);
text-align: center;
font-family: "Permanent Marker", Arial, sans-serif;
}
time .digit, time .colon {
display: block;
position: relative;
float: left;
font-size: 180px;
width: 100px;
width: .6em;
}
time .colon {
/*margin-top: -18px;*/
font-size: 160px;
text-decoration: blink;
-webkit-animation: blink 0.5s infinite linear alternate;
}
nav {
position: absolute;
right: 15px;
top: 10px;
opacity: 0;
margin: 0;
padding: 0;
line-height: 100%;
-moz-transition-property: opacity 500ms linear;
-webkit-transition: opacity 500ms linear;
-o-transition: opacity 500ms linear;
transition: opacity 500ms linear;
overflow: hidden;
}
body:hover nav {
opacity: 0.3;
}
body:hover nav:hover {
opacity: 0.8;
}
nav h1 {
background: url(glyphicons__008_cogwheel.png) no-repeat 50% 50%;
height: 30px;
width: 30px;
text-indent: -999em;
overflow: hidden;
float: right;
cursor: pointer;
}
nav ul {
display: none;
opacity: 0;
border-radius: 4px;
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
list-style-type: none;
margin: 10px 40px 0 0;
padding: 4px 0;
background: #fff;
height: 0;
width: 160px;
-moz-transition-property: height 200ms linear;
-webkit-transition: height 200ms linear;
-o-transition: height 200ms linear;
transition: height 200ms linear;
-webkit-box-shadow: 0 1px 3px rgba(0,0,0, .4);
-moz-box-shadow: 0 1px 3px rgba(0,0,0, .4);
box-shadow: 0 1px 3px rgba(0,0,0, .4);;
}
nav:hover ul {
display: block;
opacity: 1;
height: auto;
overflow: hidden;
/* height: 650px;*/
}
nav li {
cursor: pointer;
font-weight: bold;
color: #0078ff;
text-decoration: none;
display: block;
padding: 8px 20px;
margin: 0;
}
nav li.selected {
background: #222;
color: #fff !important;
text-shadow: 0 1px 1px rgba(0,0,0,1);
}
nav li:hover {
background: #0078ff;
color: #fff;
text-shadow: 0 1px 1px rgba(0,0,0, .1);
}
.ribbon {
background-color: rgba(0,0,0,0.5);
overflow: hidden;
/* top left corner */
position: absolute;
left: -4.5em;
top: 3.5em;
/* 45 deg ccw rotation */
-moz-transform: rotate(-45deg);
-webkit-transform: rotate(-45deg);
/* shadow */
-moz-box-shadow: 0 0 1em #888;
-webkit-box-shadow: 0 0 1em #888;
opacity: 0.2;
-moz-transition-property: opacity 200ms linear;
-webkit-transition: opacity 200ms linear;
-o-transition: opacity 200ms linear;
transition: opacity 200ms linear;
}
.ribbon a {
border: 1px solid #fff;
color: #fff;
display: block;
font: bold 14px 'Helvetiva Neue', Helvetica, Arial, sans-serif;
margin: 0.05em 0 0.075em 0;
padding: 0.5em 3.5em;
text-align: center;
text-decoration: none;
text-shadow: 0 0 0.5em #444;
}
body:hover .ribbon {
opacity: 1;
}