/[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.11 - (hide annotations) (download) (as text)
Fri Jun 3 10:34:08 2005 UTC (21 years ago) by wakaba
Branch: MAIN
Changes since 1.10: +6 -2 lines
File MIME type: text/css
Use sans-serif font-family for bolder texts

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    
328 wakaba 1.10 h2002|code[class~="uri"]:before, h2002|code[class~="mail"]:before,
329     h2005|code[class~="uri"]:before, h2005|code[class~="mail"]:before {
330 wakaba 1.3 content: "<";
331     }
332 wakaba 1.10 h2002|code[class~="uri"]:after, h2002|code[class~="mail"]:after,
333     h2005|code[class~="uri"]:after, h2005|code[class~="mail"]:after {
334 wakaba 1.3 content: ">";
335     }
336     /* Note. Some XHTML 1 documents have enclosing "<" and ">" and
337     others does not. */
338    
339 wakaba 1.10 h2002|code[class~="file"]:before, h2002|code[class~="file"]:after,
340     h2005|code[class~="file"]:before, h2005|code[class~="file"]:after {
341 wakaba 1.3 content: '"';
342     color: graytext;
343     }
344    
345     code.math, code[class~="uri"] {
346     font-family: "Times New Roman", "Times", serif;
347     }
348    
349 wakaba 1.5 .qname-prefix {
350 wakaba 1.9 border-style: none;
351 wakaba 1.5 font-style: italic;
352     font-family: "Times New Roman", "Times", serif;
353 wakaba 1.9 text-decoration: none;
354     letter-spacing: 0.3em; /* Times is narrower than Courier */
355     }
356    
357     /* ISO/IEC 10646 style character names */
358     .charname {
359     text-transform: lowercase;
360     font-variant: small-caps;
361     }
362    
363     /* ABNF Syntaxes */
364    
365     dl.abnf {
366     margin-left: 2em;
367     margin-right: 2em;
368     padding-left: 1em;
369     background-color: #F5DCB3;
370     color: black;
371     }
372    
373     dl.abnf:before {
374     content: "ABNF 構文定義";
375     display: block;
376     font-weight: bolder;
377     font-family: sans-serif;
378     }
379    
380     dl.abnf > dt {
381     float: left;
382     clear: left;
383 wakaba 1.11 width: 12em;
384 wakaba 1.9 list-style: none;
385     margin-left: 1em;
386     padding-left: 0;
387 wakaba 1.11 font-family: inherit;
388     font-weight: normal;
389     font-style: normal;
390 wakaba 1.5 }
391    
392 wakaba 1.9 dl.abnf > dd {
393     margin-left: 1em;
394     padding-left: 1em;
395     text-indent: -1em;
396     }
397    
398     dl.abnf code.ABNF {
399     color: black;
400     background-color: transparent;
401     }
402    
403     dl.abnf dt dfn {
404     border-style: none;
405     font-weight: normal;
406     font-style: normal;
407 wakaba 1.11 font-family: inherit;
408 wakaba 1.9 text-decoration: none;
409     }
410    
411     dl.abnf a:link[href^="#SYNTAX-"], dl.abnf a:visited[href^="#SYNTAX-"],
412     code.ABNF a:link[href^="#SYNTAX-"], code.ABNF a:visited[href^="#SYNTAX-"] {
413     border-style: none;
414     text-decoration: none;
415     color: inherit;
416     background-color: transparent;
417     }
418    
419     /* Citations */
420    
421 wakaba 1.7 cite.bibref {
422 wakaba 1.9 vertical-align: 0.5em;
423 wakaba 1.7 font-style: normal;
424     font-size: 75%;
425     line-height: 1.1;
426 wakaba 1.9 color: gray;
427     background-color: transparent;
428 wakaba 1.7 }
429 wakaba 1.10
430     cite.bibref.normative {
431     color: red;
432     }
433    
434     cite.bibref.informative {
435     color: green;
436     }
437    
438 wakaba 1.7 cite.bibref:before, cite.bibref:after {
439     content: "";
440     }
441    
442 wakaba 1.9 cite.bibref a:link, cite.bibref a:visited {
443     border-style: none;
444     text-decoration: none;
445     color: inherit;
446     background-color: transparent;
447     }
448    
449 wakaba 1.10 div.reference > dl > dt,
450 wakaba 1.9 #REFERENCE > dl > dt {
451     width: 7em;
452     float: left;
453     clear: left;
454     list-style: none;
455     font-weight: normal;
456     }
457    
458 wakaba 1.10 div.normative.reference > dl > dt {
459     color: red;
460     background-color: transparent;
461     }
462    
463     div.informative.reference > dl > dt {
464     color: green;
465     background-color: transparent;
466     }
467    
468     div.reference > dl > dt:before,
469     div#REFERENCE > dl > dt:before {
470 wakaba 1.9 content: "[";
471     }
472 wakaba 1.10
473     div.reference > dl > dt:after,
474     div#REFERENCE > dl > dt:after {
475 wakaba 1.9 content: "]";
476     }
477    
478 wakaba 1.10 div.reference > dl > dd,
479     div#REFERENCE > dl > dd {
480 wakaba 1.9 margin-left: 1em;
481     margin-bottom: 1em;
482     padding-left: 1em;
483     }
484    
485     span.standard-number, a.standard-number {
486     font-family: sans-serif;
487     font-weight: bolder;
488     text-decoration: none;
489     }
490    
491     .etal {
492     font-style: normal; /* Not italic */
493     }
494    
495 wakaba 1.2 /* Emphasis */
496    
497 wakaba 1.10 /* Block emphasis */
498     .key-point {
499     display: block;
500     border: 1px rgb(228, 236, 236) solid;
501     -moz-border-radius: 0.5em;
502     padding: 1em;
503     background-color: rgb(228, 236, 236);
504     color: black;
505     }
506    
507 wakaba 1.2 .weak {
508     font-size: 80%;
509     color: GrayText;
510     background-color: transparent;
511     }
512    
513 wakaba 1.9 em.rfc2119 {
514     border-style: none;
515     text-transform: lowercase;
516     font-variant: small-caps;
517     font-style: normal;
518     text-decoration: none;
519     font-weight: normal;
520     font-family: sans-serif;
521     }
522    
523     em.rfc2119:lang(ja) {
524     font-weight: bolder;
525     }
526    
527     /* Hyperlinks */
528    
529     a:link[rel="glossary"], a:visited[rel="glossary"] {
530     border-style: none;
531     text-decoration: none;
532     color: inherit;
533     background-color: transparent;
534     cursor: help;
535     }
536    
537 wakaba 1.2 /* Footer */
538    
539 wakaba 1.8 .footer, *|*[class~="footer"], sd|footer,
540 wakaba 1.3 /* Old styles (discouraged) */
541     #footer, #FOOTER, body > address, body > .update
542     {
543 wakaba 1.8 display: block;
544 wakaba 1.3 margin: 2em 0 0 0;
545     border-top: gray 1px solid;
546     padding-top: 10px;
547     }
548    
549     /* Old style footer (discouraged) */
550     body address + .update {
551     margin: 0;
552     border-top: gray 0 none;
553     padding-top: 0;
554     }
555    
556 wakaba 1.8 .update, sd|update {
557     display: block;
558     }
559    
560     .update:before, *|*[class~="update"]:before, sd|update:before {
561 wakaba 1.2 content: "修正: ";
562     }
563 wakaba 1.8 .update:lang(en):before, *|*[class~="update"]:lang(en):before,
564     sd|update:lang(en):before {
565 wakaba 1.2 content: "Modified: ";
566     }
567    
568 wakaba 1.8 /* Validated logo (discouraged) */
569 wakaba 1.2 #w3c-html, #w3c-css {
570     float: right;
571     width: 88px;
572     height: 31px;
573     border: none;
574     }
575 wakaba 1.1
576     /* License
577    
578 wakaba 1.3 Copyright 2003-2005 Wakaba <w@suika.fam.cx>.
579 wakaba 1.1
580     This program is free software; you can redistribute it and/or modify
581     it under the terms of the GNU General Public License as published by
582     the Free Software Foundation; either version 2 of the License, or
583     (at your option) any later version.
584    
585     This program is distributed in the hope that it will be useful,
586     but WITHOUT ANY WARRANTY; without even the implied warranty of
587     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
588     GNU General Public License for more details.
589    
590     You should have received a copy of the GNU General Public License
591     along with this program; see the file COPYING. If not, write to
592     the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
593     Boston, MA 02111-1307, USA.
594    
595     */
596    
597 wakaba 1.11 /* $Date: 2005/05/31 10:04:41 $ */

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24