/[suikacvs]/webroot/www/style/html/xhtml1.css
Suika

Contents of /webroot/www/style/html/xhtml1.css

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.23 - (hide annotations) (download) (as text)
Sat Jun 30 05:04:13 2007 UTC (18 years, 6 months ago) by wakaba
Branch: MAIN
Changes since 1.22: +10 -2 lines
File MIME type: text/css
2007-06-30  Wakaba  <wakaba@suika.fam.cx>

        * article.css: New style sheet.

        * html.css: A rule for |i:lang(en)|.

1 wakaba 1.1 @charset 'iso-2022-jp';
2     @namespace 'http://www.w3.org/1999/xhtml';
3     @namespace xml 'http://www.w3.org/XML/1998/namespace';
4    
5     html {
6     display: block;
7     line-height: 2.0;
8     }
9     head {
10     display: none;
11     }
12    
13     body {
14     display: block;
15     margin: 1em 1.5em;
16     }
17    
18 wakaba 1.3 blockquote, table {
19     margin: 1em 2em;
20     }
21    
22 wakaba 1.1 h1, h2, h3, h4, h5, h6 {
23     display: block;
24     line-height: 1.5;
25     font-size: 120%;
26     font-weight: bolder;
27 wakaba 1.12 font-family: sans-serif;
28 wakaba 1.4 text-align: left;
29 wakaba 1.1 }
30    
31 wakaba 1.16 @media print {
32     h1, h2, h3, h4, h5, h6 {
33     page-break-after: avoid;
34     }
35     }
36    
37 wakaba 1.1 h1 {
38     text-align: center;
39     font-size: 140%;
40     }
41    
42 wakaba 1.4 h3:before {
43     content: "\0025B6" " ";
44     }
45    
46     h4:before {
47     content: "\0025B7" " ";
48     }
49    
50 wakaba 1.1 p {
51     display: block;
52     text-indent: 1em;
53     margin: 0 1em;
54     text-align: justify;
55     }
56 wakaba 1.8 p:lang(en) {
57     text-indent: 2em;
58     }
59 wakaba 1.1
60     ul, ol, dl {
61     display: block;
62 wakaba 1.14 margin: 1em;
63 wakaba 1.1 padding: 0;
64     }
65    
66 wakaba 1.14 p + ul, p + ol, p + dl,
67     p > ul, p > ol, p > dl {
68     margin-left: 3em;
69     }
70    
71 wakaba 1.1 dt, li {
72     display: list-item;
73     margin-left: 1em;
74     padding-left: 0.5em;
75 wakaba 1.22 text-indent: 0;
76 wakaba 1.20 text-align: justify;
77 wakaba 1.1 }
78 wakaba 1.10 ul li {
79     list-style: disc;
80     }
81     dt dt, ul li ul li {
82 wakaba 1.1 list-style: square;
83     }
84 wakaba 1.10 ol li {
85     list-style: decimal;
86     }
87     ol li ol li {
88     list-style: lower-alpha;
89     }
90 wakaba 1.9
91     dt {
92 wakaba 1.10 font-weight: normal;
93     list-style: disc;
94 wakaba 1.9 }
95    
96 wakaba 1.1 dd {
97 wakaba 1.9 display: block;
98 wakaba 1.1 margin-left: 3em;
99     padding-left: 0;
100 wakaba 1.7 overflow: auto;
101 wakaba 1.9 list-style-type: none;
102 wakaba 1.1 }
103    
104 wakaba 1.16 @media print {
105     dt {
106     page-break-after: avoid;
107     }
108     dd {
109     page-break-before: avoid;
110     }
111     }
112    
113 wakaba 1.17 ul > li:first-child:last-child {
114 wakaba 1.1 list-style: disc;
115     }
116    
117 wakaba 1.22 li > p:first-child,
118     dd > p:first-child {
119     text-indent: 0;
120     }
121    
122 wakaba 1.1 blockquote {
123     display: block;
124 wakaba 1.3 border-left: 1em double rgb(204, 0, 0);
125     padding-left: 1em;
126     }
127    
128     blockquote > cite {
129     display: block;
130     margin-right: 2em;
131     text-align: right;
132     }
133     /* XML Alternate: H3|credit */
134    
135     blockquote > cite:before {
136     display: inline;
137     content: "$B!=!=(B " !important;
138     }
139     blockquote > cite:after {
140     display: inline;
141     content: "" !important;
142 wakaba 1.1 }
143    
144 wakaba 1.2 table {
145     margin-left: auto;
146     margin-right: auto;
147     }
148    
149 wakaba 1.4 /* Physical Blocks */
150    
151     pre {
152     display: block;
153 wakaba 1.22 margin: 0 1em;
154 wakaba 1.4 overflow: auto;
155     font-family: "Courier New", "Courier", monospace;
156     }
157    
158 wakaba 1.3 /* Phrase */
159 wakaba 1.2
160 wakaba 1.1 code {
161     font-family: "Courier New", "Courier", monospace;
162     letter-spacing: 0.1em;
163 wakaba 1.10 background-color: transparent;
164     color: orangered;
165 wakaba 1.1 }
166    
167 wakaba 1.4 var {
168 wakaba 1.13 border-bottom-style: solid;
169     border-bottom-width: 1px;
170     padding-bottom: 0.025em;
171 wakaba 1.4 font-style: normal;
172 wakaba 1.13 text-decoration: none;
173 wakaba 1.1 }
174 wakaba 1.4 var:lang(en) {
175 wakaba 1.14 border-bottom-style: none;
176 wakaba 1.4 font-family: "Times New Roman", serif;
177     font-style: italic;
178     text-decoration: none;
179 wakaba 1.1 }
180    
181 wakaba 1.16 /* Abbrevitions */
182     abbr[title] {
183     border-style: none;
184 wakaba 1.22 text-transform: none;
185     font-variant: normal;
186 wakaba 1.16 font-style: normal;
187     font-size: 100%;
188     }
189    
190 wakaba 1.17 dfn:lang(en) abbr[title] {
191     font-style: italic;
192     }
193    
194 wakaba 1.16 @media screen {
195     abbr[title] {
196     border-bottom: 1px dotted #FF0080;
197     padding-bottom: 0.025em;
198     cursor: help;
199     }
200     }
201    
202 wakaba 1.12 /* Defining Instances */
203 wakaba 1.3 dfn {
204     font-style: normal;
205     font-weight: bolder;
206 wakaba 1.12 font-family: sans-serif;
207 wakaba 1.14 font-size: 100%;
208 wakaba 1.3 }
209 wakaba 1.4 dfn:lang(en) {
210     font-style: italic;
211     font-weight: normal;
212 wakaba 1.12 font-family: "Times New Roman", "Times", serif;
213 wakaba 1.4 }
214 wakaba 1.3
215 wakaba 1.18 dfn:lang(en) em {
216     font-style: normal;
217     }
218    
219 wakaba 1.23 /* One of the last resorts */
220     i:lang(en) {
221     font-style: italic;
222     text-decoration: none;
223     }
224    
225     /* Term instance (HTML5) */
226     /* Though this definition is now obsolete, some old documents
227     have used it. */
228 wakaba 1.15 i {
229     border-style: none;
230     font-style: normal;
231     font-size: 100%;
232     text-decoration: none;
233     }
234    
235 wakaba 1.5 /* Inputs */
236 wakaba 1.3 kbd {
237 wakaba 1.18 margin: 0 0.3em;
238     border: dotted #C0C0C0 1px;
239     padding: 0.2em 0.3em;
240 wakaba 1.3 font-family: "Courier New", "Courier", monospace;
241     font-size: 100%;
242     line-height: 1.1;
243     }
244    
245 wakaba 1.2 em {
246 wakaba 1.14 border-bottom-style: solid;
247     border-bottom-width: 1px;
248     padding-bottom: 0.03em;
249 wakaba 1.2 font-style: normal;
250 wakaba 1.14 text-decoration: none;
251     font-size: 100%;
252 wakaba 1.2 }
253    
254 wakaba 1.3 em:lang(en) {
255 wakaba 1.18 border-bottom-style: none;
256 wakaba 1.3 font-style: italic;
257     text-decoration: none;
258 wakaba 1.2 }
259    
260 wakaba 1.22 em:lang(en) :lang(ja) {
261     font-style: normal;
262     }
263    
264 wakaba 1.13 strong {
265     font-weight: bolder;
266     font-family: sans-serif;
267     }
268     /* Alternate: h1|em */
269    
270 wakaba 1.14 /* Citations and quotations */
271    
272 wakaba 1.1 /*
273     * $B8@8l>pJs$G>l9gJ,$1$9$k$N$O@5$7$/$J$$$,!"8=:_$N(B CSS
274     * $B$K$OMQ;z7O$NA*Br;R$,$J$$$+$i!"6a;wE*$K$3$l$r;H$&!#(B
275     */
276    
277 wakaba 1.14 :lang(ja) > cite {
278     quotes: none;
279 wakaba 1.1 font-style: normal;
280     }
281 wakaba 1.14 :lang(ja) > cite:before {
282     content: "$B!X(B";
283 wakaba 1.1 }
284 wakaba 1.14 :lang(ja) > cite:after {
285     content: "$B!Y(B";
286 wakaba 1.1 }
287 wakaba 1.14
288 wakaba 1.12 cite:lang(ja) cite {
289 wakaba 1.14 quotes: none;
290 wakaba 1.12 }
291 wakaba 1.14 cite:lang(ja) cite:before { content: "$B!V(B" }
292     cite:lang(ja) cite:after { content: "$B!W(B" }
293    
294 wakaba 1.1 [lang|="en"] cite, [xml|lang|="en"] cite {
295     quotes: none;
296     font-style: italic;
297     }
298     [lang|="en"] cite cite, [xml|lang|="en"] cite cite {
299     quotes: none;
300     font-style: normal;
301     }
302     [lang|="en"] cite:before, [xml|lang|="en"] cite:before,
303     [lang|="en"] cite:after, [xml|lang|="en"] cite:after {
304 wakaba 1.22 content: "";
305     content: normal;
306 wakaba 1.1 }
307    
308 wakaba 1.14 :lang(ja) > q {
309     quotes: none;
310     }
311     :lang(ja) > q:before {
312 wakaba 1.21 content: " $B!V(B";
313 wakaba 1.14 }
314     :lang(ja) > q:after {
315 wakaba 1.21 content: "$B!W(B ";
316 wakaba 1.14 }
317    
318 wakaba 1.17 :lang(ja) > q q:before {
319 wakaba 1.21 content: " $B!X(B";
320 wakaba 1.17 }
321    
322     :lang(ja) > q q:after {
323 wakaba 1.21 content: "$B!Y(B ";
324 wakaba 1.17 }
325    
326 wakaba 1.20 :lang(en) > q {
327 wakaba 1.22 quotes: none;
328 wakaba 1.20 }
329    
330     :lang(en) > q:before {
331 wakaba 1.21 content: " $B!H(B";
332 wakaba 1.20 }
333    
334     :lang(en) > q:after {
335 wakaba 1.21 content: "$B!I(B ";
336 wakaba 1.20 }
337    
338 wakaba 1.16 /* Tables */
339 wakaba 1.3
340     table {
341 wakaba 1.6 border: 1px solid gray;
342     border-spacing: 0;
343 wakaba 1.3 }
344    
345     thead, tfoot, th {
346 wakaba 1.6 font-weight: bolder;
347 wakaba 1.14 font-family: sans-serif;
348 wakaba 1.3 }
349    
350     td, th {
351     padding: 0.2em 0.4em;
352 wakaba 1.6 border: 1px solid #E0E0E0;
353 wakaba 1.16 empty-cells: show;
354 wakaba 1.3 }
355    
356 wakaba 1.6 th[scope="row"], th[scope="rowgroup"] {
357     text-align: left;
358     border-right: 1px solid #C0C0C0;
359 wakaba 1.1 }
360 wakaba 1.6 th[scope="col"], th[scope="colgroup"] {
361     text-align: center;
362     border-bottom: 1px solid #C0C0C0;
363 wakaba 1.1 }
364    
365 wakaba 1.5 /* Subscripts and Superscripts */
366    
367     sub {
368     vertical-align: sub;
369     font-size: 80%;
370     }
371     sup {
372     vertical-align: top;
373     font-size: 80%;
374     }
375    
376    
377 wakaba 1.3 /* Edit */
378    
379     ins {
380 wakaba 1.14 border-bottom-style: solid;
381     border-bottom-width: 1px;
382     padding-bottom: 0.03em;
383 wakaba 1.5 background-color: rgb(255, 255, 153);
384 wakaba 1.3 color: black;
385 wakaba 1.14 font-style: normal;
386     text-decoration: none;
387 wakaba 1.5 }
388    
389     body > ins {
390     display: block;
391     text-decoration: none;
392 wakaba 1.3 }
393    
394     del {
395     background-color: #FFBBBB;
396     color: black;
397 wakaba 1.4 font-size: 80%;
398 wakaba 1.18 text-decoration: line-through;
399 wakaba 1.3 }
400    
401 wakaba 1.5 body > del {
402     display: block;
403     }
404    
405 wakaba 1.3 /* Footer */
406    
407     address {
408     font-style: normal;
409     font-size: 100%;
410     }
411    
412 wakaba 1.9 /* Hyperlinks */
413    
414 wakaba 1.13 a:link, a:visited {
415     text-decoration: none;
416     border-bottom-style: solid;
417     border-bottom-width: 1px;
418     padding-bottom: 0.05em;
419     }
420    
421 wakaba 1.9 [href^="#"]:link, [href^="#"]:visited {
422     text-decoration: none !important;
423     border-bottom: dotted 1px !important;
424     }
425    
426     a:hover {
427     background-color: #FFA;
428     color: #000080;
429     }
430    
431 wakaba 1.10 /* Forms */
432    
433     textarea {
434     vertical-align: top;
435     }
436    
437 wakaba 1.1 /* License
438    
439 wakaba 1.4 Copyright 2003-2005 Wakaba <w@suika.fam.cx>.
440 wakaba 1.1
441     This program is free software; you can redistribute it and/or modify
442     it under the terms of the GNU General Public License as published by
443     the Free Software Foundation; either version 2 of the License, or
444     (at your option) any later version.
445    
446     This program is distributed in the hope that it will be useful,
447     but WITHOUT ANY WARRANTY; without even the implied warranty of
448     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
449     GNU General Public License for more details.
450    
451     You should have received a copy of the GNU General Public License
452     along with this program; see the file COPYING. If not, write to
453     the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
454     Boston, MA 02111-1307, USA.
455    
456     */
457    
458 wakaba 1.23 /* $Date: 2005/12/13 13:26:11 $ */

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24