borg.css 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202
  1. @import url("theme.css");
  2. /* The Return of the Borg.
  3. *
  4. * Have a bit green and grey and darkness (and if only in the upper left corner).
  5. */
  6. .wy-side-nav-search {
  7. background-color: #000000 !important;
  8. }
  9. .wy-side-nav-search input[type="text"] {
  10. border-color: #000000;
  11. }
  12. .wy-side-nav-search > a {
  13. color: rgba(255, 255, 255, 0.5);
  14. }
  15. .wy-side-nav-search > div.version {
  16. color: rgba(255, 255, 255, 0.5);
  17. }
  18. dt code {
  19. font-weight: normal;
  20. }
  21. #internals .toctree-wrapper > ul {
  22. column-count: 3;
  23. -webkit-column-count: 3;
  24. }
  25. #internals .toctree-wrapper > ul > li {
  26. display: inline-block;
  27. font-weight: bold;
  28. }
  29. #internals .toctree-wrapper > ul > li > ul {
  30. font-weight: normal;
  31. }
  32. /* bootstrap has a .container class which clashes with docutils' container class. */
  33. .docutils.container {
  34. width: auto;
  35. margin: 0;
  36. padding: 0;
  37. }
  38. /* the default (38px) produces a jumpy baseline in Firefox on Linux. */
  39. h1 {
  40. font-size: 36px;
  41. }
  42. .text-logo {
  43. background-color: #000200;
  44. color: #00dd00;
  45. }
  46. .text-logo:hover,
  47. .text-logo:active,
  48. .text-logo:focus {
  49. color: #5afe57;
  50. }
  51. /* by default the top and bottom margins are unequal which looks a bit unbalanced. */
  52. .sidebar-block {
  53. padding: 0;
  54. margin: 14px 0 24px 0;
  55. }
  56. #borg-documentation h1 + p .external img {
  57. width: 100%;
  58. }
  59. .container.experimental,
  60. #debugging-facilities,
  61. #borg-recreate {
  62. /* don't change text dimensions */
  63. margin: 0 -30px; /* padding below + border width */
  64. padding: 0 10px; /* 10 px visual margin between edge of text and the border */
  65. /* fallback for browsers that don't have repeating-linear-gradient: thick, red lines */
  66. border-left: 20px solid red;
  67. border-right: 20px solid red;
  68. /* fancy red stripes */
  69. border-image: repeating-linear-gradient(
  70. -45deg,rgba(255,0,0,0.1) 0,rgba(255,0,0,0.75) 10px,rgba(0,0,0,0) 10px,rgba(0,0,0,0) 20px,rgba(255,0,0,0.75) 20px) 0 20 repeat;
  71. }
  72. .topic {
  73. margin: 0 1em;
  74. padding: 0 1em;
  75. /* #4e4a4a = background of the ToC sidebar */
  76. border-left: 2px solid #4e4a4a;;
  77. border-right: 2px solid #4e4a4a;;
  78. }
  79. table.docutils:not(.footnote) td,
  80. table.docutils:not(.footnote) th {
  81. padding: .2em;
  82. }
  83. table.docutils:not(.footnote) {
  84. border-collapse: collapse;
  85. border: none;
  86. }
  87. table.docutils:not(.footnote) td,
  88. table.docutils:not(.footnote) th {
  89. border: 1px solid #ddd;
  90. }
  91. table.docutils:not(.footnote) tr:first-child th,
  92. table.docutils:not(.footnote) tr:first-child td {
  93. border-top: 0;
  94. }
  95. table.docutils:not(.footnote) tr:last-child td {
  96. border-bottom: 0;
  97. }
  98. table.docutils:not(.footnote) tr td:first-child,
  99. table.docutils:not(.footnote) tr th:first-child {
  100. border-left: 0;
  101. }
  102. table.docutils:not(.footnote) tr td:last-child,
  103. table.docutils:not(.footnote) tr th:last-child,
  104. table.docutils.borg-options-table tr td {
  105. border-right: 0;
  106. }
  107. table.docutils.option-list tr td,
  108. table.docutils.borg-options-table tr td {
  109. border-left: 0;
  110. border-right: 0;
  111. }
  112. table.docutils.borg-options-table tr td:first-child:not([colspan="3"]) {
  113. border-top: 0;
  114. border-bottom: 0;
  115. }
  116. .borg-options-table td[colspan="3"] p {
  117. margin: 0;
  118. }
  119. .borg-options-table {
  120. width: 100%;
  121. }
  122. kbd, /* used in usage pages for options */
  123. code,
  124. .rst-content tt.literal,
  125. .rst-content tt.literal,
  126. .rst-content code.literal,
  127. .rst-content tt,
  128. .rst-content code,
  129. p .literal,
  130. p .literal span {
  131. border: none;
  132. padding: 0;
  133. color: black; /* slight contrast with #404040 of regular text */
  134. background: none;
  135. }
  136. kbd {
  137. box-shadow: none;
  138. line-height: 23px;
  139. word-wrap: normal;
  140. font-size: 15px;
  141. font-family: Consolas, monospace;
  142. }
  143. .borg-options-table tr td:nth-child(2) .pre {
  144. white-space: nowrap;
  145. }
  146. .borg-options-table tr td:first-child {
  147. width: 2em;
  148. }
  149. cite {
  150. white-space: nowrap;
  151. color: black; /* slight contrast with #404040 of regular text */
  152. font-family: Consolas, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter",
  153. "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", Monaco, "Courier New", Courier, monospace;
  154. font-style: normal;
  155. text-decoration: underline;
  156. }
  157. .borg-common-opt-ref {
  158. font-weight: bold;
  159. }
  160. .sidebar-toc ul li.toctree-l2 a,
  161. .sidebar-toc ul li.toctree-l3 a {
  162. padding-right: 25px;
  163. }
  164. #common-options .option {
  165. white-space: nowrap;
  166. }