Implement “like” button.
[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 #profile {
53         height: 80px;
54         margin-bottom: 1ex;
55 }
56
57 #sone .profile-link {
58         font-weight: bold;
59         color: rgb(28, 131, 191);
60 }
61
62 #sone #profile.online .picture {
63         position: absolute;
64         background-image: url("../images/sone.png");
65         width: 80px;
66         height: 80px;
67 }
68
69 #sone #profile.offline .picture {
70         position: absolute;
71         background-image: url("../images/sone-offline.png");
72         width: 80px;
73         height: 80px;
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 .post {
115         padding: 1ex 0px;
116         border-bottom: solid 1px #ccc;
117         clear: both;
118 }
119
120 #sone .post.last {
121         padding: 1ex 0px;
122         border-bottom: none;
123 }
124
125 #sone .post .author {
126         display: inline;
127         font-weight: bold;
128 }
129
130 #sone .post .text {
131         display: inline;
132         white-space: pre-wrap;
133 }
134
135 #sone .post .status-line {
136         clear: both;
137         margin-top: 0.5ex;
138         font-size: 85%;
139 }
140
141 #sone .post .time {
142         display: inline;
143         color: #666;
144 }
145
146 #sone .post .delete, #sone .post .likes, #sone .post .like, #sone .post .unlike {
147         display: inline;
148         font: inherit;
149 }
150
151 #sone .post .like.hidden, #sone .post .unlike.hidden {
152         display: none;
153 }
154
155 #sone .post .delete button, #sone .post .like button, #sone .post .unlike button {
156         border: 0px;
157         background: none;
158         padding: 0px;
159         color: rgb(28, 131, 191);
160 }
161
162 #sone .post .delete button:hover, #sone .post .like button:hover, #sone .post .unlike button:hover {
163         border: 0px;
164         background: none;
165         padding: 0px;
166         color: rgb(255, 172, 0);
167         cursor: pointer;
168 }
169
170 #sone .post .delete:before, #sone .post .likes:before, #sone .post .like:before, #sone .post .unlike:before {
171         content: ' ‧ ';
172 }
173
174 #sone .post .likes span {
175         font: inherit;
176         color: green;
177 }
178
179 #sone .post .replies {
180         clear: both;
181         padding-top: 0.2ex;
182 }
183
184 #sone .post .reply {
185         clear: both;
186         background-color: #f0f0ff;
187         font-size: 85%;
188         margin: 1ex 0px;
189         padding: 1ex;
190 }
191
192 #sone .post .reply .time {
193         float: none;
194         display: inline;
195         color: #666;
196         font-size: inherit;
197 }
198
199 #sone .post .show-reply-form {
200         display: inline;
201 }
202
203 #sone .post .show-reply-form span {
204         color: rgb(28, 131, 191);
205         cursor: pointer;
206         font: inherit;
207 }
208
209 #sone .post .show-reply-form span:hover {
210         color: rgb(255, 172, 0);
211 }
212
213 #sone .post .show-reply-form:before {
214         content: ' ‧ ';
215 }
216
217 #sone .post .reply .status-line .delete {
218         float: none;
219         display: inline;
220 }
221
222 #sone .post .reply .status-line .delete:before {
223         content: ' · ';
224 }
225
226 #sone .post .create-reply {
227         clear: both;
228         background-color: #f0f0ff;
229         padding: 0.5ex;
230 }
231
232 #sone .post .create-reply input[type=text] {
233         margin-left: 0.5ex;
234         width: 50em;
235 }
236
237 #sone .post .create-reply textarea {
238         margin-left: 0.5ex;
239         width: 50em;
240         height: 4em;
241 }
242
243 #sone .post .create-reply button {
244         float: right;
245 }
246
247 #sone .sone {
248         clear: both;
249         background-color: #f0f0ff;
250         border: 1px solid #ccc;
251         margin-bottom: 0.5ex;
252         padding: 0.5ex;
253 }
254
255 #sone .sone .id {
256         display: none;
257 }
258
259 #sone .sone .profile-link {
260         display: block;
261 }
262
263 #sone .sone .short-request-uri {
264         clear: both;
265         float: right;
266 }
267
268 #sone .sone .unknown-marker, #sone .sone .download-marker, #sone .sone .insert-marker, #sone .sone .idle-marker, #sone .sone .modified-marker {
269         display: none;
270 }
271
272 #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 {
273         display: inline;
274         float: right;
275         border: solid 1px #ccc;
276         border-right: none;
277         border-top: none;
278         padding: 0 0.5ex;
279         position: relative;
280         right: -0.5ex;
281         top: -0.5ex
282 }
283
284 #sone .sone .last-update {
285         float: right;
286         display: inline;
287 }
288
289 #sone .sone .modified-marker, #sone .sone .unknown-marker {
290         color: red;
291         font-weight: bold;
292 }
293
294 #sone .sone form {
295         display: inline;
296         border: solid 1px #ccc;
297         border-left: none;
298         border-bottom: none;
299         padding: 0 0.5ex;
300         position: relative;
301         left: -0.5ex;
302         bottom: -0.5ex
303 }
304
305 #sone .sone form.hidden {
306         display: none;
307 }
308
309 #sone .sone form.block button, #sone .sone form.unblock button, #sone .sone form.follow button, #sone .sone form.unfollow button {
310         display: inline;
311         color: rgb(28, 131, 191);
312         background: none;
313         border: none;
314         font: inherit;
315         padding: 0px;
316 }
317
318 #sone .sone form.block button:hover, #sone .sone form.unblock button:hover, #sone .sone form.follow button:hover, #sone .sone form.unfollow button:hover {
319         display: inline;
320         color: rgb(255, 172, 0);
321 }
322
323 #sone .sone .spacer {
324         display: inline;
325 }
326
327 #sone #create-sone {
328
329 }
330
331 #sone #tail .import-key, #sone #import-key .import-key {
332         margin-top: 1em;
333         border-top: solid 1px #ccc;
334         padding-top: 1em;
335         text-align: center;
336         font-size: 75%;
337         color: #888;
338 }
339
340 #sone #import-key .import-key {
341         border-top: none;
342 }
343
344 #sone #add-sone textarea, #sone #create-sone textarea, #sone #load-sone textarea, #sone #edit-profile textarea {
345         height: 1.5em;
346 }
347
348 #sone #add-sone button {
349         position: absolute;
350 }
351
352 #sone .navigation {
353         text-align: center;
354 }
355
356 #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 {
357         display: block;
358         height: 1.5em;
359         padding: 0.5ex;
360         width: 3em;
361         border: solid 1px #ccc;
362         background-color: #f0f0ff;
363         margin: 1ex 0;
364 }
365
366 #sone .navigation .first, #sone .navigation .previous {
367         float: left;
368 }
369
370 #sone .navigation .current-page, #sone .navigation .total-pages {
371         position: relative;
372         top: 0.5em;
373         margin-top: 0.5ex;
374         display: inline;
375 }
376
377 #sone .navigation .total-pages:before {
378         content: '/ ';
379 }
380
381 #sone .navigation .next, #sone .navigation .last {
382         float: right;
383 }
384
385 #sone h1 {
386         font-family: inherit;
387         font-size: 200%;
388         font-weight: bold;
389         clear: both;
390         margin: 0;
391         margin-top: 1em;
392 }
393
394 #sone .error label {
395         color: red;
396         font-weight: bold;
397 }
398
399 #sone input.default {
400         color: #888;
401 }
402
403 #sone input[type=text].key {
404         width: 130ex;;
405         font-size: 75%;
406 }
407
408 #sone .confirm {
409         font-weight: bold !important;
410         color: red !important;
411 }