/[suikacvs]/webroot/www/style/html/xhtml1.css
Suika

Contents of /webroot/www/style/html/xhtml1.css

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.29 - (hide annotations) (download) (as text)
Thu Nov 6 13:49:08 2008 UTC (17 years, 2 months ago) by wakaba
Branch: MAIN
Changes since 1.28: +15 -1 lines
File MIME type: text/css
++ style/html/ChangeLog	6 Nov 2008 13:47:00 -0000
2008-11-06  Wakaba  <wakaba@suika.fam.cx>

	* xhtml1.css: Show a feed icon for rel=feed links.

++ ChangeLog	6 Nov 2008 13:44:31 -0000
2008-11-06  Wakaba  <wakaba@suika.fam.cx>

	* images/: New directory.

++ style/images/ChangeLog	6 Nov 2008 13:44:18 -0000
2008-11-06  Wakaba  <wakaba@suika.fam.cx>

	* LICENSE: New file.

	* feed.png: New file.

1 wakaba 1.1 @charset 'iso-2022-jp';
2     @namespace 'http://www.w3.org/1999/xhtml';
3     @namespace xml 'http://www.w3.org/XML/1998/namespace';
4    
5     html {
6     display: block;
7     line-height: 2.0;
8     }
9     head {
10     display: none;
11     }
12    
13     body {
14     display: block;
15     margin: 1em 1.5em;
16     }
17    
18 wakaba 1.3 blockquote, table {
19     margin: 1em 2em;
20     }
21    
22 wakaba 1.1 h1, h2, h3, h4, h5, h6 {
23     display: block;
24     line-height: 1.5;
25     font-size: 120%;
26     font-weight: bolder;
27 wakaba 1.12 font-family: sans-serif;
28 wakaba 1.4 text-align: left;
29 wakaba 1.1 }
30    
31 wakaba 1.16 @media print {
32     h1, h2, h3, h4, h5, h6 {
33     page-break-after: avoid;
34     }
35     }
36    
37 wakaba 1.1 h1 {
38     text-align: center;
39     font-size: 140%;
40     }
41    
42 wakaba 1.4 h3:before {
43     content: "\0025B6" " ";
44     }
45    
46     h4:before {
47     content: "\0025B7" " ";
48     }
49    
50 wakaba 1.1 p {
51     display: block;
52     text-indent: 1em;
53     margin: 0 1em;
54     text-align: justify;
55     }
56 wakaba 1.8 p:lang(en) {
57     text-indent: 2em;
58     }
59 wakaba 1.1
60     ul, ol, dl {
61     display: block;
62 wakaba 1.14 margin: 1em;
63 wakaba 1.1 padding: 0;
64     }
65    
66 wakaba 1.14 p + ul, p + ol, p + dl,
67     p > ul, p > ol, p > dl {
68     margin-left: 3em;
69     }
70    
71 wakaba 1.1 dt, li {
72     display: list-item;
73     margin-left: 1em;
74     padding-left: 0.5em;
75 wakaba 1.22 text-indent: 0;
76 wakaba 1.20 text-align: justify;
77 wakaba 1.1 }
78 wakaba 1.10 ul li {
79     list-style: disc;
80     }
81     dt dt, ul li ul li {
82 wakaba 1.1 list-style: square;
83     }
84 wakaba 1.10 ol li {
85     list-style: decimal;
86     }
87     ol li ol li {
88     list-style: lower-alpha;
89     }
90 wakaba 1.9
91 wakaba 1.24 li > ul:first-child, li > ol:first-child, li > dl:first-child,
92     dd > ul:first-child, dd > ol:first-child, dd > dl:first-child {
93     margin-top: 0;
94     }
95    
96 wakaba 1.29 li > ul,
97     li > ol,
98     li > dl {
99     margin-top: 0;
100     }
101    
102 wakaba 1.24 li > ul:last-child, li > ol:last-child, li > dl:last-child,
103     dd > ul:last-child, dd > ol:last-child, dd > dl:last-child {
104     margin-bottom: 0;
105     }
106    
107 wakaba 1.9 dt {
108 wakaba 1.10 font-weight: normal;
109     list-style: disc;
110 wakaba 1.9 }
111    
112 wakaba 1.1 dd {
113 wakaba 1.9 display: block;
114 wakaba 1.28 margin-left: 0;
115     padding-left: 3em;
116 wakaba 1.9 list-style-type: none;
117 wakaba 1.1 }
118    
119 wakaba 1.16 @media print {
120     dt {
121     page-break-after: avoid;
122     }
123     dd {
124     page-break-before: avoid;
125     }
126     }
127    
128 wakaba 1.17 ul > li:first-child:last-child {
129 wakaba 1.1 list-style: disc;
130     }
131    
132 wakaba 1.22 li > p:first-child,
133     dd > p:first-child {
134     text-indent: 0;
135     }
136    
137 wakaba 1.1 blockquote {
138     display: block;
139 wakaba 1.3 border-left: 1em double rgb(204, 0, 0);
140     padding-left: 1em;
141     }
142    
143     blockquote > cite {
144     display: block;
145     margin-right: 2em;
146     text-align: right;
147     }
148     /* XML Alternate: H3|credit */
149    
150     blockquote > cite:before {
151     display: inline;
152     content: "$B!=!=(B " !important;
153     }
154     blockquote > cite:after {
155     display: inline;
156     content: "" !important;
157 wakaba 1.1 }
158    
159 wakaba 1.2 table {
160     margin-left: auto;
161     margin-right: auto;
162     }
163    
164 wakaba 1.4 /* Physical Blocks */
165    
166     pre {
167     display: block;
168 wakaba 1.22 margin: 0 1em;
169 wakaba 1.4 overflow: auto;
170     font-family: "Courier New", "Courier", monospace;
171     }
172    
173 wakaba 1.3 /* Phrase */
174 wakaba 1.2
175 wakaba 1.1 code {
176     font-family: "Courier New", "Courier", monospace;
177     letter-spacing: 0.1em;
178 wakaba 1.10 background-color: transparent;
179     color: orangered;
180 wakaba 1.1 }
181    
182 wakaba 1.4 var {
183 wakaba 1.13 border-bottom-style: solid;
184     border-bottom-width: 1px;
185     padding-bottom: 0.025em;
186 wakaba 1.4 font-style: normal;
187 wakaba 1.13 text-decoration: none;
188 wakaba 1.1 }
189 wakaba 1.4 var:lang(en) {
190 wakaba 1.14 border-bottom-style: none;
191 wakaba 1.4 font-family: "Times New Roman", serif;
192     font-style: italic;
193     text-decoration: none;
194 wakaba 1.1 }
195    
196 wakaba 1.24 dfn:lang(en) > var:lang(en):only-child {
197     font-style: inherit;
198     }
199    
200 wakaba 1.16 /* Abbrevitions */
201     abbr[title] {
202     border-style: none;
203 wakaba 1.22 text-transform: none;
204     font-variant: normal;
205 wakaba 1.16 font-style: normal;
206     font-size: 100%;
207     }
208    
209 wakaba 1.17 dfn:lang(en) abbr[title] {
210     font-style: italic;
211     }
212    
213 wakaba 1.16 @media screen {
214     abbr[title] {
215     border-bottom: 1px dotted #FF0080;
216     padding-bottom: 0.025em;
217     cursor: help;
218     }
219     }
220    
221 wakaba 1.12 /* Defining Instances */
222 wakaba 1.3 dfn {
223     font-style: normal;
224     font-weight: bolder;
225 wakaba 1.27 /* font-family: sans-serif; */
226 wakaba 1.14 font-size: 100%;
227 wakaba 1.3 }
228 wakaba 1.4 dfn:lang(en) {
229     font-style: italic;
230     font-weight: normal;
231 wakaba 1.27 /* font-family: "Times New Roman", "Times", serif; */
232 wakaba 1.4 }
233 wakaba 1.3
234 wakaba 1.24 dfn:lang(en) dfn:lang(en) {
235     font-style: normal;
236     }
237    
238 wakaba 1.18 dfn:lang(en) em {
239     font-style: normal;
240     }
241    
242 wakaba 1.23 /* One of the last resorts */
243     i:lang(en) {
244     font-style: italic;
245     text-decoration: none;
246     }
247    
248     /* Term instance (HTML5) */
249     /* Though this definition is now obsolete, some old documents
250     have used it. */
251 wakaba 1.15 i {
252     border-style: none;
253     font-style: normal;
254     font-size: 100%;
255     text-decoration: none;
256     }
257    
258 wakaba 1.5 /* Inputs */
259 wakaba 1.3 kbd {
260 wakaba 1.18 margin: 0 0.3em;
261     border: dotted #C0C0C0 1px;
262     padding: 0.2em 0.3em;
263 wakaba 1.3 font-family: "Courier New", "Courier", monospace;
264     font-size: 100%;
265     line-height: 1.1;
266     }
267    
268 wakaba 1.2 em {
269 wakaba 1.14 border-bottom-style: solid;
270     border-bottom-width: 1px;
271     padding-bottom: 0.03em;
272 wakaba 1.2 font-style: normal;
273 wakaba 1.14 text-decoration: none;
274     font-size: 100%;
275 wakaba 1.2 }
276    
277 wakaba 1.3 em:lang(en) {
278 wakaba 1.18 border-bottom-style: none;
279 wakaba 1.3 font-style: italic;
280     text-decoration: none;
281 wakaba 1.2 }
282    
283 wakaba 1.22 em:lang(en) :lang(ja) {
284     font-style: normal;
285     }
286    
287 wakaba 1.13 strong {
288     font-weight: bolder;
289     font-family: sans-serif;
290     }
291     /* Alternate: h1|em */
292    
293 wakaba 1.26 /* HTML5 <mark> */
294     m, mark {
295 wakaba 1.25 text-decoration: underline;
296     }
297 wakaba 1.26 /*
298     NOTE: For compatibility with old documents that use |m| as
299     element names, we keep |m| in the selector as is.
300     */
301 wakaba 1.25
302 wakaba 1.14 /* Citations and quotations */
303    
304 wakaba 1.1 /*
305     * $B8@8l>pJs$G>l9gJ,$1$9$k$N$O@5$7$/$J$$$,!"8=:_$N(B CSS
306     * $B$K$OMQ;z7O$NA*Br;R$,$J$$$+$i!"6a;wE*$K$3$l$r;H$&!#(B
307     */
308    
309 wakaba 1.14 :lang(ja) > cite {
310     quotes: none;
311 wakaba 1.1 font-style: normal;
312     }
313 wakaba 1.14 :lang(ja) > cite:before {
314     content: "$B!X(B";
315 wakaba 1.1 }
316 wakaba 1.14 :lang(ja) > cite:after {
317     content: "$B!Y(B";
318 wakaba 1.1 }
319 wakaba 1.14
320 wakaba 1.12 cite:lang(ja) cite {
321 wakaba 1.14 quotes: none;
322 wakaba 1.12 }
323 wakaba 1.14 cite:lang(ja) cite:before { content: "$B!V(B" }
324     cite:lang(ja) cite:after { content: "$B!W(B" }
325    
326 wakaba 1.1 [lang|="en"] cite, [xml|lang|="en"] cite {
327     quotes: none;
328     font-style: italic;
329     }
330     [lang|="en"] cite cite, [xml|lang|="en"] cite cite {
331     quotes: none;
332     font-style: normal;
333     }
334     [lang|="en"] cite:before, [xml|lang|="en"] cite:before,
335     [lang|="en"] cite:after, [xml|lang|="en"] cite:after {
336 wakaba 1.22 content: "";
337     content: normal;
338 wakaba 1.1 }
339    
340 wakaba 1.14 :lang(ja) > q {
341     quotes: none;
342     }
343     :lang(ja) > q:before {
344 wakaba 1.21 content: " $B!V(B";
345 wakaba 1.14 }
346     :lang(ja) > q:after {
347 wakaba 1.21 content: "$B!W(B ";
348 wakaba 1.14 }
349    
350 wakaba 1.17 :lang(ja) > q q:before {
351 wakaba 1.21 content: " $B!X(B";
352 wakaba 1.17 }
353    
354     :lang(ja) > q q:after {
355 wakaba 1.21 content: "$B!Y(B ";
356 wakaba 1.17 }
357    
358 wakaba 1.20 :lang(en) > q {
359 wakaba 1.22 quotes: none;
360 wakaba 1.20 }
361    
362     :lang(en) > q:before {
363 wakaba 1.21 content: " $B!H(B";
364 wakaba 1.20 }
365    
366     :lang(en) > q:after {
367 wakaba 1.21 content: "$B!I(B ";
368 wakaba 1.20 }
369    
370 wakaba 1.16 /* Tables */
371 wakaba 1.3
372     table {
373 wakaba 1.6 border: 1px solid gray;
374     border-spacing: 0;
375 wakaba 1.3 }
376    
377     thead, tfoot, th {
378 wakaba 1.6 font-weight: bolder;
379 wakaba 1.14 font-family: sans-serif;
380 wakaba 1.3 }
381    
382     td, th {
383     padding: 0.2em 0.4em;
384 wakaba 1.6 border: 1px solid #E0E0E0;
385 wakaba 1.16 empty-cells: show;
386 wakaba 1.3 }
387    
388 wakaba 1.6 th[scope="row"], th[scope="rowgroup"] {
389     text-align: left;
390     border-right: 1px solid #C0C0C0;
391 wakaba 1.1 }
392 wakaba 1.6 th[scope="col"], th[scope="colgroup"] {
393     text-align: center;
394     border-bottom: 1px solid #C0C0C0;
395 wakaba 1.1 }
396    
397 wakaba 1.5 /* Subscripts and Superscripts */
398    
399     sub {
400     vertical-align: sub;
401     font-size: 80%;
402     }
403     sup {
404     vertical-align: top;
405     font-size: 80%;
406     }
407    
408    
409 wakaba 1.3 /* Edit */
410    
411     ins {
412 wakaba 1.14 border-bottom-style: solid;
413     border-bottom-width: 1px;
414     padding-bottom: 0.03em;
415 wakaba 1.5 background-color: rgb(255, 255, 153);
416 wakaba 1.3 color: black;
417 wakaba 1.14 font-style: normal;
418     text-decoration: none;
419 wakaba 1.5 }
420    
421     body > ins {
422     display: block;
423     text-decoration: none;
424 wakaba 1.3 }
425    
426     del {
427     background-color: #FFBBBB;
428     color: black;
429 wakaba 1.4 font-size: 80%;
430 wakaba 1.18 text-decoration: line-through;
431 wakaba 1.3 }
432    
433 wakaba 1.5 body > del {
434     display: block;
435     }
436    
437 wakaba 1.3 /* Footer */
438    
439     address {
440     font-style: normal;
441     font-size: 100%;
442     }
443    
444 wakaba 1.9 /* Hyperlinks */
445    
446 wakaba 1.13 a:link, a:visited {
447     text-decoration: none;
448     border-bottom-style: solid;
449     border-bottom-width: 1px;
450     padding-bottom: 0.05em;
451     }
452    
453 wakaba 1.9 [href^="#"]:link, [href^="#"]:visited {
454     text-decoration: none !important;
455     border-bottom: dotted 1px !important;
456     }
457    
458     a:hover {
459     background-color: #FFA;
460     color: #000080;
461     }
462    
463 wakaba 1.29 a[rel~=feed] {
464     background-image: url(../images/feed); /* 16x16 */
465     background-repeat: no-repeat;
466     background-position: left center;
467     margin-left: 4px;
468     padding-left: 20px;
469     }
470    
471 wakaba 1.10 /* Forms */
472    
473     textarea {
474     vertical-align: top;
475     }
476    
477 wakaba 1.1 /* License
478    
479 wakaba 1.4 Copyright 2003-2005 Wakaba <w@suika.fam.cx>.
480 wakaba 1.1
481     This program is free software; you can redistribute it and/or modify
482     it under the terms of the GNU General Public License as published by
483     the Free Software Foundation; either version 2 of the License, or
484     (at your option) any later version.
485    
486     This program is distributed in the hope that it will be useful,
487     but WITHOUT ANY WARRANTY; without even the implied warranty of
488     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
489     GNU General Public License for more details.
490    
491     You should have received a copy of the GNU General Public License
492     along with this program; see the file COPYING. If not, write to
493     the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
494     Boston, MA 02111-1307, USA.
495    
496     */
497    
498 wakaba 1.29 /* $Date: 2008/10/30 13:51:21 $ */

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24