custom.css 56 KB

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