/[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.5 - (show annotations) (download) (as text)
Tue Feb 15 11:02:46 2005 UTC (21 years, 4 months ago) by wakaba
Branch: MAIN
Changes since 1.4: +21 -11 lines
File MIME type: text/css
Rules added

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

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24