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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (hide annotations) (download) (as text)
Fri Nov 14 07:47:22 2008 UTC (16 years ago) by wakaba
Branch: MAIN
Changes since 1.3: +11 -0 lines
File MIME type: text/css
++ swe/styles/ChangeLog	14 Nov 2008 07:45:13 -0000
	* sw.css: Change background-color of cells when hovered.

2008-11-14  Wakaba  <wakaba@suika.fam.cx>

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.3 .sw-anchor + .sw-anchor,
233     .sw-anchor + em,
234     .sw-anchor + ins,
235     em + .sw-anchor,
236     em + em,
237     em + ins,
238     ins + .sw-anchor,
239     ins + em,
240     ins + ins {
241     /* Split border-bottoms */
242     margin-left: 0.3em;
243     }
244    
245     .sw-anchor:visited {
246 wakaba 1.1 border-bottom-color: purple;
247     }
248    
249     .sw-anchor-internal {
250     /* color: inherit;
251     background-color: transparent; */
252     text-decoration: none;
253     }
254    
255     .sw-anchor-end {
256     display: block;
257     position: absolute;
258     left: 0.4em;
259     top: auto;
260     color: gray;
261     text-indent: 0;
262     font-size: smaller;
263     }
264    
265 wakaba 1.3 a:hover,
266     .sw-anchor:hover,
267     .sw-anchor-internal:hover,
268     .sw-anchor-external:hover {
269 wakaba 1.1 background-color: #FFA;
270     color: #000080;
271 wakaba 1.3 border-bottom-style: solid;
272 wakaba 1.1 }
273    
274     /* Code fragments */
275    
276     code, samp, pre.code {
277     color: #800000;
278     font-family: "Courier New", monospace;
279     }
280    
281     /* Citations */
282    
283     cite {
284     font-style: normal;
285     }
286    
287     cite:before {
288     content: "『";
289     }
290    
291     cite:after {
292     content: "』";
293     }
294    
295     .sw-csection {
296    
297     }
298    
299     .sw-csection:before {
300     content: "「";
301     }
302    
303     .sw-csection:after {
304     content: "」";
305     }
306    
307     .sw-src {
308     font-style: normal;
309     color: gray;
310     }
311    
312     .sw-src:before {
313     content: " [";
314     }
315    
316     .sw-src:after {
317     content: "] ";
318     }
319    
320     /* Inline quotations */
321    
322     q:before {
323     content: " 「";
324     }
325    
326     q:after {
327     content: "」 ";
328     }
329    
330     q q:before {
331     content: " 『";
332     }
333    
334     q q:after {
335     content: "』 ";
336     }
337    
338     /* Emphases and important words */
339    
340     strong {
341    
342     }
343    
344     em {
345 wakaba 1.3 border-bottom: solid 0.1em;
346     padding-bottom: 0.1em;
347 wakaba 1.1 font-style: normal;
348     }
349    
350     .sw-weak {
351     font-size: smaller;
352     color: gray;
353     background-color: transparent;
354     }
355    
356     /* Ruby annotations */
357    
358     ruby {
359     display: inline;
360     ruby-position: inline;
361     position: relative;
362     }
363    
364     rp {
365     display: none;
366     }
367    
368     rt {
369     display: block;
370     position: absolute;
371     bottom: 1.7em;
372     left: 0;
373     right: 0;
374     font-size: 70%;
375     line-height: 1.1;
376     text-align: center;
377     white-space: nowrap;
378     text-indent: 0;
379     }
380    
381     rt + rt, .sw-rubyb > rt {
382     top: 1.7em;
383     bottom: auto;
384     }
385    
386     /* Other inlines */
387    
388     dfn {
389     font-style: normal;
390     font-weight: bolder;
391     font-family: sans-serif;
392     }
393    
394 wakaba 1.3 var sub, var sup {
395     font-style: normal;
396     }
397    
398 wakaba 1.1 /* Edit forms */
399    
400 wakaba 1.3 form {
401     border: blue dashed 0.1em;
402     padding: 0.3em 0.7em;
403     }
404    
405 wakaba 1.1 form p {
406     text-indent: 0;
407     }
408    
409     textarea {
410 wakaba 1.3 width: 98%;
411 wakaba 1.1 height: 10em;
412 wakaba 1.3 padding: 0.3em;
413 wakaba 1.1 }
414    
415     textarea[name=text] {
416     height: 30em;
417     }
418    
419     textarea[name=names] {
420     height: 4em;
421     }

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24