custom.css 57 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819
  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. /* Make sure line blocks don't stretch tables */
  725. .wy-table-responsive table .line-block {
  726. margin-bottom: 0;
  727. }
  728. /* Make sure not to wrap keyboard shortcuts */
  729. .wy-table-responsive table td kbd {
  730. white-space: nowrap;
  731. }
  732. /* Artificially increasing specificity to make it override theme.css. */
  733. html.writer-html5 .rst-content .wy-table-responsive > table td > p {
  734. line-height: 1.425rem;
  735. }
  736. html.writer-html5 .rst-content .wy-table-responsive > table th > p {
  737. line-height: 1.425rem;
  738. font-size: .95rem;
  739. font-weight: 600;
  740. }
  741. html.writer-html5 .rst-content .wy-table-responsive > table td > p tt.literal,
  742. html.writer-html5 .rst-content .wy-table-responsive > table td > p code.literal {
  743. font-size: .85rem;
  744. padding: 2px 5px;
  745. }
  746. /* Code display tweaks */
  747. code,
  748. .rst-content tt,
  749. .rst-content code {
  750. font-size: .875em;
  751. font-family: var(--monospace-font-family);
  752. font-variant-ligatures: none;
  753. background-color: var(--code-background-color);
  754. border: none;
  755. border-radius: 4px;
  756. }
  757. .rst-content tt.literal,
  758. .rst-content code.literal {
  759. color: var(--code-literal-color);
  760. font-weight: 600;
  761. font-variant-ligatures: none;
  762. padding: 3px 5px;
  763. }
  764. .rst-content div[class^="highlight"] {
  765. border: 3px solid var(--code-tabs-background-color);
  766. }
  767. .rst-content div[class^="highlight"] div[class^="highlight"] {
  768. box-shadow: none;
  769. }
  770. .rst-content pre.literal-block,
  771. .rst-content div[class^="highlight"] pre,
  772. .rst-content .linenodiv pre {
  773. /* Increase the font size and line height in code blocks */
  774. font-size: 14px;
  775. line-height: 1.5;
  776. font-family: var(--monospace-font-family);
  777. font-variant-ligatures: none;
  778. }
  779. /* Code tab display tweaks */
  780. .ui.tabular.menu .active.item,
  781. .ui.segment {
  782. background-color: var(--code-background-color);
  783. }
  784. /* Syntax highlighting */
  785. /* Remove default red boxes around Pygments errors */
  786. .highlight .err {
  787. border: none;
  788. }
  789. .highlight {
  790. background-color: var(--highlight-background-color);
  791. tab-size: 4;
  792. }
  793. /* Emphasized lines */
  794. .highlight .hll {
  795. background-color: var(--highlight-background-emph-color);
  796. }
  797. .highlight .gh /* Generic.Heading */,
  798. .highlight .gu /* Generic.Subheading */,
  799. .highlight .go /* Generic.Output */,
  800. .highlight .gt /* Generic.Traceback */ {
  801. color: var(--highlight-default-color);
  802. }
  803. .highlight .c /* Comment */,
  804. .highlight .c1 /* Comment.Single */,
  805. .highlight .cm /* Comment.Multiline */,
  806. .highlight .cs /* Comment.Special */ {
  807. color: var(--highlight-comment-color);
  808. }
  809. .highlight .bp /* Name.Builtin.Pseudo */,
  810. .highlight .k /* Keyword */,
  811. .highlight .kc /* Keyword.Constant */,
  812. .highlight .kd /* Keyword.Declaration */,
  813. .highlight .kn /* Keyword.Namespace */,
  814. .highlight .kp /* Keyword.Pseudo */,
  815. .highlight .kr /* Keyword.Reserved */,
  816. .highlight .kt /* Keyword.Type */,
  817. .highlight .ow /* Operator.Word */ {
  818. color: var(--highlight-keyword-color);
  819. }
  820. .highlight .k-ControlFlow /* Keyword.ControlFlow */ {
  821. color: var(--highlight-control-flow-keyword-color);
  822. }
  823. .highlight .ch /* Comment.Hashbang */,
  824. .highlight .cp /* Comment.Preproc */ {
  825. color: var(--highlight-keyword2-color);
  826. }
  827. .highlight .m /* Literal.Number */,
  828. .highlight .mf /* Literal.Number.Float */,
  829. .highlight .mi /* Literal.Number.Integer */,
  830. .highlight .il /* Literal.Number.Integer.Long */,
  831. .highlight .mb /* Literal.Number.Bin */,
  832. .highlight .mh /* Literal.Number.Hex */,
  833. .highlight .mo /* Literal.Number.Oct */ {
  834. color: var(--highlight-number-color);
  835. }
  836. .highlight .na /* Name.Attribute */,
  837. .highlight .nd /* Name.Decorator */,
  838. .highlight .ni /* Name.Entity */,
  839. .highlight .nl /* Name.Label */ {
  840. color: var(--highlight-decorator-color);
  841. }
  842. .highlight .nb /* Name.Builtin */,
  843. .highlight .ne /* Name.Exception */ {
  844. color: var(--highlight-type-color);
  845. }
  846. .highlight .nc /* Name.Class */,
  847. .highlight .nn /* Name.Namespace */,
  848. .highlight .no /* Name.Constant */,
  849. .highlight .nv /* Name.Variable */,
  850. .highlight .vc /* Name.Variable.Class */,
  851. .highlight .vg /* Name.Variable.Global */,
  852. .highlight .vi /* Name.Variable.Instance */,
  853. .highlight .vm /* Name.Variable.Magic */ {
  854. color: var(--highlight-type2-color);
  855. }
  856. .highlight .nf /* Name.Function */,
  857. .highlight .fm /* Name.Function.Magic */,
  858. .highlight .nt /* Name.Tag */ {
  859. color: var(--highlight-function-color);
  860. }
  861. .highlight .o /* Operator */,
  862. .highlight .si /* Literal.String.Interpol */,
  863. .highlight .sx /* Literal.String.Other */,
  864. .highlight .sr /* Literal.String.Regex */,
  865. .highlight .ss /* Literal.String.Symbol */ {
  866. color: var(--highlight-operator-color);
  867. }
  868. .highlight .cpf/* Comment.PreprocFile */,
  869. .highlight .s /* Literal.String */,
  870. .highlight .s1 /* Literal.String.Single */,
  871. .highlight .s2 /* Literal.String.Double */,
  872. .highlight .sc /* Literal.String.Char */,
  873. .highlight .se /* Literal.String.Escape */,
  874. .highlight .sa /* Literal.String.Affix */,
  875. .highlight .sb /* Literal.String.Backtick */,
  876. .highlight .dl /* Literal.String.Delimiter */,
  877. .highlight .sd /* Literal.String.Doc */,
  878. .highlight .sh /* Literal.String.Heredoc */ {
  879. color: var(--highlight-string-color);
  880. }
  881. /* Call to action for missing documentation */
  882. .rst-content .contribute {
  883. background-color: var(--contribute-background-color);
  884. color: var(--contribute-text-color);
  885. padding: 12px;
  886. margin-bottom: 12px;
  887. }
  888. .rst-content .contribute > p {
  889. margin-bottom: 0;
  890. }
  891. /* Admonition tweaks */
  892. .rst-content .admonition-grid {
  893. display: grid;
  894. grid-template-columns: 1fr;
  895. gap: 20px;
  896. }
  897. .rst-content .admonition-grid-2x {
  898. grid-template-columns: 4fr 5fr;
  899. }
  900. @media screen and (max-width: 1020px) {
  901. .rst-content .admonition-grid {
  902. gap: 12px;
  903. }
  904. .rst-content .admonition-grid-2x {
  905. grid-template-columns: 1fr;
  906. }
  907. }
  908. .rst-content .admonition,
  909. .rst-content .admonition.note,
  910. .rst-content .admonition.seealso {
  911. background-color: var(--admonition-note-background-color);
  912. border-radius: 4px;
  913. box-shadow: 0px 3px 9px 0px rgb(0 0 0 / 29%);
  914. color: var(--admonition-note-color);
  915. }
  916. .rst-content .admonition .admonition-title,
  917. .rst-content .admonition.note .admonition-title,
  918. .rst-content .admonition.seealso .admonition-title {
  919. background-color: var(--admonition-note-title-background-color);
  920. border-radius: 4px 4px 0 0;
  921. color: var(--admonition-note-title-color);
  922. font-weight: 600;
  923. font-size: 105%;
  924. line-height: 120%;
  925. padding: 6px 16px;
  926. }
  927. .rst-content .admonition .admonition-title:before {
  928. margin-right: 9px;
  929. }
  930. .rst-content .admonition.attention,
  931. .rst-content .admonition.caution,
  932. .rst-content .admonition.warning {
  933. background-color: var(--admonition-attention-background-color);
  934. color: var(--admonition-attention-color);
  935. }
  936. .rst-content .admonition.attention .admonition-title,
  937. .rst-content .admonition.caution .admonition-title,
  938. .rst-content .admonition.warning .admonition-title {
  939. background-color: var(--admonition-attention-title-background-color);
  940. color: var(--admonition-attention-title-color);
  941. }
  942. .rst-content .admonition.danger {
  943. background-color: var(--admonition-danger-background-color);
  944. color: var(--admonition-danger-color);
  945. }
  946. .rst-content .admonition.danger .admonition-title {
  947. background-color: var(--admonition-danger-title-background-color);
  948. color: var(--admonition-danger-title-color);
  949. }
  950. .rst-content .admonition.tip,
  951. .rst-content .admonition.important {
  952. background-color: var(--admonition-tip-background-color);
  953. color: var(--admonition-tip-color);
  954. }
  955. .rst-content .admonition.tip .admonition-title,
  956. .rst-content .admonition.important .admonition-title {
  957. background-color: var(--admonition-tip-title-background-color);
  958. color: var(--admonition-tip-title-color);
  959. }
  960. .article-status strong {
  961. color: var(--body-color);
  962. }
  963. /* Keyboard shortcuts tweaks */
  964. kbd, .kbd,
  965. .rst-content :not(dl.option-list) > :not(dt):not(kbd):not(.kbd) > kbd,
  966. .rst-content :not(dl.option-list) > :not(dt):not(kbd):not(.kbd) > .kbd {
  967. background-color: var(--kbd-background-color);
  968. border: 1px solid var(--kbd-outline-color);
  969. border-radius: 3px;
  970. box-shadow: inset 0 -1px 0 var(--kbd-shadow-color);
  971. color: var(--kbd-text-color);
  972. display: inline-block;
  973. font-size: 12px;
  974. line-height: 11px;
  975. padding: 4px 5px;
  976. vertical-align: middle;
  977. }
  978. /* Unset excessive styles for nested kbd tags. */
  979. kbd.compound > kbd,
  980. kbd.compound > .kbd,
  981. .kbd.compound > kbd,
  982. .kbd.compound > .kbd {
  983. border: none;
  984. box-shadow: none;
  985. padding: 0;
  986. }
  987. /* Class reference tweaks. */
  988. .classref-section-separator {
  989. border-color: var(--navbar-heading-color);
  990. border-top-width: 3px;
  991. margin: 36px 0;
  992. }
  993. .classref-item-separator {
  994. border-top-width: 2px;
  995. margin: 26px 0;
  996. }
  997. .classref-descriptions-group > p.classref-property,
  998. .classref-descriptions-group > p.classref-signal,
  999. .classref-descriptions-group > p.classref-annotation,
  1000. .classref-descriptions-group > p.classref-themeproperty,
  1001. .classref-descriptions-group > p.classref-method,
  1002. .classref-descriptions-group > p.classref-constructor,
  1003. .classref-descriptions-group > p.classref-operator,
  1004. .classref-descriptions-group > p.classref-constant,
  1005. .classref-descriptions-group > p.classref-enumeration,
  1006. .classref-descriptions-group > p.classref-enumeration-constant {
  1007. color: var(--classref-secondary-color);
  1008. font-family: var(--monospace-font-family);
  1009. font-variant-ligatures: none;
  1010. font-size: 110%;
  1011. font-weight: 600;
  1012. margin-bottom: 18px;
  1013. }
  1014. .classref-property {
  1015. margin-bottom: 12px;
  1016. }
  1017. p + .classref-constant {
  1018. margin-top: 22px;
  1019. }
  1020. .classref-descriptions-group > p.classref-enumeration-constant {
  1021. font-size: 100%;
  1022. margin-top: 18px;
  1023. margin-bottom: 14px;
  1024. }
  1025. .classref-property > a,
  1026. .classref-signal > a,
  1027. .classref-annotation > a,
  1028. .classref-themeproperty > a,
  1029. .classref-method > a,
  1030. .classref-constructor > a,
  1031. .classref-operator > a,
  1032. .classref-constant > a,
  1033. .classref-enumeration > a {
  1034. opacity: 0.85;
  1035. }
  1036. .classref-enumeration-constant > a {
  1037. opacity: 0.75;
  1038. }
  1039. .classref-property > a:hover,
  1040. .classref-signal > a:hover,
  1041. .classref-annotation > a:hover,
  1042. .classref-themeproperty > a:hover,
  1043. .classref-method > a:hover,
  1044. .classref-constructor > a:hover,
  1045. .classref-operator > a:hover,
  1046. .classref-constant > a:hover,
  1047. .classref-enumeration > a:hover,
  1048. .classref-enumeration-constant > a:hover {
  1049. opacity: 1;
  1050. }
  1051. .classref-property > strong,
  1052. .classref-signal > strong,
  1053. .classref-annotation > strong,
  1054. .classref-themeproperty > strong,
  1055. .classref-method > strong,
  1056. .classref-constructor > strong,
  1057. .classref-operator > strong,
  1058. .classref-constant > strong,
  1059. .classref-enumeration > strong,
  1060. .classref-enumeration-constant > strong {
  1061. color: var(--classref-primary-color);
  1062. }
  1063. .classref-property > code.literal,
  1064. .classref-signal > code.literal,
  1065. .classref-annotation > code.literal,
  1066. .classref-themeproperty > code.literal,
  1067. .classref-method > code.literal,
  1068. .classref-constructor > code.literal,
  1069. .classref-operator > code.literal,
  1070. .classref-constant > code.literal,
  1071. .classref-enumeration > code.literal,
  1072. .classref-enumeration-constant > code.literal {
  1073. background-color: transparent;
  1074. border: none;
  1075. padding: 0;
  1076. font-weight: 600;
  1077. font-size: 90%
  1078. }
  1079. .classref-constant > code.literal,
  1080. .classref-enumeration-constant > code.literal {
  1081. color: var(--classref-setget-color);
  1082. font-weight: 400;
  1083. }
  1084. /* Artificially increasing specificity to make it override theme.css. */
  1085. .classref-descriptions-group ul.classref-property-setget {
  1086. color: var(--classref-setget-color);
  1087. font-size: 90%;
  1088. margin-bottom: 22px;
  1089. }
  1090. .classref-property-setget > li {
  1091. line-height: 22px;
  1092. }
  1093. .classref-property-setget p {
  1094. font-family: var(--monospace-font-family);
  1095. font-variant-ligatures: none;
  1096. font-size: 100%;
  1097. line-height: 22px;
  1098. }
  1099. .classref-property-setget p > a {
  1100. opacity: 0.75;
  1101. }
  1102. .classref-property-setget p > a:hover {
  1103. opacity: 1;
  1104. }
  1105. .classref-property-setget p > strong {
  1106. color: var(--classref-setget-color);
  1107. }
  1108. .classref-property-setget p > code {
  1109. background-color: transparent;
  1110. border: none;
  1111. padding: 0;
  1112. font-weight: 600;
  1113. }
  1114. .classref-descriptions-group {
  1115. margin-left: 24px;
  1116. }
  1117. #enumerations.classref-descriptions-group {
  1118. margin-left: 48px;
  1119. }
  1120. .classref-descriptions-group > h2,
  1121. .classref-descriptions-group > hr {
  1122. margin-left: -24px;
  1123. }
  1124. #enumerations.classref-descriptions-group > h2,
  1125. #enumerations.classref-descriptions-group > hr {
  1126. margin-left: -48px;
  1127. }
  1128. .classref-descriptions-group > p {
  1129. margin-bottom: 12px;
  1130. }
  1131. .classref-descriptions-group .classref-property,
  1132. .classref-descriptions-group .classref-signal,
  1133. .classref-descriptions-group .classref-annotation,
  1134. .classref-descriptions-group .classref-themeproperty,
  1135. .classref-descriptions-group .classref-method,
  1136. .classref-descriptions-group .classref-constructor,
  1137. .classref-descriptions-group .classref-operator,
  1138. .classref-descriptions-group .classref-constant,
  1139. .classref-descriptions-group .classref-enumeration-constant {
  1140. margin-left: -24px;
  1141. }
  1142. .classref-descriptions-group .classref-enumeration {
  1143. margin-left: -48px;
  1144. }
  1145. .classref-reftable-group .wy-table-responsive {
  1146. margin-bottom: 36px;
  1147. }
  1148. .classref-reftable-group .wy-table-responsive > table {
  1149. width: 100%;
  1150. }
  1151. /* Buttons */
  1152. .btn-neutral {
  1153. background-color: var(--btn-neutral-background-color) !important;
  1154. color: var(--body-color) !important;
  1155. }
  1156. .btn-neutral:hover {
  1157. background-color: var(--btn-neutral-hover-background-color) !important;
  1158. }
  1159. .btn-neutral:visited {
  1160. color: var(--body-color) !important;
  1161. }
  1162. /* Navigation bar logo and search */
  1163. .logo {
  1164. opacity: var(--logo-opacity);
  1165. }
  1166. .wy-side-nav-search > a {
  1167. padding: 0;
  1168. margin-bottom: 0.404em;
  1169. margin-top: 0.404em;
  1170. }
  1171. .wy-side-nav-search > a img.logo {
  1172. /* Fixed size to prevent reflows and support hiDPI displays */
  1173. /* A 5 pixel margin is added on each side. The logo itself displays at 200×200 at 100% scaling. */
  1174. width: 270px;
  1175. height: 70px;
  1176. }
  1177. .wy-side-nav-search {
  1178. background-color: var(--navbar-background-color);
  1179. color: var(--navbar-level-1-color);
  1180. margin-right: 8px;
  1181. }
  1182. .wy-side-nav-search.fixed {
  1183. position: fixed;
  1184. }
  1185. @media only screen and (min-width: 769px) {
  1186. /* Simulate a drop shadow that only affects the bottom edge */
  1187. /* This is used to indicate the search bar is fixed */
  1188. .wy-side-nav-search.fixed-and-scrolled::after {
  1189. content: '';
  1190. position: absolute;
  1191. left: 0;
  1192. bottom: -8px;
  1193. width: 300px;
  1194. height: 8px;
  1195. pointer-events: none;
  1196. background: linear-gradient(hsla(0, 0%, 0%, 0.2), transparent);
  1197. }
  1198. }
  1199. .wy-side-nav-search > a:hover,
  1200. .wy-side-nav-search .wy-dropdown > a:hover {
  1201. background-color: var(--navbar-background-color-hover);
  1202. }
  1203. .wy-side-nav-search > a:active,
  1204. .wy-side-nav-search .wy-dropdown > a:active {
  1205. background-color: var(--navbar-background-color-active);
  1206. }
  1207. .wy-side-nav-search input[type="text"] {
  1208. background-color: var(--input-background-color);
  1209. color: var(--body-color);
  1210. /* Avoid reflowing when toggling the focus state */
  1211. border: 2px solid transparent;
  1212. box-shadow: none;
  1213. /* Make visual feedback instant */
  1214. transition: none;
  1215. font-size: 14px;
  1216. }
  1217. .wy-side-nav-search input[type="text"]:focus {
  1218. border: 2px solid var(--input-focus-border-color);
  1219. }
  1220. .wy-side-nav-search input[type="text"]::placeholder {
  1221. color: var(--body-color);
  1222. opacity: 0.55;
  1223. }
  1224. /* Version branch label below the logo */
  1225. .wy-side-nav-search > div.version {
  1226. color: var(--navbar-dimmed-color);
  1227. font-size: 14px;
  1228. opacity: 0.9;
  1229. }
  1230. /* Navigational top bar (mobile only) */
  1231. .wy-nav-top,
  1232. .wy-nav-top a {
  1233. background-color: var(--navbar-background-color);
  1234. color: var(--navbar-level-1-color);
  1235. }
  1236. /* Navigational sidebar */
  1237. .wy-nav-side {
  1238. background-color: var(--navbar-background-color);
  1239. }
  1240. @media only screen and (min-width: 769px) {
  1241. .wy-nav-side {
  1242. /* Required to center the page on wide displays */
  1243. left: inherit;
  1244. }
  1245. }
  1246. .wy-menu-vertical header,
  1247. .wy-menu-vertical p.caption {
  1248. color: var(--navbar-heading-color);
  1249. /* Improves the appearance of uppercase text */
  1250. letter-spacing: 0.75px;
  1251. }
  1252. /* Default styling of navigation items */
  1253. .wy-menu-vertical li {
  1254. background-color: var(--navbar-background-color);
  1255. }
  1256. .wy-menu-vertical li.current {
  1257. background-color: var(--navbar-current-background-color);
  1258. }
  1259. .wy-menu-vertical li > a {
  1260. color: var(--navbar-level-1-color);
  1261. font-size: 92%;
  1262. line-height: 20px;
  1263. padding: .4045em 1.618em;
  1264. }
  1265. .wy-menu-vertical li > a:hover {
  1266. background-color: var(--navbar-background-color-hover);
  1267. color: var(--navbar-level-1-color);
  1268. }
  1269. .wy-menu-vertical li > a:active {
  1270. background-color: var(--navbar-background-color-active);
  1271. }
  1272. .wy-menu-vertical li > a button.toctree-expand {
  1273. color: var(--navbar-expand-base-color) !important;
  1274. opacity: 0.9;
  1275. margin-right: 8px;
  1276. /* Make the expand icon a bit easier to hit. */
  1277. position: relative;
  1278. width: 12px;
  1279. min-width: 12px; /* Forces the size to stay this way in the flexbox model. */
  1280. height: 18px;
  1281. }
  1282. .wy-menu-vertical li.current > a button.toctree-expand {
  1283. color: var(--navbar-current-color) !important;
  1284. }
  1285. .wy-menu-vertical li > a:hover button.toctree-expand {
  1286. color: var(--navbar-expand-hover-color) !important;
  1287. opacity: 1;
  1288. }
  1289. .wy-menu-vertical li > a:active button.toctree-expand {
  1290. color: var(--navbar-expand-active-color) !important;
  1291. opacity: 1;
  1292. }
  1293. /* Make the expand icon a bit easier to hit. */
  1294. .wy-menu-vertical li > a button.toctree-expand:before {
  1295. position: absolute;
  1296. top: -2px;
  1297. left: -6px;
  1298. width: 24px;
  1299. height: 24px;
  1300. padding: 6px;
  1301. }
  1302. .wy-menu-vertical li.current > a,
  1303. .wy-menu-vertical li.toctree-l2.current > a {
  1304. background-color: var(--navbar-current-background-color-hover);
  1305. border-bottom: 2px solid var(--navbar-current-background-color);
  1306. color: var(--navbar-current-color);
  1307. font-weight: 600;
  1308. /* Make long words always display on a single line, keep wrapping for multiple words */
  1309. /* This fixes the class reference titles' display with very long class names */
  1310. display: flex;
  1311. }
  1312. .wy-menu-vertical li.current > a:hover,
  1313. .wy-menu-vertical li.toctree-l2.current > a:hover {
  1314. background-color: var(--navbar-current-background-color-hover);
  1315. }
  1316. .wy-menu-vertical li.current > a:active,
  1317. .wy-menu-vertical li.toctree-l2.current > a:active {
  1318. background-color: var(--navbar-current-background-color-active);
  1319. }
  1320. /* Slightly adjust first level items. */
  1321. .wy-menu-vertical li.toctree-l1 > a,
  1322. .wy-menu-vertical li.toctree-l1.current > a {
  1323. border: none;
  1324. padding: .4045em 1.918em;
  1325. }
  1326. .wy-menu-vertical li.toctree-l1.current > a {
  1327. border-bottom: 2px solid var(--navbar-current-background-color);
  1328. }
  1329. /* Override styling for children of the current item. */
  1330. .wy-menu-vertical li.current li > a,
  1331. .wy-menu-vertical li.toctree-l2.current li > a,
  1332. .wy-menu-vertical li.toctree-l2.current li.toctree-l3 > a,
  1333. .wy-menu-vertical li.toctree-l2.current li.toctree-l4 > a {
  1334. background-color: var(--navbar-current-background-color);
  1335. border: none;
  1336. border-bottom: 2px solid var(--navbar-current-background-color);
  1337. color: var(--navbar-level-2-color);
  1338. }
  1339. .wy-menu-vertical li.current li > a:hover,
  1340. .wy-menu-vertical li.toctree-l2.current li > a:hover,
  1341. .wy-menu-vertical li.toctree-l2.current li.toctree-l3 > a:hover,
  1342. .wy-menu-vertical li.toctree-l2.current li.toctree-l4 > a:hover {
  1343. background-color: var(--navbar-current-background-color-hover);
  1344. }
  1345. .wy-menu-vertical li.current li > a:active,
  1346. .wy-menu-vertical li.toctree-l2.current li > a:active,
  1347. .wy-menu-vertical li.toctree-l2.current li.toctree-l3 > a:active,
  1348. .wy-menu-vertical li.toctree-l2.current li.toctree-l4 > a:active {
  1349. background-color: var(--navbar-current-background-color-active);
  1350. }
  1351. .wy-menu-vertical li.toctree-l2.current li > a,
  1352. .wy-menu-vertical li.toctree-l2.current li.toctree-l3 > a,
  1353. .wy-menu-vertical li.toctree-l2.current li.toctree-l4 > a {
  1354. color: var(--navbar-level-3-color);
  1355. }
  1356. .wy-menu-vertical li.toctree-l2.current li > a:hover,
  1357. .wy-menu-vertical li.toctree-l2.current li.toctree-l3 > a:hover,
  1358. .wy-menu-vertical li.toctree-l2.current li.toctree-l4 > a:hover {
  1359. color: var(--navbar-level-1-color);
  1360. }
  1361. .wy-menu-vertical li.current li.current > a,
  1362. .wy-menu-vertical li.toctree-l2.current li.current > a,
  1363. .wy-menu-vertical li.toctree-l2.current li.toctree-l3.current > a,
  1364. .wy-menu-vertical li.toctree-l2.current li.toctree-l4.current > a {
  1365. color: var(--navbar-current-color);
  1366. font-weight: 600;
  1367. }
  1368. /* Banner panel in sidebar */
  1369. .wy-nav-side .ethical-rtd.fixed {
  1370. position: fixed;
  1371. }
  1372. /* Read the Docs flyout panel, with language and version selectors. */
  1373. .rst-versions {
  1374. background-color: var(--navbar-current-background-color);
  1375. }
  1376. .rst-versions.shift-up {
  1377. overflow: visible;
  1378. }
  1379. .rst-versions.shift-up:before {
  1380. content: '';
  1381. position: absolute;
  1382. left: 0;
  1383. top: -8px;
  1384. width: 100%;
  1385. height: 8px;
  1386. pointer-events: none;
  1387. background: linear-gradient(transparent, hsla(0, 0%, 0%, 0.2));
  1388. }
  1389. @media only screen and (min-width: 769px) {
  1390. .rst-versions {
  1391. /* Required to center the page on wide displays */
  1392. left: inherit;
  1393. }
  1394. }
  1395. .rst-versions a,
  1396. .rst-versions .rst-current-version,
  1397. .rst-versions .rst-current-version .fa,
  1398. .rst-versions .rst-other-versions dd a {
  1399. color: var(--navbar-level-1-color);
  1400. }
  1401. .rst-versions .rst-current-version,
  1402. .rst-versions .rst-other-versions {
  1403. padding: 12px 14px;
  1404. }
  1405. .rst-versions .rst-other-versions {
  1406. color: var(--navbar-heading-color);
  1407. }
  1408. .rst-versions .rst-other-versions dl + dl {
  1409. margin-top: 4px;
  1410. }
  1411. .rst-versions .rst-other-versions hr {
  1412. border-color: var(--hr-color);
  1413. margin: 12px 0;
  1414. }
  1415. .rst-versions .rst-other-versions small {
  1416. color: var(--navbar-dimmed-color);
  1417. }
  1418. .rst-versions .rst-other-versions dd a:hover {
  1419. text-decoration: underline;
  1420. }
  1421. /* This will hide every segment of the panel, starting with the 4th. */
  1422. .rst-versions .rst-other-versions .injected dl:nth-child(n+4) {
  1423. display: none;
  1424. }
  1425. .rst-versions .rst-current-version {
  1426. background-color: var(--navbar-current-background-color);
  1427. border-bottom: 1px solid var(--hr-color);
  1428. }
  1429. .rst-versions .rst-current-version:hover {
  1430. background-color: var(--navbar-current-background-color-hover);
  1431. }
  1432. .rst-versions .rst-current-version:active {
  1433. background-color: var(--navbar-current-background-color-active);
  1434. }
  1435. .rst-versions .rst-current-version .fa {
  1436. line-height: 20px;
  1437. }
  1438. /* Hide the obnoxious automatic highlight from the search context. */
  1439. .rst-content .highlighted {
  1440. background-color: transparent;
  1441. box-shadow: none;
  1442. font-weight: inherit;
  1443. padding: 0;
  1444. }
  1445. /* Still slightly highlight matched parts on the dedicated search results page. */
  1446. .rst-content #search-results .highlighted {
  1447. background-color: var(--search-highlighted-color);
  1448. border-radius: 2px;
  1449. color: var(--body-color);
  1450. font-weight: 600;
  1451. padding: 0 3px;
  1452. }
  1453. /* Allows the scrollbar to be shown in the sidebar */
  1454. @media only screen and (min-width: 769px) {
  1455. .wy-side-scroll {
  1456. overflow: hidden;
  1457. }
  1458. .wy-nav-side .wy-side-scroll .ethical-rtd {
  1459. width: calc(300px - 1.25em);
  1460. padding: 0 0 0 1em;
  1461. }
  1462. }
  1463. .wy-menu.wy-menu-vertical {
  1464. overflow-y: auto;
  1465. overflow-x: hidden;
  1466. max-height: calc(100% - 348px);
  1467. padding-bottom: 24px;
  1468. }
  1469. @media screen and (max-width: 768px) {
  1470. .wy-nav-side {
  1471. padding-bottom: 44px;
  1472. }
  1473. .wy-menu.wy-menu-vertical {
  1474. overflow-y: initial;
  1475. max-height: initial;
  1476. }
  1477. }
  1478. /* Scrollbar styling */
  1479. .wy-menu.wy-menu-vertical {
  1480. scrollbar-color: var(--navbar-scrollbar-color) var(--navbar-scrollbar-background);
  1481. }
  1482. .wy-menu.wy-menu-vertical::-webkit-scrollbar {
  1483. width: .75rem;
  1484. }
  1485. .wy-menu.wy-menu-vertical::-webkit-scrollbar-track {
  1486. background-color: var(--navbar-scrollbar-background);
  1487. }
  1488. .wy-menu.wy-menu-vertical::-webkit-scrollbar-thumb {
  1489. background-color: var(--navbar-scrollbar-color);
  1490. }
  1491. /* Firefox does the dimming on hover automatically. We emulate it for Webkit-based browsers. */
  1492. .wy-menu.wy-menu-vertical::-webkit-scrollbar-thumb:hover {
  1493. background-color: var(--navbar-scrollbar-hover-color);
  1494. }
  1495. .wy-menu.wy-menu-vertical::-webkit-scrollbar-thumb:active {
  1496. background-color: var(--navbar-scrollbar-active-color);
  1497. }
  1498. /* Allows to add a green or red bar to code blocks for "good"/"bad" code examples. */
  1499. .code-example-good div.highlight {
  1500. border-left-color: var(--code-example-good-color);
  1501. border-left-width: 8px;
  1502. }
  1503. .code-example-bad div.highlight {
  1504. border-left-color: var(--code-example-bad-color);
  1505. border-left-width: 8px;
  1506. }
  1507. /* Togglable sidebar sections. */
  1508. .wy-menu-vertical p.caption {
  1509. cursor: pointer;
  1510. }
  1511. .wy-menu-vertical p.caption.active {
  1512. background-color: var(--navbar-category-active-color);
  1513. }
  1514. .wy-menu-vertical p.caption:hover {
  1515. background-color: var(--navbar-background-color-hover);
  1516. }
  1517. .wy-menu-vertical p.caption.active .caption-text:before {
  1518. transform: rotate(90deg);
  1519. }
  1520. .wy-menu-vertical p.caption .caption-text:before {
  1521. content: "❯";
  1522. display: inline-block;
  1523. margin-left: -4px;
  1524. transition: transform 0.2s;
  1525. width: 16px;
  1526. height: 32px;
  1527. transform-origin: 2px 16px;
  1528. }
  1529. .wy-menu-vertical p.caption + ul {
  1530. display: none;
  1531. }
  1532. .wy-menu-vertical p.caption + ul.active {
  1533. display: block;
  1534. }
  1535. .highlight button.copybtn {
  1536. background-color: var(--copybtn-background-color);
  1537. border-color: var(--copybtn-border-color);
  1538. box-shadow: var(--copybtn-box-shadow);
  1539. width: 32px;
  1540. height: 32px;
  1541. right: 0;
  1542. top: 0;
  1543. margin: 12.25px;
  1544. }
  1545. .highlight button.copybtn:hover {
  1546. background-color: var(--copybtn-background-color-hover);
  1547. border-color: var(--copybtn-border-color-hover);
  1548. }
  1549. .highlight button.copybtn svg {
  1550. position: absolute;
  1551. left: 3.5px;
  1552. top: 3.5px;
  1553. color: var(--copybtn-icon-color);
  1554. pointer-events: none;
  1555. }
  1556. .highlight button.copybtn.success {
  1557. border-color: var(--copybtn-border-color-success);
  1558. box-shadow: 0 0 0 0.2em rgb(52 208 88 / 40%);
  1559. }
  1560. .highlight button.copybtn.success svg {
  1561. color: var(--copybtn-icon-color-success);
  1562. }
  1563. .o-tooltip--left:after {
  1564. background-color: var(--copybtn-tooltip-background-color);
  1565. color: #ffffff;
  1566. border-radius: 6px;
  1567. padding: 0.5em 0.75em;
  1568. }
  1569. /* Allow :abbr: tags' content to be displayed on mobile platforms by tapping the word */
  1570. @media (hover: none), (hover: on-demand), (-moz-touch-enabled: 1), (pointer:coarse) {
  1571. /* Do not enable on desktop platforms to avoid doubling the tooltip */
  1572. abbr[title] {
  1573. position: relative;
  1574. }
  1575. abbr[title]:hover::after,
  1576. abbr[title]:focus::after {
  1577. content: attr(title);
  1578. position: absolute;
  1579. left: 0;
  1580. bottom: -32px;
  1581. width: auto;
  1582. white-space: nowrap;
  1583. background-color: #1e1e1e;
  1584. color: #fff;
  1585. border-radius: 3px;
  1586. box-shadow: 1px 1px 5px 0 rgba(0, 0, 0, 0.4);
  1587. font-size: 14px;
  1588. padding: 3px 5px;
  1589. }
  1590. }
  1591. /* Giscus */
  1592. #godot-giscus {
  1593. margin-bottom: 1em;
  1594. }