custom.css 62 KB

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