Python Library Caching
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

pydoctheme_dark.css 3.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  1. /* Common colours */
  2. :root {
  3. --good-color: rgb(79 196 100);
  4. --good-border: var(--good-color);
  5. --middle-color: rgb(244, 227, 76);
  6. --middle-border: var(--middle-color);
  7. --bad-color: rgb(244, 76, 78);
  8. --bad-border: var(--bad-color);
  9. }
  10. /* Browser elements */
  11. :root {
  12. scrollbar-color: #616161 transparent;
  13. color-scheme: dark;
  14. }
  15. html,
  16. body {
  17. background-color: #222;
  18. color: rgba(255, 255, 255, 0.87);
  19. }
  20. div.related {
  21. color: rgba(255, 255, 255, 0.7); /* classic overwrite */
  22. border-color: #424242;
  23. }
  24. /* SIDEBAR */
  25. div.sphinxsidebar, .menu-wrapper {
  26. background-color: #333;
  27. color: inherit;
  28. }
  29. #sidebarbutton {
  30. /* important to overwrite style attribute */
  31. background-color: #555 !important;
  32. color: inherit !important;
  33. }
  34. div.sidebar, aside.sidebar {
  35. background-color: #424242;
  36. border-color: #616161;
  37. }
  38. /* ANCHORS AND HIGHLIGHTS */
  39. div.body a {
  40. color: #7af;
  41. }
  42. div.body a:visited {
  43. color: #09e;
  44. }
  45. a.headerlink:hover {
  46. background-color: #424242;
  47. }
  48. div.related a {
  49. color: currentColor;
  50. }
  51. div.footer,
  52. div.footer a {
  53. color: currentColor; /* classic overwrites */
  54. }
  55. dt:target,
  56. span.highlighted {
  57. background-color: #616161;
  58. }
  59. .footnote:target {
  60. background-color: #2c3e50;
  61. }
  62. /* Below for most things in text */
  63. dl.field-list > dt {
  64. background-color: #434;
  65. }
  66. table.docutils td,
  67. table.docutils th {
  68. border-color: #616161 !important;
  69. }
  70. table.docutils th {
  71. background-color: #424242;
  72. }
  73. .stableabi {
  74. color: #bbf;
  75. }
  76. div.body pre {
  77. border-color: #616161;
  78. }
  79. code {
  80. background-color: #424242;
  81. }
  82. div.body div.seealso {
  83. background-color: rgba(255, 255, 0, 0.1);
  84. }
  85. div.warning {
  86. background-color: rgba(255, 0, 0, 0.2);
  87. }
  88. .warning code {
  89. background-color: rgba(255, 0, 0, 0.5);
  90. }
  91. /* Admonitions */
  92. :root {
  93. --admonition-background: #ffffff1a;
  94. --admonition-border: currentColor;
  95. --admonition-color: #ffffffde;
  96. --attention-background: #ffffff1a;
  97. --attention-border: currentColor;
  98. --caution-background: #ffff001a;
  99. --caution-border: #dd6;
  100. --danger-background: #f003;
  101. --danger-border: #f66;
  102. --error-background: #f003;
  103. --error-border: #f66;
  104. --hint-background: #0044117a;
  105. --hint-border: green;
  106. --seealso-background: #ffff001a;
  107. --seealso-border: #dd6;
  108. --tip-background: #0044117a;
  109. --tip-border: green;
  110. --warning-background: #ff000033;
  111. --warning-border: #ff6666;
  112. }
  113. aside.topic,
  114. div.topic,
  115. div.note,
  116. nav.contents {
  117. background-color: rgba(255, 255, 255, 0.1);
  118. border-color: currentColor;
  119. }
  120. .note code {
  121. background-color: rgba(255, 255, 255, 0.1);
  122. }
  123. .mobile-nav {
  124. box-shadow: rgba(255, 255, 255, 0.25) 0 0 2px 0;
  125. }
  126. .nav-content {
  127. background-color: black;
  128. }
  129. img.invert-in-dark-mode {
  130. filter: invert(1) hue-rotate(.5turn);
  131. }
  132. /* -- object description styles --------------------------------------------- */
  133. /* C++ specific styling */
  134. /* Override Sphinx's basic.css to fix colour contrast */
  135. .sig.c .k, .sig.c .kt,
  136. .sig.cpp .k, .sig.cpp .kt {
  137. color: #5283ff;
  138. }
  139. /* Version change directives */
  140. :root {
  141. --versionadded: var(--good-color);
  142. --versionchanged: var(--middle-color);
  143. --deprecated: var(--bad-color);
  144. }