Rework header for small-screens
[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 20pt 15pt;
156 }
157
158 .blerg-main h2 {
159         margin: 8pt 0;
160 }
161
162 .blerg-post {
163         padding: 20pt 20pt 16pt 20pt;
164 }
165
166 .blerg-post h2 {
167         font-size: 14pt;
168         margin: 0;
169 }
170
171 .blerg-post .buttons {
172         text-align: right;
173 }
174
175 .blerg-post .buttons .onyx-button {
176         margin-left: 4pt;
177         height: 0.4in;
178         width: 1in;
179 }
180
181 .blerg-post .onyx-input-decorator {
182         display: block;
183         border-color: #999;
184         margin: 4pt 0;
185 }
186
187 .blerg-post .onyx-textarea {
188         display: block;
189         width: 100%;
190 }
191
192 .blerg-post .content {
193         font-size: 14pt;
194         font-family: sans-serif;
195         height: 51pt;
196 }
197
198 .login {
199         display: inline-block;
200         width: 200px;
201 }
202
203 .login .onyx-button {
204         width: 100%;
205         margin-top: 4pt;
206 }
207
208 .login .enyo-input {
209         width: 100%;
210 }
211
212 .blerg-user-controls {
213         font-size: 14pt;
214         text-align: right;
215 }
216
217 .blerg-user-controls a {
218         color: inherit;
219         text-decoration: none;
220         margin-left: 4pt;
221 }
222
223 .blerg-user-controls a:hover {
224         text-decoration: underline;
225 }
226
227
228 .record {
229         margin: 8pt 0 24pt 0;
230         font-size: 14pt;
231 }
232
233 .record p {
234         margin-bottom: 0;
235 }
236
237 .record .info {
238         color: #8F8F8F;
239         font-size: small;
240         font-style: italic;
241 }
242
243 .record .info a {
244         color: #8F8F8F;
245 }
246
247 .record h1 {
248         font-size: 18pt;
249         margin: 1em 0;
250 }
251
252 .record h2 {
253         font-size: 16pt;
254         margin: 1em 0;
255 }
256
257 .record h3 {
258         font-size: 14pt;
259         margin: 1em 0;
260 }
261
262 .record h4 {
263         font-size: 14pt;
264         font-weight: normal;
265         margin: 1em 0;
266 }
267
268 .record h5 {
269         font-size: 14pt;
270         font-weight: normal;
271         font-style: italic;
272         margin: 1em 0;
273 }
274
275 .latest h2 {
276         font-size: 16pt;
277 }
278
279 .latest-tags {
280         text-align: center;
281         line-height: 2em;
282 }
283
284 .latest-tags a {
285         margin: 0 0.75em;
286 }
287
288 .latest-posts {
289         height: 184pt;
290         overflow: hidden;
291 }
292
293 .latest-posts .record {
294         font-size: 12pt;
295         margin: 8pt 0;
296 }
297
298 .author {
299         font-weight: bold;
300 }
301
302 .quote {
303         border-left: 2px solid blue;
304         padding-left: 6px;
305         margin-left: 2px;
306 }
307
308 .blerg-dialog {
309         width: 300px;
310         padding: 8px;
311 }
312
313 .blerg-dialog h2 {
314         font-size: 14pt;
315         margin: 0;
316 }
317
318 .blerg-dialog .onyx-groupbox {
319         margin: 8px 0;
320 }
321
322 .blerg-dialog .onyx-button {
323         display: block;
324         margin: 8px 0 0 0;
325         width: 100%;
326 }
327
328 .blerg-dialog .onyx-input {
329         width: 100%;
330         color: white;
331 }
332
333 .blerg-dialog .onyx-focused > .onyx-input {
334         color: black;
335 }
336
337 .blerg-error {
338         color: red;
339         font-weight: bold;
340 }
341
342 table.help td {
343         padding: 2pt 8pt;
344 }