Advertisement
Guest User

css

a guest
Oct 22nd, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. body {
  2. counter-reset: section;
  3. }
  4.  
  5. h2 {
  6. counter-reset: subsection;
  7. }
  8.  
  9. h2::before {
  10. counter-increment: section;
  11. content: "Rozdział " counter(section) ". ";
  12. }
  13.  
  14. h3::before {
  15. counter-increment: subsection;
  16. content: counter(section) "." counter(subsection) ". ";
  17. }
  18.  
  19. p.definition {
  20. counter-reset: subsection;
  21. }
  22.  
  23. p.definition::before {
  24. counter-increment: subsection;
  25. content: "Definicja " counter(section) "." counter(subsection) ". ";
  26. font-weight: bold;
  27. }
  28.  
  29. p.theorem {
  30. counter-reset: subsection;
  31. }
  32.  
  33. p.theorem::before {
  34. counter-increment: subsection;
  35. content: "Twierdzenie " counter(section) "." counter(subsection) ". ";
  36. font-weight: bold;
  37. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement