/[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.10 - (hide annotations) (download) (as text)
Tue May 31 10:04:41 2005 UTC (21 years ago) by wakaba
Branch: MAIN
Changes since 1.9: +71 -8 lines
File MIME type: text/css
New style sheets for XHTML 2 new namespace and URI-related definitions created

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

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24