theme_overrides.css 3.0 KB

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