1
0

html.cfg 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. \Preamble{xhtml}
  2. \Configure{tableofcontents*}{chapter,section,subsection}
  3. \Css{html {
  4. width: 100vw;
  5. overflow-x: hidden;
  6. }}
  7. \Css{body {
  8. max-width: 55rem;
  9. box-sizing: border-box;
  10. padding: 1rem;
  11. margin: 0 auto;
  12. overflow-x: hidden;
  13. background-color: \#F4ECD8;
  14. color: \#5B464B;
  15. line-height: 1.5;
  16. }}
  17. \Css{a {
  18. color: \#0060DF;
  19. }}
  20. \Css{p, a {
  21. font-size: 1.2rem;
  22. }}
  23. \Css{p + pre {
  24. font-size: 1.1em;
  25. }}
  26. \Css{div.author {
  27. white-space: normal;
  28. }}
  29. \Css{img.math {
  30. height: 1rem;
  31. vertical-align: top;
  32. }}
  33. \Css{pre.fancyvrb, {
  34. white-space: pre;
  35. }}
  36. \Css{figure, .fancyvrb, .verbatim {
  37. margin-inline: 0;
  38. overflow-x: auto;
  39. }}
  40. \Css{.ecrm-0500 {
  41. font-size: 70\%;
  42. font-style: italic;
  43. color: gray;
  44. width: 1.5rem;
  45. display: inline-block;
  46. -webkit-user-select: none;
  47. -moz-user-select: none;
  48. -o-user-select: none;
  49. user-select: none;
  50. }}
  51. \Css{.flushright:first-child {
  52. position:absolute;
  53. top: 10px;
  54. right: 50px;
  55. }}
  56. \Css{.right {
  57. text-align: right;
  58. }}
  59. \AtBeginDocument{%
  60. \Configure{@HEAD}{\HCode{
  61. <script async defer src="https://buttons.github.io/buttons.js"></script>
  62. <div class="right">
  63. <a class="github-button" href="https://github.com/sysprog21/lkmpg" data-size="large" aria-label="View on GitHub">View on GitHub</a>
  64. <a class="github-button" href="https://github.com/sysprog21/lkmpg/releases/download/latest/lkmpg.pdf" data-icon="octicon-download" data-size="large" aria-label="Download PDF document">Download PDF document</a>
  65. <br><br>
  66. </div>
  67. \Hnewline}}
  68. }
  69. \begin{document}
  70. \EndPreamble