style.css 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. .subnumberlist li {
  2. list-style: none;
  3. }
  4. .subnumberlist ol {
  5. padding: 0;
  6. }
  7. .subnumberlist li:before {
  8. display: block;
  9. padding-right: 5px;
  10. float: left;
  11. }
  12. .subnumberlist > ol {
  13. counter-reset: subnumberlist-counter1;
  14. }
  15. .subnumberlist ol > li:before {
  16. content: counter(subnumberlist-counter1) ". ";
  17. }
  18. .subnumberlist ol > li {
  19. counter-increment: subnumberlist-counter1;
  20. }
  21. /*level 2*/
  22. .subnumberlist ol > li ol {
  23. counter-reset: subnumberlist-counter2;
  24. }
  25. .subnumberlist ol > li ol > li:before {
  26. content: counter(subnumberlist-counter1) "." counter(subnumberlist-counter2) ". ";
  27. }
  28. .subnumberlist ol > li ol > li {
  29. counter-increment: subnumberlist-counter2;
  30. }
  31. /*level 3*/
  32. .subnumberlist ol > li ol > li ol {
  33. counter-reset: subnumberlist-counter3;
  34. }
  35. .subnumberlist ol > li ol > li ol > li:before {
  36. content: counter(subnumberlist-counter1) "." counter(subnumberlist-counter2) "." counter(subnumberlist-counter3) ". ";
  37. }
  38. .subnumberlist ol > li ol > li ol > li {
  39. counter-increment: subnumberlist-counter3;
  40. }
  41. /*level 4*/
  42. .subnumberlist ol > li ol > li ol > li ol {
  43. counter-reset: subnumberlist-counter4;
  44. }
  45. .subnumberlist ol > li ol > li ol > li ol > li:before {
  46. content: counter(subnumberlist-counter1) "." counter(subnumberlist-counter2) "." counter(subnumberlist-counter3) "." counter(subnumberlist-counter4) ". ";
  47. }
  48. .subnumberlist ol > li ol > li ol > li ol > li {
  49. counter-increment: subnumberlist-counter4;
  50. }