daily pastebin goal
62%
SHARE
TWEET

Auto numbering Typora outline

a guest Dec 16th, 2018 115 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. .sidebar-content {
  2.     counter-reset: h1
  3. }
  4.  
  5. .outline-h1 {
  6.     counter-reset: h2
  7. }
  8.  
  9. .outline-h2 {
  10.     counter-reset: h3
  11. }
  12.  
  13. .outline-h3 {
  14.     counter-reset: h4
  15. }
  16.  
  17. .outline-h4 {
  18.     counter-reset: h5
  19. }
  20.  
  21. .outline-h5 {
  22.     counter-reset: h6
  23. }
  24.  
  25. .outline-h1>.outline-item>.outline-label:before {
  26.     counter-increment: h1;
  27.     content: counter(h1) ". "
  28. }
  29.  
  30. .outline-h2>.outline-item>.outline-label:before {
  31.     counter-increment: h2;
  32.     content: counter(h1) "." counter(h2) ". "
  33. }
  34.  
  35. .outline-h3>.outline-item>.outline-label:before {
  36.     counter-increment: h3;
  37.     content: counter(h1) "." counter(h2) "." counter(h3) ". "
  38. }
  39.  
  40. .outline-h4>.outline-item>.outline-label:before {
  41.     counter-increment: h4;
  42.     content: counter(h1) "." counter(h2) "." counter(h3) "." counter(h4) ". "
  43. }
  44.  
  45. .outline-h5>.outline-item>.outline-label:before {
  46.     counter-increment: h5;
  47.     content: counter(h1) "." counter(h2) "." counter(h3) "." counter(h4) "." counter(h5) ". "
  48. }
  49.  
  50. .outline-h6>.outline-item>.outline-label:before {
  51.     counter-increment: h6;
  52.     content: counter(h1) "." counter(h2) "." counter(h3) "." counter(h4) "." counter(h5) "." counter(h6) ". "
  53. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top