custom.css 55 KB

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