custom.css 59 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854
  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. }
  1623. /** Center videos embedded using the sphinxcontrib-video plugin.
  1624. * That plugin makes assumptions about `align-center` and `align-left` that our
  1625. * theme does not follow, so we set the `align-default` class instead to avoid
  1626. * collisions and have full control of how videos are aligned. */
  1627. .align-default {
  1628. text-align: center
  1629. }