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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations) (download) (as text)
Tue Sep 25 13:57:43 2007 UTC (17 years, 7 months ago) by wakaba
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +20 -2 lines
File MIME type: text/css
Don't use custom list-style-type for specs; dl.switch from WHATWG style

1 wakaba 1.1 /*
2     CSS Style Sheet for HTML Articles
3     */
4    
5     @import 'xhtml.css';
6     @namespace 'http://www.w3.org/1999/xhtml';
7    
8     body {
9     counter-reset: chapter appendix;
10     }
11    
12 wakaba 1.2 .section#abstract, .section#references {
13 wakaba 1.1 counter-increment: none;
14     }
15    
16 wakaba 1.2 .section#abstract h2:before, .section#references h2:before {
17     content: "";
18     }
19    
20 wakaba 1.1 h2, .appendix h3 {
21     counter-increment: chapter;
22     counter-reset: section;
23     font-size: 140%;
24     }
25    
26     h2:before {
27     content: "";
28     content: counter(chapter) ". ";
29     }
30    
31     .appendix h3:before {
32     content: counter(appendix, upper-alpha) "." counter(chapter) ". ";
33     }
34    
35     h3, div.appendix h4 {
36     counter-increment: section;
37     counter-reset: subsection;
38     font-size: 120%;
39     }
40    
41     h3:before {
42     content: "";
43     content: counter(chapter) "." counter(section) ". ";
44     }
45    
46     h4:before {
47     content: "";
48     content: counter(appendix, upper-alpha) "."
49     counter(chapter) "." counter(section) ". ";
50     counter-reset: subsection;
51     }
52    
53     h5:before {
54     content: "";
55     content: counter(appendix, upper-alpha) "."
56     counter(chapter) "." counter(section) "."
57     counter(subsection)". ";
58     counter-increment: subsection;
59     }
60    
61 wakaba 1.2 #references dt {
62     display: block;
63     list-type: none;
64     margin-top: 1em;
65     }
66    
67     #references dt:before {
68     content: "[";
69     }
70    
71     #references dt:after {
72     content: "]";
73     }
74    
75 wakaba 1.1 /* License
76    
77     Copyright 2007 Wakaba <w@suika.fam.cx>.
78    
79     This program is free software; you can redistribute it and/or modify
80     it under the terms of the GNU General Public License as published by
81     the Free Software Foundation; either version 2 of the License, or
82     (at your option) any later version.
83    
84     This program is distributed in the hope that it will be useful,
85     but WITHOUT ANY WARRANTY; without even the implied warranty of
86     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
87     GNU General Public License for more details.
88    
89     You should have received a copy of the GNU General Public License
90     along with this program; see the file COPYING. If not, write to
91     the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
92     Boston, MA 02111-1307, USA.
93    
94     */
95    
96 wakaba 1.2 /* $Date: 2007/06/30 05:04:13 $ */

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24  
Google Analytics is used in this page; Cookies are used. 忍者AdMax is used in this page; Cookies are used. Privacy policy.