theme_extra.css 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197
  1. /*
  2. * Sphinx doesn't have support for section dividers like we do in
  3. * MkDocs, this styles the section titles in the nav
  4. *
  5. * https://github.com/mkdocs/mkdocs/issues/175
  6. */
  7. .wy-menu-vertical span {
  8. line-height: 18px;
  9. padding: 0.4045em 1.618em;
  10. display: block;
  11. position: relative;
  12. font-size: 90%;
  13. color: #838383;
  14. }
  15. .wy-menu-vertical .subnav a {
  16. padding: 0.4045em 2.427em;
  17. }
  18. /*
  19. * Long navigations run off the bottom of the screen as the nav
  20. * area doesn't scroll.
  21. *
  22. * https://github.com/mkdocs/mkdocs/pull/202
  23. *
  24. * Builds upon pull 202 https://github.com/mkdocs/mkdocs/pull/202
  25. * to make toc scrollbar end before navigations buttons to not be overlapping.
  26. */
  27. .wy-nav-side {
  28. height: calc(100% - 45px);
  29. overflow-y: auto;
  30. min-height: 0;
  31. }
  32. .rst-versions{
  33. border-top: 0;
  34. height: 45px;
  35. }
  36. @media screen and (max-width: 768px) {
  37. .wy-nav-side {
  38. height: 100%;
  39. }
  40. }
  41. /*
  42. * readthedocs theme hides nav items when the window height is
  43. * too small to contain them.
  44. *
  45. * https://github.com/mkdocs/mkdocs/issues/#348
  46. */
  47. .wy-menu-vertical ul {
  48. margin-bottom: 2em;
  49. }
  50. /*
  51. * Wrap inline code samples otherwise they shoot of the side and
  52. * can't be read at all.
  53. *
  54. * https://github.com/mkdocs/mkdocs/issues/313
  55. * https://github.com/mkdocs/mkdocs/issues/233
  56. * https://github.com/mkdocs/mkdocs/issues/834
  57. */
  58. code {
  59. white-space: pre-wrap;
  60. word-wrap: break-word;
  61. padding: 2px 5px;
  62. }
  63. /**
  64. * Make code blocks display as blocks and give them the appropriate
  65. * font size and padding.
  66. *
  67. * https://github.com/mkdocs/mkdocs/issues/855
  68. * https://github.com/mkdocs/mkdocs/issues/834
  69. * https://github.com/mkdocs/mkdocs/issues/233
  70. */
  71. pre code {
  72. white-space: pre;
  73. word-wrap: normal;
  74. display: block;
  75. padding: 12px;
  76. font-size: 12px;
  77. }
  78. /*
  79. * Fix link colors when the link text is inline code.
  80. *
  81. * https://github.com/mkdocs/mkdocs/issues/718
  82. */
  83. a code {
  84. color: #2980B9;
  85. }
  86. a:hover code {
  87. color: #3091d1;
  88. }
  89. a:visited code {
  90. color: #9B59B6;
  91. }
  92. /*
  93. * The CSS classes from highlight.js seem to clash with the
  94. * ReadTheDocs theme causing some code to be incorrectly made
  95. * bold and italic.
  96. *
  97. * https://github.com/mkdocs/mkdocs/issues/411
  98. */
  99. pre .cs, pre .c {
  100. font-weight: inherit;
  101. font-style: inherit;
  102. }
  103. /*
  104. * Fix some issues with the theme and non-highlighted code
  105. * samples. Without and highlighting styles attached the
  106. * formatting is broken.
  107. *
  108. * https://github.com/mkdocs/mkdocs/issues/319
  109. */
  110. .no-highlight {
  111. display: block;
  112. padding: 0.5em;
  113. color: #333;
  114. }
  115. /*
  116. * Additions specific to the search functionality provided by MkDocs
  117. */
  118. .search-results {
  119. margin-top: 23px;
  120. }
  121. .search-results article {
  122. border-top: 1px solid #E1E4E5;
  123. padding-top: 24px;
  124. }
  125. .search-results article:first-child {
  126. border-top: none;
  127. }
  128. form .search-query {
  129. width: 100%;
  130. border-radius: 50px;
  131. padding: 6px 12px; /* csslint allow: box-model */
  132. border-color: #D1D4D5;
  133. }
  134. .wy-menu-vertical li ul {
  135. display: inherit;
  136. }
  137. .wy-menu-vertical li ul.subnav ul.subnav{
  138. padding-left: 1em;
  139. }
  140. .wy-menu-vertical .subnav li.current > a {
  141. padding-left: 2.42em;
  142. }
  143. .wy-menu-vertical .subnav li.current > ul li a {
  144. padding-left: 3.23em;
  145. }
  146. /*
  147. * Improve inline code blocks within admonitions.
  148. *
  149. * https://github.com/mkdocs/mkdocs/issues/656
  150. */
  151. .admonition code {
  152. color: #404040;
  153. border: 1px solid #c7c9cb;
  154. border: 1px solid rgba(0, 0, 0, 0.2);
  155. background: #f8fbfd;
  156. background: rgba(255, 255, 255, 0.7);
  157. }
  158. /*
  159. * Account for wide tables which go off the side.
  160. * Override borders to avoid wierdness on narrow tables.
  161. *
  162. * https://github.com/mkdocs/mkdocs/issues/834
  163. * https://github.com/mkdocs/mkdocs/pull/1034
  164. */
  165. .rst-content .section .docutils {
  166. width: 100%;
  167. overflow: auto;
  168. display: block;
  169. border: none;
  170. }
  171. td, th {
  172. border: 1px solid #e1e4e5 !important; /* csslint allow: important */
  173. border-collapse: collapse;
  174. }