custom.css 59 KB

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