_sphinx.scss 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. %sphinx {
  2. h2 { @extend %block-heading; }
  3. h3 { @extend %block-label; }
  4. h4 { font-size: 1em; }
  5. > dl:not(.docutils) > dt { @extend %block-label, %label-blue; }
  6. dd > dl:not(.docutils) > dt { @extend %block-label; }
  7. dt + dt { margin-top: -.5em; }
  8. .note, .admonition, div.versionadded, div.versionchanged, .deprecated-removed, .deprecated { @extend %note; }
  9. .important { @extend %note-orange; }
  10. .warning, .deprecated-removed, .deprecated { @extend %note-red; }
  11. .versionmodified, span.title {
  12. display: block;
  13. font-weight: bold;
  14. }
  15. p > code, li > code, dd > code, .docutils > dt > code { @extend %label; }
  16. ul.simple { margin: 1em 0; }
  17. h2 > a, h3 > a, dt[id] > a.external, dt[id] > a.internal { float: right; }
  18. .admonition-title {
  19. float: left;
  20. margin: 0 .5em 0 0;
  21. font-weight: bold;
  22. &:after { content: ':'; }
  23. }
  24. .admonition > dl, .admonition > ul {
  25. clear: left;
  26. margin: 0;
  27. }
  28. .admonition-title + dl { padding-top: .5em; }
  29. td > div { margin: 0 !important; }
  30. }
  31. ._sphinx {
  32. @extend %sphinx;
  33. }