66add6773e53a1f3f7e90de243a166f7d424c6f4
[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 .blerg-controls 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: 40px 0 17px 0;
171 }
172
173 .blerg-main h2:first-child {
174     margin: 0 0 17px 0;
175 }
176
177 .blerg-post {
178         position: fixed;
179         top: 0;
180         left: 0;
181         width: 100%;
182         height: 100%;
183         background-color: #1E1E1E;
184 }
185
186 .blerg-post h2 {
187         font-size: 14pt;
188         margin: 12pt 12pt 8pt 12pt;
189 }
190
191 .blerg-post .content-decorator {
192         display: block;
193         border-color: #999;
194         margin: 8pt 12pt 12pt;
195         height: 35%;
196 }
197
198 .blerg-post .content {
199         display: block;
200         width: 100%;
201         height: 100%;
202         font-size: 14pt;
203         font-family: sans-serif;
204 }
205
206 .blerg-post .toolbar {
207         height: 54px;
208         overflow: hidden;
209 }
210
211 .blerg-post .toolbar .switcher {
212         color: black;
213         background-color: white;
214         padding: 12pt 8pt 2px 12pt;
215 }
216
217 .blerg-post .toolbar .buttons {
218         padding: 0 12pt 12pt 60px;
219         text-align: right;
220         vertical-align: top;
221         float: right;
222         background-color: #1E1E1E;
223         background-image: url(/images/corner.svg);
224         background-position: left bottom;
225         background-repeat: no-repeat;
226         background-size: auto 100%;
227 }
228
229 .blerg-post .toolbar .buttons .onyx-button {
230         margin-left: 4pt;
231         height: 0.4in;
232         width: 1in;
233 }
234
235 .blerg-post .bottom-panel {
236         height: 45%;
237         color: black;
238         background-color: white;
239 }
240
241 .blerg-post .bottom-panel > div {
242         padding: 0 12pt;
243 }
244
245 .blerg-post.enter {
246         animation: blerg-post-enter 750ms;
247 }
248
249 @keyframes blerg-post-enter {
250         from {
251                 transform: translateY(-100%);
252                 animation-timing-function: ease-in;
253         }
254
255         60% {
256                 transform: translateY(0);
257                 animation-timing-function: ease-out;
258         }
259
260         80% {
261                 transform: translateY(-2%);
262                 animation-timing-function: ease-in;
263         }
264
265         to {
266                 transform: translateY(0);
267         }
268 }
269
270 .blerg-post.exit {
271         animation: blerg-post-exit 500ms forwards;
272 }
273
274 @keyframes blerg-post-exit {
275         from {
276                 transform: translateY(0);
277                 animation-timing-function: ease-in;
278         }
279
280         to {
281                 transform: translateY(100%);
282         }
283 }
284
285 .login {
286         display: inline-block;
287         width: 200px;
288 }
289
290 .login .onyx-button {
291         width: 100%;
292         margin-top: 4pt;
293 }
294
295 .login .enyo-input {
296         width: 100%;
297 }
298
299 .blerg-user-controls {
300         font-size: 14pt;
301         text-align: right;
302 }
303
304 .blerg-user-controls a {
305         color: inherit;
306         text-decoration: none;
307         margin-left: 4pt;
308 }
309
310 .blerg-user-controls a:hover {
311         text-decoration: underline;
312 }
313
314
315 .record {
316         margin: 8pt 0 24pt 0;
317         font-size: 14pt;
318 }
319
320 .record p {
321         margin-bottom: 0;
322 }
323
324 .record .info {
325         color: #8F8F8F;
326         font-size: small;
327         font-style: italic;
328 }
329
330 .record .info a {
331         color: #8F8F8F;
332 }
333
334 .record h1 {
335         font-size: 18pt;
336         margin: 1em 0;
337 }
338
339 .record h2 {
340         font-size: 16pt;
341         margin: 1em 0;
342 }
343
344 .record h3 {
345         font-size: 14pt;
346         margin: 1em 0;
347 }
348
349 .record h4 {
350         font-size: 14pt;
351         font-weight: normal;
352         margin: 1em 0;
353 }
354
355 .record h5 {
356         font-size: 14pt;
357         font-weight: normal;
358         font-style: italic;
359         margin: 1em 0;
360 }
361
362 .latest {
363         display: table;
364         margin: 0 auto;
365         border-spacing: 10px;
366 }
367
368 .latest h2 {
369         font-size: 16pt;
370         margin-top: 0;
371 }
372
373 .latest-scroller {
374         height: 600px;
375         padding: 12px;
376         overflow-y: auto;
377 }
378
379 .latest-posts {
380         display: table-cell;
381         border: 2px solid #E6E6E6;
382         color: #4C4C4C;
383         width: 850px;
384 }
385
386 .latest-posts .record {
387         font-size: 12pt;
388         margin: 10px 0;
389 }
390
391 .latest-tags {
392         display: table-cell;
393         border: 2px solid #E6E6E6;
394         background-color: #FAE3FC;
395         line-height: 2em;
396         width: 480px;
397 }
398
399 .latest-tags a {
400         margin: 0 0.75em;
401 }
402
403 @media screen and (min-width: 1400px) {
404         .latest { width: 1340px; }
405 }
406
407 @media screen and (max-width: 1100px) {
408         .latest {
409                 display: block;
410                 margin-top: 15px;
411         }
412         .latest-posts {
413                 display: block;
414                 width: auto;
415                 margin-right: 0;
416                 overflow: auto;
417         }
418         .latest-tags {
419                 display: block;
420                 width: auto;
421                 margin-top: 10px;
422         }
423         .latest-tags .latest-scroller {
424                 height: auto;
425         }
426 }
427
428 @media screen and (max-width: 800px) {
429         .latest-posts, .latest-tags {
430                 border: none;
431                 background-color: inherit;
432         }
433
434         .latest-scroller {
435                 height: auto;
436                 padding: 0;
437         }
438 }
439
440 @media screen and (max-width: 600px) {
441         .blerg-post {
442                 position: inherit;
443                 height: 550px;
444         }
445
446         .blerg-post .toolbar {
447                 height: auto;
448         }
449
450         .blerg-post .toolbar .buttons {
451                 float: none;
452                 background-image: none;
453         }
454
455         .blerg-post .toolbar .switcher {
456                 padding: 4pt 12pt;
457         }
458
459         .blerg-post .record {
460                 margin-top: 0;
461         }
462
463         .blerg-post .record p:first-child {
464                 margin-top: 0;
465         }
466
467         .blerg-post.enter {
468                 animation: none;
469         }
470
471         .blerg-post.exit {
472                 animation: none;
473         }
474 }
475
476 .author {
477         font-weight: bold;
478 }
479
480 .quote {
481         border-left: 2px solid blue;
482         padding-left: 6px;
483         margin-left: 2px;
484 }
485
486 .blerg-dialog {
487         position: fixed;
488         width: 300px;
489         padding: 8px;
490 }
491
492 .blerg-dialog h2 {
493         font-size: 14pt;
494         margin: 0;
495 }
496
497 .blerg-dialog .onyx-groupbox,
498 .blerg-form .onyx-groupbox {
499         margin: 8px 0;
500 }
501
502 .blerg-dialog .onyx-button {
503         display: block;
504         margin: 8px 0 0 0;
505         width: 100%;
506 }
507
508 .blerg-dialog .onyx-input {
509         width: 100%;
510         color: white;
511 }
512
513 .blerg-dialog .onyx-focused > .onyx-input {
514         color: black;
515 }
516
517 .blerg-error {
518         color: red;
519         font-weight: bold;
520 }
521
522 .onyx-input-decorator.recovery {
523     min-height: 22px;
524     vertical-align: top;
525     margin-right: 1em;
526 }
527
528 .onyx-button.recovery {
529     background-color: orange;
530     font-size: 16px;
531     font-weight: bold;
532     min-height: 40px;
533 }
534
535 p.recovery {
536     background-color: orange;
537     font-size: 20px;
538     padding: 6px;
539 }
540
541 table.help td {
542         padding: 2pt 8pt;
543 }
544
545 footer {
546         clear: both;
547         margin: 15pt;
548         font-size: small;
549         color: #333;
550         text-align: right;
551 }
552
553 footer a {
554         color: #333;
555         margin-left: 1em;
556 }