/[suikacvs]/test/suikawebwww/style/html/xhtml2-2005.css
Suika

Contents of /test/suikawebwww/style/html/xhtml2-2005.css

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (hide annotations) (download) (as text)
Fri Jul 22 14:44:07 2005 UTC (19 years, 9 months ago) by wakaba
Branch: MAIN
Changes since 1.2: +33 -1 lines
File MIME type: text/css
nl auto-expantion supported

1 wakaba 1.1 @import 'http://suika.fam.cx/www/style/ui/toc-style-float';
2     @namespace 'http://www.w3.org/2002/06/xhtml2/';
3     @namespace h2 'http://www.w3.org/2002/06/xhtml2/';
4    
5     html {
6     display: block;
7     line-height: 2.0;
8     }
9     head {
10     display: block;
11     max-width: 0;
12     max-height: 0;
13     visibility: hidden;
14     overflow: hidden;
15     }
16    
17     title {
18     display: inline;
19     -moz-binding: url(../ui/title.xbl#title);
20     }
21    
22     link {
23     display: inline;
24     -moz-binding: url(xhtml2-translate.xbl#copy-as-child);
25     }
26    
27     meta {
28     display: inline;
29     -moz-binding: url(xhtml2-translate.xbl#meta);
30     }
31    
32     body {
33     display: block;
34     margin: 1em 1.5em;
35     }
36    
37     section {
38     display: block;
39     margin: 1em 0.5em;
40     }
41    
42     section + section {
43     margin-top: 1em;
44     }
45    
46     h {
47     display: block;
48     margin-left: -0.5em;
49     margin-bottom: 0.5em;
50     font-size: 120%;
51     font-weight: bolder;
52 wakaba 1.2 font-family: sans-serif;
53 wakaba 1.1 line-height: 1.2;
54     text-align: left;
55     }
56    
57     body > h { /* h1 */
58     margin-left: 2em;
59     margin-right: 2em;
60     text-align: center;
61     font-size: 140%;
62     }
63    
64     section section h:before /* h3 */ {
65     content: "\0025B6" " ";
66     }
67    
68     section section section h:before /* h4 */ {
69     content: "\0025B7" " ";
70     }
71    
72     /* Paragraphs */
73    
74     p {
75     display: block;
76     margin: 0.3em 0;
77     padding: 0;
78     text-indent: 1em;
79     text-align: justify;
80     }
81     p:lang(en) {
82     text-indent: 2em;
83     }
84    
85     l {
86     display: block;
87     }
88    
89     blockquote, blockcode {
90     display: block;
91     }
92    
93     div {
94     display: block;
95     margin: 0.3em 0;
96     padding: 0;
97     }
98    
99     blockcode, code, samp, kbd {
100     font-family: "Courier New", "Courier", monospace;
101     letter-spacing: 0.1em;
102     }
103    
104     /* Phrases */
105    
106     var {
107     font-style: italic;
108     }
109     dfn {
110     font-weight: bolder;
111 wakaba 1.2 font-family: sans-serif;
112 wakaba 1.1 }
113    
114     /* List */
115    
116     ul, ol, nl {
117     display: block;
118     }
119 wakaba 1.3
120 wakaba 1.1 li {
121     display: list-item;
122     margin-left: 2em;
123     padding-left: 0.5em;
124     }
125 wakaba 1.3
126 wakaba 1.1 label {
127 wakaba 1.2 display: block;
128 wakaba 1.3 margin-bottom: 0.5em;
129 wakaba 1.2 border-bottom-style: solid;
130     border-bottom-width: 1px;
131     padding-bottom: 0.03em;
132     text-decoration: none;
133     font-style: normal;
134     font-weight: bolder;
135     font-family: sans-serif;
136 wakaba 1.1 }
137    
138 wakaba 1.3 nl > li {
139     display: block;
140     list-style-type: none;
141     margin-left: 1em;
142     }
143    
144     nl:hover > li {
145     display: block;
146     }
147    
148     nl:hover > label {
149     cursor: pointer;
150     }
151    
152     nl:not(:hover) > li {
153     display: none;
154     }
155    
156     nl:not(:hover) > label {
157     border-bottom-style: none;
158     font-weight: normal;
159     cursor: pointer;
160     }
161    
162     nl:not(:hover) > label:after {
163     content: " \0025BE";
164     }
165    
166    
167 wakaba 1.1 dl {
168     display: block;
169     margin-top: 0.4em;
170     margin-bottom: 0.4em;
171     padding: 0;
172     }
173     di {
174     display: block;
175     margin: 0.3em 1em;
176     padding: 0;
177     }
178     dt {
179     display: list-item;
180     list-style-item: disc;
181     margin: 0;
182     padding: 0 0 0 0.5em;
183     }
184     dd {
185     display: block;
186     display: run-in;
187     margin: 0 0 0 3em;
188     padding: 0;
189     overflow: auto;
190     }
191    
192     /* dl old style */
193     /* Note. dl should have di */
194     dl > dt {
195     margin: 0.3em 0 0 0;
196     border-right: red 2px solid;
197     }
198     dl > dd {
199     margin: 0 0 0.3em 3em;
200     border-right: red 2px solid;
201     }
202    
203     /* Link */
204     [href] {
205     color: blue;
206     cursor: pointer;
207     text-decoration: none !important;
208     border-style: hidden;
209     border-width: 1px;
210     border-color: blue;
211     }
212     [href] {
213     color: -moz-hyperlinktext;
214     border-color: -moz-hyperlinktext;
215     -moz-binding: url(xhtml2-translate.xbl#href);
216     }
217     [href]:hover {
218     color: inherit;
219     border-style: solid;
220     border-width: 1px;
221     border-color: red;
222     }
223     [href]:active {
224     color: -moz-activehyperlinktext;
225     }
226    
227     /*
228     * $B8@8l>pJs$G>l9gJ,$1$9$k$N$O@5$7$/$J$$$,!"8=:_$N(B CSS
229     * $B$K$OMQ;z7O$NA*Br;R$,$J$$$+$i!"6a;wE*$K$3$l$r;H$&!#(B
230     */
231    
232     [xml|lang|="ja"] cite {
233     quotes: "$B!X(B" "$B!Y(B" "$B!V(B" "$B!W(B";
234     font-style: normal;
235     }
236     [xml|lang|="ja"] cite:before {
237     content: open-quote;
238     }
239     [xml|lang|="ja"] cite:after {
240     content: close-quote;
241     }
242     [xml|lang|="en"] cite {
243     quotes: none;
244     font-style: italic;
245     }
246     [xml|lang|="en"] cite cite {
247     quotes: none;
248     font-style: normal;
249     }
250     [xml|lang|="en"] cite:before,
251     [xml|lang|="en"] cite:after {
252     content: none;
253     }
254    
255     var {
256     font-style: italic;
257     text-decoration: none;
258     }
259     var:lang(ja) {
260 wakaba 1.2 border-bottom-style: solid;
261     border-bottom-width: 1px;
262     padding-bottom: 0.03em;
263     text-decoration: none;
264     font-style: normal;
265 wakaba 1.1 }
266     var:lang(en) {
267     font-family: "Times New Roman", serif;
268     }
269    
270     th[scope="row"] {
271     text-align: left;
272     }
273     th[scope="col"] {
274     text-align: center;
275     }
276    
277     /* Edit */
278    
279     h2|*[edit="inserted"] {
280     background-color: rgb(255, 255, 153);
281     color: black;
282     }
283    
284     h2|*[edit="deleted"] {
285     background-color: #FFBBBB;
286     color: black;
287     }
288    
289     h2|*[edit="changed"] {
290     background-color: rgb(153, 255, 153);
291     color: black;
292     }
293    
294     h2|*[edit="moved"] {
295    
296     }
297    
298     /* License
299    
300     Copyright 2003-2005 Wakaba <w@suika.fam.cx>.
301    
302     This program is free software; you can redistribute it and/or modify
303     it under the terms of the GNU General Public License as published by
304     the Free Software Foundation; either version 2 of the License, or
305     (at your option) any later version.
306    
307     This program is distributed in the hope that it will be useful,
308     but WITHOUT ANY WARRANTY; without even the implied warranty of
309     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
310     GNU General Public License for more details.
311    
312     You should have received a copy of the GNU General Public License
313     along with this program; see the file COPYING. If not, write to
314     the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
315     Boston, MA 02111-1307, USA.
316    
317     */
318    
319 wakaba 1.3 /* $Date: 2005/06/22 11:50:18 $ */

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24