custom.css 58 KB

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