/[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.2 - (hide annotations) (download) (as text)
Fri Mar 3 07:21:11 2006 UTC (20 years, 3 months ago) by wakaba
Branch: MAIN
Changes since 1.1: +61 -2 lines
File MIME type: text/css
Some rules moved |spec.css| from |common-class.css|

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     }
44    
45     div.section {
46     clear: both;
47     }
48    
49     html.formal-specification div.section#ABSTRACT,
50     html.formal-specification div.section#STATUS {
51     counter-increment: none;
52     }
53    
54     html.formal-specification h1,
55     html.formal-specification h2,
56     html.formal-specification h3,
57     html.formal-specification h4,
58     html.formal-specification h5,
59     html.formal-specification h6 {
60     color: #400080;
61     background-color: transparent;
62     }
63    
64     h2, div.appendix h3 {
65     font-size: 140%;
66     counter-increment: chapter;
67     counter-reset: section;
68     }
69    
70     h2:before {
71     content: "";
72     content: counter(chapter) ". ";
73     }
74    
75     div.appendix h3:before {
76     content: counter(appendix, upper-alpha) "." counter(chapter) ". ";
77     }
78    
79     html.formal-specification div.header > h2,
80     html.formal-specification div.section#ABSTRACT > h2,
81     html.formal-specification div.section#STATUS > h2 {
82     counter-increment: none;
83     }
84    
85     html.formal-specification div.header > h2:before,
86     html.formal-specification div.section#ABSTRACT > h2:before,
87     html.formal-specification div.section#STATUS > h2:before {
88     content: "";
89     content: normal;
90     counter-increment: none;
91     }
92    
93     h3, div.appendix h4 {
94     counter-increment: section;
95     counter-reset: subsection;
96     font-size: 120%;
97     }
98    
99     h3:before {
100     content: "";
101     content: counter(chapter) "." counter(section) ". ";
102     }
103    
104     html.formal-specification h4:before {
105     content: "";
106     content: counter(appendix, upper-alpha) "."
107     counter(chapter) "." counter(section) ". ";
108     counter-reset: subsection;
109     }
110    
111     html.formal-specification h5:before {
112     content: "";
113     content: counter(appendix, upper-alpha) "."
114     counter(chapter) "." counter(section) "."
115     counter(subsection)". ";
116     counter-increment: subsection;
117     }
118    
119     div.section.normative h2:after {
120     content: " (規定) ";
121     }
122     div.section.normative h2:lang(en):after {
123     content: " (Normative) ";
124     }
125     div#REFERENCE.section.normative h2:after {
126     display: none;
127     content: "";
128     }
129    
130     div.section.informative > h2:after,
131     div.section.informative > h3:after {
132     content: " (参考) ";
133     }
134     div.section.informative > h2:lang(en):after,
135     div.section.informative > h3:lang(en):after {
136     content: " (Informative) ";
137     }
138     div#INFORMATIVE-REFERENCE.section.informative > h2:after {
139     display: none;
140     content: "";
141     }
142    
143     div.appendix {
144     margin-top: 5em;
145     border-top: solid black 1px;
146     padding-top: 1em;
147     counter-reset: chapter;
148     counter-increment: appendix;
149     }
150    
151     @media print {
152     div.appendix {
153     border-style: none;
154     page-break-before: always;
155     }
156     }
157    
158     div.appendix h2 {
159     counter-increment: none;
160     text-align: center;
161     }
162    
163     div.appendix h2:before {
164     content: "附属書";
165     content: "附属書 " counter(appendix, upper-alpha);
166     display: block;
167     }
168    
169     div.appendix h2:after {
170     display: block;
171     color: gray;
172     font-size: 70%;
173     font-weight: normal;
174     }
175    
176     /* --- Term Definition --- */
177    
178     dl.term-definition {
179     counter-reset: term;
180     }
181    
182     html.formal-specification div.section div.section
183     dl.term-definition > dd + dt {
184     margin-top: 1em;
185     }
186    
187     html.formal-specification div.section div.section
188     dl.term-definition > dt:first-child:before,
189     html.formal-specification div.section div.section
190     dl.term-definition > dd + dt:before {
191     display: block;
192     content: counter(chapter) "." counter(section) "." counter(term) ". ";
193     counter-increment: term;
194     }
195    
196    
197 wakaba 1.2 /* --- References --- */
198    
199     .standard-number,
200     .standard-section,
201     .standard-this {
202     font-family: sans-serif;
203     font-weight: bolder;
204     text-decoration: none;
205     }
206    
207     cite.bibref.normative {
208     color: red;
209     }
210    
211     cite.bibref.informative {
212     color: green;
213     }
214     div.reference > dl > dt,
215     #REFERENCE > dl > dt {
216     width: 7em;
217     float: left;
218     clear: left;
219     list-style: none;
220     font-weight: normal;
221     }
222    
223     div.normative.reference > dl > dt {
224     color: red;
225     background-color: transparent;
226     }
227    
228     div.informative.reference > dl > dt {
229     color: green;
230     background-color: transparent;
231     }
232    
233     div.reference > dl > dt:before,
234     div#REFERENCE > dl > dt:before {
235     content: "[";
236     }
237    
238     div.reference > dl > dt:after,
239     div#REFERENCE > dl > dt:after {
240     content: "]";
241     }
242    
243     div.reference > dl > dd,
244     div#REFERENCE > dl > dd {
245     margin-left: 1em;
246     margin-bottom: 1em;
247     padding-left: 1em;
248     }
249    
250     div.reference > dl > dd + dd,
251     div#REFERENCE > dl > dd + dd {
252     margin-left: 9.5em;
253     }
254    
255    
256 wakaba 1.1 /* License
257    
258 wakaba 1.2 Copyright 2004-2006 Wakaba <w@suika.fam.cx>.
259 wakaba 1.1
260     This program is free software; you can redistribute it and/or modify
261     it under the terms of the GNU General Public License as published by
262     the Free Software Foundation; either version 2 of the License, or
263     (at your option) any later version.
264    
265     This program is distributed in the hope that it will be useful,
266     but WITHOUT ANY WARRANTY; without even the implied warranty of
267     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
268     GNU General Public License for more details.
269    
270     You should have received a copy of the GNU General Public License
271     along with this program; see the file COPYING. If not, write to
272     the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
273     Boston, MA 02111-1307, USA.
274    
275     */
276    
277 wakaba 1.2 /* $Date: 2005/12/13 13:26:11 $ */

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24