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