theme_overrides.css 3.6 KB

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