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