1 |
wakaba |
1.3 |
@import 'sw-classes.css'; |
2 |
|
|
|
3 |
wakaba |
1.1 |
html { |
4 |
|
|
padding: 0.5em; |
5 |
|
|
} |
6 |
|
|
|
7 |
|
|
html, td { |
8 |
|
|
line-height: 2.2; |
9 |
|
|
} |
10 |
|
|
|
11 |
|
|
.nav { |
12 |
|
|
display: block; |
13 |
|
|
text-align: right; |
14 |
|
|
} |
15 |
|
|
|
16 |
|
|
.nav.swe-names { |
17 |
|
|
margin-left: 0.5em; |
18 |
|
|
font-size: 150%; |
19 |
|
|
font-weight: bolder; |
20 |
|
|
font-family: sans-serif; |
21 |
|
|
text-align: left; |
22 |
|
|
} |
23 |
|
|
|
24 |
|
|
.footer { |
25 |
|
|
display: block; |
26 |
|
|
margin-top: 1em; |
27 |
|
|
border-top: gray thin solid; |
28 |
|
|
padding-top: 0.3em; |
29 |
|
|
} |
30 |
|
|
|
31 |
|
|
h1, h2, h3, h4, h5, h6 { |
32 |
|
|
margin: 0 0 0.5em 0; |
33 |
|
|
padding: 0; |
34 |
wakaba |
1.3 |
line-height: 1.5; |
35 |
wakaba |
1.1 |
color: #004000; |
36 |
|
|
background-color: transparent; |
37 |
|
|
font-weight: bolder; |
38 |
|
|
font-family; sans-serif; |
39 |
|
|
} |
40 |
|
|
|
41 |
|
|
h1 { |
42 |
|
|
background-image: url(http://suika.fam.cx/~wakaba/-temp/2004/sw) /* 107x59 */; |
43 |
|
|
background-position: middle left; |
44 |
|
|
background-repeat: no-repeat; |
45 |
|
|
padding-left: 120px; |
46 |
|
|
min-height: 59px; |
47 |
|
|
font-size: 150%; |
48 |
|
|
} |
49 |
|
|
|
50 |
|
|
h2 { |
51 |
|
|
font-size: 150%; |
52 |
|
|
} |
53 |
|
|
|
54 |
|
|
h3 { |
55 |
|
|
font-size: 120%; |
56 |
wakaba |
1.3 |
border-bottom: solid 0.1em; |
57 |
|
|
padding-bottom: 0.1em; |
58 |
wakaba |
1.1 |
} |
59 |
|
|
|
60 |
|
|
h4 { |
61 |
|
|
font-size: 120%; |
62 |
|
|
} |
63 |
|
|
|
64 |
|
|
h5, h6 { |
65 |
|
|
font-size: 100%; |
66 |
|
|
} |
67 |
|
|
|
68 |
|
|
.article, .section { |
69 |
|
|
display: block; |
70 |
|
|
margin: 0 0 2em 0; |
71 |
|
|
padding: 0 1em 0 2em; |
72 |
|
|
} |
73 |
|
|
|
74 |
|
|
p + .article, p + .section, |
75 |
|
|
ul + .article, ul + .section, |
76 |
|
|
ol + .article, ol + .section, |
77 |
|
|
dl + .article, dl + .section, |
78 |
|
|
table + .article, table + .section, |
79 |
wakaba |
1.2 |
blockquote + .article, blockquote + .section, |
80 |
|
|
.comment-p + .article, .comment-p + .section, |
81 |
|
|
.ed + .article, .ed + .section, |
82 |
wakaba |
1.1 |
ins + .article, ins + .section, |
83 |
|
|
del + .article, del + .section { |
84 |
|
|
margin-top: 2em; |
85 |
|
|
} |
86 |
|
|
|
87 |
|
|
.article > h1, .section > h1, |
88 |
|
|
.article > h2, .section > h2, |
89 |
|
|
.article > h3, .section > h3, |
90 |
|
|
.article > h4, .section > h4, |
91 |
|
|
.article > h5, .section > h5, |
92 |
|
|
.article > h6, .section > h6, |
93 |
|
|
.article > .article, .article > .section, |
94 |
|
|
.section > .article, .section > .section { |
95 |
|
|
margin-left: -1em; |
96 |
|
|
} |
97 |
|
|
|
98 |
|
|
blockquote { |
99 |
|
|
margin: 0.5em 0 0.5em 2em; |
100 |
|
|
border-left: #004000 double 0.3em; |
101 |
|
|
padding: 0.2em 0.5em; |
102 |
|
|
background-color: #f7fff7; |
103 |
|
|
color: black; |
104 |
|
|
} |
105 |
|
|
|
106 |
|
|
/* Paragraph-level blocks */ |
107 |
|
|
|
108 |
|
|
.sw-comment-p { |
109 |
|
|
display: block; |
110 |
|
|
padding-left: 1em; |
111 |
|
|
color: #004000; |
112 |
|
|
background-color: transparent; |
113 |
|
|
text-indent: -1em; |
114 |
|
|
} |
115 |
|
|
|
116 |
|
|
.sw-comment-p:before { |
117 |
|
|
content: ";; "; |
118 |
|
|
} |
119 |
|
|
|
120 |
|
|
.sw-ed { |
121 |
|
|
display: block; |
122 |
|
|
margin: 1em 0; |
123 |
|
|
border: medium solid; |
124 |
|
|
padding: 0.5em 1em 0.5em 2em; |
125 |
|
|
color: rgb(229, 0, 0); |
126 |
|
|
background-color: transparent; |
127 |
|
|
text-indent: -1em; |
128 |
|
|
} |
129 |
|
|
|
130 |
|
|
.sw-ed:before { |
131 |
|
|
content: "@@ "; |
132 |
|
|
} |
133 |
|
|
|
134 |
|
|
p { |
135 |
|
|
margin: 0; |
136 |
|
|
text-indent: 1em; |
137 |
|
|
} |
138 |
|
|
|
139 |
|
|
pre { |
140 |
|
|
margin: 0; |
141 |
|
|
} |
142 |
|
|
|
143 |
|
|
/* Lists */ |
144 |
|
|
|
145 |
|
|
ul, ol, dl { |
146 |
|
|
margin: 0; |
147 |
|
|
text-indent: 0; |
148 |
|
|
} |
149 |
|
|
|
150 |
|
|
/* Tables */ |
151 |
|
|
|
152 |
|
|
table { |
153 |
|
|
margin: 0 0.5em; |
154 |
|
|
border: 1px solid gray; |
155 |
|
|
border-spacing: 0; |
156 |
|
|
} |
157 |
|
|
|
158 |
|
|
thead, tfoot, th { |
159 |
|
|
font-weight: bolder; |
160 |
|
|
font-family: sans-serif; |
161 |
|
|
} |
162 |
|
|
|
163 |
|
|
td, th { |
164 |
|
|
padding: 0.2em 0.4em; |
165 |
|
|
border: 1px solid #E0E0E0; |
166 |
|
|
empty-cells: show; |
167 |
|
|
text-indent: 0; |
168 |
|
|
} |
169 |
|
|
|
170 |
|
|
th[scope="row"], th[scope="rowgroup"] { |
171 |
|
|
text-align: left; |
172 |
|
|
border-right: 1px solid #C0C0C0; |
173 |
|
|
} |
174 |
|
|
th[scope="col"], th[scope="colgroup"] { |
175 |
|
|
text-align: center; |
176 |
|
|
border-bottom: 1px solid #C0C0C0; |
177 |
|
|
} |
178 |
|
|
|
179 |
wakaba |
1.4 |
tr:hover { |
180 |
|
|
background-color: #ffecf5; |
181 |
|
|
color: black; |
182 |
|
|
} |
183 |
|
|
|
184 |
|
|
td:hover { |
185 |
|
|
background-color: #f4fffa; |
186 |
|
|
color: black; |
187 |
|
|
} |
188 |
|
|
|
189 |
|
|
|
190 |
wakaba |
1.1 |
/* Edits */ |
191 |
|
|
|
192 |
|
|
ins { |
193 |
wakaba |
1.3 |
border-bottom: solid 0.1em; |
194 |
|
|
padding-bottom: 0.1em; |
195 |
wakaba |
1.1 |
background-color: rgb(255, 255, 153); |
196 |
|
|
color: black; |
197 |
wakaba |
1.3 |
text-decoration: none; |
198 |
wakaba |
1.1 |
} |
199 |
|
|
|
200 |
|
|
del { |
201 |
|
|
background-color: #FFBBBB; |
202 |
|
|
color: black; |
203 |
|
|
font-size: 80%; |
204 |
|
|
text-decoration: line-through; |
205 |
|
|
} |
206 |
|
|
|
207 |
wakaba |
1.3 |
.article > ins, |
208 |
|
|
.article > del, |
209 |
wakaba |
1.1 |
.section > ins, |
210 |
|
|
.section > del, |
211 |
|
|
blockquote > ins, |
212 |
|
|
blockquote > del { |
213 |
|
|
display: block; |
214 |
|
|
margin: 0.5em 0; |
215 |
|
|
padding: 0.2em 0.5em; |
216 |
|
|
} |
217 |
|
|
|
218 |
|
|
/* Anchors */ |
219 |
|
|
|
220 |
wakaba |
1.3 |
:link, :visited { |
221 |
|
|
border-bottom: solid 0.1em blue; |
222 |
|
|
padding-bottom: 0.1em; |
223 |
|
|
text-decoration: none; |
224 |
|
|
} |
225 |
|
|
|
226 |
wakaba |
1.1 |
.sw-anchor:link, .sw-anchor:visited { |
227 |
wakaba |
1.3 |
border-bottom-style: dashed; |
228 |
wakaba |
1.1 |
color: inherit; |
229 |
|
|
background-color: transparent; |
230 |
|
|
} |
231 |
|
|
|
232 |
wakaba |
1.6 |
/* |
233 |
wakaba |
1.3 |
.sw-anchor + .sw-anchor, |
234 |
|
|
.sw-anchor + em, |
235 |
|
|
.sw-anchor + ins, |
236 |
|
|
em + .sw-anchor, |
237 |
|
|
em + em, |
238 |
|
|
em + ins, |
239 |
|
|
ins + .sw-anchor, |
240 |
|
|
ins + em, |
241 |
|
|
ins + ins { |
242 |
|
|
margin-left: 0.3em; |
243 |
|
|
} |
244 |
wakaba |
1.6 |
*//* Split border-bottoms */ |
245 |
wakaba |
1.3 |
|
246 |
|
|
.sw-anchor:visited { |
247 |
wakaba |
1.1 |
border-bottom-color: purple; |
248 |
|
|
} |
249 |
|
|
|
250 |
|
|
.sw-anchor-internal { |
251 |
|
|
/* color: inherit; |
252 |
|
|
background-color: transparent; */ |
253 |
|
|
text-decoration: none; |
254 |
|
|
} |
255 |
|
|
|
256 |
|
|
.sw-anchor-end { |
257 |
|
|
display: block; |
258 |
|
|
position: absolute; |
259 |
|
|
left: 0.4em; |
260 |
|
|
top: auto; |
261 |
|
|
color: gray; |
262 |
|
|
text-indent: 0; |
263 |
|
|
font-size: smaller; |
264 |
|
|
} |
265 |
|
|
|
266 |
wakaba |
1.3 |
a:hover, |
267 |
|
|
.sw-anchor:hover, |
268 |
|
|
.sw-anchor-internal:hover, |
269 |
|
|
.sw-anchor-external:hover { |
270 |
wakaba |
1.1 |
background-color: #FFA; |
271 |
|
|
color: #000080; |
272 |
wakaba |
1.3 |
border-bottom-style: solid; |
273 |
wakaba |
1.1 |
} |
274 |
|
|
|
275 |
|
|
/* Code fragments */ |
276 |
|
|
|
277 |
|
|
code, samp, pre.code { |
278 |
|
|
color: #800000; |
279 |
|
|
font-family: "Courier New", monospace; |
280 |
|
|
} |
281 |
|
|
|
282 |
|
|
/* Citations */ |
283 |
|
|
|
284 |
|
|
cite { |
285 |
|
|
font-style: normal; |
286 |
|
|
} |
287 |
|
|
|
288 |
|
|
cite:before { |
289 |
|
|
content: "『"; |
290 |
|
|
} |
291 |
|
|
|
292 |
|
|
cite:after { |
293 |
|
|
content: "』"; |
294 |
|
|
} |
295 |
|
|
|
296 |
|
|
.sw-csection { |
297 |
|
|
|
298 |
|
|
} |
299 |
|
|
|
300 |
|
|
.sw-csection:before { |
301 |
|
|
content: "「"; |
302 |
|
|
} |
303 |
|
|
|
304 |
|
|
.sw-csection:after { |
305 |
|
|
content: "」"; |
306 |
|
|
} |
307 |
|
|
|
308 |
|
|
.sw-src { |
309 |
|
|
font-style: normal; |
310 |
|
|
color: gray; |
311 |
|
|
} |
312 |
|
|
|
313 |
|
|
.sw-src:before { |
314 |
|
|
content: " ["; |
315 |
|
|
} |
316 |
|
|
|
317 |
|
|
.sw-src:after { |
318 |
|
|
content: "] "; |
319 |
|
|
} |
320 |
|
|
|
321 |
|
|
/* Inline quotations */ |
322 |
|
|
|
323 |
|
|
q:before { |
324 |
|
|
content: " 「"; |
325 |
|
|
} |
326 |
|
|
|
327 |
|
|
q:after { |
328 |
|
|
content: "」 "; |
329 |
|
|
} |
330 |
|
|
|
331 |
|
|
q q:before { |
332 |
|
|
content: " 『"; |
333 |
|
|
} |
334 |
|
|
|
335 |
|
|
q q:after { |
336 |
|
|
content: "』 "; |
337 |
|
|
} |
338 |
|
|
|
339 |
|
|
/* Emphases and important words */ |
340 |
|
|
|
341 |
|
|
strong { |
342 |
|
|
|
343 |
|
|
} |
344 |
|
|
|
345 |
|
|
em { |
346 |
wakaba |
1.3 |
border-bottom: solid 0.1em; |
347 |
|
|
padding-bottom: 0.1em; |
348 |
wakaba |
1.1 |
font-style: normal; |
349 |
|
|
} |
350 |
|
|
|
351 |
|
|
.sw-weak { |
352 |
|
|
font-size: smaller; |
353 |
|
|
color: gray; |
354 |
|
|
background-color: transparent; |
355 |
|
|
} |
356 |
|
|
|
357 |
|
|
/* Ruby annotations */ |
358 |
|
|
|
359 |
|
|
ruby { |
360 |
|
|
display: inline; |
361 |
|
|
ruby-position: inline; |
362 |
|
|
position: relative; |
363 |
|
|
} |
364 |
|
|
|
365 |
|
|
rp { |
366 |
|
|
display: none; |
367 |
|
|
} |
368 |
|
|
|
369 |
|
|
rt { |
370 |
|
|
display: block; |
371 |
|
|
position: absolute; |
372 |
|
|
bottom: 1.7em; |
373 |
|
|
left: 0; |
374 |
|
|
right: 0; |
375 |
|
|
font-size: 70%; |
376 |
|
|
line-height: 1.1; |
377 |
|
|
text-align: center; |
378 |
|
|
white-space: nowrap; |
379 |
|
|
text-indent: 0; |
380 |
|
|
} |
381 |
|
|
|
382 |
wakaba |
1.5 |
rt ~ rt, .sw-rubyb > rt { |
383 |
wakaba |
1.1 |
top: 1.7em; |
384 |
|
|
bottom: auto; |
385 |
|
|
} |
386 |
|
|
|
387 |
|
|
/* Other inlines */ |
388 |
|
|
|
389 |
|
|
dfn { |
390 |
|
|
font-style: normal; |
391 |
|
|
font-weight: bolder; |
392 |
|
|
font-family: sans-serif; |
393 |
|
|
} |
394 |
|
|
|
395 |
wakaba |
1.3 |
var sub, var sup { |
396 |
|
|
font-style: normal; |
397 |
|
|
} |
398 |
|
|
|
399 |
wakaba |
1.1 |
/* Edit forms */ |
400 |
|
|
|
401 |
wakaba |
1.3 |
form { |
402 |
|
|
border: blue dashed 0.1em; |
403 |
|
|
padding: 0.3em 0.7em; |
404 |
|
|
} |
405 |
|
|
|
406 |
wakaba |
1.1 |
form p { |
407 |
|
|
text-indent: 0; |
408 |
|
|
} |
409 |
|
|
|
410 |
|
|
textarea { |
411 |
wakaba |
1.3 |
width: 98%; |
412 |
wakaba |
1.1 |
height: 10em; |
413 |
wakaba |
1.3 |
padding: 0.3em; |
414 |
wakaba |
1.1 |
} |
415 |
|
|
|
416 |
|
|
textarea[name=text] { |
417 |
|
|
height: 30em; |
418 |
|
|
} |
419 |
|
|
|
420 |
|
|
textarea[name=names] { |
421 |
|
|
height: 4em; |
422 |
|
|
} |