Show multiline-capable input boxes on focus, single-line inputs on blur.
[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 }
11
12 #sone form {
13         margin: 0px;
14 }
15
16 /* now for the real stuff. */
17
18 #sone {
19         width: 55em;
20         margin: auto;
21 }
22
23 #sone .hidden {
24         display: none;
25 }
26
27 #sone a, #sone a:link, #sone a:visited {
28         color: rgb(28, 131, 191);
29         font-size: inherit;
30         text-decoration: none;
31 }
32
33 #sone a:active, #sone a:hover {
34         color: rgb(255, 172, 0);
35 }
36
37 #sone #profile {
38         height: 80px;
39         margin-bottom: 1ex;
40 }
41
42 #sone .profile-link {
43         font-weight: bold;
44         color: rgb(28, 131, 191);
45 }
46
47 #sone #profile.online .picture {
48         position: absolute;
49         background-image: url("../images/sone.png");
50         width: 80px;
51         height: 80px;
52 }
53
54 #sone #profile.offline .picture {
55         position: absolute;
56         background-image: url("../images/sone-offline.png");
57         width: 80px;
58         height: 80px;
59 }
60
61 #sone #profile.offline .edit-profile-link, #sone #profile.offline .profile-link {
62         display: none;
63 }
64
65 #sone #profile .edit-profile-link {
66         font-size: 85%;
67 }
68
69 #sone #home-sone {
70         margin-top: 1ex;
71         margin-left: 80px;
72         padding-left: 1ex;
73 }
74
75 #sone #update-status label {
76         display: none;
77 }
78
79 #sone #update-status input[type=text] {
80         width: 45em;
81
82
83 #sone #update-status textarea {
84         border: solid 1px #ccc;
85         width: 45em;
86         height: 4em;
87 }
88
89 #sone #update-status button {
90         float: right;
91 }
92
93 #sone .nice-name {
94         font-weight: bold;
95 }
96
97 #sone #main {
98         padding: 1em;
99 }
100
101 #sone .post {
102         padding: 1ex 0px;
103         border-bottom: solid 1px #ccc;
104 }
105
106 #sone .post:last-child {
107         padding: 1ex 0px;
108         border-bottom: none;
109 }
110
111 #sone .post .author {
112         display: inline;
113         font-weight: bold;
114 }
115
116 #sone .post .text {
117         display: inline;
118         white-space: pre-wrap;
119 }
120
121 #sone .post .status-line {
122         clear: both;
123         margin-top: 0.5ex;
124         font-size: 85%;
125 }
126
127 #sone .post .time {
128         display: inline;
129         color: #666;
130 }
131
132 #sone .post .delete {
133         display: inline;
134 }
135
136 #sone .post .delete button {
137         font: inherit;
138         border: 0px;
139         background: none;
140         padding: 0px;
141         color: rgb(28, 131, 191);
142 }
143
144 #sone .post .delete button:hover {
145         font: inherit;
146         border: 0px;
147         background: none;
148         padding: 0px;
149         color: rgb(255, 172, 0);
150         cursor: pointer;
151 }
152
153 #sone .post .delete:before {
154         content: ' ‧ ';
155 }
156
157 #sone .post .replies {
158         clear: both;
159         padding-top: 0.2ex;
160 }
161
162 #sone .post .reply {
163         clear: both;
164         background-color: #f0f0ff;
165         font-size: 85%;
166         margin: 1ex 0px;
167         padding: 1ex;
168 }
169
170 #sone .post .reply .time {
171         float: none;
172         display: inline;
173         color: #666;
174         font-size: inherit;
175 }
176
177 #sone .post .show-reply-form {
178         display: inline;
179 }
180
181 #sone .post .show-reply-form span {
182         color: rgb(28, 131, 191);
183         cursor: pointer;
184         font: inherit;
185 }
186
187 #sone .post .show-reply-form span:hover {
188         color: rgb(255, 172, 0);
189 }
190
191 #sone .post .show-reply-form:before {
192         content: ' ‧ ';
193 }
194
195 #sone .post .reply .status-line .delete {
196         float: none;
197         display: inline;
198 }
199
200 #sone .post .reply .status-line .delete:before {
201         content: ' · ';
202 }
203
204 #sone .post .create-reply {
205         clear: both;
206         background-color: #f0f0ff;
207         padding: 0.5ex;
208 }
209
210 #sone .post .create-reply input[type=text] {
211         width: 50em;
212 }
213
214 #sone .post .create-reply textarea {
215         width: 50em;
216         height: 4em;
217 }
218
219 #sone .post .create-reply button {
220         float: right;
221 }
222
223 #sone .sone {
224         clear: both;
225         background-color: #f0f0ff;
226         border: 1px solid #ccc;
227         margin-bottom: 0.5ex;
228         padding: 0.5ex;
229 }
230
231 #sone .sone .profile-link {
232         display: block;
233 }
234
235 #sone .sone .short-request-uri {
236         clear: both;
237         float: right;
238 }
239
240 #sone .sone .unknown-marker, #sone .sone .download-marker, #sone .sone .insert-marker, #sone .sone .idle-marker, #sone .sone .modified-marker {
241         display: none;
242 }
243
244 #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 {
245         display: inline;
246         float: right;
247         border: solid 1px #ccc;
248         border-right: none;
249         border-top: none;
250         padding: 0 0.5ex;
251         position: relative;
252         right: -0.5ex;
253         top: -0.5ex
254 }
255
256 #sone .sone .last-update {
257         float: right;
258         display: inline;
259 }
260
261 #sone .sone .modified-marker, #sone .sone .unknown-marker {
262         color: red;
263         font-weight: bold;
264 }
265
266 #sone .sone form {
267         display: inline;
268         border: solid 1px #ccc;
269         border-left: none;
270         border-bottom: none;
271         padding: 0 0.5ex;
272         position: relative;
273         left: -0.5ex;
274         bottom: -0.5ex
275 }
276
277 #sone .sone form.block button, #sone .sone form.unblock button, #sone .sone form.follow button, #sone .sone form.unfollow button {
278         display: inline;
279         color: rgb(28, 131, 191);
280         background: none;
281         border: none;
282         font: inherit;
283         padding: 0px;
284 }
285
286 #sone .sone form.block button:hover, #sone .sone form.unblock button:hover, #sone .sone form.follow button:hover, #sone .sone form.unfollow button:hover {
287         display: inline;
288         color: rgb(255, 172, 0);
289 }
290
291 #sone .sone .spacer {
292         display: inline;
293 }
294
295 #sone #create-sone {
296         
297 }
298
299 #sone #tail .import-key {
300         margin-top: 1em;
301         border-top: solid 1px #ccc;
302         padding-top: 1em;
303         text-align: center;
304         font-size: 85%;
305         color: #888;
306 }
307
308
309 #sone h1 {
310         font-family: inherit;
311         font-size: 200%;
312         font-weight: bold;
313 }
314
315 #sone .error label {
316         color: red;
317         font-weight: bold;
318 }
319
320 #sone input.status-input.default, #sone input.reply-input.default, #sone #add-sone input[name=request-uri].default {
321         color: #888;
322 }
323
324 #sone input[type=text].key {
325         width: 130ex;;
326         font-size: 75%;
327 }