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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (hide annotations) (download) (as text)
Tue Mar 8 11:58:04 2005 UTC (20 years, 2 months ago) by wakaba
Branch: MAIN
Changes since 1.6: +4 -1 lines
File MIME type: text/css
Use toc.xbl

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

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24