custom.css 62 KB

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