/[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.4 - (hide annotations) (download) (as text)
Mon Jul 25 08:46:14 2005 UTC (19 years, 9 months ago) by wakaba
Branch: MAIN
Changes since 1.3: +27 -19 lines
File MIME type: text/css
xhtml2-dynamic.xbl: New

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.4 ul > label, ol > label, nl > 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.4 /* Ordered Lists */
139    
140     ol {
141     list-style-type: katakana-iroha;
142     }
143    
144     /* Navigation Lists */
145    
146     nl {
147     -moz-user-focus: normal;
148     }
149    
150 wakaba 1.3 nl > li {
151     display: block;
152     list-style-type: none;
153     margin-left: 1em;
154     }
155    
156 wakaba 1.4 nl:hover > li,
157     nl:focus > li {
158 wakaba 1.3 display: block;
159     }
160    
161     nl:hover > label {
162     cursor: pointer;
163     }
164    
165 wakaba 1.4 nl:not(:hover):not(:focus) > li {
166 wakaba 1.3 display: none;
167     }
168    
169 wakaba 1.4 nl:not(:hover):not(:focus) > label {
170 wakaba 1.3 border-bottom-style: none;
171     font-weight: normal;
172     cursor: pointer;
173     }
174    
175 wakaba 1.4 nl:not(:hover):not(:focus) > label:after {
176 wakaba 1.3 content: " \0025BE";
177     }
178    
179    
180 wakaba 1.1 dl {
181     display: block;
182     margin-top: 0.4em;
183     margin-bottom: 0.4em;
184     padding: 0;
185     }
186     di {
187     display: block;
188     margin: 0.3em 1em;
189     padding: 0;
190     }
191     dt {
192     display: list-item;
193     list-style-item: disc;
194     margin: 0;
195     padding: 0 0 0 0.5em;
196     }
197     dd {
198     display: block;
199     display: run-in;
200     margin: 0 0 0 3em;
201     padding: 0;
202     overflow: auto;
203     }
204    
205     /* dl old style */
206     /* Note. dl should have di */
207     dl > dt {
208     margin: 0.3em 0 0 0;
209     border-right: red 2px solid;
210     }
211     dl > dd {
212     margin: 0 0 0.3em 3em;
213     border-right: red 2px solid;
214     }
215    
216     /* Link */
217 wakaba 1.4 h2|*[href], [h2|href] {
218 wakaba 1.1 color: blue;
219     color: -moz-hyperlinktext;
220     border-color: -moz-hyperlinktext;
221 wakaba 1.4 text-decoration: none !important;
222     cursor: pointer;
223 wakaba 1.1 -moz-binding: url(xhtml2-translate.xbl#href);
224     }
225 wakaba 1.4 h2|*[href]:hover, [h2|href]:hover {
226 wakaba 1.1 color: inherit;
227 wakaba 1.4 outline: solid 1px red;
228     -moz-outline: solid 1px red;
229 wakaba 1.1 }
230 wakaba 1.4 h2|*[href]:active, [h2|href]:active {
231 wakaba 1.1 color: -moz-activehyperlinktext;
232     }
233    
234     /*
235     * $B8@8l>pJs$G>l9gJ,$1$9$k$N$O@5$7$/$J$$$,!"8=:_$N(B CSS
236     * $B$K$OMQ;z7O$NA*Br;R$,$J$$$+$i!"6a;wE*$K$3$l$r;H$&!#(B
237     */
238    
239     [xml|lang|="ja"] cite {
240     quotes: "$B!X(B" "$B!Y(B" "$B!V(B" "$B!W(B";
241     font-style: normal;
242     }
243     [xml|lang|="ja"] cite:before {
244     content: open-quote;
245     }
246     [xml|lang|="ja"] cite:after {
247     content: close-quote;
248     }
249     [xml|lang|="en"] cite {
250     quotes: none;
251     font-style: italic;
252     }
253     [xml|lang|="en"] cite cite {
254     quotes: none;
255     font-style: normal;
256     }
257     [xml|lang|="en"] cite:before,
258     [xml|lang|="en"] cite:after {
259     content: none;
260     }
261    
262     var {
263     font-style: italic;
264     text-decoration: none;
265     }
266     var:lang(ja) {
267 wakaba 1.2 border-bottom-style: solid;
268     border-bottom-width: 1px;
269     padding-bottom: 0.03em;
270     text-decoration: none;
271     font-style: normal;
272 wakaba 1.1 }
273     var:lang(en) {
274     font-family: "Times New Roman", serif;
275     }
276    
277     th[scope="row"] {
278     text-align: left;
279     }
280     th[scope="col"] {
281     text-align: center;
282     }
283    
284     /* Edit */
285    
286     h2|*[edit="inserted"] {
287     background-color: rgb(255, 255, 153);
288     color: black;
289     }
290    
291     h2|*[edit="deleted"] {
292     background-color: #FFBBBB;
293     color: black;
294 wakaba 1.4 text-decoration: line-through;
295 wakaba 1.1 }
296    
297     h2|*[edit="changed"] {
298     background-color: rgb(153, 255, 153);
299     color: black;
300     }
301    
302     h2|*[edit="moved"] {
303    
304     }
305    
306     /* License
307    
308     Copyright 2003-2005 Wakaba <w@suika.fam.cx>.
309    
310     This program is free software; you can redistribute it and/or modify
311     it under the terms of the GNU General Public License as published by
312     the Free Software Foundation; either version 2 of the License, or
313     (at your option) any later version.
314    
315     This program is distributed in the hope that it will be useful,
316     but WITHOUT ANY WARRANTY; without even the implied warranty of
317     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
318     GNU General Public License for more details.
319    
320     You should have received a copy of the GNU General Public License
321     along with this program; see the file COPYING. If not, write to
322     the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
323     Boston, MA 02111-1307, USA.
324    
325     */
326    
327 wakaba 1.4 /* $Date: 2005/07/22 14:44:07 $ */

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24