custom.css 55 KB

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