/[suikacvs]/test/suikawebwww/style/html/common-class.css
Suika

Contents of /test/suikawebwww/style/html/common-class.css

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.12 - (hide annotations) (download) (as text)
Wed Jun 8 12:37:31 2005 UTC (21 years ago) by wakaba
Branch: MAIN
Changes since 1.11: +20 -3 lines
File MIME type: text/css
*** empty log message ***

1 wakaba 1.1 @charset 'iso-2022-jp';
2 wakaba 1.3 @namespace H3 'urn:x-suika-fam-cx:markup:ietf:html:3:draft:00:';
3 wakaba 1.1 @namespace 'http://www.w3.org/1999/xhtml';
4 wakaba 1.10 @namespace h2002 'http://www.w3.org/2002/06/xhtml2';
5     @namespace h2005 'http://www.w3.org/2002/06/xhtml2/';
6 wakaba 1.1 @namespace xml 'http://www.w3.org/XML/1998/namespace';
7 wakaba 1.8 @namespace sd 'http://suika.fam.cx/~wakaba/archive/2005/3/common-class#';
8 wakaba 1.1
9 wakaba 1.10 /* Document Status */
10    
11     .status-work-in-progress {
12     background-image: url(http://suika.fam.cx/www/style/draft-bg);
13     background-position: top center;
14     background-repeat: repeat-y;
15     background-attachment: fixed;
16     }
17    
18 wakaba 1.3 /* Sections */
19    
20     div.section {
21     display: block;
22     }
23     /* XML Alternate: h2|section */
24    
25 wakaba 1.9 div.section.normative h2:after {
26     content: " (規定) ";
27     }
28     div.section.normative h2:lang(en):after {
29     content: " (Normative) ";
30     }
31 wakaba 1.10 div#REFERENCE.section.normative h2:after {
32     display: none;
33     content: "";
34     }
35 wakaba 1.9
36     div.section.informative h2:after {
37     content: " (参考) ";
38     }
39     div.section.informative h2:lang(en):after {
40     content: " (Informative) ";
41     }
42 wakaba 1.10 div#INFORMATIVE-REFERENCE.section.informative h2:after {
43     display: none;
44     content: "";
45     }
46 wakaba 1.9
47     div.section.appendix {
48     margin-top: 5em;
49     border-top: solid black 1px;
50     padding-top: 1em;
51     }
52    
53     div.section.appendix h2 {
54     text-align: center;
55     }
56    
57     div.section.appendix h2:before {
58     content: "附属書";
59     display: block;
60     }
61     div.section.appendix h2:lang(en):before {
62     content: "Appendix";
63     }
64     div.section.appendix h2:after {
65     display: block;
66     font-size: smaller;
67     color: #C0C0C0;
68     background-color: transparent;
69     font-weight: normal;
70     }
71    
72 wakaba 1.10 /* TOC */
73    
74     body:not(.has-abstract) > h1, #ABSTRACT,
75     h2002|body > h2002|h,
76     h2005|body:not(.has-abstract) > h2005|h {
77     -moz-binding: url(http://suika.fam.cx/www/style/ui/toc#after);
78     }
79    
80 wakaba 1.5 /* Column Sections */
81     .column, .column.example {
82     display: block;
83     margin: 1em auto;
84     border: rgb(85, 79, 160) 2px solid;
85     -moz-border-radius: 3%;
86     padding: 1em;
87     max-width: 80%;
88     }
89    
90    
91     /* Paragraphs */
92     div.para {
93     display: block;
94     text-indent: 1em;
95     margin: 0 1em;
96     text-align: justify;
97     }
98 wakaba 1.9 /* XML Alternate: h2|p */
99    
100 wakaba 1.7 div.para:lang(en) {
101     text-indent: 2em;
102     }
103 wakaba 1.9
104     div.para > * {
105     text-indent: 0;
106     }
107    
108     div.non-para {
109     display: block;
110     text-indent: 0;
111     margin: 0 1em;
112     text-align: auto;
113     }
114 wakaba 1.5
115 wakaba 1.3 /* Figure */
116     .fig {
117     display: block;
118     margin: 1em auto;
119 wakaba 1.5 border: rgb(85, 79, 160) 2px solid;
120     -moz-border-radius: 3%;
121 wakaba 1.3 padding: 0;
122     max-width: 80%;
123     }
124     /* XML Alternate: ???:fig */
125    
126     .fig-body {
127     display: block;
128     margin: 1em;
129     padding: 0;
130     }
131    
132 wakaba 1.7 .fig .credit {
133     display: block;
134     margin-left: 40%;
135     text-align: right;
136     }
137     .fig .credit:before {
138     content: "―― ";
139     }
140    
141     .fig.quote blockquote {
142     margin: 0 1em;
143     border-style: none;
144     padding: 0;
145     }
146    
147 wakaba 1.2 /* Note */
148    
149     .note {
150     margin-top: 1em;
151     margin-bottom: 1em;
152 wakaba 1.3 margin-right: 5em;
153 wakaba 1.2 text-indent: 0;
154 wakaba 1.3 background-color: transparent;
155     color: green;
156 wakaba 1.2 }
157     /* NOTE: Don't use :before since old documents do or do not have
158     text of "Note: " or so on as part of character data. */
159     /* XML Alternate: H3|note */
160    
161 wakaba 1.5 /* .note.memo (= H3|note), .rationale.memo */
162     .memo {
163     display: block;
164     margin: 0.3em 2em;
165 wakaba 1.9 padding: 0 0 0 2em;
166 wakaba 1.5 color: green;
167     background-color: transparent;
168     font-style: normal;
169     }
170     .memo > :first-child:before {
171     display: inline;
172     content: "注意: ";
173     font-weight: bolder;
174     }
175     .memo.info > :first-child:before {
176     content: "参考: ";
177     }
178     .rationale.memo > :first-child:before {
179     content: "解説: ";
180     }
181 wakaba 1.9 .memo.example > :first-child:before {
182     content: "例: ";
183     margin-right: 1em;
184     }
185 wakaba 1.5 .memo:lang(en) {
186     /* NOTE: Selector should be "script=Latin" rather than "lang=en"
187     if there would such a selector... */
188     font-style: italic;
189     }
190     .memo:lang(en) > :first-child:before {
191     content: "Note. ";
192     }
193     .rationale:lang(en) > :first-child:before {
194     content: "Rationale. ";
195     }
196 wakaba 1.9 .memo.example:lang(en) > :first-child:before {
197     content: "Example. ";
198     }
199 wakaba 1.6 .memo > p:first-child, .memo > .para:first-child {
200 wakaba 1.5 text-indent: -3em;
201 wakaba 1.9 margin-left: 1em;
202     }
203    
204     /* Pending */
205    
206     .issue {
207     background-color: rgb(221, 255, 221);
208     color: black;
209     }
210    
211     .ed {
212     border: medium solid red;
213     padding: 0.5em;
214     color: rgb(229, 0, 0);
215     background-color: transparent;
216 wakaba 1.5 }
217    
218 wakaba 1.3 /* Example */
219    
220 wakaba 1.2 .example {
221     border: 1px solid rgb(153, 153, 153);
222     padding: 0.5em;
223     background-color: rgb(255, 248, 221);
224     color: rgb(102, 0, 0);
225     }
226     .example:before {
227     content: "例: ";
228 wakaba 1.3 font-weight: bolder;
229     font-family: sans-serif;
230 wakaba 1.2 }
231     .example:lang(en):before {
232 wakaba 1.3 content: "Example. ";
233     }
234    
235 wakaba 1.9 .example.memo {
236     border-style: none;
237     background-color: transparent;
238     color: inherit;
239     }
240     .example.memo:before {
241     content: "";
242     display: none;
243     }
244    
245 wakaba 1.4 /* For compatibility with old documents */
246     pre.example {
247     padding-left: 2em;
248     }
249     pre.example:before {
250     display: block;
251     text-indent: -1em;
252     }
253    
254 wakaba 1.5 .fig.example:before, .column.example:before {
255 wakaba 1.3 content: "";
256     }
257    
258     .example .comment {
259     background-color: transparent;
260     color: green;
261     text-decoration: none;
262     font-family: "MS Mincho", "Times New Roman", serif;
263     }
264    
265     /* Block Captions */
266    
267     .fig .caption {
268     display: block;
269 wakaba 1.9 text-align: left;
270 wakaba 1.3 font-weight: bolder;
271     font-family: sans-serif;
272     }
273     .fig > .caption:lang(en) {
274     font-weight: normal;
275     font-family: serif;
276     font-transform: small-caps;
277     font-style: italic;
278     }
279 wakaba 1.9 .fig > * + .caption {
280     text-align: center;
281     }
282 wakaba 1.3
283     .fig > .caption:before {
284 wakaba 1.5 content: "図: ";
285     }
286     .fig > .caption:lang(en):before {
287     content: "Figure. ";
288     }
289     .fig.example > .caption:before {
290 wakaba 1.3 content: "例: ";
291     }
292 wakaba 1.5 .fig.example > .caption:lang(en):before {
293 wakaba 1.2 content: "Example. ";
294     }
295    
296 wakaba 1.3 /* Inline Captions */
297    
298 wakaba 1.6 p .caption, li .caption {
299 wakaba 1.3 font-weight: bolder;
300     font-family: sans-serif;
301     }
302     /* Example: <p class="note"><span class="caption">Note.</span> ...</p> */
303    
304     /* Phrases */
305    
306 wakaba 1.9 code.comment {
307     color: green;
308     background-color: transparent;
309     }
310    
311     code.uri, code.mail, code.newsgroup {
312 wakaba 1.3 font-size: smaller;
313     font-style: italic;
314     font-family: "Times New Roman", "Times", serif;
315     }
316    
317 wakaba 1.9 code.uri a:link, code.uri a:visited,
318     code.mail a:link, code.mail a:visited,
319     code.newsgroup a:link, code.newsgroup a:visited {
320     border-style: none;
321     text-decoration: none;
322     color: inherit;
323     background-color: transparent;
324     font-style: inherit;
325     }
326    
327 wakaba 1.12 code.uri var, code.mail var, code.newsgroup var {
328     border-style: none;
329     font-style: normal;
330     text-decoration: none;
331     }
332    
333 wakaba 1.9
334 wakaba 1.10 h2002|code[class~="uri"]:before, h2002|code[class~="mail"]:before,
335     h2005|code[class~="uri"]:before, h2005|code[class~="mail"]:before {
336 wakaba 1.3 content: "<";
337     }
338 wakaba 1.10 h2002|code[class~="uri"]:after, h2002|code[class~="mail"]:after,
339     h2005|code[class~="uri"]:after, h2005|code[class~="mail"]:after {
340 wakaba 1.3 content: ">";
341     }
342     /* Note. Some XHTML 1 documents have enclosing "<" and ">" and
343     others does not. */
344    
345 wakaba 1.10 h2002|code[class~="file"]:before, h2002|code[class~="file"]:after,
346     h2005|code[class~="file"]:before, h2005|code[class~="file"]:after {
347 wakaba 1.3 content: '"';
348     color: graytext;
349     }
350    
351     code.math, code[class~="uri"] {
352     font-family: "Times New Roman", "Times", serif;
353     }
354    
355 wakaba 1.5 .qname-prefix {
356 wakaba 1.9 border-style: none;
357 wakaba 1.5 font-style: italic;
358     font-family: "Times New Roman", "Times", serif;
359 wakaba 1.9 text-decoration: none;
360     letter-spacing: 0.3em; /* Times is narrower than Courier */
361     }
362    
363     /* ISO/IEC 10646 style character names */
364     .charname {
365     text-transform: lowercase;
366     font-variant: small-caps;
367     }
368    
369     /* ABNF Syntaxes */
370    
371     dl.abnf {
372     margin-left: 2em;
373     margin-right: 2em;
374     padding-left: 1em;
375     background-color: #F5DCB3;
376     color: black;
377     }
378    
379     dl.abnf:before {
380     content: "ABNF 構文定義";
381     display: block;
382     font-weight: bolder;
383     font-family: sans-serif;
384     }
385    
386     dl.abnf > dt {
387     float: left;
388     clear: left;
389 wakaba 1.11 width: 12em;
390 wakaba 1.9 list-style: none;
391     margin-left: 1em;
392     padding-left: 0;
393 wakaba 1.11 font-family: inherit;
394     font-weight: normal;
395     font-style: normal;
396 wakaba 1.5 }
397    
398 wakaba 1.9 dl.abnf > dd {
399     margin-left: 1em;
400     padding-left: 1em;
401     text-indent: -1em;
402     }
403    
404     dl.abnf code.ABNF {
405     color: black;
406     background-color: transparent;
407     }
408    
409     dl.abnf dt dfn {
410     border-style: none;
411     font-weight: normal;
412     font-style: normal;
413 wakaba 1.11 font-family: inherit;
414 wakaba 1.9 text-decoration: none;
415     }
416    
417     dl.abnf a:link[href^="#SYNTAX-"], dl.abnf a:visited[href^="#SYNTAX-"],
418     code.ABNF a:link[href^="#SYNTAX-"], code.ABNF a:visited[href^="#SYNTAX-"] {
419     border-style: none;
420     text-decoration: none;
421     color: inherit;
422     background-color: transparent;
423     }
424    
425     /* Citations */
426    
427 wakaba 1.7 cite.bibref {
428 wakaba 1.9 vertical-align: 0.5em;
429 wakaba 1.7 font-style: normal;
430     font-size: 75%;
431     line-height: 1.1;
432 wakaba 1.9 color: gray;
433     background-color: transparent;
434 wakaba 1.7 }
435 wakaba 1.10
436     cite.bibref.normative {
437     color: red;
438     }
439    
440     cite.bibref.informative {
441     color: green;
442     }
443    
444 wakaba 1.7 cite.bibref:before, cite.bibref:after {
445     content: "";
446     }
447    
448 wakaba 1.9 cite.bibref a:link, cite.bibref a:visited {
449     border-style: none;
450     text-decoration: none;
451     color: inherit;
452     background-color: transparent;
453     }
454    
455 wakaba 1.10 div.reference > dl > dt,
456 wakaba 1.9 #REFERENCE > dl > dt {
457     width: 7em;
458     float: left;
459     clear: left;
460     list-style: none;
461     font-weight: normal;
462     }
463    
464 wakaba 1.10 div.normative.reference > dl > dt {
465     color: red;
466     background-color: transparent;
467     }
468    
469     div.informative.reference > dl > dt {
470     color: green;
471     background-color: transparent;
472     }
473    
474     div.reference > dl > dt:before,
475     div#REFERENCE > dl > dt:before {
476 wakaba 1.9 content: "[";
477     }
478 wakaba 1.10
479     div.reference > dl > dt:after,
480     div#REFERENCE > dl > dt:after {
481 wakaba 1.9 content: "]";
482     }
483    
484 wakaba 1.10 div.reference > dl > dd,
485     div#REFERENCE > dl > dd {
486 wakaba 1.9 margin-left: 1em;
487     margin-bottom: 1em;
488     padding-left: 1em;
489     }
490    
491     span.standard-number, a.standard-number {
492     font-family: sans-serif;
493     font-weight: bolder;
494     text-decoration: none;
495     }
496    
497 wakaba 1.12 /* et. al */
498 wakaba 1.9 .etal {
499     font-style: normal; /* Not italic */
500     }
501    
502 wakaba 1.2 /* Emphasis */
503    
504 wakaba 1.10 /* Block emphasis */
505     .key-point {
506     display: block;
507 wakaba 1.12 width: 70%;
508     margin-left: auto;
509     margin-right: auto;
510     margin-top: 2em;
511     margin-bottom: 2em;
512 wakaba 1.10 border: 1px rgb(228, 236, 236) solid;
513     -moz-border-radius: 0.5em;
514     padding: 1em;
515     background-color: rgb(228, 236, 236);
516     color: black;
517     }
518    
519 wakaba 1.12 span.weak {
520 wakaba 1.2 font-size: 80%;
521 wakaba 1.12 color: gray;
522     background-color: transparent;
523     }
524    
525     .note span.weak {
526     color: #92ba89;
527 wakaba 1.2 background-color: transparent;
528     }
529    
530 wakaba 1.9 em.rfc2119 {
531     border-style: none;
532     text-transform: lowercase;
533     font-variant: small-caps;
534     font-style: normal;
535     text-decoration: none;
536     font-weight: normal;
537     font-family: sans-serif;
538     }
539    
540     em.rfc2119:lang(ja) {
541     font-weight: bolder;
542     }
543    
544     /* Hyperlinks */
545    
546     a:link[rel="glossary"], a:visited[rel="glossary"] {
547     border-style: none;
548     text-decoration: none;
549     color: inherit;
550     background-color: transparent;
551     cursor: help;
552     }
553    
554 wakaba 1.2 /* Footer */
555    
556 wakaba 1.8 .footer, *|*[class~="footer"], sd|footer,
557 wakaba 1.3 /* Old styles (discouraged) */
558     #footer, #FOOTER, body > address, body > .update
559     {
560 wakaba 1.8 display: block;
561 wakaba 1.3 margin: 2em 0 0 0;
562     border-top: gray 1px solid;
563     padding-top: 10px;
564     }
565    
566     /* Old style footer (discouraged) */
567     body address + .update {
568     margin: 0;
569     border-top: gray 0 none;
570     padding-top: 0;
571     }
572    
573 wakaba 1.8 .update, sd|update {
574     display: block;
575     }
576    
577     .update:before, *|*[class~="update"]:before, sd|update:before {
578 wakaba 1.2 content: "修正: ";
579     }
580 wakaba 1.8 .update:lang(en):before, *|*[class~="update"]:lang(en):before,
581     sd|update:lang(en):before {
582 wakaba 1.2 content: "Modified: ";
583     }
584    
585 wakaba 1.8 /* Validated logo (discouraged) */
586 wakaba 1.2 #w3c-html, #w3c-css {
587     float: right;
588     width: 88px;
589     height: 31px;
590     border: none;
591     }
592 wakaba 1.1
593     /* License
594    
595 wakaba 1.3 Copyright 2003-2005 Wakaba <w@suika.fam.cx>.
596 wakaba 1.1
597     This program is free software; you can redistribute it and/or modify
598     it under the terms of the GNU General Public License as published by
599     the Free Software Foundation; either version 2 of the License, or
600     (at your option) any later version.
601    
602     This program is distributed in the hope that it will be useful,
603     but WITHOUT ANY WARRANTY; without even the implied warranty of
604     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
605     GNU General Public License for more details.
606    
607     You should have received a copy of the GNU General Public License
608     along with this program; see the file COPYING. If not, write to
609     the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
610     Boston, MA 02111-1307, USA.
611    
612     */
613    
614 wakaba 1.12 /* $Date: 2005/06/03 10:34:08 $ */

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24