custom.css 55 KB

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