custom.css 55 KB

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