theme_overrides.css 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. /* -*- coding: utf-8; mode: css -*-
  2. *
  3. * Sphinx HTML theme customization: read the doc
  4. * Please don't add any color definition here, as the theme should
  5. * work for both normal and dark modes.
  6. */
  7. /* Improve contrast and increase size for easier reading. */
  8. body {
  9. font-family: serif;
  10. font-size: 100%;
  11. }
  12. h1, h2, .rst-content .toctree-wrapper p.caption, h3, h4, h5, h6, legend {
  13. font-family: sans-serif;
  14. }
  15. div[class^="highlight"] pre {
  16. font-family: monospace;
  17. font-size: 100%;
  18. }
  19. .wy-menu-vertical {
  20. font-family: sans-serif;
  21. }
  22. .c {
  23. font-style: normal;
  24. }
  25. p {
  26. font-size: 100%;
  27. }
  28. /* Interim: Code-blocks with line nos - lines and line numbers don't line up.
  29. * see: https://github.com/rtfd/sphinx_rtd_theme/issues/419
  30. */
  31. div[class^="highlight"] pre {
  32. line-height: normal;
  33. }
  34. .rst-content .highlight > pre {
  35. line-height: normal;
  36. }
  37. /* Keep fields from being strangely far apart due to inheirited table CSS. */
  38. .rst-content table.field-list th.field-name {
  39. padding-top: 1px;
  40. padding-bottom: 1px;
  41. }
  42. .rst-content table.field-list td.field-body {
  43. padding-top: 1px;
  44. padding-bottom: 1px;
  45. }
  46. @media screen {
  47. /* content column
  48. *
  49. * RTD theme's default is 800px as max width for the content, but we have
  50. * tables with tons of columns, which need the full width of the view-port.
  51. */
  52. .wy-nav-content{max-width: none; }
  53. /* table:
  54. *
  55. * - Sequences of whitespace should collapse into a single whitespace.
  56. * - make the overflow auto (scrollbar if needed)
  57. * - align caption "left" ("center" is unsuitable on vast tables)
  58. */
  59. .wy-table-responsive table td { white-space: normal; }
  60. .wy-table-responsive { overflow: auto; }
  61. .rst-content table.docutils caption { text-align: left; font-size: 100%; }
  62. /* captions:
  63. *
  64. * - captions should have 100% (not 85%) font size
  65. * - hide the permalink symbol as long as link is not hovered
  66. */
  67. .toc-title {
  68. font-size: 150%;
  69. font-weight: bold;
  70. }
  71. caption, .wy-table caption, .rst-content table.field-list caption {
  72. font-size: 100%;
  73. }
  74. caption a.headerlink { opacity: 0; }
  75. caption a.headerlink:hover { opacity: 1; }
  76. /* Menu selection and keystrokes */
  77. span.menuselection {
  78. font-family: "Courier New", Courier, monospace
  79. }
  80. code.kbd, code.kbd span {
  81. font-weight: bold;
  82. font-family: "Courier New", Courier, monospace
  83. }
  84. /* fix bottom margin of lists items */
  85. .rst-content .section ul li:last-child, .rst-content .section ul li p:last-child {
  86. margin-bottom: 12px;
  87. }
  88. /* inline literal: drop the borderbox, padding and red color */
  89. code, .rst-content tt, .rst-content code {
  90. color: inherit;
  91. border: none;
  92. padding: unset;
  93. background: inherit;
  94. font-size: 85%;
  95. }
  96. .rst-content tt.literal,.rst-content tt.literal,.rst-content code.literal {
  97. color: inherit;
  98. }
  99. }