custom.css 52 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676
  1. /**
  2. * Various tweaks to the Read the Docs theme to better conform with Godot's
  3. * visual identity. Many colors are also overridden to use CSS variables.
  4. * This makes it possible to provide an automatically-used dark theme
  5. * based on browser preferences.
  6. */
  7. @font-face {
  8. font-family: "JetBrains Mono";
  9. src: url('fonts/JetBrainsMono-Regular.woff2');
  10. font-weight: 400;
  11. font-style: normal;
  12. }
  13. @font-face {
  14. font-family: "JetBrains Mono";
  15. src: url('fonts/JetBrainsMono-Medium.woff2');
  16. font-weight: 600;
  17. font-style: normal;
  18. }
  19. @font-face {
  20. font-family: "JetBrains Mono";
  21. src: url('fonts/JetBrainsMono-Bold.woff2');
  22. font-weight: 700;
  23. font-style: normal;
  24. }
  25. /* Default (light) theme colors */
  26. :root {
  27. --body-color: #404040;
  28. --content-wrap-background-color: #efefef;
  29. --content-background-color: #fcfcfc;
  30. --logo-opacity: 1.0;
  31. --navbar-background-color: #333f67;
  32. --navbar-background-color-hover: #29355c;
  33. --navbar-background-color-active: #212d51;
  34. --navbar-current-background-color: #212d51;
  35. --navbar-current-background-color-hover: #182343;
  36. --navbar-current-background-color-active: #131e3b;
  37. --navbar-category-active-color: rgba(255 115 129 / 10%);
  38. --navbar-current-color: #f1f9ff;
  39. --navbar-level-1-color: #c3e3ff;
  40. --navbar-level-2-color: #b8d6f0;
  41. --navbar-level-3-color: #a3c4e1;
  42. --navbar-expand-base-color: #81a3c2;
  43. --navbar-expand-hover-color: #c3e3ff;
  44. --navbar-expand-active-color: #f1f9ff;
  45. --navbar-dimmed-color: #a3c4e1;
  46. --navbar-heading-color: #ff7381;
  47. --navbar-scrollbar-color: #d45a66;
  48. --navbar-scrollbar-hover-color: #b14550;
  49. --navbar-scrollbar-active-color: #72383e;
  50. --navbar-scrollbar-background: #131e2b;
  51. --link-color: #2980b9;
  52. --link-color-hover: #3091d1;
  53. --link-color-active: #105078;
  54. --link-color-visited: #9b59b6;
  55. --class-reference-icon: url("data:image/svg+xml;base64,PHN2ZyBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGZpbGwtcnVsZT0iZXZlbm9kZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgc3Ryb2tlLW1pdGVybGltaXQ9IjIiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJtNS4wMjkgMWMtLjk5OS0uMDExLTIuMDA5LjMxMi0zLjAyOSAxdjdjMi4wMTctMS4zNTMgNC4wMTctMS4zMTQgNiAwIDEuOTgzLTEuMzE0IDMuOTgzLTEuMzUzIDYgMHYtN2MtMS4wMi0uNjg4LTIuMDMtMS4wMTEtMy4wMjktMS0uNjYyLjAwNy0xLjMxOC4xNzMtMS45NzEuNDYzdjQuNTM3aC0xdi00Yy0uOTgyLS42NDUtMS45NzEtLjk4OS0yLjk3MS0xem0tNS4wMjkgOXY2aDJjMS42NDYgMCAzLTEuMzU0IDMtM3MtMS4zNTQtMy0zLTN6bTUgM2MwIDEuNjQ2IDEuMzU0IDMgMyAzczMtMS4zNTQgMy0zLTEuMzU0LTMtMy0zLTMgMS4zNTQtMyAzem02IDBjMCAxLjY0NiAxLjM1NCAzIDMgM2gxdi0yaC0xYy0uNTQ5IDAtMS0uNDUxLTEtMXMuNDUxLTEgMS0xaDF2LTJoLTFjLTEuNjQ2IDAtMyAxLjM1NC0zIDN6bS05LTFjLjU0OSAwIDEgLjQ1MSAxIDFzLS40NTEgMS0xIDF6bTYgMGMuNTQ5IDAgMSAuNDUxIDEgMXMtLjQ1MSAxLTEgMS0xLS40NTEtMS0xIC40NTEtMSAxLTF6IiBmaWxsPSIjNDE0MTQxIiBmaWxsLW9wYWNpdHk9Ii41OSIgZmlsbC1ydWxlPSJub256ZXJvIi8+PC9zdmc+Cg==");
  56. --external-reference-icon: url("data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjEyIiB3aWR0aD0iMTIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMjk4MGI5Ij48cGF0aCBkPSJtNy41IDcuMXYzLjRoLTZ2LTZoMy40Ii8+PHBhdGggZD0ibTUuNzY1IDFoNS4yMzV2NS4zOWwtMS41NzMgMS41NDctMS4zMS0xLjMxLTIuNzI0IDIuNzIzLTIuNjktMi42ODggMi44MS0yLjgwOC0xLjMxMy0xLjMxeiIvPjwvZz48L3N2Zz4K");
  57. --hr-color: #e1e4e5;
  58. --table-row-odd-background-color: #f3f6f6;
  59. --code-background-color: #e9eae5;
  60. --code-border-color: #e1e4e5;
  61. --code-literal-color: #c03e41;
  62. --input-background-color: #fcfcfc;
  63. --input-focus-border-color: #5f8cff;
  64. --tabs-background-color: #e1e4e5;
  65. --tabs-selected-color: #a2a9ae;
  66. --code-tabs-background-color: #e3ecd1;
  67. --code-tabs-selected-color: #8a9378;
  68. --classref-primary-color: #252525;
  69. --classref-secondary-color: #616770;
  70. --classref-setget-color: #56585b;
  71. --search-input-background-color: #e6eef3; /* derived from --input-background-color */
  72. --search-match-color: #2c6b96; /* derived from --link-color */
  73. --search-match-background-color: #e3f2fd; /* derived from --link-color */
  74. --search-active-color: #efefef;
  75. --search-credits-background-color: #333f67; /* derived from --navbar-background-color */
  76. --search-credits-color: #b3b3b3; /* derived from --footer-color */
  77. --search-credits-link-color: #4392c5; /* derived from --link-color */
  78. --search-odd-color: rgb(133 160 253 / 24%);
  79. --search-even-color: rgb(202 209 239 / 30%);
  80. --search-highlighted-color: rgb(255 205 0 / 25%);
  81. --search-context-color: #6c6e72;
  82. --highlight-background-color: #f5ffe1;
  83. --highlight-background-emph-color: #dbe6c3;
  84. --highlight-default-color: #404040;
  85. --highlight-comment-color: #408090;
  86. --highlight-keyword-color: #007020;
  87. --highlight-keyword2-color: #902000;
  88. --highlight-number-color: #208050;
  89. --highlight-decorator-color: #4070a0;
  90. --highlight-type-color: #007020;
  91. --highlight-type2-color: #0e84b5;
  92. --highlight-function-color: #06287e;
  93. --highlight-operator-color: #666666;
  94. --highlight-string-color: #4070a0;
  95. --contribute-background-color: #d7dee8;
  96. --contribute-text-color: #646e72;
  97. --admonition-note-background-color: #e7f2fa;
  98. --admonition-note-color: #404040;
  99. --admonition-note-title-background-color: #6ab0de;
  100. --admonition-note-title-color: #fff;
  101. --admonition-attention-background-color: #ffedcc;
  102. --admonition-attention-color: #404040;
  103. --admonition-attention-title-background-color: #f0b37e;
  104. --admonition-attention-title-color: #fff;
  105. --admonition-danger-background-color: #fcf3f2;
  106. --admonition-danger-color: #404040;
  107. --admonition-danger-title-background-color: #e9a499;
  108. --admonition-danger-title-color: #fff;
  109. --admonition-tip-background-color: #dbfaf4;
  110. --admonition-tip-color: #404040;
  111. --admonition-tip-title-background-color: #1abc9c;
  112. --admonition-tip-title-color: #fff;
  113. --kbd-background-color: #fafbfc;
  114. --kbd-outline-color: #d1d5da;
  115. --kbd-shadow-color: #b0b7bf;
  116. --kbd-text-color: #444d56;
  117. --code-example-good-color: #3fb950;
  118. --code-example-bad-color: #f85149;
  119. --btn-neutral-background-color: #f3f6f6;
  120. --btn-neutral-hover-background-color: #e5ebeb;
  121. --footer-color: #808080;
  122. --system-font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  123. --monospace-font-family: "JetBrains Mono", SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, Courier, monospace;
  124. }
  125. /* Dark theme colors */
  126. @media (prefers-color-scheme: dark) {
  127. :root {
  128. --body-color: rgba(255, 255, 255, 0.85);
  129. --content-wrap-background-color: #202326;
  130. --content-background-color: #2e3236;
  131. /* Decrease the logo opacity when using the dark theme to be less distracting */
  132. --logo-opacity: 0.85;
  133. --navbar-background-color: #25282b;
  134. --navbar-background-color-hover: #333639;
  135. --navbar-background-color-active: #111417;
  136. --navbar-current-background-color: #333639;
  137. --navbar-current-background-color-hover: #44474a;
  138. --navbar-current-background-color-active: #222528;
  139. --navbar-category-active-color: rgba(238 115 129 / 10%);
  140. --navbar-current-color: #fefefe;
  141. --navbar-level-1-color: #ddd;
  142. --navbar-level-2-color: #ccc;
  143. --navbar-level-3-color: #bbb;
  144. --navbar-expand-base-color: #80848e;
  145. --navbar-expand-hover-color: #ccc;
  146. --navbar-expand-active-color: #ddd;
  147. --navbar-dimmed-color: #bbb;
  148. --navbar-heading-color: #ee7381;
  149. --navbar-scrollbar-color: #be5460;
  150. --navbar-scrollbar-hover-color: #963e48;
  151. --navbar-scrollbar-active-color: #5f3034;
  152. --navbar-scrollbar-background: #1c1e21;
  153. --link-color: #8cf;
  154. --link-color-hover: #9df;
  155. --link-color-active: #6ad;
  156. --link-color-visited: #cb99f6;
  157. --class-reference-icon: url("data:image/svg+xml;base64,PHN2ZyBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGZpbGwtcnVsZT0iZXZlbm9kZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgc3Ryb2tlLW1pdGVybGltaXQ9IjIiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJtNS4wMjkgMWMtLjk5OS0uMDExLTIuMDA5LjMxMi0zLjAyOSAxdjdjMi4wMTctMS4zNTMgNC4wMTctMS4zMTQgNiAwIDEuOTgzLTEuMzE0IDMuOTgzLTEuMzUzIDYgMHYtN2MtMS4wMi0uNjg4LTIuMDMtMS4wMTEtMy4wMjktMS0uNjYyLjAwNy0xLjMxOC4xNzMtMS45NzEuNDYzdjQuNTM3aC0xdi00Yy0uOTgyLS42NDUtMS45NzEtLjk4OS0yLjk3MS0xem0tNS4wMjkgOXY2aDJjMS42NDYgMCAzLTEuMzU0IDMtM3MtMS4zNTQtMy0zLTN6bTUgM2MwIDEuNjQ2IDEuMzU0IDMgMyAzczMtMS4zNTQgMy0zLTEuMzU0LTMtMy0zLTMgMS4zNTQtMyAzem02IDBjMCAxLjY0NiAxLjM1NCAzIDMgM2gxdi0yaC0xYy0uNTQ5IDAtMS0uNDUxLTEtMXMuNDUxLTEgMS0xaDF2LTJoLTFjLTEuNjQ2IDAtMyAxLjM1NC0zIDN6bS05LTFjLjU0OSAwIDEgLjQ1MSAxIDFzLS40NTEgMS0xIDF6bTYgMGMuNTQ5IDAgMSAuNDUxIDEgMXMtLjQ1MSAxLTEgMS0xLS40NTEtMS0xIC40NTEtMSAxLTF6IiBmaWxsPSIjYmZiZmJmIiBmaWxsLW9wYWNpdHk9Ii41OSIgZmlsbC1ydWxlPSJub256ZXJvIi8+PC9zdmc+Cg==");
  158. --external-reference-icon: url("data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjEyIiB3aWR0aD0iMTIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjOGNmIj48cGF0aCBkPSJtNy41IDcuMXYzLjRoLTZ2LTZoMy40Ii8+PHBhdGggZD0ibTUuNzY1IDFoNS4yMzV2NS4zOWwtMS41NzMgMS41NDctMS4zMS0xLjMxLTIuNzI0IDIuNzIzLTIuNjktMi42ODggMi44MS0yLjgwOC0xLjMxMy0xLjMxeiIvPjwvZz48L3N2Zz4K");
  159. --hr-color: #555;
  160. --table-row-odd-background-color: #3b3e41;
  161. --code-background-color: #22252d;
  162. --code-border-color: #505356;
  163. --code-literal-color: #d68f8f;
  164. --input-background-color: #333537;
  165. --input-focus-border-color: #5f8cff;
  166. --tabs-background-color: #434649;
  167. --tabs-selected-color: #a2a9ae;
  168. --code-tabs-background-color: #353c4c;
  169. --code-tabs-selected-color: #5a657e;
  170. --classref-primary-color: #e8e8e8;
  171. --classref-secondary-color: #929598;
  172. --classref-setget-color: #9e9fa0;
  173. --search-input-background-color: #43464a; /* derived from --input-background-color */
  174. --search-match-color: #52b4ff; /* derived from --link-color */
  175. --search-match-background-color: #414c56; /* derived from --link-color */
  176. --search-active-color: #202326;
  177. --search-credits-background-color: #202123; /* derived from --navbar-background-color */
  178. --search-credits-color: #6b6b6b; /* derived from --footer-color */
  179. --search-credits-link-color: #628fb1; /* derived from --link-color */
  180. --search-odd-color: #202326;
  181. --search-even-color: #25282b;
  182. --search-highlighted-color: rgb(255 205 0 / 16%);
  183. --search-context-color: #aaa;
  184. /* Colors taken from the Godot script editor with the Adaptive theme */
  185. --highlight-background-color: #202531;
  186. --highlight-background-emph-color: #2d3444;
  187. --highlight-default-color: rgba(255, 255, 255, 0.85);
  188. --highlight-comment-color: rgba(204, 206, 211, 0.5);
  189. --highlight-keyword-color: #ff7085;
  190. --highlight-keyword2-color: #42ffc2;
  191. --highlight-number-color: #a1ffe0;
  192. --highlight-decorator-color: #ffb373;
  193. --highlight-type-color: #8effda;
  194. --highlight-type2-color: #c6ffed;
  195. --highlight-function-color: #57b3ff;
  196. --highlight-operator-color: #abc8ff;
  197. --highlight-string-color: #ffeca1;
  198. --contribute-background-color: #25282d;
  199. --contribute-text-color: #7f939b;
  200. --admonition-note-background-color: #303d4f;
  201. --admonition-note-color: #bfeeff;
  202. --admonition-note-title-background-color: #305070;
  203. --admonition-note-title-color: #bfefff;
  204. --admonition-attention-background-color: #444033;
  205. --admonition-attention-color: #ffeeaf;
  206. --admonition-attention-title-background-color: #665022;
  207. --admonition-attention-title-color: #ffeeaf;
  208. --admonition-danger-background-color: #433;
  209. --admonition-danger-color: #fcc;
  210. --admonition-danger-title-background-color: #633;
  211. --admonition-danger-title-color: #fcc;
  212. --admonition-tip-background-color: #28382d;
  213. --admonition-tip-color: #dfd;
  214. --admonition-tip-title-background-color: #336648;
  215. --admonition-tip-title-color: #dfd;
  216. --kbd-background-color: #595b5d;
  217. --kbd-outline-color: #3d4144;
  218. --kbd-shadow-color: #1e2023;
  219. --kbd-text-color: #e2f2ff;
  220. --code-example-good-color: #3fb950;
  221. --code-example-bad-color: #f85149;
  222. --btn-neutral-background-color: #404040;
  223. --btn-neutral-hover-background-color: #505050;
  224. --footer-color: #aaa;
  225. }
  226. }
  227. body,
  228. h1,
  229. h2,
  230. h3,
  231. h4,
  232. h5,
  233. h6,
  234. input[type="text"],
  235. input[type="button"],
  236. input[type="reset"],
  237. input[type="submit"],
  238. textarea,
  239. legend,
  240. .btn,
  241. .rst-content .toctree-wrapper p.caption,
  242. .rst-versions {
  243. /* Use a system font stack for better performance (no Web fonts required) */
  244. font-family: var(--system-font-family);
  245. /* Some fonts that we use (namely JetBrains Mono) can come with ligatures. It's better to opt-in if needed. */
  246. font-variant-ligatures: none;
  247. }
  248. h1,
  249. h2,
  250. h3,
  251. h4,
  252. h5,
  253. h6,
  254. legend,
  255. .rst-content .toctree-wrapper p.caption {
  256. /* Use a lighter font for headers (Medium instead of Bold) */
  257. font-weight: 500;
  258. }
  259. /* See <https://github.com/godotengine/godot-docs/pull/5876> for context. */
  260. .rst-content .align-right,
  261. .rst-content .align-left {
  262. clear: both;
  263. }
  264. .rst-content div.figure p.caption {
  265. /* Tweak caption styling to be closer to typical captions */
  266. text-align: center;
  267. margin-top: 8px;
  268. opacity: 0.75;
  269. }
  270. .rst-content div.figure.figure-w480 {
  271. max-width: 480px;
  272. }
  273. .rst-content div.figure img {
  274. border: 1px solid var(--body-color);
  275. }
  276. p,
  277. article ul,
  278. article ol,
  279. .wy-plain-list-disc,
  280. .wy-plain-list-decimal,
  281. .rst-content ol.arabic,
  282. .rst-content .toctree-wrapper ul {
  283. /* Increase the line height slightly to account for the different font */
  284. line-height: 25px;
  285. }
  286. /* Depending on the environment, it can be a section tag or a div with the section class. */
  287. .rst-content section ul,
  288. .rst-content section ol,
  289. .rst-content .section ul,
  290. .rst-content .section ol {
  291. /* Increase the line height slightly to account for the different font */
  292. line-height: 25px;
  293. }
  294. .rst-content section ul li,
  295. .rst-content .section ul li {
  296. /* Increase spacing between list items. */
  297. margin-top: 8px;
  298. margin-bottom: 8px;
  299. }
  300. body,
  301. .rst-content table.docutils thead {
  302. color: var(--body-color);
  303. }
  304. a {
  305. color: var(--link-color);
  306. }
  307. a:hover {
  308. color: var(--link-color-hover);
  309. text-decoration: underline;
  310. }
  311. a:active {
  312. /* Add visual feedback when clicking on a link */
  313. color: var(--link-color-active);
  314. }
  315. a:visited {
  316. color: var(--link-color-visited);
  317. }
  318. a.btn:hover {
  319. text-decoration: none;
  320. }
  321. /* Style external links differently to make them easier to distinguish from internal links. */
  322. .reference.external {
  323. background-position: center right;
  324. background-repeat: no-repeat;
  325. background-image: var(--external-reference-icon);
  326. padding-right: 13px;
  327. }
  328. /* Distinguish class reference page links from "user manual" page links with a class reference badge. */
  329. /* Remove text wrapping so that the badge is always on the same line as the anchor's text. */
  330. .rst-content a[href*="classes/"] {
  331. white-space: nowrap;
  332. }
  333. /* Add an icon as a badge, after the anchor's text. */
  334. .rst-content a[href*="classes/"]::after {
  335. content: "";
  336. background-image: var(--class-reference-icon);
  337. display: inline-block;
  338. height: 16px;
  339. width: 16px;
  340. padding: 0.125rem 0.375rem;
  341. margin-left: 0.25rem;
  342. }
  343. /* Prevent the class reference badge from appearing twice in the instant search results (not testable locally). */
  344. .wy-body-for-nav .search__result__single a[href*="classes/"]::after {
  345. display: none;
  346. }
  347. .wy-body-for-nav .search__result__single a[href*="classes/"]:first-child::after {
  348. display: inline-block;
  349. }
  350. /* Prevent the class reference badge from appearing several times per item in the dedicated search results page. */
  351. #search-results .context a[href*="classes/"]::after {
  352. display: none;
  353. }
  354. /* Stylize horizontal separator, mainly for the search results page. */
  355. hr,
  356. #search-results .search li:first-child,
  357. #search-results .search li {
  358. border-color: var(--hr-color);
  359. }
  360. /* Stylize the search results page. */
  361. #search-results .search-summary {
  362. color: var(--footer-color);
  363. }
  364. #search-results .context {
  365. color: var(--search-context-color);
  366. padding-left: 14px;
  367. position: relative;
  368. }
  369. #search-results .context:before {
  370. content: "•";
  371. display: block;
  372. position: absolute;
  373. left: 0;
  374. font-size: 120%;
  375. }
  376. #search-results .search li {
  377. background-color: var(--search-odd-color);
  378. padding: 16px 14px;
  379. border-radius: 6px;
  380. border: none;
  381. margin-bottom: 18px;
  382. }
  383. #search-results .search li:first-child {
  384. border: none;
  385. padding: 16px 14px;
  386. margin-top: 20px;
  387. }
  388. #search-results .search li:nth-child(2n) {
  389. background-color: var(--search-even-color);
  390. }
  391. /* Add more visual separation for the title of a search result island. */
  392. #search-results .search li > a:first-child {
  393. font-weight: 600;
  394. font-size: 140%;
  395. }
  396. /* JavaScript documentation directives */
  397. html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.glossary):not(.simple) dt,
  398. html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.glossary):not(.simple) dl:not(.field-list) > dt {
  399. background-color: var(--admonition-note-background-color);
  400. border-color: var(--admonition-note-title-background-color);
  401. color: var(--admonition-note-color);
  402. }
  403. html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.glossary):not(.simple) dl dt {
  404. background-color: transparent;
  405. border-color: transparent;
  406. color: var(--footer-color);
  407. }
  408. html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.glossary):not(.simple).class dt,
  409. html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.glossary):not(.simple).function dt,
  410. html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.glossary):not(.simple).method dt,
  411. html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.glossary):not(.simple).attribute dt {
  412. font-weight: 600;
  413. padding: 0 8px;
  414. margin-bottom: 1px;
  415. width: 100%;
  416. }
  417. html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.glossary):not(.simple).class > dt,
  418. html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.glossary):not(.simple).function > dt,
  419. html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.glossary):not(.simple).method > dt,
  420. html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.glossary):not(.simple).attribute > dt {
  421. font-family: var(--monospace-font-family);
  422. font-size: 90%;
  423. font-weight: normal;
  424. margin-bottom: 16px;
  425. padding: 6px 8px;
  426. }
  427. html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.glossary):not(.simple) .sig-prename.descclassname {
  428. color: var(--highlight-type2-color);
  429. font-weight: normal;
  430. }
  431. html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.glossary):not(.simple) .sig-name.descname {
  432. color: var(--highlight-function-color);
  433. font-weight: 700;
  434. }
  435. html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.glossary):not(.simple) .sig-paren,
  436. html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.glossary):not(.simple) .optional {
  437. color: var(--highlight-operator-color) !important;
  438. font-weight: normal;
  439. padding: 0 2px;
  440. }
  441. html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.glossary):not(.simple) .optional {
  442. font-style: italic;
  443. }
  444. html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.glossary):not(.simple) .sig-param,
  445. html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.glossary):not(.simple).class dt > em,
  446. html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.glossary):not(.simple).function dt > em,
  447. html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.glossary):not(.simple).method dt > em {
  448. color: var(--code-literal-color);
  449. font-style: normal;
  450. padding: 0 4px;
  451. }
  452. html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.glossary):not(.simple) .k {
  453. font-style: normal;
  454. }
  455. html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.glossary):not(.simple) .sig-param,
  456. html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.glossary):not(.simple).class dt > .optional ~ em,
  457. html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.glossary):not(.simple).function dt > .optional ~ em,
  458. html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.glossary):not(.simple).method dt > .optional ~ em {
  459. color: var(--highlight-number-color);
  460. font-style: italic;
  461. }
  462. html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.glossary):not(.simple).class dt > em.property {
  463. color: var(--highlight-keyword-color);
  464. }
  465. html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.glossary):not(.simple) dt a.headerlink {
  466. color: var(--link-color) !important;
  467. }
  468. html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.glossary):not(.simple) dt a.headerlink:visited {
  469. color: var(--link-color-visited);
  470. }
  471. html.writer-html5 .rst-content dl.field-list > dd strong {
  472. font-family: var(--monospace-font-family);
  473. }
  474. footer {
  475. color: var(--footer-color);
  476. }
  477. /* Sphinx Search extension */
  478. /* .wy-body-for-nav is used for higher rule specificity */
  479. /* Search popup body */
  480. .wy-body-for-nav .search__outer {
  481. background-color: var(--content-background-color);
  482. border: 2px solid var(--content-background-color);
  483. }
  484. .wy-body-for-nav .search__cross svg {
  485. fill: var(--body-color);
  486. }
  487. .wy-body-for-nav .search__outer::-webkit-scrollbar-track {
  488. border-radius: 10px;
  489. background-color: var(--content-background-color);
  490. }
  491. .wy-body-for-nav .search__outer::-webkit-scrollbar {
  492. width: 7px;
  493. height: 7px;
  494. background-color: var(--content-background-color);
  495. }
  496. .wy-body-for-nav .search__outer::-webkit-scrollbar-thumb {
  497. border-radius: 10px;
  498. background-color: var(--hr-color);
  499. }
  500. /* Search input */
  501. .wy-body-for-nav .search__outer__input {
  502. background-color: var(--search-input-background-color);
  503. background-image: none;
  504. border-radius: 50px;
  505. border: 2px solid transparent;
  506. color: var(--body-color);
  507. height: 36px;
  508. padding: 6px 12px;
  509. }
  510. .wy-body-for-nav .search__outer__input:focus {
  511. border-color: var(--input-focus-border-color);
  512. }
  513. .wy-body-for-nav .search__outer .bar:after,
  514. .wy-body-for-nav .search__outer .bar:before {
  515. display: none;
  516. }
  517. /* Search results item */
  518. .wy-body-for-nav .search__result__single {
  519. border-bottom-color: var(--hr-color);
  520. }
  521. /* Search item title */
  522. .wy-body-for-nav .search__result__title {
  523. color: var(--link-color);
  524. border-bottom: none;
  525. font-size: 120%;
  526. font-weight: 400;
  527. }
  528. /* Search item section */
  529. .wy-body-for-nav .outer_div_page_results:hover,
  530. .wy-body-for-nav .search__result__box .active {
  531. background-color: var(--search-active-color);
  532. }
  533. .wy-body-for-nav .search__result__subheading{
  534. color: var(--body-color);
  535. font-size: 100%;
  536. font-weight: 400;
  537. }
  538. .wy-body-for-nav .search__result__content {
  539. color: var(--footer-color);
  540. }
  541. /* Search item matching substring */
  542. .wy-body-for-nav .search__outer .search__result__title span,
  543. .wy-body-for-nav .search__outer .search__result__content span {
  544. color: var(--search-match-color);
  545. border-bottom: 1px solid var(--search-match-color);
  546. background-color: var(--search-match-background-color);
  547. padding: 0 2px;
  548. }
  549. .wy-body-for-nav .search__result__subheading span {
  550. border-bottom-color: var(--body-color);
  551. }
  552. /* Search empty results */
  553. /* The original styles are inlined, see https://github.com/readthedocs/readthedocs-sphinx-search/issues/48 */
  554. .wy-body-for-nav .search__result__box {
  555. color: var(--body-color) !important;
  556. }
  557. /* Search footer & credits */
  558. .wy-body-for-nav .rtd__search__credits {
  559. background-color: var(--search-credits-background-color);
  560. border-color: var(--search-credits-background-color);
  561. color: var(--search-credits-color);
  562. padding: 4px 8px;
  563. }
  564. .wy-body-for-nav .rtd__search__credits a {
  565. color: var(--search-credits-link-color);
  566. }
  567. /* Main sections */
  568. .wy-nav-content-wrap {
  569. background-color: var(--content-wrap-background-color);
  570. }
  571. .wy-nav-content {
  572. background-color: var(--content-background-color);
  573. max-width: 900px;
  574. }
  575. .wy-body-for-nav {
  576. background-color: var(--content-wrap-background-color);
  577. }
  578. @media only screen and (min-width: 769px) {
  579. .wy-body-for-nav {
  580. /* Center the page on wide displays for better readability */
  581. max-width: 1200px;
  582. margin: 0 auto;
  583. }
  584. }
  585. /* Customize the look of tabbed panels, including code tabs. */
  586. .rst-content [role="tablist"] {
  587. border-bottom: none;
  588. }
  589. .rst-content .sphinx-tabs-tab {
  590. border-top: 4px solid transparent;
  591. color: var(--link-color);
  592. padding: 0.5rem 1.25rem;
  593. }
  594. .rst-content .sphinx-tabs-tab[aria-selected="true"] {
  595. background-color: var(--tabs-background-color);
  596. border: none;
  597. border-radius: 0;
  598. border-top: 4px solid var(--tabs-selected-color);
  599. }
  600. .rst-content .sphinx-tabs-tab.code-tab[aria-selected="true"] {
  601. background-color: var(--code-tabs-background-color);
  602. border-top: 4px solid var(--code-tabs-selected-color);
  603. }
  604. .rst-content .sphinx-tabs-tab:focus {
  605. z-index: inherit;
  606. }
  607. .rst-content .sphinx-tabs-panel {
  608. background-color: var(--tabs-background-color);
  609. border: none;
  610. border-radius: 0;
  611. }
  612. .rst-content .sphinx-tabs-panel.code-tab {
  613. background-color: var(--code-tabs-background-color);
  614. }
  615. .rst-content .sphinx-tabs-panel div[class^="highlight"] {
  616. border: none;
  617. box-shadow: none;
  618. margin-bottom: 2px;
  619. }
  620. .rst-content div[class^="highlight"] pre {
  621. font-variant-ligatures: none;
  622. padding: 18px 16px;
  623. }
  624. /* Table display tweaks */
  625. .rst-content table.docutils,
  626. .wy-table-bordered-all {
  627. border: 4px solid var(--code-border-color);
  628. }
  629. .wy-table-bordered-all td,
  630. .wy-table thead th,
  631. .rst-content table.docutils td,
  632. .rst-content table.docutils thead th,
  633. .rst-content table.field-list thead th {
  634. border-bottom: 2px solid var(--code-border-color);
  635. border-left: 2px solid var(--code-border-color);
  636. padding: 4px 16px;
  637. }
  638. html.writer-html5 .rst-content table.docutils th {
  639. border-bottom: 4px solid var(--code-border-color);
  640. border-left: 2px solid var(--code-border-color);
  641. padding: 8px 16px;
  642. vertical-align: middle;
  643. }
  644. .wy-table-odd td,
  645. .wy-table-striped tr:nth-child(2n-1) td,
  646. .rst-content table.docutils:not(.field-list) tr:nth-child(2n-1) td {
  647. background-color: var(--table-row-odd-background-color);
  648. }
  649. /* Override table no-wrap */
  650. /* The first column cells are not verbose, no need to wrap them */
  651. .wy-table-responsive table td:not(:nth-child(1)),
  652. .wy-table-responsive table th:not(:nth-child(1)) {
  653. white-space: normal;
  654. }
  655. /* Allow to control wrapping behavior per table */
  656. .wy-table-responsive table.wrap-normal td,
  657. .wy-table-responsive table.wrap-normal th {
  658. white-space: normal;
  659. }
  660. /* Make sure line blocks don't stretch tables */
  661. .wy-table-responsive table .line-block {
  662. margin-bottom: 0;
  663. }
  664. /* Make sure not to wrap keyboard shortcuts */
  665. .wy-table-responsive table td kbd {
  666. white-space: nowrap;
  667. }
  668. /* Artificially increasing specificity to make it override theme.css. */
  669. html.writer-html5 .rst-content .wy-table-responsive > table td > p {
  670. line-height: 1.425rem;
  671. }
  672. html.writer-html5 .rst-content .wy-table-responsive > table th > p {
  673. line-height: 1.425rem;
  674. font-size: .95rem;
  675. font-weight: 600;
  676. }
  677. html.writer-html5 .rst-content .wy-table-responsive > table td > p tt.literal,
  678. html.writer-html5 .rst-content .wy-table-responsive > table td > p code.literal {
  679. font-size: .85rem;
  680. padding: 2px 5px;
  681. }
  682. /* Code display tweaks */
  683. code,
  684. .rst-content tt,
  685. .rst-content code {
  686. font-size: 14px;
  687. font-family: var(--monospace-font-family);
  688. background-color: var(--code-background-color);
  689. border: none;
  690. border-radius: 4px;
  691. }
  692. .rst-content tt.literal,
  693. .rst-content code.literal {
  694. color: var(--code-literal-color);
  695. font-weight: 600;
  696. font-variant-ligatures: none;
  697. padding: 3px 5px;
  698. }
  699. .rst-content div[class^="highlight"] {
  700. border: 3px solid var(--code-tabs-background-color);
  701. }
  702. .rst-content div[class^="highlight"] div[class^="highlight"] {
  703. box-shadow: none;
  704. }
  705. .rst-content pre.literal-block,
  706. .rst-content div[class^="highlight"] pre,
  707. .rst-content .linenodiv pre {
  708. /* Increase the font size and line height in code blocks */
  709. font-size: 14px;
  710. line-height: 1.5;
  711. font-family: var(--monospace-font-family);
  712. }
  713. /* Code tab display tweaks */
  714. .ui.tabular.menu .active.item,
  715. .ui.segment {
  716. background-color: var(--code-background-color);
  717. }
  718. /* Syntax highlighting */
  719. /* Remove default red boxes around Pygments errors */
  720. .highlight .err {
  721. border: none;
  722. }
  723. .highlight {
  724. background-color: var(--highlight-background-color);
  725. }
  726. /* Emphasized lines */
  727. .highlight .hll {
  728. background-color: var(--highlight-background-emph-color);
  729. }
  730. .highlight .gh /* Generic.Heading */,
  731. .highlight .gu /* Generic.Subheading */,
  732. .highlight .go /* Generic.Output */,
  733. .highlight .gt /* Generic.Traceback */ {
  734. color: var(--highlight-default-color);
  735. }
  736. .highlight .c /* Comment */,
  737. .highlight .c1 /* Comment.Single */,
  738. .highlight .cm /* Comment.Multiline */,
  739. .highlight .cs /* Comment.Special */ {
  740. color: var(--highlight-comment-color);
  741. }
  742. .highlight .bp /* Name.Builtin.Pseudo */,
  743. .highlight .k /* Keyword */,
  744. .highlight .kc /* Keyword.Constant */,
  745. .highlight .kd /* Keyword.Declaration */,
  746. .highlight .kn /* Keyword.Namespace */,
  747. .highlight .kp /* Keyword.Pseudo */,
  748. .highlight .kr /* Keyword.Reserved */,
  749. .highlight .kt /* Keyword.Type */,
  750. .highlight .ow /* Operator.Word */ {
  751. color: var(--highlight-keyword-color);
  752. }
  753. .highlight .ch /* Comment.Hashbang */,
  754. .highlight .cp /* Comment.Preproc */ {
  755. color: var(--highlight-keyword2-color);
  756. }
  757. .highlight .m /* Literal.Number */,
  758. .highlight .mf /* Literal.Number.Float */,
  759. .highlight .mi /* Literal.Number.Integer */,
  760. .highlight .il /* Literal.Number.Integer.Long */,
  761. .highlight .mb /* Literal.Number.Bin */,
  762. .highlight .mh /* Literal.Number.Hex */,
  763. .highlight .mo /* Literal.Number.Oct */ {
  764. color: var(--highlight-number-color);
  765. }
  766. .highlight .na /* Name.Attribute */,
  767. .highlight .nd /* Name.Decorator */,
  768. .highlight .ni /* Name.Entity */,
  769. .highlight .nl /* Name.Label */ {
  770. color: var(--highlight-decorator-color);
  771. }
  772. .highlight .nb /* Name.Builtin */,
  773. .highlight .ne /* Name.Exception */ {
  774. color: var(--highlight-type-color);
  775. }
  776. .highlight .nc /* Name.Class */,
  777. .highlight .nn /* Name.Namespace */,
  778. .highlight .no /* Name.Constant */,
  779. .highlight .nv /* Name.Variable */,
  780. .highlight .vc /* Name.Variable.Class */,
  781. .highlight .vg /* Name.Variable.Global */,
  782. .highlight .vi /* Name.Variable.Instance */,
  783. .highlight .vm /* Name.Variable.Magic */ {
  784. color: var(--highlight-type2-color);
  785. }
  786. .highlight .nf /* Name.Function */,
  787. .highlight .fm /* Name.Function.Magic */,
  788. .highlight .nt /* Name.Tag */ {
  789. color: var(--highlight-function-color);
  790. }
  791. .highlight .o /* Operator */,
  792. .highlight .si /* Literal.String.Interpol */,
  793. .highlight .sx /* Literal.String.Other */,
  794. .highlight .sr /* Literal.String.Regex */,
  795. .highlight .ss /* Literal.String.Symbol */ {
  796. color: var(--highlight-operator-color);
  797. }
  798. .highlight .cpf/* Comment.PreprocFile */,
  799. .highlight .s /* Literal.String */,
  800. .highlight .s1 /* Literal.String.Single */,
  801. .highlight .s2 /* Literal.String.Double */,
  802. .highlight .sc /* Literal.String.Char */,
  803. .highlight .se /* Literal.String.Escape */,
  804. .highlight .sa /* Literal.String.Affix */,
  805. .highlight .sb /* Literal.String.Backtick */,
  806. .highlight .dl /* Literal.String.Delimiter */,
  807. .highlight .sd /* Literal.String.Doc */,
  808. .highlight .sh /* Literal.String.Heredoc */ {
  809. color: var(--highlight-string-color);
  810. }
  811. /* Call to action for missing documentation */
  812. .rst-content .contribute {
  813. background-color: var(--contribute-background-color);
  814. color: var(--contribute-text-color);
  815. padding: 12px;
  816. margin-bottom: 12px;
  817. }
  818. .rst-content .contribute > p {
  819. margin-bottom: 0;
  820. }
  821. /* Admonition tweaks */
  822. .rst-content .admonition-grid {
  823. display: grid;
  824. grid-template-columns: 1fr;
  825. gap: 20px;
  826. }
  827. .rst-content .admonition-grid-2x {
  828. grid-template-columns: 4fr 5fr;
  829. }
  830. @media screen and (max-width: 1020px) {
  831. .rst-content .admonition-grid {
  832. gap: 12px;
  833. }
  834. .rst-content .admonition-grid-2x {
  835. grid-template-columns: 1fr;
  836. }
  837. }
  838. .rst-content .admonition,
  839. .rst-content .admonition.note,
  840. .rst-content .admonition.seealso {
  841. background-color: var(--admonition-note-background-color);
  842. border-radius: 4px;
  843. box-shadow: 0px 3px 9px 0px rgb(0 0 0 / 29%);
  844. color: var(--admonition-note-color);
  845. }
  846. .rst-content .admonition .admonition-title,
  847. .rst-content .admonition.note .admonition-title,
  848. .rst-content .admonition.seealso .admonition-title {
  849. background-color: var(--admonition-note-title-background-color);
  850. border-radius: 4px 4px 0 0;
  851. color: var(--admonition-note-title-color);
  852. font-weight: 600;
  853. font-size: 105%;
  854. line-height: 120%;
  855. padding: 6px 16px;
  856. }
  857. .rst-content .admonition .admonition-title:before {
  858. margin-right: 9px;
  859. }
  860. .rst-content .admonition.attention,
  861. .rst-content .admonition.caution,
  862. .rst-content .admonition.warning {
  863. background-color: var(--admonition-attention-background-color);
  864. color: var(--admonition-attention-color);
  865. }
  866. .rst-content .admonition.attention .admonition-title,
  867. .rst-content .admonition.caution .admonition-title,
  868. .rst-content .admonition.warning .admonition-title {
  869. background-color: var(--admonition-attention-title-background-color);
  870. color: var(--admonition-attention-title-color);
  871. }
  872. .rst-content .admonition.danger {
  873. background-color: var(--admonition-danger-background-color);
  874. color: var(--admonition-danger-color);
  875. }
  876. .rst-content .admonition.danger .admonition-title {
  877. background-color: var(--admonition-danger-title-background-color);
  878. color: var(--admonition-danger-title-color);
  879. }
  880. .rst-content .admonition.tip,
  881. .rst-content .admonition.important {
  882. background-color: var(--admonition-tip-background-color);
  883. color: var(--admonition-tip-color);
  884. }
  885. .rst-content .admonition.tip .admonition-title,
  886. .rst-content .admonition.important .admonition-title {
  887. background-color: var(--admonition-tip-title-background-color);
  888. color: var(--admonition-tip-title-color);
  889. }
  890. .article-status strong {
  891. color: var(--body-color);
  892. }
  893. /* Keyboard shortcuts tweaks */
  894. kbd, .kbd,
  895. .rst-content :not(dl.option-list) > :not(dt):not(kbd):not(.kbd) > kbd,
  896. .rst-content :not(dl.option-list) > :not(dt):not(kbd):not(.kbd) > .kbd {
  897. background-color: var(--kbd-background-color);
  898. border: 1px solid var(--kbd-outline-color);
  899. border-radius: 3px;
  900. box-shadow: inset 0 -1px 0 var(--kbd-shadow-color);
  901. color: var(--kbd-text-color);
  902. display: inline-block;
  903. font-size: 12px;
  904. line-height: 11px;
  905. padding: 4px 5px;
  906. vertical-align: middle;
  907. }
  908. /* Unset excessive styles for nested kbd tags. */
  909. kbd.compound > kbd,
  910. kbd.compound > .kbd,
  911. .kbd.compound > kbd,
  912. .kbd.compound > .kbd {
  913. border: none;
  914. box-shadow: none;
  915. padding: 0;
  916. }
  917. /* Class reference tweaks. */
  918. .classref-section-separator {
  919. border-color: var(--navbar-heading-color);
  920. border-top-width: 3px;
  921. margin: 36px 0;
  922. }
  923. .classref-item-separator {
  924. border-top-width: 2px;
  925. margin: 26px 0;
  926. }
  927. .classref-descriptions-group > p.classref-property,
  928. .classref-descriptions-group > p.classref-signal,
  929. .classref-descriptions-group > p.classref-annotation,
  930. .classref-descriptions-group > p.classref-themeproperty,
  931. .classref-descriptions-group > p.classref-method,
  932. .classref-descriptions-group > p.classref-constructor,
  933. .classref-descriptions-group > p.classref-operator,
  934. .classref-descriptions-group > p.classref-constant,
  935. .classref-descriptions-group > p.classref-enumeration,
  936. .classref-descriptions-group > p.classref-enumeration-constant {
  937. color: var(--classref-secondary-color);
  938. font-family: var(--monospace-font-family);
  939. font-size: 110%;
  940. font-weight: 600;
  941. margin-bottom: 18px;
  942. }
  943. .classref-property {
  944. margin-bottom: 12px;
  945. }
  946. p + .classref-constant {
  947. margin-top: 22px;
  948. }
  949. .classref-descriptions-group > p.classref-enumeration-constant {
  950. font-size: 100%;
  951. margin-top: 18px;
  952. margin-bottom: 14px;
  953. }
  954. .classref-property > a,
  955. .classref-signal > a,
  956. .classref-annotation > a,
  957. .classref-themeproperty > a,
  958. .classref-method > a,
  959. .classref-constructor > a,
  960. .classref-operator > a,
  961. .classref-constant > a,
  962. .classref-enumeration > a {
  963. opacity: 0.85;
  964. }
  965. .classref-enumeration-constant > a {
  966. opacity: 0.75;
  967. }
  968. .classref-property > a:hover,
  969. .classref-signal > a:hover,
  970. .classref-annotation > a:hover,
  971. .classref-themeproperty > a:hover,
  972. .classref-method > a:hover,
  973. .classref-constructor > a:hover,
  974. .classref-operator > a:hover,
  975. .classref-constant > a:hover,
  976. .classref-enumeration > a:hover,
  977. .classref-enumeration-constant > a:hover {
  978. opacity: 1;
  979. }
  980. .classref-property > strong,
  981. .classref-signal > strong,
  982. .classref-annotation > strong,
  983. .classref-themeproperty > strong,
  984. .classref-method > strong,
  985. .classref-constructor > strong,
  986. .classref-operator > strong,
  987. .classref-constant > strong,
  988. .classref-enumeration > strong,
  989. .classref-enumeration-constant > strong {
  990. color: var(--classref-primary-color);
  991. }
  992. .classref-property > code.literal,
  993. .classref-signal > code.literal,
  994. .classref-annotation > code.literal,
  995. .classref-themeproperty > code.literal,
  996. .classref-method > code.literal,
  997. .classref-constructor > code.literal,
  998. .classref-operator > code.literal,
  999. .classref-constant > code.literal,
  1000. .classref-enumeration > code.literal,
  1001. .classref-enumeration-constant > code.literal {
  1002. background-color: transparent;
  1003. border: none;
  1004. padding: 0;
  1005. font-weight: 600;
  1006. font-size: 90%
  1007. }
  1008. .classref-constant > code.literal,
  1009. .classref-enumeration-constant > code.literal {
  1010. color: var(--classref-setget-color);
  1011. font-weight: 400;
  1012. }
  1013. /* Artificially increasing specificity to make it override theme.css. */
  1014. .classref-descriptions-group ul.classref-property-setget {
  1015. color: var(--classref-setget-color);
  1016. font-size: 90%;
  1017. margin-bottom: 22px;
  1018. }
  1019. .classref-property-setget > li {
  1020. line-height: 22px;
  1021. }
  1022. .classref-property-setget p {
  1023. font-family: var(--monospace-font-family);
  1024. font-size: 100%;
  1025. line-height: 22px;
  1026. }
  1027. .classref-property-setget p > a {
  1028. opacity: 0.75;
  1029. }
  1030. .classref-property-setget p > a:hover {
  1031. opacity: 1;
  1032. }
  1033. .classref-property-setget p > strong {
  1034. color: var(--classref-setget-color);
  1035. }
  1036. .classref-property-setget p > code {
  1037. background-color: transparent;
  1038. border: none;
  1039. padding: 0;
  1040. font-weight: 600;
  1041. }
  1042. .classref-descriptions-group {
  1043. margin-left: 24px;
  1044. }
  1045. #enumerations.classref-descriptions-group {
  1046. margin-left: 48px;
  1047. }
  1048. .classref-descriptions-group > h2,
  1049. .classref-descriptions-group > hr {
  1050. margin-left: -24px;
  1051. }
  1052. #enumerations.classref-descriptions-group > h2,
  1053. #enumerations.classref-descriptions-group > hr {
  1054. margin-left: -48px;
  1055. }
  1056. .classref-descriptions-group > p {
  1057. margin-bottom: 12px;
  1058. }
  1059. .classref-descriptions-group .classref-property,
  1060. .classref-descriptions-group .classref-signal,
  1061. .classref-descriptions-group .classref-annotation,
  1062. .classref-descriptions-group .classref-themeproperty,
  1063. .classref-descriptions-group .classref-method,
  1064. .classref-descriptions-group .classref-constructor,
  1065. .classref-descriptions-group .classref-operator,
  1066. .classref-descriptions-group .classref-constant,
  1067. .classref-descriptions-group .classref-enumeration-constant {
  1068. margin-left: -24px;
  1069. }
  1070. .classref-descriptions-group .classref-enumeration {
  1071. margin-left: -48px;
  1072. }
  1073. .classref-reftable-group .wy-table-responsive {
  1074. margin-bottom: 36px;
  1075. }
  1076. .classref-reftable-group .wy-table-responsive > table {
  1077. width: 100%;
  1078. }
  1079. /* Buttons */
  1080. .btn-neutral {
  1081. background-color: var(--btn-neutral-background-color) !important;
  1082. color: var(--body-color) !important;
  1083. }
  1084. .btn-neutral:hover {
  1085. background-color: var(--btn-neutral-hover-background-color) !important;
  1086. }
  1087. .btn-neutral:visited {
  1088. color: var(--body-color) !important;
  1089. }
  1090. /* Navigation bar logo and search */
  1091. .logo {
  1092. opacity: var(--logo-opacity);
  1093. }
  1094. .wy-side-nav-search > a {
  1095. padding: 0;
  1096. margin-bottom: 0.404em;
  1097. margin-top: 0.404em;
  1098. }
  1099. .wy-side-nav-search > a img.logo {
  1100. /* Fixed size to prevent reflows and support hiDPI displays */
  1101. /* A 5 pixel margin is added on each side. The logo itself displays at 200×200 at 100% scaling. */
  1102. width: 270px;
  1103. height: 70px;
  1104. }
  1105. .wy-side-nav-search {
  1106. background-color: var(--navbar-background-color);
  1107. color: var(--navbar-level-1-color);
  1108. margin-right: 8px;
  1109. }
  1110. .wy-side-nav-search.fixed {
  1111. position: fixed;
  1112. }
  1113. @media only screen and (min-width: 769px) {
  1114. /* Simulate a drop shadow that only affects the bottom edge */
  1115. /* This is used to indicate the search bar is fixed */
  1116. .wy-side-nav-search.fixed-and-scrolled::after {
  1117. content: '';
  1118. position: absolute;
  1119. left: 0;
  1120. bottom: -8px;
  1121. width: 300px;
  1122. height: 8px;
  1123. pointer-events: none;
  1124. background: linear-gradient(hsla(0, 0%, 0%, 0.2), transparent);
  1125. }
  1126. }
  1127. .wy-side-nav-search > a:hover,
  1128. .wy-side-nav-search .wy-dropdown > a:hover {
  1129. background-color: var(--navbar-background-color-hover);
  1130. }
  1131. .wy-side-nav-search > a:active,
  1132. .wy-side-nav-search .wy-dropdown > a:active {
  1133. background-color: var(--navbar-background-color-active);
  1134. }
  1135. .wy-side-nav-search input[type="text"] {
  1136. background-color: var(--input-background-color);
  1137. color: var(--body-color);
  1138. /* Avoid reflowing when toggling the focus state */
  1139. border: 2px solid transparent;
  1140. box-shadow: none;
  1141. /* Make visual feedback instant */
  1142. transition: none;
  1143. font-size: 14px;
  1144. }
  1145. .wy-side-nav-search input[type="text"]:focus {
  1146. border: 2px solid var(--input-focus-border-color);
  1147. }
  1148. .wy-side-nav-search input[type="text"]::placeholder {
  1149. color: var(--body-color);
  1150. opacity: 0.55;
  1151. }
  1152. /* Version branch label below the logo */
  1153. .wy-side-nav-search > div.version {
  1154. color: var(--navbar-dimmed-color);
  1155. font-size: 14px;
  1156. opacity: 0.9;
  1157. }
  1158. /* Navigational top bar (mobile only) */
  1159. .wy-nav-top,
  1160. .wy-nav-top a {
  1161. background-color: var(--navbar-background-color);
  1162. color: var(--navbar-level-1-color);
  1163. }
  1164. /* Navigational sidebar */
  1165. .wy-nav-side {
  1166. background-color: var(--navbar-background-color);
  1167. }
  1168. @media only screen and (min-width: 769px) {
  1169. .wy-nav-side {
  1170. /* Required to center the page on wide displays */
  1171. left: inherit;
  1172. }
  1173. }
  1174. .wy-menu-vertical header,
  1175. .wy-menu-vertical p.caption {
  1176. color: var(--navbar-heading-color);
  1177. /* Improves the appearance of uppercase text */
  1178. letter-spacing: 0.75px;
  1179. }
  1180. /* Default styling of navigation items */
  1181. .wy-menu-vertical li {
  1182. background-color: var(--navbar-background-color);
  1183. }
  1184. .wy-menu-vertical li.current {
  1185. background-color: var(--navbar-current-background-color);
  1186. }
  1187. .wy-menu-vertical li > a {
  1188. color: var(--navbar-level-1-color);
  1189. font-size: 92%;
  1190. line-height: 20px;
  1191. padding: .4045em 1.618em;
  1192. }
  1193. .wy-menu-vertical li > a:hover {
  1194. background-color: var(--navbar-background-color-hover);
  1195. color: var(--navbar-level-1-color);
  1196. }
  1197. .wy-menu-vertical li > a:active {
  1198. background-color: var(--navbar-background-color-active);
  1199. }
  1200. .wy-menu-vertical li > a button.toctree-expand {
  1201. color: var(--navbar-expand-base-color) !important;
  1202. opacity: 0.9;
  1203. margin-right: 8px;
  1204. /* Make the expand icon a bit easier to hit. */
  1205. position: relative;
  1206. width: 12px;
  1207. min-width: 12px; /* Forces the size to stay this way in the flexbox model. */
  1208. height: 18px;
  1209. }
  1210. .wy-menu-vertical li.current > a button.toctree-expand {
  1211. color: var(--navbar-current-color) !important;
  1212. }
  1213. .wy-menu-vertical li > a:hover button.toctree-expand {
  1214. color: var(--navbar-expand-hover-color) !important;
  1215. opacity: 1;
  1216. }
  1217. .wy-menu-vertical li > a:active button.toctree-expand {
  1218. color: var(--navbar-expand-active-color) !important;
  1219. opacity: 1;
  1220. }
  1221. /* Make the expand icon a bit easier to hit. */
  1222. .wy-menu-vertical li > a button.toctree-expand:before {
  1223. position: absolute;
  1224. top: -2px;
  1225. left: -6px;
  1226. width: 24px;
  1227. height: 24px;
  1228. padding: 6px;
  1229. }
  1230. .wy-menu-vertical li.current > a,
  1231. .wy-menu-vertical li.toctree-l2.current > a {
  1232. background-color: var(--navbar-current-background-color-hover);
  1233. border-bottom: 2px solid var(--navbar-current-background-color);
  1234. color: var(--navbar-current-color);
  1235. font-weight: 600;
  1236. /* Make long words always display on a single line, keep wrapping for multiple words */
  1237. /* This fixes the class reference titles' display with very long class names */
  1238. display: flex;
  1239. }
  1240. .wy-menu-vertical li.current > a:hover,
  1241. .wy-menu-vertical li.toctree-l2.current > a:hover {
  1242. background-color: var(--navbar-current-background-color-hover);
  1243. }
  1244. .wy-menu-vertical li.current > a:active,
  1245. .wy-menu-vertical li.toctree-l2.current > a:active {
  1246. background-color: var(--navbar-current-background-color-active);
  1247. }
  1248. /* Slightly adjust first level items. */
  1249. .wy-menu-vertical li.toctree-l1 > a,
  1250. .wy-menu-vertical li.toctree-l1.current > a {
  1251. border: none;
  1252. padding: .4045em 1.918em;
  1253. }
  1254. .wy-menu-vertical li.toctree-l1.current > a {
  1255. border-bottom: 2px solid var(--navbar-current-background-color);
  1256. }
  1257. /* Override styling for children of the current item. */
  1258. .wy-menu-vertical li.current li > a,
  1259. .wy-menu-vertical li.toctree-l2.current li > a,
  1260. .wy-menu-vertical li.toctree-l2.current li.toctree-l3 > a,
  1261. .wy-menu-vertical li.toctree-l2.current li.toctree-l4 > a {
  1262. background-color: var(--navbar-current-background-color);
  1263. border: none;
  1264. border-bottom: 2px solid var(--navbar-current-background-color);
  1265. color: var(--navbar-level-2-color);
  1266. }
  1267. .wy-menu-vertical li.current li > a:hover,
  1268. .wy-menu-vertical li.toctree-l2.current li > a:hover,
  1269. .wy-menu-vertical li.toctree-l2.current li.toctree-l3 > a:hover,
  1270. .wy-menu-vertical li.toctree-l2.current li.toctree-l4 > a:hover {
  1271. background-color: var(--navbar-current-background-color-hover);
  1272. }
  1273. .wy-menu-vertical li.current li > a:active,
  1274. .wy-menu-vertical li.toctree-l2.current li > a:active,
  1275. .wy-menu-vertical li.toctree-l2.current li.toctree-l3 > a:active,
  1276. .wy-menu-vertical li.toctree-l2.current li.toctree-l4 > a:active {
  1277. background-color: var(--navbar-current-background-color-active);
  1278. }
  1279. .wy-menu-vertical li.toctree-l2.current li > a,
  1280. .wy-menu-vertical li.toctree-l2.current li.toctree-l3 > a,
  1281. .wy-menu-vertical li.toctree-l2.current li.toctree-l4 > a {
  1282. color: var(--navbar-level-3-color);
  1283. }
  1284. .wy-menu-vertical li.toctree-l2.current li > a:hover,
  1285. .wy-menu-vertical li.toctree-l2.current li.toctree-l3 > a:hover,
  1286. .wy-menu-vertical li.toctree-l2.current li.toctree-l4 > a:hover {
  1287. color: var(--navbar-level-1-color);
  1288. }
  1289. .wy-menu-vertical li.current li.current > a,
  1290. .wy-menu-vertical li.toctree-l2.current li.current > a,
  1291. .wy-menu-vertical li.toctree-l2.current li.toctree-l3.current > a,
  1292. .wy-menu-vertical li.toctree-l2.current li.toctree-l4.current > a {
  1293. color: var(--navbar-current-color);
  1294. font-weight: 600;
  1295. }
  1296. /* Banner panel in sidebar */
  1297. .wy-nav-side .ethical-rtd.fixed {
  1298. position: fixed;
  1299. }
  1300. /* Read the Docs flyout panel, with language and version selectors. */
  1301. .rst-versions {
  1302. background-color: var(--navbar-current-background-color);
  1303. }
  1304. .rst-versions.shift-up {
  1305. overflow: visible;
  1306. }
  1307. .rst-versions.shift-up:before {
  1308. content: '';
  1309. position: absolute;
  1310. left: 0;
  1311. top: -8px;
  1312. width: 100%;
  1313. height: 8px;
  1314. pointer-events: none;
  1315. background: linear-gradient(transparent, hsla(0, 0%, 0%, 0.2));
  1316. }
  1317. @media only screen and (min-width: 769px) {
  1318. .rst-versions {
  1319. /* Required to center the page on wide displays */
  1320. left: inherit;
  1321. }
  1322. }
  1323. .rst-versions a,
  1324. .rst-versions .rst-current-version,
  1325. .rst-versions .rst-current-version .fa,
  1326. .rst-versions .rst-other-versions dd a {
  1327. color: var(--navbar-level-1-color);
  1328. }
  1329. .rst-versions .rst-current-version,
  1330. .rst-versions .rst-other-versions {
  1331. padding: 12px 14px;
  1332. }
  1333. .rst-versions .rst-other-versions {
  1334. color: var(--navbar-heading-color);
  1335. }
  1336. .rst-versions .rst-other-versions dl + dl {
  1337. margin-top: 4px;
  1338. }
  1339. .rst-versions .rst-other-versions hr {
  1340. border-color: var(--hr-color);
  1341. margin: 12px 0;
  1342. }
  1343. .rst-versions .rst-other-versions small {
  1344. color: var(--navbar-dimmed-color);
  1345. }
  1346. .rst-versions .rst-other-versions dd a:hover {
  1347. text-decoration: underline;
  1348. }
  1349. /* This will hide every segment of the panel, starting with the 4th. */
  1350. .rst-versions .rst-other-versions .injected dl:nth-child(n+4) {
  1351. display: none;
  1352. }
  1353. .rst-versions .rst-current-version {
  1354. background-color: var(--navbar-current-background-color);
  1355. border-bottom: 1px solid var(--hr-color);
  1356. }
  1357. .rst-versions .rst-current-version:hover {
  1358. background-color: var(--navbar-current-background-color-hover);
  1359. }
  1360. .rst-versions .rst-current-version:active {
  1361. background-color: var(--navbar-current-background-color-active);
  1362. }
  1363. .rst-versions .rst-current-version .fa {
  1364. line-height: 20px;
  1365. }
  1366. /* Hide the obnoxious automatic highlight from the search context. */
  1367. .rst-content .highlighted {
  1368. background-color: transparent;
  1369. box-shadow: none;
  1370. font-weight: inherit;
  1371. padding: 0;
  1372. }
  1373. /* Still slightly highlight matched parts on the dedicated search results page. */
  1374. .rst-content #search-results .highlighted {
  1375. background-color: var(--search-highlighted-color);
  1376. border-radius: 2px;
  1377. color: var(--body-color);
  1378. font-weight: 600;
  1379. padding: 0 3px;
  1380. }
  1381. /* Allows the scrollbar to be shown in the sidebar */
  1382. @media only screen and (min-width: 769px) {
  1383. .wy-side-scroll {
  1384. overflow: hidden;
  1385. }
  1386. .wy-nav-side .wy-side-scroll .ethical-rtd {
  1387. width: calc(300px - 1.25em);
  1388. padding: 0 0 0 1em;
  1389. }
  1390. }
  1391. .wy-menu.wy-menu-vertical {
  1392. overflow-y: auto;
  1393. overflow-x: hidden;
  1394. max-height: calc(100% - 348px);
  1395. padding-bottom: 24px;
  1396. }
  1397. @media screen and (max-width: 768px) {
  1398. .wy-nav-side {
  1399. padding-bottom: 44px;
  1400. }
  1401. .wy-menu.wy-menu-vertical {
  1402. overflow-y: initial;
  1403. max-height: initial;
  1404. }
  1405. }
  1406. /* Scrollbar styling */
  1407. .wy-menu.wy-menu-vertical {
  1408. scrollbar-color: var(--navbar-scrollbar-color) var(--navbar-scrollbar-background);
  1409. }
  1410. .wy-menu.wy-menu-vertical::-webkit-scrollbar {
  1411. width: .75rem;
  1412. }
  1413. .wy-menu.wy-menu-vertical::-webkit-scrollbar-track {
  1414. background-color: var(--navbar-scrollbar-background);
  1415. }
  1416. .wy-menu.wy-menu-vertical::-webkit-scrollbar-thumb {
  1417. background-color: var(--navbar-scrollbar-color);
  1418. }
  1419. /* Firefox does the dimming on hover automatically. We emulate it for Webkit-based browsers. */
  1420. .wy-menu.wy-menu-vertical::-webkit-scrollbar-thumb:hover {
  1421. background-color: var(--navbar-scrollbar-hover-color);
  1422. }
  1423. .wy-menu.wy-menu-vertical::-webkit-scrollbar-thumb:active {
  1424. background-color: var(--navbar-scrollbar-active-color);
  1425. }
  1426. /* Allows to add a green or red bar to code blocks for "good"/"bad" code examples. */
  1427. .code-example-good div.highlight {
  1428. border-left-color: var(--code-example-good-color);
  1429. border-left-width: 8px;
  1430. }
  1431. .code-example-bad div.highlight {
  1432. border-left-color: var(--code-example-bad-color);
  1433. border-left-width: 8px;
  1434. }
  1435. /* Togglable sidebar sections. */
  1436. .wy-menu-vertical p.caption {
  1437. cursor: pointer;
  1438. }
  1439. .wy-menu-vertical p.caption.active {
  1440. background-color: var(--navbar-category-active-color);
  1441. }
  1442. .wy-menu-vertical p.caption:hover {
  1443. background-color: var(--navbar-background-color-hover);
  1444. }
  1445. .wy-menu-vertical p.caption.active .caption-text:before {
  1446. transform: rotate(90deg);
  1447. }
  1448. .wy-menu-vertical p.caption .caption-text:before {
  1449. content: "❯";
  1450. display: inline-block;
  1451. margin-left: -4px;
  1452. transition: transform 0.2s;
  1453. width: 16px;
  1454. height: 32px;
  1455. transform-origin: 2px 16px;
  1456. }
  1457. .wy-menu-vertical p.caption + ul {
  1458. display: none;
  1459. }
  1460. .wy-menu-vertical p.caption + ul.active {
  1461. display: block;
  1462. }