/[suikacvs]/webroot/www/style/html/xhtml2-2005.css
Suika

Contents of /webroot/www/style/html/xhtml2-2005.css

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download) (as text)
Sat Mar 10 09:44:45 2007 UTC (17 years, 2 months ago) by wakaba
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +2 -2 lines
File MIME type: text/css
Support for modern lower-case identifiers; xhtml2:ol list-style-type is changed to traditional value of decimal; no text-align: justify for ::before in xhtml2

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

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24