/[suikacvs]/test/suikawebwww/style/html/spec.css
Suika

Contents of /test/suikawebwww/style/html/spec.css

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (hide annotations) (download) (as text)
Sun Oct 7 09:18:13 2007 UTC (18 years, 8 months ago) by wakaba
Branch: MAIN
Changes since 1.5: +2 -2 lines
File MIME type: text/css
*** empty log message ***

1 wakaba 1.1 @charset 'iso-2022-jp';
2     @import 'xhtml.css';
3    
4     /* Document Header in Body */
5    
6     div.header {
7     display: block;
8     padding-bottom: 1em;
9     border-bottom: 2px groove #C0C0C0;
10     }
11    
12     /* Title */
13     html.formal-specification h1 {
14     margin-bottom: 0;
15     text-align: left;
16     line-height: 1.5;
17     font-size: 170%;
18     }
19    
20     html.formal-specification h1 + h1:lang(en) {
21     margin-top: 0;
22     font-size: 120%;
23     }
24    
25     @media screen {
26     html.formal-specification h1 + h1:lang(en) {
27     opacity: 0.3;
28     }
29     }
30    
31     /* Status and Date */
32     html.formal-specification h1 + h2 {
33     margin-top: 0.67em;
34     text-align: left;
35     line-height: 1.5;
36     font-size: 140%;
37     }
38    
39     /* --- Sections --- */
40    
41     body {
42     counter-reset: chapter appendix;
43 wakaba 1.5 padding-left: 2em;
44 wakaba 1.1 }
45    
46     div.section {
47     clear: both;
48     }
49    
50 wakaba 1.3 html.formal-specification div.section#abstract,
51 wakaba 1.1 html.formal-specification div.section#ABSTRACT,
52 wakaba 1.3 html.formal-specification div.section#status,
53 wakaba 1.1 html.formal-specification div.section#STATUS {
54     counter-increment: none;
55     }
56    
57     html.formal-specification h1,
58     html.formal-specification h2,
59     html.formal-specification h3,
60     html.formal-specification h4,
61     html.formal-specification h5,
62     html.formal-specification h6 {
63     color: #400080;
64     background-color: transparent;
65     }
66    
67     h2, div.appendix h3 {
68     font-size: 140%;
69     counter-increment: chapter;
70     counter-reset: section;
71     }
72    
73     h2:before {
74     content: "";
75     content: counter(chapter) ". ";
76     }
77    
78     div.appendix h3:before {
79     content: counter(appendix, upper-alpha) "." counter(chapter) ". ";
80     }
81    
82     html.formal-specification div.header > h2,
83 wakaba 1.3 html.formal-specification div.section#abstract > h2,
84 wakaba 1.1 html.formal-specification div.section#ABSTRACT > h2,
85 wakaba 1.3 html.formal-specification div.section#status > h2,
86 wakaba 1.1 html.formal-specification div.section#STATUS > h2 {
87     counter-increment: none;
88     }
89    
90     html.formal-specification div.header > h2:before,
91 wakaba 1.3 html.formal-specification div.section#abstract > h2:before,
92 wakaba 1.1 html.formal-specification div.section#ABSTRACT > h2:before,
93 wakaba 1.3 html.formal-specification div.section#status > h2:before,
94 wakaba 1.1 html.formal-specification div.section#STATUS > h2:before {
95     content: "";
96     content: normal;
97     counter-increment: none;
98     }
99    
100     h3, div.appendix h4 {
101     counter-increment: section;
102     counter-reset: subsection;
103     font-size: 120%;
104     }
105    
106     h3:before {
107     content: "";
108     content: counter(chapter) "." counter(section) ". ";
109     }
110    
111     html.formal-specification h4:before {
112     content: "";
113     content: counter(appendix, upper-alpha) "."
114     counter(chapter) "." counter(section) ". ";
115     counter-reset: subsection;
116     }
117    
118     html.formal-specification h5:before {
119     content: "";
120     content: counter(appendix, upper-alpha) "."
121     counter(chapter) "." counter(section) "."
122     counter(subsection)". ";
123     counter-increment: subsection;
124     }
125    
126     div.section.normative h2:after {
127     content: " (規定) ";
128     }
129     div.section.normative h2:lang(en):after {
130     content: " (Normative) ";
131     }
132 wakaba 1.3 #reference.section.normative h2:after,
133     #REFERENCE.section.normative h2:after {
134 wakaba 1.1 display: none;
135     content: "";
136     }
137    
138     div.section.informative > h2:after,
139     div.section.informative > h3:after {
140     content: " (参考) ";
141     }
142     div.section.informative > h2:lang(en):after,
143     div.section.informative > h3:lang(en):after {
144     content: " (Informative) ";
145     }
146 wakaba 1.3 .reference.section.informative > h2:after,
147     .reference.section.informative > h3:after,
148     #INFORMATIVE-REFERENCE.section.informative > h2:after {
149 wakaba 1.1 display: none;
150     content: "";
151     }
152    
153     div.appendix {
154     margin-top: 5em;
155     border-top: solid black 1px;
156     padding-top: 1em;
157     counter-reset: chapter;
158     counter-increment: appendix;
159     }
160    
161     @media print {
162     div.appendix {
163     border-style: none;
164     page-break-before: always;
165     }
166     }
167    
168     div.appendix h2 {
169     counter-increment: none;
170     text-align: center;
171     }
172    
173     div.appendix h2:before {
174     content: "附属書";
175     content: "附属書 " counter(appendix, upper-alpha);
176     display: block;
177     }
178    
179     div.appendix h2:after {
180     display: block;
181     color: gray;
182     font-size: 70%;
183     font-weight: normal;
184     }
185    
186 wakaba 1.5 /*
187     Paragraphs at the beginning of sections, such as
188     "This section is non-normative".
189     */
190     .section-info {
191     margin-bottom: 1em;
192     text-indent: 0;
193     line-height: 1.5;
194     }
195     .section-info:lang(en), .section-info:lang(ja) {
196     text-indent: 0;
197     }
198    
199 wakaba 1.4 /* --- Ordered List --- */
200    
201     ol li, ol li ol li, ol li ol li ol li {
202     list-style-type: decimal;
203     }
204    
205 wakaba 1.1 /* --- Term Definition --- */
206    
207     dl.term-definition {
208     counter-reset: term;
209     }
210    
211     html.formal-specification div.section div.section
212     dl.term-definition > dd + dt {
213     margin-top: 1em;
214     }
215    
216     html.formal-specification div.section div.section
217     dl.term-definition > dt:first-child:before,
218     html.formal-specification div.section div.section
219     dl.term-definition > dd + dt:before {
220     display: block;
221     content: counter(chapter) "." counter(section) "." counter(term) ". ";
222     counter-increment: term;
223     }
224    
225    
226 wakaba 1.2 /* --- References --- */
227    
228     .standard-number,
229     .standard-section,
230     .standard-this {
231     font-family: sans-serif;
232     font-weight: bolder;
233     text-decoration: none;
234     }
235    
236     cite.bibref.normative {
237     color: red;
238     }
239    
240     cite.bibref.informative {
241     color: green;
242     }
243     div.reference > dl > dt,
244     #REFERENCE > dl > dt {
245     width: 7em;
246     float: left;
247     clear: left;
248     list-style: none;
249     font-weight: normal;
250     }
251    
252     div.normative.reference > dl > dt {
253     color: red;
254     background-color: transparent;
255     }
256    
257     div.informative.reference > dl > dt {
258     color: green;
259     background-color: transparent;
260     }
261    
262     div.reference > dl > dt:before,
263     div#REFERENCE > dl > dt:before {
264     content: "[";
265     }
266    
267     div.reference > dl > dt:after,
268     div#REFERENCE > dl > dt:after {
269     content: "]";
270     }
271    
272     div.reference > dl > dd,
273     div#REFERENCE > dl > dd {
274 wakaba 1.6 margin-left: 0.5em;
275 wakaba 1.2 margin-bottom: 1em;
276     padding-left: 1em;
277     }
278    
279     div.reference > dl > dd + dd,
280     div#REFERENCE > dl > dd + dd {
281     margin-left: 9.5em;
282     }
283    
284    
285 wakaba 1.1 /* License
286    
287 wakaba 1.4 Copyright 2004-2007 Wakaba <w@suika.fam.cx>.
288 wakaba 1.1
289     This program is free software; you can redistribute it and/or modify
290     it under the terms of the GNU General Public License as published by
291     the Free Software Foundation; either version 2 of the License, or
292     (at your option) any later version.
293    
294     This program is distributed in the hope that it will be useful,
295     but WITHOUT ANY WARRANTY; without even the implied warranty of
296     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
297     GNU General Public License for more details.
298    
299     You should have received a copy of the GNU General Public License
300     along with this program; see the file COPYING. If not, write to
301     the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
302     Boston, MA 02111-1307, USA.
303    
304     */
305    
306 wakaba 1.6 /* $Date: 2007/10/01 11:36:43 $ */

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24