1853c782b17aefcd41a2d532b9505bc5e84ba224
[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 .spew-button::after {
138         content: " ▼";
139 }
140
141 .spew-button.active::after {
142         content: " ▲";
143 }
144
145 h2 {
146         font-size: 20pt;
147         margin-bottom: 28pt;
148 }
149
150 h1, h2, h3 {
151         font-family: "Alte Haas Grotesk Bold", sans-serif;
152 }
153
154 .blerg-main {
155         padding: 15pt 15pt 0 15pt;
156 }
157
158 .signup-button {
159         font-size: 40pt;
160         padding: 1em;
161         background-color: #C0F;
162         color: #F88;
163 }
164
165 @media screen and (max-width: 800px) {
166         .signup-button {
167                 font-size: 20pt;
168         }
169 }
170
171 @media screen and (max-width: 400px) {
172         .signup-button {
173                 font-size: 14pt;
174         }
175 }
176
177 .blerg-main h2 {
178         margin: 8pt 0;
179 }
180
181 .blerg-post {
182         position: fixed;
183         top: 0;
184         left: 0;
185         width: 100%;
186         height: 100%;
187         background-color: #1E1E1E;
188 }
189
190 .blerg-post h2 {
191         font-size: 14pt;
192         margin: 12pt 12pt 8pt 12pt;
193 }
194
195 .blerg-post .content-decorator {
196         display: block;
197         border-color: #999;
198         margin: 8pt 12pt 12pt;
199         height: 35%;
200 }
201
202 .blerg-post .content {
203         display: block;
204         width: 100%;
205         height: 100%;
206         font-size: 14pt;
207         font-family: sans-serif;
208 }
209
210 .blerg-post .toolbar .switcher {
211         color: black;
212         background-color: white;
213         height: 53px;
214         padding: 12pt 8pt 4pt 12pt;
215 }
216
217 .blerg-post .toolbar .buttons {
218         height: 53px;
219         padding: 0 12pt 0 60px;
220         text-align: right;
221         vertical-align: top;
222         background-image: url(/images/corner.svg);
223         background-position: left bottom;
224         background-repeat: no-repeat;
225         background-size: auto 100%;
226 }
227
228 .blerg-post .toolbar .buttons .onyx-button {
229         margin-left: 4pt;
230         height: 0.4in;
231         width: 1in;
232 }
233
234 .blerg-post .bottom-panel {
235         height: 45%;
236         color: black;
237         background-color: white;
238 }
239
240 .blerg-post .bottom-panel > div {
241         padding: 0 12pt;
242 }
243
244 .blerg-post.enter {
245         animation: blerg-post-enter 750ms;
246 }
247
248 @keyframes blerg-post-enter {
249         from {
250                 transform: translateY(-100%);
251                 animation-timing-function: ease-in;
252         }
253
254         60% {
255                 transform: translateY(0);
256                 animation-timing-function: ease-out;
257         }
258
259         80% {
260                 transform: translateY(-2%);
261                 animation-timing-function: ease-in;
262         }
263
264         to {
265                 transform: translateY(0);
266         }
267 }
268
269 .blerg-post.exit {
270         animation: blerg-post-exit 500ms forwards;
271 }
272
273 @keyframes blerg-post-exit {
274         from {
275                 transform: translateY(0);
276                 animation-timing-function: ease-in;
277         }
278
279         to {
280                 transform: translateY(100%);
281         }
282 }
283
284 .login {
285         display: inline-block;
286         width: 200px;
287 }
288
289 .login .onyx-button {
290         width: 100%;
291         margin-top: 4pt;
292 }
293
294 .login .enyo-input {
295         width: 100%;
296 }
297
298 .blerg-user-controls {
299         font-size: 14pt;
300         text-align: right;
301 }
302
303 .blerg-user-controls a {
304         color: inherit;
305         text-decoration: none;
306         margin-left: 4pt;
307 }
308
309 .blerg-user-controls a:hover {
310         text-decoration: underline;
311 }
312
313
314 .record {
315         margin: 8pt 0 24pt 0;
316         font-size: 14pt;
317 }
318
319 .record p {
320         margin-bottom: 0;
321 }
322
323 .record .info {
324         color: #8F8F8F;
325         font-size: small;
326         font-style: italic;
327 }
328
329 .record .info a {
330         color: #8F8F8F;
331 }
332
333 .record h1 {
334         font-size: 18pt;
335         margin: 1em 0;
336 }
337
338 .record h2 {
339         font-size: 16pt;
340         margin: 1em 0;
341 }
342
343 .record h3 {
344         font-size: 14pt;
345         margin: 1em 0;
346 }
347
348 .record h4 {
349         font-size: 14pt;
350         font-weight: normal;
351         margin: 1em 0;
352 }
353
354 .record h5 {
355         font-size: 14pt;
356         font-weight: normal;
357         font-style: italic;
358         margin: 1em 0;
359 }
360
361 .latest {
362         display: table;
363         margin: 0 auto;
364         border-spacing: 10px;
365 }
366
367 .latest h2 {
368         font-size: 16pt;
369         margin-top: 0;
370 }
371
372 .latest-scroller {
373         height: 600px;
374         padding: 12px;
375         overflow-y: auto;
376 }
377
378 .latest-posts {
379         display: table-cell;
380         border: 2px solid #E6E6E6;
381         color: #4C4C4C;
382         width: 850px;
383 }
384
385 .latest-posts .record {
386         font-size: 12pt;
387         margin: 10px 0;
388 }
389
390 .latest-tags {
391         display: table-cell;
392         border: 2px solid #E6E6E6;
393         background-color: #FAE3FC;
394         line-height: 2em;
395         width: 480px;
396 }
397
398 .latest-tags a {
399         margin: 0 0.75em;
400 }
401
402 @media screen and (min-width: 1400px) {
403         .latest { width: 1340px; }
404 }
405
406 @media screen and (max-width: 1100px) {
407         .latest {
408                 display: block;
409                 margin-top: 15px;
410         }
411         .latest-posts {
412                 display: block;
413                 width: auto;
414                 margin-right: 0;
415                 overflow: auto;
416         }
417         .latest-tags {
418                 display: block;
419                 width: auto;
420                 margin-top: 10px;
421         }
422         .latest-tags .latest-scroller {
423                 height: auto;
424         }
425 }
426
427 @media screen and (max-width: 800px) {
428         .latest-posts, .latest-tags {
429                 border: none;
430                 background-color: inherit;
431         }
432         .latest-scroller {
433                 height: auto;
434                 padding: 0;
435         }
436 }
437
438 .author {
439         font-weight: bold;
440 }
441
442 .quote {
443         border-left: 2px solid blue;
444         padding-left: 6px;
445         margin-left: 2px;
446 }
447
448 .blerg-dialog {
449         position: fixed;
450         width: 300px;
451         padding: 8px;
452 }
453
454 .blerg-dialog h2 {
455         font-size: 14pt;
456         margin: 0;
457 }
458
459 .blerg-dialog .onyx-groupbox {
460         margin: 8px 0;
461 }
462
463 .blerg-dialog .onyx-button {
464         display: block;
465         margin: 8px 0 0 0;
466         width: 100%;
467 }
468
469 .blerg-dialog .onyx-input {
470         width: 100%;
471         color: white;
472 }
473
474 .blerg-dialog .onyx-focused > .onyx-input {
475         color: black;
476 }
477
478 .blerg-error {
479         color: red;
480         font-weight: bold;
481 }
482
483 table.help td {
484         padding: 2pt 8pt;
485 }
486
487 footer {
488         clear: both;
489         margin: 15pt;
490         font-size: small;
491         color: #333;
492 }