_sphinx.scss 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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. .class > dt, #main-interface .function > dt { @extend %block-label, %label-blue; }
  8. dt + dt { margin-top: -.5em; }
  9. .note, .admonition, div.versionadded, div.versionchanged, .deprecated-removed, .deprecated, .topic { @extend %note; }
  10. .important { @extend %note-orange; }
  11. .warning, .deprecated-removed, .deprecated { @extend %note-red; }
  12. .hint { @extend %note-green; }
  13. .versionmodified, span.title, .topic-title {
  14. display: block;
  15. font-weight: var(--boldFontWeight);
  16. }
  17. p > code, li > code, dd > code, .docutils > dt > code { @extend %label; }
  18. ul.simple { margin: 1em 0; }
  19. h2 > a, h3 > a, dt[id] > a.external, dt[id] > a.internal { float: right; }
  20. .admonition-title {
  21. float: left;
  22. margin: 0 .5em 0 0;
  23. font-weight: var(--boldFontWeight);
  24. &:after { content: ':'; }
  25. }
  26. .admonition > dl, .admonition > ul {
  27. clear: left;
  28. margin: 0;
  29. }
  30. .admonition-title + dl { padding-top: .5em; }
  31. td > div { margin: 0 !important; }
  32. .classifier:before { content:": " }
  33. .property::after { content:" " }
  34. span.descclassname, span.descname { font-family: var(--monoFont) }
  35. }
  36. ._sphinx {
  37. @extend %sphinx;
  38. }