main.css 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246
  1. body {
  2. font-family: Verdana, Candara, Arial, Helvetica, Microsoft YaHei, sans-serif;
  3. line-height: 1.6;
  4. margin: 0;
  5. }
  6. nav {
  7. margin-bottom: 16px;
  8. }
  9. a {
  10. text-decoration: none;
  11. }
  12. .wrapper {
  13. max-width: 960px;
  14. margin: 0 auto;
  15. }
  16. #page-container {
  17. position: relative;
  18. min-height: 97vh;
  19. }
  20. #content-wrap {
  21. padding-bottom: 4rem;
  22. }
  23. #footer {
  24. height: 4rem;
  25. }
  26. #footer a {
  27. color: black;
  28. }
  29. code {
  30. font-family: Consolas, 'Courier New', monospace;
  31. }
  32. .page-card-list {
  33. margin: 8px 8px;
  34. }
  35. .page-card-title {
  36. font-size: x-large;
  37. font-weight: 500;
  38. color: #000000;
  39. text-decoration: none;
  40. }
  41. .page-card-text {
  42. margin-top: 8px;
  43. }
  44. .pagination {
  45. margin: 16px 4px;
  46. }
  47. .pagination a {
  48. border: none;
  49. overflow: hidden;
  50. }
  51. .shadow {
  52. box-shadow: 0 0.5em 1em -0.125em rgba(10,10,10,.1), 0 0 0 1px rgba(10,10,10,.02);
  53. }
  54. .nav-shadow {
  55. box-shadow: 0 2px 3px rgba(26,26,26,.1);
  56. }
  57. .box .article {
  58. overflow-wrap: break-word;
  59. font-size: larger;
  60. word-break: break-word;
  61. line-height: 1.6;
  62. padding: 16px;
  63. margin-bottom: 16px;
  64. background-color: #ffffff;
  65. }
  66. img {
  67. max-width: 100%;
  68. max-height: 100%;
  69. }
  70. .normal-container {
  71. margin: auto;
  72. max-width: 960px;
  73. padding: 16px 16px;
  74. overflow-wrap: break-word;
  75. word-break: break-word;
  76. line-height: 1.6;
  77. font-size: larger;
  78. }
  79. .narrow-container {
  80. margin: auto;
  81. max-width: 560px;
  82. padding: 16px 16px;
  83. overflow-wrap: break-word;
  84. word-break: break-word;
  85. line-height: 1.6;
  86. font-size: larger;
  87. }
  88. .article a {
  89. color: #368CCB;
  90. text-decoration: none;
  91. }
  92. .article a:hover {
  93. color: #368CCB;
  94. text-decoration: none;
  95. }
  96. .article h2,
  97. .article h3,
  98. .article h4,
  99. .article h5,
  100. .article h6 {
  101. font-weight: 700;
  102. line-height: 1.5;
  103. margin: 20px 0 15px;
  104. margin-block-start: 1em;
  105. margin-block-end: 0.2em;
  106. }
  107. .article h1 {
  108. font-size: 1.7em
  109. }
  110. .article h2 {
  111. font-size: 1.6em
  112. }
  113. .article h3 {
  114. font-size: 1.45em
  115. }
  116. .article h4 {
  117. font-size: 1.25em;
  118. }
  119. .article h5 {
  120. font-size: 1.1em;
  121. }
  122. .article h6 {
  123. font-size: 1em;
  124. font-weight: bold
  125. }
  126. @media screen and (max-width: 960px) {
  127. .article h1 {
  128. font-size: 1.5em
  129. }
  130. .article h2 {
  131. font-size: 1.35em
  132. }
  133. .article h3 {
  134. font-size: 1.3em
  135. }
  136. .article h4 {
  137. font-size: 1.2em;
  138. }
  139. }
  140. .article p {
  141. margin-top: 0;
  142. margin-bottom: 1.25rem;
  143. }
  144. .article table {
  145. margin: auto;
  146. border-collapse: collapse;
  147. border-spacing: 0;
  148. vertical-align: middle;
  149. text-align: left;
  150. min-width: 66%;
  151. }
  152. .article table td,
  153. .article table th {
  154. padding: 5px 8px;
  155. border: 1px solid #bbb;
  156. }
  157. .article blockquote {
  158. margin-left: 0;
  159. padding: 0 1em;
  160. font-size: smaller;
  161. border-left: 5px solid #ddd;
  162. }
  163. .article pre {
  164. overflow-x: auto;
  165. padding: 0;
  166. font-size: 16px;
  167. margin-top: 12px;
  168. margin-bottom: 12px;
  169. }
  170. .article ol {
  171. text-decoration: none;
  172. padding-inline-start: 40px;
  173. margin-bottom: 1.25rem;
  174. }
  175. .article code {
  176. color: #bc9458;
  177. padding: .065em .4em;
  178. }
  179. .article .copyright{
  180. display: none;
  181. }
  182. .info {
  183. font-size: 14px;
  184. line-height: 28px;
  185. text-align: left;
  186. color: #738292;
  187. margin-bottom: 3em
  188. }
  189. .info a {
  190. text-decoration: none;
  191. color: inherit;
  192. }
  193. .links {
  194. margin: 16px;
  195. }
  196. span.line {
  197. display: inline-block;
  198. }
  199. .toc {
  200. position: sticky;
  201. top: 24px;
  202. }