custom.css 55 KB

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