PageRenderTime 21ms CodeModel.GetById 16ms RepoModel.GetById 0ms 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
Possible License(s): Apache-2.0
  1. body {
  2. counter-reset: section1;
  3. }
  4. h1 {
  5. counter-increment: section1;
  6. counter-reset: section2;
  7. }
  8. h1:before {
  9. content: counter(section1) " ";
  10. }
  11. h2 {
  12. counter-increment: section2;
  13. counter-reset: section3;
  14. }
  15. h2:before {
  16. content: counter(section1) "." counter(section2) " ";
  17. }
  18. h3 {
  19. counter-increment: section3;
  20. counter-reset: section4;
  21. }
  22. h3:before {
  23. content: counter(section1) "." counter(section2) "." counter(section3) " ";
  24. }
  25. h4 {
  26. counter-increment: section4;
  27. counter-reset: section5;
  28. }
  29. h4:before {
  30. content: counter(section1) "." counter(section2) "." counter(section3) "." counter(section4) " ";
  31. }
  32. h5 {
  33. counter-increment: section5;
  34. counter-reset: section6;
  35. }
  36. h5:before {
  37. content: counter(section1) "." counter(section2) "." counter(section3) "." counter(section4) "." counter(section5) " ";
  38. }
  39. h6 {
  40. counter-increment: section6;
  41. }
  42. h6:before {
  43. content: counter(section1) "." counter(section2) "." counter(section3) "." counter(section4) "." counter(section5) "." counter(section6) " ";
  44. }