Add handler to close post widget on ESC
[blerg.git] / www / css / blerg.css
1 /* Blerg is (C) 2011 The Dominion of Awesome, and is distributed under a
2  * BSD-style license.  Please see the COPYING file for details.
3  */
4 @font-face {
5         font-family: "Alte Haas Grotesk Bold";
6         src: url("/fonts/AlteHaasGroteskBold.ttf");
7 }
8
9 body {
10         margin: 0;
11         font-family: sans-serif;
12         background-color: white;
13 }
14
15 a.ref {
16         color: #404040;
17 }
18
19 a > img {
20         border: 0;
21 }
22
23 .blerg-header {
24         background-color: #1E1E1E;
25         color: white;
26         padding: 8px 8px 16px 8px;
27         position: relative;
28 }
29
30 .blerg-header .logo {
31         float: left;
32         margin-right: 10px;
33 }
34
35 .blerg-header h1 {
36         margin: 4px 0 0 0;
37         font-size: 65px;
38         text-shadow: black 0px 2px;
39 }
40
41 .blerg-header h1 a {
42         text-decoration: none;
43 }
44
45 .blerg-header h1 a:hover {
46         text-decoration: underline;
47 }
48
49 .blerg-header a {
50         color: inherit;
51 }
52
53 .blerg-header h2 {
54         margin: 0;
55         font-size: 28px;
56         text-shadow: black 0px 1px;
57 }
58
59 .blerg-header .onyx-input, .blerg-header .onyx-textarea {
60         color: white;
61 }
62
63 .blerg-header .onyx-focused > .onyx-input, .blerg-header .onyx-focused > .onyx-textarea {
64         color: black;
65 }
66
67 .blerg-title {
68         float: left;
69         width: 35%;
70 }
71
72 .blerg-controls {
73         float: right;
74         margin-top: 8px;
75         margin-right: 8px;
76         font-size: large;
77         text-align: right;
78 }
79
80 .blerg-controls-toolbar {
81         position: absolute;
82         right: 0;
83         top: 69pt;
84         margin-bottom: 16px;
85         margin-right: 16px;
86 }
87
88 .blerg-controls-toolbar .onyx-button {
89         margin-left: 4pt;
90         font-size: 14pt;
91 }
92
93 @media screen and (max-width: 800px) {
94         .blerg-title {
95                 float: none;
96                 width: auto;
97         }
98
99         .blerg-controls {
100                 float: none;
101                 text-align: left;
102                 margin: 1em 0 0 0;
103         }
104
105         .blerg-controls-greeting {
106                 margin: 1em 8px;
107         }
108
109         .blerg-controls-toolbar {
110                 position: static;
111                 margin: 1em 8px;
112         }
113
114         .blerg-controls-toolbar .onyx-button {
115                 display: block;
116                 width: 100%;
117                 margin: 8px 0;
118         }
119
120         .blerg-controls .login {
121                 display: block;
122                 width: auto;
123                 margin: 1em 0;
124         }
125 }
126
127 .feed-button.new {
128         background-color: #E4C010;
129 }
130
131 .spew-button {
132         color: #333;
133         background-color: #0D0;
134         font-weight: bold;
135 }
136
137 h2 {
138         font-size: 20pt;
139         margin-bottom: 28pt;
140 }
141
142 h1, h2, h3 {
143         font-family: "Alte Haas Grotesk Bold", sans-serif;
144 }
145
146 .blerg-main {
147         padding: 15pt 15pt 0 15pt;
148 }
149
150 .signup-button {
151         font-size: 40pt;
152         padding: 1em;
153         background-color: #C0F;
154         color: #F88;
155 }
156
157 @media screen and (max-width: 800px) {
158         .signup-button {
159                 font-size: 20pt;
160         }
161 }
162
163 @media screen and (max-width: 400px) {
164         .signup-button {
165                 font-size: 14pt;
166         }
167 }
168
169 .blerg-main h2 {
170         margin: 8pt 0;
171 }
172
173 .blerg-post {
174         position: fixed;
175         top: 0;
176         left: 0;
177         width: 100%;
178         height: 100%;
179         background-color: #1E1E1E;
180 }
181
182 .blerg-post h2 {
183         font-size: 14pt;
184         margin: 12pt 12pt 8pt 12pt;
185 }
186
187 .blerg-post .content-decorator {
188         display: block;
189         border-color: #999;
190         margin: 8pt 12pt 12pt;
191         height: 35%;
192 }
193
194 .blerg-post .content {
195         display: block;
196         width: 100%;
197         height: 100%;
198         font-size: 14pt;
199         font-family: sans-serif;
200 }
201
202 .blerg-post .toolbar .switcher {
203         color: black;
204         background-color: white;
205         height: 53px;
206         padding: 12pt 8pt 4pt 12pt;
207 }
208
209 .blerg-post .toolbar .buttons {
210         height: 53px;
211         padding: 0 12pt 0 60px;
212         text-align: right;
213         vertical-align: top;
214         background-image: url(/images/corner.svg);
215         background-position: left bottom;
216         background-repeat: no-repeat;
217         background-size: auto 100%;
218 }
219
220 .blerg-post .toolbar .buttons .onyx-button {
221         margin-left: 4pt;
222         height: 0.4in;
223         width: 1in;
224 }
225
226 .blerg-post .bottom-panel {
227         height: 45%;
228         color: black;
229         background-color: white;
230 }
231
232 .blerg-post .bottom-panel > div {
233         padding: 0 12pt;
234 }
235
236 .blerg-post.enter {
237         animation: blerg-post-enter 750ms;
238 }
239
240 @keyframes blerg-post-enter {
241         from {
242                 transform: translateY(-100%);
243                 animation-timing-function: ease-in;
244         }
245
246         60% {
247                 transform: translateY(0);
248                 animation-timing-function: ease-out;
249         }
250
251         80% {
252                 transform: translateY(-2%);
253                 animation-timing-function: ease-in;
254         }
255
256         to {
257                 transform: translateY(0);
258         }
259 }
260
261 .blerg-post.exit {
262         animation: blerg-post-exit 500ms forwards;
263 }
264
265 @keyframes blerg-post-exit {
266         from {
267                 transform: translateY(0);
268                 animation-timing-function: ease-in;
269         }
270
271         to {
272                 transform: translateY(100%);
273         }
274 }
275
276 .login {
277         display: inline-block;
278         width: 200px;
279 }
280
281 .login .onyx-button {
282         width: 100%;
283         margin-top: 4pt;
284 }
285
286 .login .enyo-input {
287         width: 100%;
288 }
289
290 .blerg-user-controls {
291         font-size: 14pt;
292         text-align: right;
293 }
294
295 .blerg-user-controls a {
296         color: inherit;
297         text-decoration: none;
298         margin-left: 4pt;
299 }
300
301 .blerg-user-controls a:hover {
302         text-decoration: underline;
303 }
304
305
306 .record {
307         margin: 8pt 0 24pt 0;
308         font-size: 14pt;
309 }
310
311 .record p {
312         margin-bottom: 0;
313 }
314
315 .record .info {
316         color: #8F8F8F;
317         font-size: small;
318         font-style: italic;
319 }
320
321 .record .info a {
322         color: #8F8F8F;
323 }
324
325 .record h1 {
326         font-size: 18pt;
327         margin: 1em 0;
328 }
329
330 .record h2 {
331         font-size: 16pt;
332         margin: 1em 0;
333 }
334
335 .record h3 {
336         font-size: 14pt;
337         margin: 1em 0;
338 }
339
340 .record h4 {
341         font-size: 14pt;
342         font-weight: normal;
343         margin: 1em 0;
344 }
345
346 .record h5 {
347         font-size: 14pt;
348         font-weight: normal;
349         font-style: italic;
350         margin: 1em 0;
351 }
352
353 .latest {
354         display: table;
355         margin: 0 auto;
356         border-spacing: 10px;
357 }
358
359 .latest h2 {
360         font-size: 16pt;
361         margin-top: 0;
362 }
363
364 .latest-scroller {
365         height: 600px;
366         padding: 12px;
367         overflow-y: auto;
368 }
369
370 .latest-posts {
371         display: table-cell;
372         border: 2px solid #E6E6E6;
373         color: #4C4C4C;
374         width: 850px;
375 }
376
377 .latest-posts .record {
378         font-size: 12pt;
379         margin: 10px 0;
380 }
381
382 .latest-tags {
383         display: table-cell;
384         border: 2px solid #E6E6E6;
385         background-color: #FAE3FC;
386         line-height: 2em;
387         width: 480px;
388 }
389
390 .latest-tags a {
391         margin: 0 0.75em;
392 }
393
394 @media screen and (min-width: 1400px) {
395         .latest { width: 1340px; }
396 }
397
398 @media screen and (max-width: 1100px) {
399         .latest {
400                 display: block;
401                 margin-top: 15px;
402         }
403         .latest-posts {
404                 display: block;
405                 width: auto;
406                 margin-right: 0;
407                 overflow: auto;
408         }
409         .latest-tags {
410                 display: block;
411                 width: auto;
412                 margin-top: 10px;
413         }
414         .latest-tags .latest-scroller {
415                 height: auto;
416         }
417 }
418
419 @media screen and (max-width: 800px) {
420         .latest-posts, .latest-tags {
421                 border: none;
422                 background-color: inherit;
423         }
424         .latest-scroller {
425                 height: auto;
426                 padding: 0;
427         }
428 }
429
430 .author {
431         font-weight: bold;
432 }
433
434 .quote {
435         border-left: 2px solid blue;
436         padding-left: 6px;
437         margin-left: 2px;
438 }
439
440 .blerg-dialog {
441         position: fixed;
442         width: 300px;
443         padding: 8px;
444 }
445
446 .blerg-dialog h2 {
447         font-size: 14pt;
448         margin: 0;
449 }
450
451 .blerg-dialog .onyx-groupbox {
452         margin: 8px 0;
453 }
454
455 .blerg-dialog .onyx-button {
456         display: block;
457         margin: 8px 0 0 0;
458         width: 100%;
459 }
460
461 .blerg-dialog .onyx-input {
462         width: 100%;
463         color: white;
464 }
465
466 .blerg-dialog .onyx-focused > .onyx-input {
467         color: black;
468 }
469
470 .blerg-error {
471         color: red;
472         font-weight: bold;
473 }
474
475 table.help td {
476         padding: 2pt 8pt;
477 }
478
479 footer {
480         clear: both;
481         margin: 15pt;
482         font-size: small;
483         color: #333;
484 }