/[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.5 - (hide annotations) (download) (as text)
Tue Mar 8 11:58:04 2005 UTC (21 years, 3 months ago) by wakaba
Branch: MAIN
Changes since 1.4: +73 -3 lines
File MIME type: text/css
Use toc.xbl

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.3 @namespace h2 'http://www.w3.org/2002/06/xhtml2';
5 wakaba 1.1 @namespace xml 'http://www.w3.org/XML/1998/namespace';
6    
7 wakaba 1.3 /* Sections */
8    
9     div.section {
10     display: block;
11     }
12     /* XML Alternate: h2|section */
13    
14 wakaba 1.5 /* Column Sections */
15     .column, .column.example {
16     display: block;
17     margin: 1em auto;
18     border: rgb(85, 79, 160) 2px solid;
19     -moz-border-radius: 3%;
20     padding: 1em;
21     max-width: 80%;
22     }
23    
24    
25     /* Paragraphs */
26     div.para {
27     display: block;
28     text-indent: 1em;
29     margin: 0 1em;
30     text-align: justify;
31     }
32     /* XML Alternate: h2|p */
33    
34 wakaba 1.3 /* Figure */
35     .fig {
36     display: block;
37     margin: 1em auto;
38 wakaba 1.5 border: rgb(85, 79, 160) 2px solid;
39     -moz-border-radius: 3%;
40 wakaba 1.3 padding: 0;
41     max-width: 80%;
42     }
43     /* XML Alternate: ???:fig */
44    
45     .fig-body {
46     display: block;
47     margin: 1em;
48     padding: 0;
49     }
50    
51 wakaba 1.2 /* Note */
52    
53     .note {
54     margin-top: 1em;
55     margin-bottom: 1em;
56 wakaba 1.3 margin-right: 5em;
57 wakaba 1.2 text-indent: 0;
58 wakaba 1.3 background-color: transparent;
59     color: green;
60 wakaba 1.2 }
61     /* NOTE: Don't use :before since old documents do or do not have
62     text of "Note: " or so on as part of character data. */
63     /* XML Alternate: H3|note */
64    
65 wakaba 1.5 /* .note.memo (= H3|note), .rationale.memo */
66     .memo {
67     display: block;
68     margin: 0.3em 2em;
69     padding: 0;
70     color: green;
71     background-color: transparent;
72     font-style: normal;
73     }
74     .memo > :first-child:before {
75     display: inline;
76     content: "注意: ";
77     font-weight: bolder;
78     }
79     .memo.info > :first-child:before {
80     content: "参考: ";
81     }
82     .rationale.memo > :first-child:before {
83     content: "解説: ";
84     }
85     .memo:lang(en) {
86     /* NOTE: Selector should be "script=Latin" rather than "lang=en"
87     if there would such a selector... */
88     font-style: italic;
89     }
90     .memo:lang(en) > :first-child:before {
91     content: "Note. ";
92     }
93     .rationale:lang(en) > :first-child:before {
94     content: "Rationale. ";
95     }
96     .memo > p:first-child {
97     text-indent: -3em;
98     margin-left: 3em;
99     }
100    
101    
102 wakaba 1.3 /* Example */
103    
104 wakaba 1.2 .example {
105     border: 1px solid rgb(153, 153, 153);
106     padding: 0.5em;
107     background-color: rgb(255, 248, 221);
108     color: rgb(102, 0, 0);
109     }
110     .example:before {
111     content: "例: ";
112 wakaba 1.3 font-weight: bolder;
113     font-family: sans-serif;
114 wakaba 1.2 }
115     .example:lang(en):before {
116 wakaba 1.3 content: "Example. ";
117     }
118    
119 wakaba 1.4 /* For compatibility with old documents */
120     pre.example {
121     padding-left: 2em;
122     }
123     pre.example:before {
124     display: block;
125     text-indent: -1em;
126     }
127    
128 wakaba 1.5 .fig.example:before, .column.example:before {
129 wakaba 1.3 content: "";
130     }
131    
132     .example .comment {
133     background-color: transparent;
134     color: green;
135     text-decoration: none;
136     font-family: "MS Mincho", "Times New Roman", serif;
137     }
138    
139     /* Block Captions */
140    
141     .fig .caption {
142     display: block;
143     text-align: center;
144     font-weight: bolder;
145     font-family: sans-serif;
146     }
147     .fig > .caption:lang(en) {
148     font-weight: normal;
149     font-family: serif;
150     font-transform: small-caps;
151     font-style: italic;
152     }
153    
154     .fig > .caption:before {
155 wakaba 1.5 content: "図: ";
156     }
157     .fig > .caption:lang(en):before {
158     content: "Figure. ";
159     }
160     .fig.example > .caption:before {
161 wakaba 1.3 content: "例: ";
162     }
163 wakaba 1.5 .fig.example > .caption:lang(en):before {
164 wakaba 1.2 content: "Example. ";
165     }
166    
167 wakaba 1.3 /* Inline Captions */
168    
169     p .caption {
170     font-weight: bolder;
171     font-family: sans-serif;
172     }
173     /* Example: <p class="note"><span class="caption">Note.</span> ...</p> */
174    
175     /* Phrases */
176    
177     code.uri, code.mail {
178     font-size: smaller;
179     font-style: italic;
180     font-family: "Times New Roman", "Times", serif;
181     }
182    
183     h2|code[class~="uri"]:before, h2|code[class~="mail"]:before {
184     content: "<";
185     }
186     h2|code[class~="uri"]:after, h2|code[class~="mail"]:after {
187     content: ">";
188     }
189     /* Note. Some XHTML 1 documents have enclosing "<" and ">" and
190     others does not. */
191    
192     h2|code[class~="file"]:before, h2|code[class~="file"]:after {
193     content: '"';
194     color: graytext;
195     }
196    
197     code.math, code[class~="uri"] {
198     font-family: "Times New Roman", "Times", serif;
199     }
200    
201 wakaba 1.5 .qname-prefix {
202     font-style: italic;
203     font-family: "Times New Roman", "Times", serif;
204     }
205    
206 wakaba 1.2 /* Emphasis */
207    
208     .weak {
209     font-size: 80%;
210     color: GrayText;
211     background-color: transparent;
212     }
213    
214     /* Footer */
215    
216 wakaba 1.3 .footer, *|*[class~="footer"],
217     /* Old styles (discouraged) */
218     #footer, #FOOTER, body > address, body > .update
219     {
220     margin: 2em 0 0 0;
221     border-top: gray 1px solid;
222     padding-top: 10px;
223     }
224    
225     /* Old style footer (discouraged) */
226     body address + .update {
227     margin: 0;
228     border-top: gray 0 none;
229     padding-top: 0;
230     }
231    
232     .update:before, *|*[class~="update"]:before {
233 wakaba 1.2 content: "修正: ";
234     }
235 wakaba 1.3 .update:lang(en):before, *|*[class~="update"]:lang(en):before {
236 wakaba 1.2 content: "Modified: ";
237     }
238    
239     #w3c-html, #w3c-css {
240     float: right;
241     width: 88px;
242     height: 31px;
243     border: none;
244     }
245 wakaba 1.1
246     /* License
247    
248 wakaba 1.3 Copyright 2003-2005 Wakaba <w@suika.fam.cx>.
249 wakaba 1.1
250     This program is free software; you can redistribute it and/or modify
251     it under the terms of the GNU General Public License as published by
252     the Free Software Foundation; either version 2 of the License, or
253     (at your option) any later version.
254    
255     This program is distributed in the hope that it will be useful,
256     but WITHOUT ANY WARRANTY; without even the implied warranty of
257     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
258     GNU General Public License for more details.
259    
260     You should have received a copy of the GNU General Public License
261     along with this program; see the file COPYING. If not, write to
262     the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
263     Boston, MA 02111-1307, USA.
264    
265     */
266    
267 wakaba 1.5 /* $Date: 2005/02/15 12:34:12 $ */

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24