PageRenderTime 84ms CodeModel.GetById 64ms app.highlight 15ms RepoModel.GetById 2ms app.codeStats 0ms

/demo/css/counters.css

http://samaxesjs.googlecode.com/
CSS | 56 lines | 44 code | 12 blank | 0 comment | 0 complexity | 87f9aaeaf7d911bbcc0e164de148e9db MD5 | raw file
 1body {
 2    counter-reset: section1;
 3}
 4
 5h1 {
 6    counter-increment: section1;
 7    counter-reset: section2;
 8}
 9
10h1:before {
11    content: counter(section1) " ";
12}
13
14h2 {
15    counter-increment: section2;
16    counter-reset: section3;
17}
18
19h2:before {
20    content: counter(section1) "." counter(section2) " ";
21}
22
23h3 {
24    counter-increment: section3;
25    counter-reset: section4;
26}
27
28h3:before {
29    content: counter(section1) "." counter(section2) "." counter(section3) " ";
30}
31
32h4 {
33    counter-increment: section4;
34    counter-reset: section5;
35}
36
37h4:before {
38    content: counter(section1) "." counter(section2) "." counter(section3) "." counter(section4) " ";
39}
40
41h5 {
42    counter-increment: section5;
43    counter-reset: section6;
44}
45
46h5:before {
47    content: counter(section1) "." counter(section2) "." counter(section3) "." counter(section4) "." counter(section5) " ";
48}
49
50h6 {
51    counter-increment: section6;
52}
53
54h6:before {
55    content: counter(section1) "." counter(section2) "." counter(section3) "." counter(section4) "." counter(section5) "." counter(section6) " ";
56}