Cut off text after 200 characters.
[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, #sone .post .short-text {
269         display: inline;
270         white-space: pre-wrap;
271         word-wrap: break-word;
272 }
273
274 #sone .post .text.hidden, #sone .post .raw-text.hidden, #sone .post .short-text.hidden {
275         display: none;
276 }
277
278 #sone .post .status-line {
279         margin-top: 0.5ex;
280         font-size: 85%;
281 }
282
283 #sone .separator {
284         font: inherit;
285         color: rgb(28, 131, 191);
286 }
287
288 #sone .show-source, #sone .show-reply-source {
289         display: inline;
290 }
291
292 #sone .permalink {
293         display: inline;
294 }
295
296 #sone .post .bookmarks {
297         display: inline;
298         color: rgb(28, 131, 191);
299 }
300
301 #sone .post .bookmark, #sone .post .unbookmark {
302         display: inline;
303         font: inherit;
304         margin: 0px;
305 }
306
307 #sone .post .time {
308         display: inline;
309         color: #666;
310 }
311
312 #sone .post .delete, #sone .post .likes, #sone .post .like, #sone .post .unlike, #sone .post .trust, #sone .post .distrust, #sone .post .untrust {
313         display: inline;
314         font: inherit;
315         margin: 0px;
316 }
317
318 #sone .post .likes.hidden {
319         display: none;
320 }
321
322 #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 {
323         display: none;
324 }
325
326 #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 {
327         border: 0px;
328         background: none;
329         padding: 0px;
330         color: rgb(28, 131, 191);
331         font: inherit;
332         margin: 0px;
333 }
334
335 #sone .post .delete button.confirm {
336         color: red;
337         font-weight: bold;
338 }
339
340 #sone .post .trust button {
341         color: rgb(0, 128, 0);
342 }
343
344 #sone .post .distrust button {
345         color: rgb(255, 0, 0);
346 }
347
348 #sone .post .untrust button {
349         color: rgb(64, 64, 64);
350 }
351
352 #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 {
353         border: 0px;
354         background: none;
355         padding: 0px;
356         color: rgb(255, 172, 0);
357         cursor: pointer;
358 }
359
360 #sone .post .likes span {
361         font: inherit;
362         color: green;
363 }
364
365 #sone .post .replies {
366         clear: both;
367         padding-top: 0.2ex;
368 }
369
370 #sone .post .replies .click-to-show {
371         background-color: #f0f0ff;
372         font-size: 85%;
373         padding: 0.5em;
374         cursor: pointer;
375 }
376
377 #sone .post .replies .click-to-show.new {
378         background-color: #ffffa0;
379 }
380
381 #sone .post .reply > .avatar {
382         position: absolute;
383 }
384
385 #sone .post .reply > .inner-part {
386         margin-left: 36px;
387         padding-left: 0.5em;
388         min-height: 36px;
389 }
390
391 #sone .post .reply {
392         clear: both;
393         background-color: #f0f0ff;
394         font-size: 85%;
395         margin: 1ex 0px;
396         padding: 1ex;
397 }
398
399 #sone .post .reply.new {
400         background-color: #ffffa0;
401 }
402
403 #sone .post .reply .time {
404         float: none;
405         display: inline;
406         color: #666;
407         font-size: inherit;
408 }
409
410 #sone .post .show-reply-form {
411         display: inline;
412 }
413
414 #sone .post .show-reply-form span {
415         color: rgb(28, 131, 191);
416         cursor: pointer;
417         font: inherit;
418 }
419
420 #sone .post .show-reply-form span:hover {
421         color: rgb(255, 172, 0);
422 }
423
424 #sone .post .create-reply {
425         clear: both;
426         background-color: #f0f0ff;
427         padding: 0.5ex;
428 }
429
430 #sone .post .create-reply input[type=text] {
431         margin-left: 0.5ex;
432         width: 42em;
433 }
434
435 #sone .post .create-reply textarea {
436         margin-left: 0.5ex;
437         width: 42em;
438         height: 4em;
439 }
440
441 #sone .post .create-reply button {
442         float: right;
443 }
444
445 #sone .create-reply .select-sender button, #sone #post-message .select-sender button {
446         display: inline;
447         float: left;
448 }
449
450 #sone .sone {
451         clear: both;
452         background-color: #f0f0ff;
453         border: 1px solid #ccc;
454         margin-bottom: 0.5ex;
455         padding: 0.5ex;
456 }
457
458 #sone .sone.local {
459         background-color: #f0fff0;
460 }
461
462 #sone .sone.new {
463         background-color: #ffffa0;
464 }
465
466 #sone .sone .profile-link {
467         display: block;
468 }
469
470 #sone .sone .short-request-uri {
471         clear: both;
472         float: right;
473 }
474
475 #sone .sone .unknown-marker, #sone .sone .download-marker, #sone .sone .insert-marker, #sone .sone .idle-marker, #sone .sone .modified-marker {
476         display: none;
477 }
478
479 #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 {
480         display: inline;
481         float: right;
482         border: solid 1px #ccc;
483         border-right: none;
484         border-top: none;
485         padding: 0 0.5ex;
486         position: relative;
487         right: -0.5ex;
488         top: -0.5ex
489 }
490
491 #sone .sone.idle.modified .idle-marker {
492         display: none;
493 }
494
495 #sone .sone .last-update {
496         float: right;
497         display: inline;
498 }
499
500 #sone .sone .modified-marker, #sone .sone .unknown-marker {
501         color: red;
502         font-weight: bold;
503 }
504
505 #sone .sone form.follow, #sone .sone form.unfollow, #sone .sone form.lock, #sone .sone form.unlock {
506         display: inline;
507         border: solid 1px #ccc;
508         border-left: none;
509         border-bottom: none;
510         padding: 0 0.5ex;
511         position: relative;
512         left: -0.5ex;
513         bottom: -0.5ex
514 }
515
516 #sone .sone form.follow button, #sone .sone form.unfollow button, #sone .sone form.lock button, #sone .sone form.unlock button {
517         display: inline;
518         color: rgb(28, 131, 191);
519         background: none;
520         border: none;
521         font: inherit;
522         padding: 0px;
523 }
524
525 #sone .sone form.follow button:hover, #sone .sone form.unfollow button:hover, #sone .sone form.lock button:hover, #sone .sone form.unlock button:hover {
526         display: inline;
527         color: rgb(255, 172, 0);
528 }
529
530 #sone .sone.locked form.lock, #sone .sone.unlocked form.unlock {
531         display: none;
532 }
533
534 #sone .sone form.hidden {
535         display: none;
536 }
537
538 #sone .sone .spacer {
539         display: inline;
540 }
541
542 #sone .profile-field, #sone #edit-profile button[type=submit], #sone #delete-profile-field {
543         margin-top: 1em;
544 }
545
546 #sone .profile-field .name {
547         display: inline;
548         font-weight: bold;
549 }
550
551 #sone .profile-field .name.hidden {
552         display: none;
553 }
554
555 #sone .profile-field button.confirm.edit {
556         font-weight: bold;
557         color: #080;
558 }
559
560 #sone .profile-field button.cancel {
561         font-weight: bold;
562         color: red;
563 }
564
565 #sone .profile-field .value {
566         margin-left: 2em;
567 }
568
569 #sone #edit-profile .profile-field .value {
570         margin-left: inherit;
571 }
572
573 #sone .profile-field .edit-field-name, #sone .profile-field .move-up-field, #sone .profile-field .move-down-field, #sone .profile-field .delete-field-name {
574         float: right;
575         margin-top: -1ex;
576         position: relative;
577 }
578
579 #sone #search {
580         text-align: right;
581 }
582
583 #sone #search input[type=text] {
584         width: 35em;
585 }
586
587 #sone #sone-results + #sone #post-results {
588         clear: both;
589         padding-top: 1em;
590 }
591
592 #sone #tail {
593         margin-top: 1em;
594         border-top: solid 1px #ccc;
595         padding-top: 2em;
596         text-align: center;
597         font-size: 75%;
598         color: #888;
599 }
600
601 #sone #tail #version-information {
602         margin-top: 1em;
603 }
604
605 #sone #add-sone textarea, #sone #create-sone textarea, #sone #load-sone textarea, #sone #edit-profile textarea {
606         height: 1.5em;
607 }
608
609 #sone #add-sone button {
610         position: absolute;
611 }
612
613 #sone .navigation {
614         text-align: center;
615 }
616
617 #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 {
618         display: block;
619         height: 1.5em;
620         padding: 0.5ex;
621         width: 3em;
622         border: solid 1px #ccc;
623         background-color: #f0f0ff;
624         margin: 1ex 0;
625 }
626
627 #sone .navigation .first, #sone .navigation .previous {
628         float: left;
629 }
630
631 #sone .navigation .current-page, #sone .navigation .total-pages {
632         position: relative;
633         top: 0.5em;
634         margin-top: 0.5ex;
635         display: inline;
636 }
637
638 #sone .navigation .total-pages:before {
639         content: '/ ';
640 }
641
642 #sone .navigation .next, #sone .navigation .last {
643         float: right;
644 }
645
646 #sone h1 {
647         font-family: inherit;
648         font-size: 200%;
649         font-weight: bold;
650         clear: both;
651 }
652
653 #sone h2 {
654         font-family: inherit;
655         font-size: 150%;
656         font-weight: bold;
657         clear: both;
658 }
659
660 #sone .error label {
661         color: red;
662         font-weight: bold;
663 }
664
665 #sone input.default {
666         color: #888;
667 }
668
669 #sone input[type=text].key {
670         width: 130ex;;
671         font-size: 75%;
672 }
673
674 #sone .confirm {
675         font-weight: bold;
676         color: red;
677 }
678
679 #sone .warning {
680         color: red;
681         font-style: italic;
682 }
683
684 #sone #sort-options {
685         margin-bottom: 1em;
686 }