Improve margins on top of page and notifications.
[Sone.git] / src / main / resources / static / css / sone.css
1 /* Sone Main CSS File */
2
3 /* first, override some fproxy rules. */
4 #sone .post .reply div,#sone .post .time,#sone .post .delete,#sone .post .show-reply-form, input[type=text], textarea {
5         font: inherit;
6 }
7
8 input[type=text], textarea {
9         font-size: 90%;
10         margin: 0.5ex;
11         margin-left: 0;
12         border: solid 1px #ccc;
13         padding: 0.5ex;
14         height: 1.5em;
15         width: 50em;
16         outline: none;
17 }
18
19 textarea {
20         height: 4em;
21 }
22
23 #sone form {
24         margin: 0px;
25 }
26
27 /* now for the real stuff. */
28
29 #sone {
30         width: 55em;
31         margin: auto;
32 }
33
34 #sone .hidden {
35         display: none;
36 }
37
38 #sone #formPassword {
39         display: none;
40 }
41
42 #sone a, #sone a:link, #sone a:visited {
43         color: rgb(28, 131, 191);
44         font-size: inherit;
45         text-decoration: none;
46 }
47
48 #sone a:active, #sone a:hover {
49         color: rgb(255, 172, 0);
50 }
51
52 #sone #notification-area {
53         margin-top: 1em;
54 }
55
56 #sone #notification-area .notification {
57         padding: 1ex;
58         border: solid 1px #ccc;
59         background-color: #ffffa0;
60         margin-bottom: 1ex;
61         min-height: 3.5ex;
62 }
63
64 #sone #notification-area .notification .dismiss {
65         float: right;
66 }
67
68 #sone #notification-area .notification > div {
69         display: inline;
70 }
71
72 #sone #notification-area .notification .post-count {
73         margin-left: 1ex;
74 }
75
76 #sone #plugin-warning {
77         border: solid 0.5em red;
78         padding: 0.5em;
79         margin-bottom: 1em;
80 }
81
82 #sone #profile {
83         height: 80px;
84         margin-top: 1em;
85         margin-bottom: 1ex;
86 }
87
88 #sone .profile-link {
89         font-weight: bold;
90         color: rgb(28, 131, 191);
91 }
92
93 #sone #profile.online .picture {
94         position: absolute;
95 }
96
97 #sone #profile.offline .picture {
98         position: absolute;
99 }
100
101 #sone #profile.offline .edit-profile-link, #sone #profile.offline .profile-link {
102         display: none;
103 }
104
105 #sone #profile .edit-profile-link {
106         font-size: 85%;
107 }
108
109 #sone #home-sone {
110         margin-top: 1ex;
111         margin-left: 80px;
112         padding-left: 1ex;
113 }
114
115 #sone #update-status label {
116         display: none;
117 }
118
119 #sone #update-status input[type=text] {
120         width: 45em;
121 }
122
123 #sone #update-status textarea {
124         width: 45em;
125 }
126
127 #sone #update-status button {
128         float: right;
129 }
130
131 #sone .nice-name {
132         font-weight: bold;
133 }
134
135 #sone #main {
136         padding: 1em;
137         padding-top: 0px;
138 }
139
140 #sone #edit-profile #birth-day, #sone #edit-profile #birth-month, #sone #edit-profile #birth-year {
141         display: inline;
142         width: 15em;
143 }
144
145 #sone #edit-profile #birth-day input, #sone #edit-profile #birth-month input, #sone #edit-profile #birth-year input {
146         width: 4em;
147         text-align: right;
148 }
149
150 #sone .post {
151         padding: 1ex 0px;
152         border-bottom: solid 1px #ccc;
153         clear: both;
154 }
155
156 #sone .post.new {
157         background-color: #ffffa0;
158         padding-left: 1ex;
159 }
160
161 #sone .post.last {
162         padding: 1ex 0px;
163         border-bottom: none;
164 }
165
166 #sone .post > .avatar {
167         position: absolute;
168 }
169
170 #sone .post > .inner-part {
171         margin-left: 48px;
172         padding-left: 0.5em;
173         min-height: 48px;
174 }
175
176 #sone .post .author {
177         display: inline;
178         font-weight: bold;
179 }
180
181 #sone .post .text {
182         display: inline;
183         white-space: pre-wrap;
184 }
185
186 #sone .post .status-line {
187         margin-top: 0.5ex;
188         font-size: 85%;
189 }
190
191 #sone .post .time {
192         display: inline;
193         color: #666;
194 }
195
196 #sone .post .delete, #sone .post .likes, #sone .post .like, #sone .post .unlike {
197         display: inline;
198         font: inherit;
199 }
200
201 #sone .post .likes.hidden {
202         display: none;
203 }
204
205 #sone .post .like.hidden, #sone .post .unlike.hidden {
206         display: none;
207 }
208
209 #sone .post .delete button, #sone .post .like button, #sone .post .unlike button {
210         border: 0px;
211         background: none;
212         padding: 0px;
213         color: rgb(28, 131, 191);
214         font: inherit;
215 }
216
217 #sone .post .delete button:hover, #sone .post .like button:hover, #sone .post .unlike button:hover {
218         border: 0px;
219         background: none;
220         padding: 0px;
221         color: rgb(255, 172, 0);
222         cursor: pointer;
223 }
224
225 #sone .post .delete:before, #sone .post .likes:before, #sone .post .like:before, #sone .post .unlike:before {
226         content: ' ‧ ';
227 }
228
229 #sone .post .likes span {
230         font: inherit;
231         color: green;
232 }
233
234 #sone .post .replies {
235         clear: both;
236         padding-top: 0.2ex;
237 }
238
239 #sone .post .replies .click-to-show {
240         background-color: #f0f0ff;
241         font-size: 85%;
242         padding: 0.5em;
243         cursor: pointer;
244 }
245
246 #sone .post .replies .click-to-show.new {
247         background-color: #ffffa0;
248 }
249
250 #sone .post .reply > .avatar {
251         position: absolute;
252 }
253
254 #sone .post .reply > .inner-part {
255         margin-left: 36px;
256         padding-left: 0.5em;
257         min-height: 36px;
258 }
259
260 #sone .post .reply {
261         clear: both;
262         background-color: #f0f0ff;
263         font-size: 85%;
264         margin: 1ex 0px;
265         padding: 1ex;
266 }
267
268 #sone .post .reply.new {
269         background-color: #ffffa0;
270 }
271
272 #sone .post .reply .time {
273         float: none;
274         display: inline;
275         color: #666;
276         font-size: inherit;
277 }
278
279 #sone .post .show-reply-form {
280         display: inline;
281 }
282
283 #sone .post .show-reply-form span {
284         color: rgb(28, 131, 191);
285         cursor: pointer;
286         font: inherit;
287 }
288
289 #sone .post .show-reply-form span:hover {
290         color: rgb(255, 172, 0);
291 }
292
293 #sone .post .show-reply-form:before {
294         content: ' ‧ ';
295 }
296
297 #sone .post .create-reply {
298         clear: both;
299         background-color: #f0f0ff;
300         padding: 0.5ex;
301 }
302
303 #sone .post .create-reply input[type=text] {
304         margin-left: 0.5ex;
305         width: 44em;
306 }
307
308 #sone .post .create-reply textarea {
309         margin-left: 0.5ex;
310         width: 44em;
311         height: 4em;
312 }
313
314 #sone .post .create-reply button {
315         float: right;
316 }
317
318 #sone .sone {
319         clear: both;
320         background-color: #f0f0ff;
321         border: 1px solid #ccc;
322         margin-bottom: 0.5ex;
323         padding: 0.5ex;
324 }
325
326 #sone .sone.local {
327         background-color: #f0fff0;
328 }
329
330 #sone .sone.new {
331         background-color: #ffffa0;
332 }
333
334 #sone .sone .id {
335         display: none;
336 }
337
338 #sone .sone .profile-link {
339         display: block;
340 }
341
342 #sone .sone .short-request-uri {
343         clear: both;
344         float: right;
345 }
346
347 #sone .sone .unknown-marker, #sone .sone .download-marker, #sone .sone .insert-marker, #sone .sone .idle-marker, #sone .sone .modified-marker {
348         display: none;
349 }
350
351 #sone .sone.unknown .unknown-marker, #sone .sone.idle .idle-marker, #sone .sone.downloading .download-marker, #sone .sone.inserting .insert-marker, #sone .sone.modified .modified-marker {
352         display: inline;
353         float: right;
354         border: solid 1px #ccc;
355         border-right: none;
356         border-top: none;
357         padding: 0 0.5ex;
358         position: relative;
359         right: -0.5ex;
360         top: -0.5ex
361 }
362
363 #sone .sone.idle.modified .idle-marker {
364         display: none;
365 }
366
367 #sone .sone .last-update {
368         float: right;
369         display: inline;
370 }
371
372 #sone .sone .modified-marker, #sone .sone .unknown-marker {
373         color: red;
374         font-weight: bold;
375 }
376
377 #sone .sone form.follow, #sone .sone form.unfollow, #sone .sone form.lock, #sone .sone form.unlock {
378         display: inline;
379         border: solid 1px #ccc;
380         border-left: none;
381         border-bottom: none;
382         padding: 0 0.5ex;
383         position: relative;
384         left: -0.5ex;
385         bottom: -0.5ex
386 }
387
388 #sone .sone form.follow button, #sone .sone form.unfollow button, #sone .sone form.lock button, #sone .sone form.unlock button {
389         display: inline;
390         color: rgb(28, 131, 191);
391         background: none;
392         border: none;
393         font: inherit;
394         padding: 0px;
395 }
396
397 #sone .sone form.follow button:hover, #sone .sone form.unfollow button:hover, #sone .sone form.lock button:hover, #sone .sone form.unlock button:hover {
398         display: inline;
399         color: rgb(255, 172, 0);
400 }
401
402 #sone .sone.locked form.lock, #sone .sone.unlocked form.unlock {
403         display: none;
404 }
405
406 #sone .sone form.hidden {
407         display: none;
408 }
409
410 #sone .sone .spacer {
411         display: inline;
412 }
413
414 #sone #create-sone {
415
416 }
417
418 #sone #tail {
419         margin-top: 1em;
420         border-top: solid 1px #ccc;
421         padding-top: 2em;
422         text-align: center;
423         font-size: 75%;
424         color: #888;
425 }
426
427 #sone #add-sone textarea, #sone #create-sone textarea, #sone #load-sone textarea, #sone #edit-profile textarea {
428         height: 1.5em;
429 }
430
431 #sone #add-sone button {
432         position: absolute;
433 }
434
435 #sone .navigation {
436         text-align: center;
437 }
438
439 #sone .navigation .first a, #sone .navigation .previous a, #sone .navigation .next a, #sone .navigation .last a, #sone .navigation .first span, #sone .navigation .previous span, #sone .navigation .next span, #sone .navigation .last span {
440         display: block;
441         height: 1.5em;
442         padding: 0.5ex;
443         width: 3em;
444         border: solid 1px #ccc;
445         background-color: #f0f0ff;
446         margin: 1ex 0;
447 }
448
449 #sone .navigation .first, #sone .navigation .previous {
450         float: left;
451 }
452
453 #sone .navigation .current-page, #sone .navigation .total-pages {
454         position: relative;
455         top: 0.5em;
456         margin-top: 0.5ex;
457         display: inline;
458 }
459
460 #sone .navigation .total-pages:before {
461         content: '/ ';
462 }
463
464 #sone .navigation .next, #sone .navigation .last {
465         float: right;
466 }
467
468 #sone h1 {
469         font-family: inherit;
470         font-size: 200%;
471         font-weight: bold;
472         clear: both;
473 }
474
475 #sone h2 {
476         font-family: inherit;
477         font-size: 150%;
478         font-weight: bold;
479         clear: both;
480 }
481
482 #sone .error label {
483         color: red;
484         font-weight: bold;
485 }
486
487 #sone input.default {
488         color: #888;
489 }
490
491 #sone input[type=text].key {
492         width: 130ex;;
493         font-size: 75%;
494 }
495
496 #sone .confirm {
497         font-weight: bold !important;
498         color: red !important;
499 }