theme_extra.css 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. /*
  2. * Tweak the overal size to better match RTD.
  3. */
  4. html {
  5. font-size: 90%;
  6. }
  7. h3, h4, h5, h6 {
  8. color: #2980b9;
  9. font-weight: 300
  10. }
  11. /*
  12. * Sphinx doesn't have support for section dividers like we do in
  13. * MkDocs, this styles the section titles in the nav
  14. *
  15. * https://github.com/mkdocs/mkdocs/issues/175
  16. */
  17. .wy-menu-vertical span {
  18. line-height: 18px;
  19. padding: 0.4045em 1.618em;
  20. display: block;
  21. position: relative;
  22. font-size: 90%;
  23. color: #838383;
  24. }
  25. .wy-menu-vertical .subnav a {
  26. padding: 0.4045em 2.427em;
  27. }
  28. /*
  29. * Long navigations run off the bottom of the screen as the nav
  30. * area doesn't scroll.
  31. *
  32. * https://github.com/mkdocs/mkdocs/pull/202
  33. */
  34. .wy-nav-side {
  35. height: 100%;
  36. overflow-y: auto;
  37. }
  38. /*
  39. * readthedocs theme hides nav items when the window height is
  40. * too small to contain them.
  41. *
  42. * https://github.com/mkdocs/mkdocs/issues/#348
  43. */
  44. .wy-menu-vertical ul {
  45. margin-bottom: 2em;
  46. }
  47. /*
  48. * Fix wrapping in the code highlighting
  49. *
  50. * https://github.com/mkdocs/mkdocs/issues/233
  51. */
  52. code {
  53. white-space: pre;
  54. }
  55. /*
  56. * Wrap inline code samples otherwise they shoot of the side and
  57. * can't be read at all.
  58. *
  59. * https://github.com/mkdocs/mkdocs/issues/313
  60. */
  61. p code {
  62. word-wrap: break-word;
  63. }
  64. /*
  65. * The CSS classes from highlight.js seem to clash with the
  66. * ReadTheDocs theme causing some code to be incorrectly made
  67. * bold and italic.
  68. *
  69. * https://github.com/mkdocs/mkdocs/issues/411
  70. */
  71. code.cs, code.c {
  72. font-weight: inherit;
  73. font-style: inherit;
  74. }
  75. /*
  76. * Fix some issues with the theme and non-highlighted code
  77. * samples. Without and highlighting styles attached the
  78. * formatting is broken.
  79. *
  80. * https://github.com/mkdocs/mkdocs/issues/319
  81. */
  82. .no-highlight {
  83. display: block;
  84. padding: 0.5em;
  85. color: #333;
  86. }
  87. /*
  88. * Additions specific to the search functionality provided by MkDocs
  89. */
  90. #mkdocs-search-results article h3
  91. {
  92. margin-top: 23px;
  93. border-top: 1px solid #E1E4E5;
  94. padding-top: 24px;
  95. }
  96. #mkdocs-search-results article:first-child h3 {
  97. border-top: none;
  98. }
  99. #mkdocs-search-query{
  100. width: 100%;
  101. border-radius: 50px;
  102. padding: 6px 12px;
  103. border-color: #D1D4D5;
  104. }
  105. .wy-menu-vertical li ul {
  106. display: inherit;
  107. }
  108. .wy-menu-vertical li ul.subnav ul.subnav{
  109. padding-left: 1em;
  110. }
  111. /*
  112. * Improve inline code blocks within admonitions.
  113. *
  114. * https://github.com/mkdocs/mkdocs/issues/656
  115. */
  116. div.admonition code {
  117. color: #404040;
  118. border: 1px solid rgba(0, 0, 0, 0.2);
  119. background: rgba(255, 255, 255, 0.7);
  120. }