/[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.8 - (hide annotations) (download) (as text)
Mon Mar 14 00:40:15 2005 UTC (20 years, 1 month ago) by wakaba
Branch: MAIN
Changes since 1.7: +4 -1 lines
File MIME type: text/css
New style added

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

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24