-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmain.css
229 lines (220 loc) · 4.08 KB
/
main.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
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
@font-face {
font-family: "Inconsolata";
font-style: normal;
font-display: swap;
font-weight: 400;
src:
local("Inconsolata Regular "),
local("Inconsolata-Regular"),
url("/node_modules/typeface-inconsolata/files/inconsolata-latin-400.woff2") format("woff2"),
url("/node_modules/typeface-inconsolata/files/inconsolata-latin-400.woff") format("woff");
}
html {
width: 100%;
height: 100%;
}
body {
width: 100%;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
background: linear-gradient(#001, #002 66%, #112);
}
#sky,
#sunrise,
#sunset,
#sun {
transition: 2s;
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
#sky {
background: linear-gradient(#125, #136 15%, #19C 70%, #9CF);
opacity: 1.0;
}
#sunrise {
background: radial-gradient(circle at left bottom, #F62, transparent 200%);
opacity: 0.0;
}
#sunset {
background: radial-gradient(circle at right bottom, #F62, transparent 200%);
opacity: 0.0;
}
#sun {
background: radial-gradient(circle at 105% 0%, #FFF, #FFC 10%, transparent 80%);
opacity: 0.0;
}
body {
color: rgba(255, 255, 255, 0.6);
text-shadow: 0 0 2px rgba(0, 0, 0, 0.2);
}
body, code {
font-family: "Inconsolata", monospace;
}
#time {
font-size: calc(24px + 4vw);
}
#time code {
color: rgba(255, 255, 255, 0.9);
}
#time .sep {
color: rgba(255, 255, 255, 0.6);
}
#alert {
font-size: calc(16px + 2vw);
position: absolute;
bottom: 0;
padding: 1em;
}
@media (max-width: 575px) {
.extra {
display: none;
}
html.menu #time {
opacity: 0;
}
}
html.clock-compact .extra {
display: none;
}
#time {
position: relative;
text-align: center;
width: 100%;
margin: 1em;
}
#time code:hover:after {
font-size: calc(16px + 2vw);
color: rgba(255, 255, 255, 0.6);
position: absolute;
display: block;
text-align: center;
width: 100%;
}
#century:hover:after {
content: "(centuries since epoch)";
}
#year:hover:after {
content: "(years)";
}
#month:hover:after {
content: "(months since second solstice)";
}
#day:hover:after {
content: "(days since new moon)";
}
#centiday:hover:after {
content: "(centidays since midnight)";
}
#dimiday:hover:after {
content: "(dimidays)";
}
#microday:hover:after {
content: "(microdays)";
}
html.menu #menu-content {
display: flex;
flex-direction: column;
}
.hamburger-inner:before,
.hamburger-inner:after,
.hamburger-outer,
.hamburger-inner {
display: block;
width: 20px;
transition: 0.1s;
}
.hamburger-outer {
position: relative;
height: calc(2px + 2 * 6px);
}
.hamburger-inner:before,
.hamburger-inner:after,
.hamburger-inner {
position: absolute;
content: "";
height: 2px;
background: rgba(255, 255, 255, 0.6);
}
.hamburger-outer:hover .hamburger-inner:before,
.hamburger-outer:hover .hamburger-inner:after,
.hamburger-outer:hover .hamburger-inner {
background: rgba(255, 255, 255, 0.9);
}
.hamburger-inner:before {
top: -6px;
}
.hamburger-inner,
.hamburger-inner:after {
top: 6px;
}
html.menu .hamburger-inner,
html.menu .hamburger-outer:hover .hamburger-inner {
background: transparent;
}
html.menu .hamburger-inner:before {
transform: rotate(45deg);
top: 0;
}
html.menu .hamburger-inner:after {
transform: rotate(-45deg);
top: 0;
}
#menu-button,
#menu-content {
position: absolute;
font-size: 1.5em;
right: 0;
top: 0;
}
#menu-button {
padding: 0.5em;
transition: color ease 0.5s;
z-index: 2;
}
#menu-content {
display: none;
height: 100%;
padding: 0 0.5em;
background: rgba(0, 0, 0, 0.2);
}
#menu-content > div {
margin-top: 1em;
}
#menu-content > #geolocation {
margin-top: 1.5em;
}
#menu-content > #credits {
margin-top: auto;
margin-bottom: 0.5em;
}
#menu-content code {
float: right;
margin-left: 1em;
}
a {
color: inherit;
}
.btn {
cursor: pointer;
}
#credits a:hover,
.btn:hover {
color: rgba(255, 255, 255, 0.9);
}
#time #human,
#time #machine,
#time #legacy,
html.format-human #time #machine,
html.format-machine #time #human {
display: none;
}
html.format-human #time #human,
html.format-machine #time #machine,
html.format-legacy #time #legacy {
display: block;
}