pdf-style.css 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319
  1. /* HTML and Body */
  2. @font-face {
  3. font-family: 'NotoSans';
  4. src: url('fonts/NotoSans-Variable.ttf');
  5. }
  6. @font-face {
  7. font-family: 'NotoSansJP';
  8. src: url('fonts/NotoSansJP-Variable.ttf');
  9. }
  10. @font-face {
  11. font-family: 'NotoSansKR';
  12. src: url('fonts/NotoSansKR-Variable.ttf');
  13. }
  14. @font-face {
  15. font-family: 'NotoSansSC';
  16. src: url('fonts/NotoSansSC-Variable.ttf');
  17. }
  18. @font-face {
  19. font-family: 'NotoSansSC-Regular';
  20. src: url('fonts/NotoSansSC-Regular.ttf');
  21. }
  22. html {
  23. font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'NotoSans', 'NotoSansJP', 'NotoSansKR',
  24. 'NotoSansSC', 'STSong-Light', 'MSung-Light', 'HeiseiMin-W3', 'HYSMyeongJo-Medium', Roboto,
  25. 'Helvetica Neue', Arial, sans-serif;
  26. font-size: 14px; /* Default font size */
  27. line-height: 1.5;
  28. }
  29. *,
  30. *::before,
  31. *::after {
  32. box-sizing: inherit;
  33. }
  34. body {
  35. margin: 0;
  36. color: #212529;
  37. background-color: #fff;
  38. width: auto;
  39. }
  40. /* Typography */
  41. h1,
  42. h2,
  43. h3,
  44. h4,
  45. h5,
  46. h6 {
  47. font-weight: 500;
  48. margin: 0;
  49. }
  50. h1 {
  51. font-size: 2.5rem;
  52. }
  53. h2 {
  54. font-size: 2rem;
  55. }
  56. h3 {
  57. font-size: 1.75rem;
  58. }
  59. h4 {
  60. font-size: 1.5rem;
  61. }
  62. h5 {
  63. font-size: 1.25rem;
  64. }
  65. h6 {
  66. font-size: 1rem;
  67. }
  68. p {
  69. margin-top: 0;
  70. margin-bottom: 1rem;
  71. }
  72. /* Grid System */
  73. .container {
  74. width: 100%;
  75. padding-right: 15px;
  76. padding-left: 15px;
  77. margin-right: auto;
  78. margin-left: auto;
  79. }
  80. /* Utilities */
  81. .text-center {
  82. text-align: center;
  83. }
  84. /* Additional Text Utilities */
  85. .text-muted {
  86. color: #6c757d; /* Muted text color */
  87. }
  88. /* Small Text */
  89. small {
  90. font-size: 80%; /* Smaller font size relative to the base */
  91. color: #6c757d; /* Lighter text color for secondary information */
  92. margin-bottom: 0;
  93. margin-top: 0;
  94. }
  95. /* Strong Element Styles */
  96. strong {
  97. font-weight: bolder; /* Ensures the text is bold */
  98. color: inherit; /* Inherits the color from its parent element */
  99. }
  100. /* link */
  101. a {
  102. color: #007bff;
  103. text-decoration: none;
  104. background-color: transparent;
  105. }
  106. a:hover {
  107. color: #0056b3;
  108. text-decoration: underline;
  109. }
  110. /* General styles for lists */
  111. ol,
  112. ul,
  113. li {
  114. padding-left: 40px; /* Increase padding to move bullet points to the right */
  115. margin-left: 20px; /* Indent lists from the left */
  116. }
  117. /* Ordered list styles */
  118. ol {
  119. list-style-type: decimal; /* Use numbers for ordered lists */
  120. margin-bottom: 10px; /* Space after each list */
  121. }
  122. ol li {
  123. margin-bottom: 0.5rem; /* Space between ordered list items */
  124. }
  125. /* Unordered list styles */
  126. ul {
  127. list-style-type: disc; /* Use bullets for unordered lists */
  128. margin-bottom: 10px; /* Space after each list */
  129. }
  130. ul li {
  131. margin-bottom: 0.5rem; /* Space between unordered list items */
  132. }
  133. /* List item styles */
  134. li {
  135. margin-bottom: 5px; /* Space between list items */
  136. line-height: 1.5; /* Line height for better readability */
  137. }
  138. /* Nested lists */
  139. ol ol,
  140. ol ul,
  141. ul ol,
  142. ul ul {
  143. padding-left: 20px;
  144. margin-left: 30px; /* Further indent nested lists */
  145. margin-bottom: 0; /* Remove extra margin at the bottom of nested lists */
  146. }
  147. /* Code blocks */
  148. pre {
  149. background-color: #f4f4f4;
  150. padding: 10px;
  151. overflow-x: auto;
  152. max-width: 100%; /* Ensure it doesn't overflow the page */
  153. width: 80%; /* Set a specific width for a container-like appearance */
  154. margin: 0 1em; /* Center the pre block */
  155. box-sizing: border-box; /* Include padding in the width */
  156. border: 1px solid #ccc; /* Optional: Add a border for better definition */
  157. border-radius: 4px; /* Optional: Add rounded corners */
  158. }
  159. code {
  160. font-family: 'Courier New', Courier, monospace;
  161. background-color: #f4f4f4;
  162. padding: 2px 4px;
  163. border-radius: 4px;
  164. box-sizing: border-box; /* Include padding in the width */
  165. }
  166. .message {
  167. margin-top: 8px;
  168. margin-bottom: 8px;
  169. max-width: 100%;
  170. overflow-wrap: break-word;
  171. }
  172. /* Table Styles */
  173. table {
  174. width: 100%;
  175. margin-bottom: 1rem;
  176. color: #212529;
  177. border-collapse: collapse; /* Removes the space between borders */
  178. }
  179. th,
  180. td {
  181. margin: 0;
  182. padding: 0.75rem;
  183. vertical-align: top;
  184. border-top: 1px solid #dee2e6;
  185. }
  186. thead th {
  187. vertical-align: bottom;
  188. border-bottom: 2px solid #dee2e6;
  189. }
  190. tbody + tbody {
  191. border-top: 2px solid #dee2e6;
  192. }
  193. /* markdown-section styles */
  194. .markdown-section blockquote,
  195. .markdown-section h1,
  196. .markdown-section h2,
  197. .markdown-section h3,
  198. .markdown-section h4,
  199. .markdown-section h5,
  200. .markdown-section h6,
  201. .markdown-section p,
  202. .markdown-section pre,
  203. .markdown-section table,
  204. .markdown-section ul {
  205. /* Give most block elements margin top and bottom */
  206. margin-top: 1rem;
  207. }
  208. /* Remove top margin if it's the first child */
  209. .markdown-section blockquote:first-child,
  210. .markdown-section h1:first-child,
  211. .markdown-section h2:first-child,
  212. .markdown-section h3:first-child,
  213. .markdown-section h4:first-child,
  214. .markdown-section h5:first-child,
  215. .markdown-section h6:first-child,
  216. .markdown-section p:first-child,
  217. .markdown-section pre:first-child,
  218. .markdown-section table:first-child,
  219. .markdown-section ul:first-child {
  220. margin-top: 0;
  221. }
  222. /* Remove top margin of <ul> following a <p> */
  223. .markdown-section p + ul {
  224. margin-top: 0;
  225. }
  226. /* Remove bottom margin of <p> if it is followed by a <ul> */
  227. /* Note: :has is not supported in CSS, so you would need JavaScript for this behavior */
  228. .markdown-section p {
  229. margin-bottom: 0;
  230. }
  231. /* Add a rule to reset margin-bottom for <p> not followed by <ul> */
  232. .markdown-section p + ul {
  233. margin-top: 0;
  234. }
  235. /* List item styles */
  236. .markdown-section li {
  237. padding: 2px;
  238. }
  239. .markdown-section li p {
  240. margin-bottom: 0;
  241. padding: 0;
  242. }
  243. /* Avoid margins for nested lists */
  244. .markdown-section li > ul {
  245. margin-top: 0;
  246. margin-bottom: 0;
  247. }
  248. /* Table styles */
  249. .markdown-section table {
  250. width: 100%;
  251. border-collapse: collapse;
  252. margin: 1rem 0;
  253. }
  254. .markdown-section th,
  255. .markdown-section td {
  256. border: 1px solid #ddd;
  257. padding: 0.5rem;
  258. text-align: left;
  259. }
  260. .markdown-section th {
  261. background-color: #f2f2f2;
  262. }
  263. .markdown-section pre {
  264. padding: 10px;
  265. margin: 10px;
  266. }
  267. .markdown-section pre code {
  268. position: relative;
  269. color: rgb(172, 0, 95);
  270. }