main.html 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. <html lang="en-us">
  2. <head>
  3. <meta charset="utf-8" />
  4. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
  5. <title>[[book_title]]</title>
  6. <style>
  7. p {
  8. text-indent: 2em;
  9. line-height: 1.7em;
  10. }
  11. .sentence>p{
  12. display: inline;
  13. }
  14. a {
  15. text-decoration: none;
  16. }
  17. .paragraph {
  18. margin-bottom: 1em;
  19. }
  20. .row {
  21. display: flex;
  22. }
  23. @media screen and (max-width: 960px){
  24. .row {
  25. flex-direction: column;
  26. }
  27. }
  28. .col {
  29. flex: 5;
  30. }
  31. code {
  32. background-color: #ffe4c478;
  33. padding: 2px 6px;
  34. border-radius: 4px;
  35. }
  36. .origin {
  37. font-family: times;
  38. }
  39. table {
  40. border-spacing: 0;
  41. border-collapse: collapse;
  42. display: block;
  43. width: -webkit-max-content;
  44. width: max-content;
  45. max-width: 100%;
  46. }
  47. td,
  48. th {
  49. padding: 0;
  50. }
  51. table th {
  52. font-weight: 600;
  53. }
  54. table th,
  55. table td {
  56. padding: 6px 13px;
  57. border: 1px solid black;
  58. }
  59. table tr {
  60. background-color: #ffffff;
  61. border-top: 1px solid hsl(210, 18%, 87%);
  62. }
  63. table img {
  64. background-color: transparent;
  65. }
  66. </style>
  67. </head>
  68. <body>
  69. <h1>[[book_title]]</h1>
  70. <h2>目录</h2>
  71. <ul>
  72. [[#sections]]
  73. <li><a href="#[[filename]]">[[filename]]</a></li>
  74. [[/sections]]
  75. </ul>