ss14.css 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544
  1. @charset "UTF-8";
  2. /* Custom styles for SS14 docs
  3. /* allow wider content since no navvybar buttons */
  4. :root {
  5. --content-max-width: 850px;
  6. --sidebar-active: #e23229;
  7. }
  8. /* title text on top of every page */
  9. .menu-title {
  10. color: #e23229;
  11. }
  12. @media only screen and (min-width: 1366px) {
  13. .content > main {
  14. /* navbar button was basically a margin left but dont have that no more so */
  15. margin-left: 80px;
  16. }
  17. }
  18. /* Mostly stolen from the Rhai book (rhai.rs) theme */
  19. .part-title {
  20. font-size: 150%;
  21. font-variant-caps: small-caps;
  22. }
  23. /* lets get a little more compact */
  24. .chapter li.chapter-item {
  25. margin-top: 0.45em;
  26. }
  27. .chapter > .chapter-item {
  28. padding-left: 10px;
  29. }
  30. .chapter > .chapter-item:first-child {
  31. font-weight: bold;
  32. font-size: 200%;
  33. font-variant-caps: small-caps;
  34. padding-left: 0px;
  35. }
  36. /* bigger buttons for discoverability */
  37. .right-buttons > a > i {
  38. font-size: 200%;
  39. }
  40. .left-buttons > button > i {
  41. font-size: 200%;
  42. }
  43. td > ol,
  44. td > ul {
  45. margin: 0;
  46. padding: 0;
  47. padding-left: inherit;
  48. }
  49. main h2,
  50. h3 {
  51. margin-top: 1.25em;
  52. border-bottom: 1px solid var(--sidebar-spacer);
  53. padding-bottom: 5px;
  54. }
  55. main h1 {
  56. border-bottom: 3px solid var(--sidebar-spacer);
  57. padding-bottom: 7px;
  58. }
  59. main > section,
  60. main > pre,
  61. main h1,
  62. main h2,
  63. main h3 {
  64. clear: both;
  65. }
  66. .navy code {
  67. background: #0f0f12 !important;
  68. }
  69. :root {
  70. --md-admonition-icon--admonish-note: url("data:image/svg+xml;charset=utf-8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M20.71 7.04c.39-.39.39-1.04 0-1.41l-2.34-2.34c-.37-.39-1.02-.39-1.41 0l-1.84 1.83 3.75 3.75M3 17.25V21h3.75L17.81 9.93l-3.75-3.75L3 17.25z'/></svg>");
  71. --md-admonition-icon--admonish-abstract: url("data:image/svg+xml;charset=utf-8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M17 9H7V7h10m0 6H7v-2h10m-3 6H7v-2h7M12 3a1 1 0 0 1 1 1 1 1 0 0 1-1 1 1 1 0 0 1-1-1 1 1 0 0 1 1-1m7 0h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2z'/></svg>");
  72. --md-admonition-icon--admonish-info: url("data:image/svg+xml;charset=utf-8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M13 9h-2V7h2m0 10h-2v-6h2m-1-9A10 10 0 0 0 2 12a10 10 0 0 0 10 10 10 10 0 0 0 10-10A10 10 0 0 0 12 2z'/></svg>");
  73. --md-admonition-icon--admonish-tip: url("data:image/svg+xml;charset=utf-8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M17.66 11.2c-.23-.3-.51-.56-.77-.82-.67-.6-1.43-1.03-2.07-1.66C13.33 7.26 13 4.85 13.95 3c-.95.23-1.78.75-2.49 1.32-2.59 2.08-3.61 5.75-2.39 8.9.04.1.08.2.08.33 0 .22-.15.42-.35.5-.23.1-.47.04-.66-.12a.58.58 0 0 1-.14-.17c-1.13-1.43-1.31-3.48-.55-5.12C5.78 10 4.87 12.3 5 14.47c.06.5.12 1 .29 1.5.14.6.41 1.2.71 1.73 1.08 1.73 2.95 2.97 4.96 3.22 2.14.27 4.43-.12 6.07-1.6 1.83-1.66 2.47-4.32 1.53-6.6l-.13-.26c-.21-.46-.77-1.26-.77-1.26m-3.16 6.3c-.28.24-.74.5-1.1.6-1.12.4-2.24-.16-2.9-.82 1.19-.28 1.9-1.16 2.11-2.05.17-.8-.15-1.46-.28-2.23-.12-.74-.1-1.37.17-2.06.19.38.39.76.63 1.06.77 1 1.98 1.44 2.24 2.8.04.14.06.28.06.43.03.82-.33 1.72-.93 2.27z'/></svg>");
  74. --md-admonition-icon--admonish-success: url("data:image/svg+xml;charset=utf-8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='m9 20.42-6.21-6.21 2.83-2.83L9 14.77l9.88-9.89 2.83 2.83L9 20.42z'/></svg>");
  75. --md-admonition-icon--admonish-question: url("data:image/svg+xml;charset=utf-8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='m15.07 11.25-.9.92C13.45 12.89 13 13.5 13 15h-2v-.5c0-1.11.45-2.11 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41a2 2 0 0 0-2-2 2 2 0 0 0-2 2H8a4 4 0 0 1 4-4 4 4 0 0 1 4 4 3.2 3.2 0 0 1-.93 2.25M13 19h-2v-2h2M12 2A10 10 0 0 0 2 12a10 10 0 0 0 10 10 10 10 0 0 0 10-10c0-5.53-4.5-10-10-10z'/></svg>");
  76. --md-admonition-icon--admonish-warning: url("data:image/svg+xml;charset=utf-8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M13 14h-2V9h2m0 9h-2v-2h2M1 21h22L12 2 1 21z'/></svg>");
  77. --md-admonition-icon--admonish-failure: url("data:image/svg+xml;charset=utf-8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M20 6.91 17.09 4 12 9.09 6.91 4 4 6.91 9.09 12 4 17.09 6.91 20 12 14.91 17.09 20 20 17.09 14.91 12 20 6.91z'/></svg>");
  78. --md-admonition-icon--admonish-danger: url("data:image/svg+xml;charset=utf-8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M11 15H6l7-14v8h5l-7 14v-8z'/></svg>");
  79. --md-admonition-icon--admonish-bug: url("data:image/svg+xml;charset=utf-8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M14 12h-4v-2h4m0 6h-4v-2h4m6-6h-2.81a5.985 5.985 0 0 0-1.82-1.96L17 4.41 15.59 3l-2.17 2.17a6.002 6.002 0 0 0-2.83 0L8.41 3 7 4.41l1.62 1.63C7.88 6.55 7.26 7.22 6.81 8H4v2h2.09c-.05.33-.09.66-.09 1v1H4v2h2v1c0 .34.04.67.09 1H4v2h2.81c1.04 1.79 2.97 3 5.19 3s4.15-1.21 5.19-3H20v-2h-2.09c.05-.33.09-.66.09-1v-1h2v-2h-2v-1c0-.34-.04-.67-.09-1H20V8z'/></svg>");
  80. --md-admonition-icon--admonish-example: url("data:image/svg+xml;charset=utf-8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M7 13v-2h14v2H7m0 6v-2h14v2H7M7 7V5h14v2H7M3 8V5H2V4h2v4H3m-1 9v-1h3v4H2v-1h2v-.5H3v-1h1V17H2m2.25-7a.75.75 0 0 1 .75.75c0 .2-.08.39-.21.52L3.12 13H5v1H2v-.92L4 11H2v-1h2.25z'/></svg>");
  81. --md-admonition-icon--admonish-quote: url("data:image/svg+xml;charset=utf-8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M14 17h3l2-4V7h-6v6h3M6 17h3l2-4V7H5v6h3l-2 4z'/></svg>");
  82. --md-details-icon: url("data:image/svg+xml;charset=utf-8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M8.59 16.58 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.42Z'/></svg>");
  83. }
  84. :is(.admonition) {
  85. display: flow-root;
  86. margin: 1.5625em 0;
  87. padding: 0 1.2rem;
  88. color: var(--fg);
  89. page-break-inside: avoid;
  90. background-color: var(--bg);
  91. border: 0 solid black;
  92. border-inline-start-width: 0.4rem;
  93. border-radius: 0.2rem;
  94. box-shadow: 0 0.2rem 1rem rgba(0, 0, 0, 0.05), 0 0 0.1rem rgba(0, 0, 0, 0.1);
  95. }
  96. @media print {
  97. :is(.admonition) {
  98. box-shadow: none;
  99. }
  100. }
  101. :is(.admonition) > * {
  102. box-sizing: border-box;
  103. }
  104. :is(.admonition) :is(.admonition) {
  105. margin-top: 1em;
  106. margin-bottom: 1em;
  107. }
  108. :is(.admonition) > .tabbed-set:only-child {
  109. margin-top: 0;
  110. }
  111. html :is(.admonition) > :last-child {
  112. margin-bottom: 1.2rem;
  113. }
  114. a.admonition-anchor-link {
  115. display: none;
  116. position: absolute;
  117. left: -1.2rem;
  118. padding-right: 1rem;
  119. }
  120. a.admonition-anchor-link:link,
  121. a.admonition-anchor-link:visited {
  122. color: var(--fg);
  123. }
  124. a.admonition-anchor-link:link:hover,
  125. a.admonition-anchor-link:visited:hover {
  126. text-decoration: none;
  127. }
  128. a.admonition-anchor-link::before {
  129. content: "§";
  130. }
  131. :is(.admonition-title, summary.admonition-title) {
  132. position: relative;
  133. min-height: 4rem;
  134. margin-block: 0;
  135. margin-inline: -1.6rem -1.2rem;
  136. padding-block: 0.8rem;
  137. padding-inline: 4.4rem 1.2rem;
  138. font-weight: 700;
  139. background-color: rgba(68, 138, 255, 0.1);
  140. print-color-adjust: exact;
  141. -webkit-print-color-adjust: exact;
  142. display: flex;
  143. }
  144. :is(.admonition-title, summary.admonition-title) p {
  145. margin: 0;
  146. }
  147. html :is(.admonition-title, summary.admonition-title):last-child {
  148. margin-bottom: 0;
  149. }
  150. :is(.admonition-title, summary.admonition-title)::before {
  151. position: absolute;
  152. top: 0.625em;
  153. inset-inline-start: 1.6rem;
  154. width: 2rem;
  155. height: 2rem;
  156. background-color: #448aff;
  157. print-color-adjust: exact;
  158. -webkit-print-color-adjust: exact;
  159. mask-image: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"></svg>');
  160. -webkit-mask-image: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"></svg>');
  161. mask-repeat: no-repeat;
  162. -webkit-mask-repeat: no-repeat;
  163. mask-size: contain;
  164. -webkit-mask-size: contain;
  165. content: "";
  166. }
  167. :is(.admonition-title, summary.admonition-title):hover a.admonition-anchor-link {
  168. display: initial;
  169. }
  170. details.admonition > summary.admonition-title::after {
  171. position: absolute;
  172. top: 0.625em;
  173. inset-inline-end: 1.6rem;
  174. height: 2rem;
  175. width: 2rem;
  176. background-color: currentcolor;
  177. mask-image: var(--md-details-icon);
  178. -webkit-mask-image: var(--md-details-icon);
  179. mask-repeat: no-repeat;
  180. -webkit-mask-repeat: no-repeat;
  181. mask-size: contain;
  182. -webkit-mask-size: contain;
  183. content: "";
  184. transform: rotate(0deg);
  185. transition: transform 0.25s;
  186. }
  187. details[open].admonition > summary.admonition-title::after {
  188. transform: rotate(90deg);
  189. }
  190. :is(.admonition):is(.admonish-note) {
  191. border-color: #448aff;
  192. }
  193. :is(.admonish-note) > :is(.admonition-title, summary.admonition-title) {
  194. background-color: rgba(68, 138, 255, 0.1);
  195. }
  196. :is(.admonish-note) > :is(.admonition-title, summary.admonition-title)::before {
  197. background-color: #448aff;
  198. mask-image: var(--md-admonition-icon--admonish-note);
  199. -webkit-mask-image: var(--md-admonition-icon--admonish-note);
  200. mask-repeat: no-repeat;
  201. -webkit-mask-repeat: no-repeat;
  202. mask-size: contain;
  203. -webkit-mask-repeat: no-repeat;
  204. }
  205. :is(.admonition):is(.admonish-abstract, .admonish-summary, .admonish-tldr) {
  206. border-color: #00b0ff;
  207. }
  208. :is(.admonish-abstract, .admonish-summary, .admonish-tldr) > :is(.admonition-title, summary.admonition-title) {
  209. background-color: rgba(0, 176, 255, 0.1);
  210. }
  211. :is(.admonish-abstract, .admonish-summary, .admonish-tldr) > :is(.admonition-title, summary.admonition-title)::before {
  212. background-color: #00b0ff;
  213. mask-image: var(--md-admonition-icon--admonish-abstract);
  214. -webkit-mask-image: var(--md-admonition-icon--admonish-abstract);
  215. mask-repeat: no-repeat;
  216. -webkit-mask-repeat: no-repeat;
  217. mask-size: contain;
  218. -webkit-mask-repeat: no-repeat;
  219. }
  220. :is(.admonition):is(.admonish-info, .admonish-todo) {
  221. border-color: #00b8d4;
  222. }
  223. :is(.admonish-info, .admonish-todo) > :is(.admonition-title, summary.admonition-title) {
  224. background-color: rgba(0, 184, 212, 0.1);
  225. }
  226. :is(.admonish-info, .admonish-todo) > :is(.admonition-title, summary.admonition-title)::before {
  227. background-color: #00b8d4;
  228. mask-image: var(--md-admonition-icon--admonish-info);
  229. -webkit-mask-image: var(--md-admonition-icon--admonish-info);
  230. mask-repeat: no-repeat;
  231. -webkit-mask-repeat: no-repeat;
  232. mask-size: contain;
  233. -webkit-mask-repeat: no-repeat;
  234. }
  235. :is(.admonition):is(.admonish-tip, .admonish-hint, .admonish-important) {
  236. border-color: #00bfa5;
  237. }
  238. :is(.admonish-tip, .admonish-hint, .admonish-important) > :is(.admonition-title, summary.admonition-title) {
  239. background-color: rgba(0, 191, 165, 0.1);
  240. }
  241. :is(.admonish-tip, .admonish-hint, .admonish-important) > :is(.admonition-title, summary.admonition-title)::before {
  242. background-color: #00bfa5;
  243. mask-image: var(--md-admonition-icon--admonish-tip);
  244. -webkit-mask-image: var(--md-admonition-icon--admonish-tip);
  245. mask-repeat: no-repeat;
  246. -webkit-mask-repeat: no-repeat;
  247. mask-size: contain;
  248. -webkit-mask-repeat: no-repeat;
  249. }
  250. :is(.admonition):is(.admonish-success, .admonish-check, .admonish-done) {
  251. border-color: #00c853;
  252. }
  253. :is(.admonish-success, .admonish-check, .admonish-done) > :is(.admonition-title, summary.admonition-title) {
  254. background-color: rgba(0, 200, 83, 0.1);
  255. }
  256. :is(.admonish-success, .admonish-check, .admonish-done) > :is(.admonition-title, summary.admonition-title)::before {
  257. background-color: #00c853;
  258. mask-image: var(--md-admonition-icon--admonish-success);
  259. -webkit-mask-image: var(--md-admonition-icon--admonish-success);
  260. mask-repeat: no-repeat;
  261. -webkit-mask-repeat: no-repeat;
  262. mask-size: contain;
  263. -webkit-mask-repeat: no-repeat;
  264. }
  265. :is(.admonition):is(.admonish-question, .admonish-help, .admonish-faq) {
  266. border-color: #64dd17;
  267. }
  268. :is(.admonish-question, .admonish-help, .admonish-faq) > :is(.admonition-title, summary.admonition-title) {
  269. background-color: rgba(100, 221, 23, 0.1);
  270. }
  271. :is(.admonish-question, .admonish-help, .admonish-faq) > :is(.admonition-title, summary.admonition-title)::before {
  272. background-color: #64dd17;
  273. mask-image: var(--md-admonition-icon--admonish-question);
  274. -webkit-mask-image: var(--md-admonition-icon--admonish-question);
  275. mask-repeat: no-repeat;
  276. -webkit-mask-repeat: no-repeat;
  277. mask-size: contain;
  278. -webkit-mask-repeat: no-repeat;
  279. }
  280. :is(.admonition):is(.admonish-warning, .admonish-caution, .admonish-attention) {
  281. border-color: #ff9100;
  282. }
  283. :is(.admonish-warning, .admonish-caution, .admonish-attention) > :is(.admonition-title, summary.admonition-title) {
  284. background-color: rgba(255, 145, 0, 0.1);
  285. }
  286. :is(.admonish-warning, .admonish-caution, .admonish-attention)
  287. > :is(.admonition-title, summary.admonition-title)::before {
  288. background-color: #ff9100;
  289. mask-image: var(--md-admonition-icon--admonish-warning);
  290. -webkit-mask-image: var(--md-admonition-icon--admonish-warning);
  291. mask-repeat: no-repeat;
  292. -webkit-mask-repeat: no-repeat;
  293. mask-size: contain;
  294. -webkit-mask-repeat: no-repeat;
  295. }
  296. :is(.admonition):is(.admonish-failure, .admonish-fail, .admonish-missing) {
  297. border-color: #ff5252;
  298. }
  299. :is(.admonish-failure, .admonish-fail, .admonish-missing) > :is(.admonition-title, summary.admonition-title) {
  300. background-color: rgba(255, 82, 82, 0.1);
  301. }
  302. :is(.admonish-failure, .admonish-fail, .admonish-missing) > :is(.admonition-title, summary.admonition-title)::before {
  303. background-color: #ff5252;
  304. mask-image: var(--md-admonition-icon--admonish-failure);
  305. -webkit-mask-image: var(--md-admonition-icon--admonish-failure);
  306. mask-repeat: no-repeat;
  307. -webkit-mask-repeat: no-repeat;
  308. mask-size: contain;
  309. -webkit-mask-repeat: no-repeat;
  310. }
  311. :is(.admonition):is(.admonish-danger, .admonish-error) {
  312. border-color: #ff1744;
  313. }
  314. :is(.admonish-danger, .admonish-error) > :is(.admonition-title, summary.admonition-title) {
  315. background-color: rgba(255, 23, 68, 0.1);
  316. }
  317. :is(.admonish-danger, .admonish-error) > :is(.admonition-title, summary.admonition-title)::before {
  318. background-color: #ff1744;
  319. mask-image: var(--md-admonition-icon--admonish-danger);
  320. -webkit-mask-image: var(--md-admonition-icon--admonish-danger);
  321. mask-repeat: no-repeat;
  322. -webkit-mask-repeat: no-repeat;
  323. mask-size: contain;
  324. -webkit-mask-repeat: no-repeat;
  325. }
  326. :is(.admonition):is(.admonish-bug) {
  327. border-color: #f50057;
  328. }
  329. :is(.admonish-bug) > :is(.admonition-title, summary.admonition-title) {
  330. background-color: rgba(245, 0, 87, 0.1);
  331. }
  332. :is(.admonish-bug) > :is(.admonition-title, summary.admonition-title)::before {
  333. background-color: #f50057;
  334. mask-image: var(--md-admonition-icon--admonish-bug);
  335. -webkit-mask-image: var(--md-admonition-icon--admonish-bug);
  336. mask-repeat: no-repeat;
  337. -webkit-mask-repeat: no-repeat;
  338. mask-size: contain;
  339. -webkit-mask-repeat: no-repeat;
  340. }
  341. :is(.admonition):is(.admonish-example) {
  342. border-color: #7c4dff;
  343. }
  344. :is(.admonish-example) > :is(.admonition-title, summary.admonition-title) {
  345. background-color: rgba(124, 77, 255, 0.1);
  346. }
  347. :is(.admonish-example) > :is(.admonition-title, summary.admonition-title)::before {
  348. background-color: #7c4dff;
  349. mask-image: var(--md-admonition-icon--admonish-example);
  350. -webkit-mask-image: var(--md-admonition-icon--admonish-example);
  351. mask-repeat: no-repeat;
  352. -webkit-mask-repeat: no-repeat;
  353. mask-size: contain;
  354. -webkit-mask-repeat: no-repeat;
  355. }
  356. :is(.admonition):is(.admonish-quote, .admonish-cite) {
  357. border-color: #9e9e9e;
  358. }
  359. :is(.admonish-quote, .admonish-cite) > :is(.admonition-title, summary.admonition-title) {
  360. background-color: rgba(158, 158, 158, 0.1);
  361. }
  362. :is(.admonish-quote, .admonish-cite) > :is(.admonition-title, summary.admonition-title)::before {
  363. background-color: #9e9e9e;
  364. mask-image: var(--md-admonition-icon--admonish-quote);
  365. -webkit-mask-image: var(--md-admonition-icon--admonish-quote);
  366. mask-repeat: no-repeat;
  367. -webkit-mask-repeat: no-repeat;
  368. mask-size: contain;
  369. -webkit-mask-repeat: no-repeat;
  370. }
  371. .navy :is(.admonition) {
  372. background-color: var(--sidebar-bg);
  373. }
  374. .ayu :is(.admonition),
  375. .coal :is(.admonition) {
  376. background-color: var(--theme-hover);
  377. }
  378. .rust :is(.admonition) {
  379. background-color: var(--sidebar-bg);
  380. color: var(--sidebar-fg);
  381. }
  382. .rust .admonition-anchor-link:link,
  383. .rust .admonition-anchor-link:visited {
  384. color: var(--sidebar-fg);
  385. }
  386. /* Styling for the subpage footer & sidebar toc */
  387. @media only screen and (max-width: 1365px) {
  388. .sidetoc {
  389. display: none;
  390. }
  391. }
  392. @media only screen and (min-width: 1366px) {
  393. main {
  394. position: relative;
  395. }
  396. .sidetoc {
  397. margin-left: auto;
  398. margin-right: auto;
  399. left: calc(100% + (var(--content-max-width)) / 4 - 140px);
  400. position: absolute;
  401. }
  402. .pagetoc {
  403. position: fixed;
  404. width: 300px;
  405. height: calc(100vh - var(--menu-bar-height) - 2.68em);
  406. overflow: auto;
  407. }
  408. .pagetoc a {
  409. border-left: 1px solid var(--sidebar-bg);
  410. color: var(--fg) !important;
  411. display: block;
  412. padding-bottom: 5px;
  413. padding-top: 5px;
  414. padding-left: 10px;
  415. text-align: left;
  416. text-decoration: none;
  417. }
  418. .pagetoc a:hover,
  419. .pagetoc a.active {
  420. background: var(--sidebar-bg);
  421. color: var(--sidebar-fg) !important;
  422. }
  423. .pagetoc .active {
  424. background: var(--sidebar-bg);
  425. color: var(--sidebar-fg);
  426. }
  427. }
  428. @media only screen and (min-width: 1366px) {
  429. #subpage-footer {
  430. margin-left: 200px;
  431. }
  432. }
  433. #subpage-footer {
  434. max-width: 400px;
  435. margin-top: 100px;
  436. color: var(--fg) !important;
  437. display: block;
  438. }
  439. #subpage-footer > p {
  440. line-height: 1em;
  441. }
  442. #subpage-footer > ol {
  443. list-style: none outside none;
  444. padding-left: 20px;
  445. line-height: 1.6em;
  446. border-top: 1px solid var(--sidebar-spacer);
  447. padding-top: 10px;
  448. }
  449. #subpage-footer ol > li.chapter-item {
  450. display: flex;
  451. }
  452. #subpage-footer a.toggle {
  453. display: block;
  454. margin-left: auto;
  455. padding-left: 20px;
  456. opacity: 0.68;
  457. }
  458. @media print {
  459. .sidetoc {
  460. display: none;
  461. }
  462. #subpage-footer {
  463. display: none;
  464. }
  465. }
  466. /*# sourceMappingURL=ss14.css.map */