Use different notifications for local elements.
[Sone.git] / src / main / resources / static / css / sone.css
1 /* Sone Main CSS File */
2
3 /* first, override some fproxy rules. */
4 #sone div, #sone span, #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 input[type=text].short {
20         width: 25em;
21 }
22
23 textarea {
24         height: 4em;
25 }
26
27 #sone button {
28         background-color: #ddd;
29         border-width: 1px;
30         color: #444;
31         padding: 0.5ex 1.5ex;
32 }
33
34 #sone form {
35         margin: 0px;
36 }
37
38 #sone select {
39         color: #444;
40         padding: 0.5ex 1.5ex;
41 }
42
43 /* now for the real stuff. */
44
45 #sone {
46         width: 55em;
47         margin: auto;
48 }
49
50 #sone .hidden {
51         display: none;
52 }
53
54 #sone #formPassword {
55         display: none;
56 }
57
58 #sone a, #sone a:link, #sone a:visited {
59         color: rgb(28, 131, 191);
60         font-size: inherit;
61         text-decoration: none;
62 }
63
64 #sone a:active, #sone a:hover {
65         color: rgb(255, 172, 0);
66 }
67
68 #sone a.link {
69         cursor: pointer;
70 }
71
72 #sone a.internet {
73         color: rgb(255, 0, 0);
74 }
75
76 #sone a.internet:before {
77         content: '⚠ ';
78 }
79
80 #sone a.freenet:before {
81         content: '» ';
82 }
83
84 #sone a.freenet-trusted {
85         color: rgb(0, 128, 0);
86 }
87
88 #sone a.freenet-trusted:before {
89         content: '★ ';
90 }
91
92 #sone a.in-page-link:before {
93         content: '↓ ';
94 }
95
96 #sone a img {
97         border: none;
98 }
99
100 #sone #main.offline {
101         opacity: 0.5;
102 }
103
104 #sone #offline-marker {
105         display: none;
106         position: fixed;
107         top: 2em;
108         right: 2em;
109         width: 128px;
110         height: 128px;
111         background-image: url("../images/sone-offline.png");
112 }
113
114 #sone #notification-area {
115         margin-top: 1em;
116 }
117
118 #sone #notification-area .notification {
119         padding: 1ex;
120         border: solid 1px #ccc;
121         background-color: #ffffa0;
122         margin-bottom: 1ex;
123         min-height: 3.5ex;
124 }
125
126 #sone #notification-area .notification button {
127         margin-left: 1ex;
128 }
129
130 #sone #notification-area .notification .dismiss {
131         float: right;
132 }
133
134 #sone #notification-area .notification .post-count {
135         margin-left: 1ex;
136 }
137
138 #sone #notification-area .notification .mark-as-read {
139         float: right;
140 }
141
142 #sone #notification-area .notification .hidden {
143         display: none;
144 }
145
146 #sone #notification-area #local-post-notification, #sone #notification-area #local-reply-notification {
147         display: none;
148
149
150 #sone #plugin-warning {
151         border: solid 0.5em red;
152         padding: 0.5em;
153         margin-bottom: 1em;
154 }
155
156 #sone #profile {
157         height: 80px;
158         margin-top: 1em;
159         margin-bottom: 1ex;
160 }
161
162 #sone .profile-link {
163         font-weight: bold;
164         color: rgb(28, 131, 191);
165 }
166
167 #sone #profile.online .picture {
168         position: absolute;
169 }
170
171 #sone #profile.offline .picture {
172         position: absolute;
173 }
174
175 #sone #profile.offline .edit-profile-link, #sone #profile.offline .profile-link {
176         display: none;
177 }
178
179 #sone #profile .edit-profile-link {
180         font-size: 85%;
181 }
182
183 #sone #home-sone {
184         margin-top: 1ex;
185         margin-left: 80px;
186         padding-left: 1ex;
187 }
188
189 #sone #update-status {
190         margin-bottom: 1em;
191 }
192
193 #sone #update-status label, #sone #post-message label {
194         display: none;
195 }
196
197 #sone #update-status input[type=text] {
198         width: 45em;
199 }
200
201 #sone #update-status textarea {
202         width: 45em;
203 }
204
205 #sone #update-status button {
206         float: right;
207 }
208
209 #sone #update-status .select-sender, #sone .create-reply .select-sender, #sone #post-message .select-sender {
210         display: none;
211 }
212
213 #sone #update-status .select-sender button, #sone #post-message .select-sender button {
214         display: inline;
215         float: left;
216 }
217
218 #sone .nice-name {
219         font-weight: bold;
220 }
221
222 #sone #main {
223         padding: 1em;
224         padding-top: 0px;
225 }
226
227 #sone #edit-profile #birth-day, #sone #edit-profile #birth-month, #sone #edit-profile #birth-year {
228         display: inline;
229         width: 15em;
230 }
231
232 #sone #edit-profile #birth-day input, #sone #edit-profile #birth-month input, #sone #edit-profile #birth-year input {
233         width: 4em;
234         text-align: right;
235 }
236
237 #sone .post {
238         padding: 1ex 0px;
239         border-bottom: solid 1px #ccc;
240         clear: both;
241 }
242
243 #sone .post.new {
244         background-color: #ffffa0;
245         padding-left: 1ex;
246 }
247
248 #sone .post.last {
249         padding: 1ex 0px;
250         border-bottom: none;
251 }
252
253 #sone .post > .avatar {
254         position: absolute;
255 }
256
257 #sone .post > .inner-part {
258         margin-left: 48px;
259         padding-left: 0.5em;
260         min-height: 48px;
261 }
262
263 #sone .post .author, #sone .post .recipient {
264         display: inline;
265         font-weight: bold;
266 }
267
268 #sone .post .text, #sone .post .raw-text {
269         display: inline;
270         white-space: pre-wrap;
271 }
272
273 #sone .post .text.hidden, #sone .post .raw-text.hidden {
274         display: none;
275 }
276
277 #sone .post .status-line {
278         margin-top: 0.5ex;
279         font-size: 85%;
280 }
281
282 #sone .separator {
283         font: inherit;
284         color: rgb(28, 131, 191);
285 }
286
287 #sone .show-source, #sone .show-reply-source {
288         display: inline;
289 }
290
291 #sone .permalink {
292         display: inline;
293 }
294
295 #sone .post .bookmarks {
296         display: inline;
297         color: rgb(28, 131, 191);
298 }
299
300 #sone .post .bookmark, #sone .post .unbookmark {
301         display: inline;
302         font: inherit;
303         margin: 0px;
304 }
305
306 #sone .post .time {
307         display: inline;
308         color: #666;
309 }
310
311 #sone .post .delete, #sone .post .likes, #sone .post .like, #sone .post .unlike, #sone .post .trust, #sone .post .distrust, #sone .post .untrust {
312         display: inline;
313         font: inherit;
314         margin: 0px;
315 }
316
317 #sone .post .likes.hidden {
318         display: none;
319 }
320
321 #sone .post .like.hidden, #sone .post .unlike.hidden, #sone .post .trust.hidden, #sone .post .distrust.hidden, #sone .post .untrust.hidden, #sone .post .bookmark.hidden, #sone .post .unbookmark.hidden {
322         display: none;
323 }
324
325 #sone .post .delete button, #sone .post .like button, #sone .post .unlike button, #sone .post .trust button, #sone .post .distrust button, #sone .post .untrust button, #sone .post .bookmark button, #sone .post .unbookmark button {
326         border: 0px;
327         background: none;
328         padding: 0px;
329         color: rgb(28, 131, 191);
330         font: inherit;
331         margin: 0px;
332 }
333
334 #sone .post .delete button.confirm {
335         color: red;
336         font-weight: bold;
337 }
338
339 #sone .post .trust button {
340         color: rgb(0, 128, 0);
341 }
342
343 #sone .post .distrust button {
344         color: rgb(255, 0, 0);
345 }
346
347 #sone .post .untrust button {
348         color: rgb(64, 64, 64);
349 }
350
351 #sone .post .delete button:hover, #sone .post .like button:hover, #sone .post .unlike button:hover, #sone .post .trust button:hover, #sone .post .distrust button:hover, #sone .post .untrust button:hover, #sone .post .bookmark button:hover, #sone .post .unbookmark button:hover {
352         border: 0px;
353         background: none;
354         padding: 0px;
355         color: rgb(255, 172, 0);
356         cursor: pointer;
357 }
358
359 #sone .post .likes span {
360         font: inherit;
361         color: green;
362 }
363
364 #sone .post .replies {
365         clear: both;
366         padding-top: 0.2ex;
367 }
368
369 #sone .post .replies .click-to-show {
370         background-color: #f0f0ff;
371         font-size: 85%;
372         padding: 0.5em;
373         cursor: pointer;
374 }
375
376 #sone .post .replies .click-to-show.new {
377         background-color: #ffffa0;
378 }
379
380 #sone .post .reply > .avatar {
381         position: absolute;
382 }
383
384 #sone .post .reply > .inner-part {
385         margin-left: 36px;
386         padding-left: 0.5em;
387         min-height: 36px;
388 }
389
390 #sone .post .reply {
391         clear: both;
392         background-color: #f0f0ff;
393         font-size: 85%;
394         margin: 1ex 0px;
395         padding: 1ex;
396 }
397
398 #sone .post .reply.new {
399         background-color: #ffffa0;
400 }
401
402 #sone .post .reply .time {
403         float: none;
404         display: inline;
405         color: #666;
406         font-size: inherit;
407 }
408
409 #sone .post .show-reply-form {
410         display: inline;
411 }
412
413 #sone .post .show-reply-form span {
414         color: rgb(28, 131, 191);
415         cursor: pointer;
416         font: inherit;
417 }
418
419 #sone .post .show-reply-form span:hover {
420         color: rgb(255, 172, 0);
421 }
422
423 #sone .post .create-reply {
424         clear: both;
425         background-color: #f0f0ff;
426         padding: 0.5ex;
427 }
428
429 #sone .post .create-reply input[type=text] {
430         margin-left: 0.5ex;
431         width: 42em;
432 }
433
434 #sone .post .create-reply textarea {
435         margin-left: 0.5ex;
436         width: 42em;
437         height: 4em;
438 }
439
440 #sone .post .create-reply button {
441         float: right;
442 }
443
444 #sone .create-reply .select-sender button, #sone #post-message .select-sender button {
445         display: inline;
446         float: left;
447 }
448
449 #sone .sone {
450         clear: both;
451         background-color: #f0f0ff;
452         border: 1px solid #ccc;
453         margin-bottom: 0.5ex;
454         padding: 0.5ex;
455 }
456
457 #sone .sone.local {
458         background-color: #f0fff0;
459 }
460
461 #sone .sone.new {
462         background-color: #ffffa0;
463 }
464
465 #sone .sone .profile-link {
466         display: block;
467 }
468
469 #sone .sone .short-request-uri {
470         clear: both;
471         float: right;
472 }
473
474 #sone .sone .unknown-marker, #sone .sone .download-marker, #sone .sone .insert-marker, #sone .sone .idle-marker, #sone .sone .modified-marker {
475         display: none;
476 }
477
478 #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 {
479         display: inline;
480         float: right;
481         border: solid 1px #ccc;
482         border-right: none;
483         border-top: none;
484         padding: 0 0.5ex;
485         position: relative;
486         right: -0.5ex;
487         top: -0.5ex
488 }
489
490 #sone .sone.idle.modified .idle-marker {
491         display: none;
492 }
493
494 #sone .sone .last-update {
495         float: right;
496         display: inline;
497 }
498
499 #sone .sone .modified-marker, #sone .sone .unknown-marker {
500         color: red;
501         font-weight: bold;
502 }
503
504 #sone .sone form.follow, #sone .sone form.unfollow, #sone .sone form.lock, #sone .sone form.unlock {
505         display: inline;
506         border: solid 1px #ccc;
507         border-left: none;
508         border-bottom: none;
509         padding: 0 0.5ex;
510         position: relative;
511         left: -0.5ex;
512         bottom: -0.5ex
513 }
514
515 #sone .sone form.follow button, #sone .sone form.unfollow button, #sone .sone form.lock button, #sone .sone form.unlock button {
516         display: inline;
517         color: rgb(28, 131, 191);
518         background: none;
519         border: none;
520         font: inherit;
521         padding: 0px;
522 }
523
524 #sone .sone form.follow button:hover, #sone .sone form.unfollow button:hover, #sone .sone form.lock button:hover, #sone .sone form.unlock button:hover {
525         display: inline;
526         color: rgb(255, 172, 0);
527 }
528
529 #sone .sone.locked form.lock, #sone .sone.unlocked form.unlock {
530         display: none;
531 }
532
533 #sone .sone form.hidden {
534         display: none;
535 }
536
537 #sone .sone .spacer {
538         display: inline;
539 }
540
541 #sone .profile-field, #sone #edit-profile button[type=submit], #sone #delete-profile-field {
542         margin-top: 1em;
543 }
544
545 #sone .profile-field .name {
546         display: inline;
547         font-weight: bold;
548 }
549
550 #sone .profile-field .name.hidden {
551         display: none;
552 }
553
554 #sone .profile-field button.confirm.edit {
555         font-weight: bold;
556         color: #080;
557 }
558
559 #sone .profile-field button.cancel {
560         font-weight: bold;
561         color: red;
562 }
563
564 #sone .profile-field .value {
565         margin-left: 2em;
566 }
567
568 #sone #edit-profile .profile-field .value {
569         margin-left: inherit;
570 }
571
572 #sone .profile-field .edit-field-name, #sone .profile-field .move-up-field, #sone .profile-field .move-down-field, #sone .profile-field .delete-field-name {
573         float: right;
574         margin-top: -1ex;
575         position: relative;
576 }
577
578 #sone #search {
579         text-align: right;
580 }
581
582 #sone #search input[type=text] {
583         width: 35em;
584 }
585
586 #sone #sone-results + #sone #post-results {
587         clear: both;
588         padding-top: 1em;
589 }
590
591 #sone #tail {
592         margin-top: 1em;
593         border-top: solid 1px #ccc;
594         padding-top: 2em;
595         text-align: center;
596         font-size: 75%;
597         color: #888;
598 }
599
600 #sone #tail #version-information {
601         margin-top: 1em;
602 }
603
604 #sone #add-sone textarea, #sone #create-sone textarea, #sone #load-sone textarea, #sone #edit-profile textarea {
605         height: 1.5em;
606 }
607
608 #sone #add-sone button {
609         position: absolute;
610 }
611
612 #sone .navigation {
613         text-align: center;
614 }
615
616 #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 {
617         display: block;
618         height: 1.5em;
619         padding: 0.5ex;
620         width: 3em;
621         border: solid 1px #ccc;
622         background-color: #f0f0ff;
623         margin: 1ex 0;
624 }
625
626 #sone .navigation .first, #sone .navigation .previous {
627         float: left;
628 }
629
630 #sone .navigation .current-page, #sone .navigation .total-pages {
631         position: relative;
632         top: 0.5em;
633         margin-top: 0.5ex;
634         display: inline;
635 }
636
637 #sone .navigation .total-pages:before {
638         content: '/ ';
639 }
640
641 #sone .navigation .next, #sone .navigation .last {
642         float: right;
643 }
644
645 #sone h1 {
646         font-family: inherit;
647         font-size: 200%;
648         font-weight: bold;
649         clear: both;
650 }
651
652 #sone h2 {
653         font-family: inherit;
654         font-size: 150%;
655         font-weight: bold;
656         clear: both;
657 }
658
659 #sone .error label {
660         color: red;
661         font-weight: bold;
662 }
663
664 #sone input.default {
665         color: #888;
666 }
667
668 #sone input[type=text].key {
669         width: 130ex;;
670         font-size: 75%;
671 }
672
673 #sone .confirm {
674         font-weight: bold;
675         color: red;
676 }
677
678 #sone .warning {
679         color: red;
680         font-style: italic;
681 }