/[suikacvs]/webroot/swe/styles/sw.css
Suika

Contents of /webroot/swe/styles/sw.css

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (hide annotations) (download) (as text)
Fri Nov 14 07:42:59 2008 UTC (16 years ago) by wakaba
Branch: MAIN
Changes since 1.2: +49 -28 lines
File MIME type: text/css
++ swe/styles/ChangeLog	14 Nov 2008 07:42:29 -0000
2008-11-14  Wakaba  <wakaba@suika.fam.cx>

	* sw-classes.css: New style sheet.

	* sw.css: a:hover did not work because of specificity.  Typo
	fixed.  Use dashed underline for wiki-internal links so that a
	paragraph with a lot of links looks less ugly.  Set margin between
	adjucent links.  sw:insert and sw:delete elements that are
	children of the article element should be rendered as blocks.
	Underlines replaced by borders to avoid ugly styling when an
	underlined element is contained within a bordered element.  Set
	border to form elements.

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     /* Edits */
180    
181     ins {
182 wakaba 1.3 border-bottom: solid 0.1em;
183     padding-bottom: 0.1em;
184 wakaba 1.1 background-color: rgb(255, 255, 153);
185     color: black;
186 wakaba 1.3 text-decoration: none;
187 wakaba 1.1 }
188    
189     del {
190     background-color: #FFBBBB;
191     color: black;
192     font-size: 80%;
193     text-decoration: line-through;
194     }
195    
196 wakaba 1.3 .article > ins,
197     .article > del,
198 wakaba 1.1 .section > ins,
199     .section > del,
200     blockquote > ins,
201     blockquote > del {
202     display: block;
203     margin: 0.5em 0;
204     padding: 0.2em 0.5em;
205     }
206    
207     /* Anchors */
208    
209 wakaba 1.3 :link, :visited {
210     border-bottom: solid 0.1em blue;
211     padding-bottom: 0.1em;
212     text-decoration: none;
213     }
214    
215 wakaba 1.1 .sw-anchor:link, .sw-anchor:visited {
216 wakaba 1.3 border-bottom-style: dashed;
217 wakaba 1.1 color: inherit;
218     background-color: transparent;
219     }
220    
221 wakaba 1.3 .sw-anchor + .sw-anchor,
222     .sw-anchor + em,
223     .sw-anchor + ins,
224     em + .sw-anchor,
225     em + em,
226     em + ins,
227     ins + .sw-anchor,
228     ins + em,
229     ins + ins {
230     /* Split border-bottoms */
231     margin-left: 0.3em;
232     }
233    
234     .sw-anchor:visited {
235 wakaba 1.1 border-bottom-color: purple;
236     }
237    
238     .sw-anchor-internal {
239     /* color: inherit;
240     background-color: transparent; */
241     text-decoration: none;
242     }
243    
244     .sw-anchor-end {
245     display: block;
246     position: absolute;
247     left: 0.4em;
248     top: auto;
249     color: gray;
250     text-indent: 0;
251     font-size: smaller;
252     }
253    
254 wakaba 1.3 a:hover,
255     .sw-anchor:hover,
256     .sw-anchor-internal:hover,
257     .sw-anchor-external:hover {
258 wakaba 1.1 background-color: #FFA;
259     color: #000080;
260 wakaba 1.3 border-bottom-style: solid;
261 wakaba 1.1 }
262    
263     /* Code fragments */
264    
265     code, samp, pre.code {
266     color: #800000;
267     font-family: "Courier New", monospace;
268     }
269    
270     /* Citations */
271    
272     cite {
273     font-style: normal;
274     }
275    
276     cite:before {
277     content: "『";
278     }
279    
280     cite:after {
281     content: "』";
282     }
283    
284     .sw-csection {
285    
286     }
287    
288     .sw-csection:before {
289     content: "「";
290     }
291    
292     .sw-csection:after {
293     content: "」";
294     }
295    
296     .sw-src {
297     font-style: normal;
298     color: gray;
299     }
300    
301     .sw-src:before {
302     content: " [";
303     }
304    
305     .sw-src:after {
306     content: "] ";
307     }
308    
309     /* Inline quotations */
310    
311     q:before {
312     content: " 「";
313     }
314    
315     q:after {
316     content: "」 ";
317     }
318    
319     q q:before {
320     content: " 『";
321     }
322    
323     q q:after {
324     content: "』 ";
325     }
326    
327     /* Emphases and important words */
328    
329     strong {
330    
331     }
332    
333     em {
334 wakaba 1.3 border-bottom: solid 0.1em;
335     padding-bottom: 0.1em;
336 wakaba 1.1 font-style: normal;
337     }
338    
339     .sw-weak {
340     font-size: smaller;
341     color: gray;
342     background-color: transparent;
343     }
344    
345     /* Ruby annotations */
346    
347     ruby {
348     display: inline;
349     ruby-position: inline;
350     position: relative;
351     }
352    
353     rp {
354     display: none;
355     }
356    
357     rt {
358     display: block;
359     position: absolute;
360     bottom: 1.7em;
361     left: 0;
362     right: 0;
363     font-size: 70%;
364     line-height: 1.1;
365     text-align: center;
366     white-space: nowrap;
367     text-indent: 0;
368     }
369    
370     rt + rt, .sw-rubyb > rt {
371     top: 1.7em;
372     bottom: auto;
373     }
374    
375     /* Other inlines */
376    
377     dfn {
378     font-style: normal;
379     font-weight: bolder;
380     font-family: sans-serif;
381     }
382    
383 wakaba 1.3 var sub, var sup {
384     font-style: normal;
385     }
386    
387 wakaba 1.1 /* Edit forms */
388    
389 wakaba 1.3 form {
390     border: blue dashed 0.1em;
391     padding: 0.3em 0.7em;
392     }
393    
394 wakaba 1.1 form p {
395     text-indent: 0;
396     }
397    
398     textarea {
399 wakaba 1.3 width: 98%;
400 wakaba 1.1 height: 10em;
401 wakaba 1.3 padding: 0.3em;
402 wakaba 1.1 }
403    
404     textarea[name=text] {
405     height: 30em;
406     }
407    
408     textarea[name=names] {
409     height: 4em;
410     }

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24