custom.css 58 KB

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