Show Sone logo when not logged in, show avatar when logged in.
[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.last {
131         padding: 1ex 0px;
132         border-bottom: none;
133 }
134
135 #sone .post > .avatar {
136         position: absolute;
137 }
138
139 #sone .post > .inner-part {
140         margin-left: 48px;
141         padding-left: 0.5em;
142         min-height: 48px;
143 }
144
145 #sone .post .author {
146         display: inline;
147         font-weight: bold;
148 }
149
150 #sone .post .text {
151         display: inline;
152         white-space: pre-wrap;
153 }
154
155 #sone .post .status-line {
156         margin-top: 0.5ex;
157         font-size: 85%;
158 }
159
160 #sone .post .time {
161         display: inline;
162         color: #666;
163 }
164
165 #sone .post .delete, #sone .post .likes, #sone .post .like, #sone .post .unlike {
166         display: inline;
167         font: inherit;
168 }
169
170 #sone .post .likes.hidden {
171         display: none;
172 }
173
174 #sone .post .like.hidden, #sone .post .unlike.hidden {
175         display: none;
176 }
177
178 #sone .post .delete button, #sone .post .like button, #sone .post .unlike button {
179         border: 0px;
180         background: none;
181         padding: 0px;
182         color: rgb(28, 131, 191);
183 }
184
185 #sone .post .delete button:hover, #sone .post .like button:hover, #sone .post .unlike button:hover {
186         border: 0px;
187         background: none;
188         padding: 0px;
189         color: rgb(255, 172, 0);
190         cursor: pointer;
191 }
192
193 #sone .post .delete:before, #sone .post .likes:before, #sone .post .like:before, #sone .post .unlike:before {
194         content: ' ‧ ';
195 }
196
197 #sone .post .likes span {
198         font: inherit;
199         color: green;
200 }
201
202 #sone .post .replies {
203         clear: both;
204         padding-top: 0.2ex;
205 }
206
207 #sone .post .reply > .avatar {
208         position: absolute;
209 }
210
211 #sone .post .reply > .inner-part {
212         margin-left: 36px;
213         padding-left: 0.5em;
214         min-height: 36px;
215 }
216
217 #sone .post .reply {
218         clear: both;
219         background-color: #f0f0ff;
220         font-size: 85%;
221         margin: 1ex 0px;
222         padding: 1ex;
223 }
224
225 #sone .post .reply .time {
226         float: none;
227         display: inline;
228         color: #666;
229         font-size: inherit;
230 }
231
232 #sone .post .show-reply-form {
233         display: inline;
234 }
235
236 #sone .post .show-reply-form span {
237         color: rgb(28, 131, 191);
238         cursor: pointer;
239         font: inherit;
240 }
241
242 #sone .post .show-reply-form span:hover {
243         color: rgb(255, 172, 0);
244 }
245
246 #sone .post .show-reply-form:before {
247         content: ' ‧ ';
248 }
249
250 #sone .post .reply .status-line .delete {
251         float: none;
252         display: inline;
253 }
254
255 #sone .post .reply .status-line .delete:before {
256         content: ' · ';
257 }
258
259 #sone .post .create-reply {
260         clear: both;
261         background-color: #f0f0ff;
262         padding: 0.5ex;
263 }
264
265 #sone .post .create-reply input[type=text] {
266         margin-left: 0.5ex;
267         width: 45em;
268 }
269
270 #sone .post .create-reply textarea {
271         margin-left: 0.5ex;
272         width: 45em;
273         height: 4em;
274 }
275
276 #sone .post .create-reply button {
277         float: right;
278 }
279
280 #sone .sone {
281         clear: both;
282         background-color: #f0f0ff;
283         border: 1px solid #ccc;
284         margin-bottom: 0.5ex;
285         padding: 0.5ex;
286 }
287
288 #sone .sone.local {
289         background-color: #f0fff0;
290 }
291
292 #sone .sone .id {
293         display: none;
294 }
295
296 #sone .sone .profile-link {
297         display: block;
298 }
299
300 #sone .sone .short-request-uri {
301         clear: both;
302         float: right;
303 }
304
305 #sone .sone .unknown-marker, #sone .sone .download-marker, #sone .sone .insert-marker, #sone .sone .idle-marker, #sone .sone .modified-marker {
306         display: none;
307 }
308
309 #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 {
310         display: inline;
311         float: right;
312         border: solid 1px #ccc;
313         border-right: none;
314         border-top: none;
315         padding: 0 0.5ex;
316         position: relative;
317         right: -0.5ex;
318         top: -0.5ex
319 }
320
321 #sone .sone.idle.modified .idle-marker {
322         display: none;
323 }
324
325 #sone .sone .last-update {
326         float: right;
327         display: inline;
328 }
329
330 #sone .sone .modified-marker, #sone .sone .unknown-marker {
331         color: red;
332         font-weight: bold;
333 }
334
335 #sone .sone form {
336         display: inline;
337         border: solid 1px #ccc;
338         border-left: none;
339         border-bottom: none;
340         padding: 0 0.5ex;
341         position: relative;
342         left: -0.5ex;
343         bottom: -0.5ex
344 }
345
346 #sone .sone form.hidden {
347         display: none;
348 }
349
350 #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 {
351         display: inline;
352         color: rgb(28, 131, 191);
353         background: none;
354         border: none;
355         font: inherit;
356         padding: 0px;
357 }
358
359 #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 {
360         display: inline;
361         color: rgb(255, 172, 0);
362 }
363
364 #sone .sone .spacer {
365         display: inline;
366 }
367
368 #sone #create-sone {
369
370 }
371
372 #sone #tail {
373         margin-top: 1em;
374         border-top: solid 1px #ccc;
375         padding-top: 1em;
376         text-align: center;
377         font-size: 75%;
378         color: #888;
379 }
380
381 #sone #import-key .import-key {
382         border-top: none;
383 }
384
385 #sone #add-sone textarea, #sone #create-sone textarea, #sone #load-sone textarea, #sone #edit-profile textarea {
386         height: 1.5em;
387 }
388
389 #sone #add-sone button {
390         position: absolute;
391 }
392
393 #sone .navigation {
394         text-align: center;
395 }
396
397 #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 {
398         display: block;
399         height: 1.5em;
400         padding: 0.5ex;
401         width: 3em;
402         border: solid 1px #ccc;
403         background-color: #f0f0ff;
404         margin: 1ex 0;
405 }
406
407 #sone .navigation .first, #sone .navigation .previous {
408         float: left;
409 }
410
411 #sone .navigation .current-page, #sone .navigation .total-pages {
412         position: relative;
413         top: 0.5em;
414         margin-top: 0.5ex;
415         display: inline;
416 }
417
418 #sone .navigation .total-pages:before {
419         content: '/ ';
420 }
421
422 #sone .navigation .next, #sone .navigation .last {
423         float: right;
424 }
425
426 #sone h1 {
427         font-family: inherit;
428         font-size: 200%;
429         font-weight: bold;
430         clear: both;
431 }
432
433 #sone h2 {
434         font-family: inherit;
435         font-size: 150%;
436         font-weight: bold;
437         clear: both;
438 }
439
440 #sone .error label {
441         color: red;
442         font-weight: bold;
443 }
444
445 #sone input.default {
446         color: #888;
447 }
448
449 #sone input[type=text].key {
450         width: 130ex;;
451         font-size: 75%;
452 }
453
454 #sone .confirm {
455         font-weight: bold !important;
456         color: red !important;
457 }