app.css 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399
  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. color: #007bff;
  12. }
  13. a:hover {
  14. text-decoration: none !important;
  15. color: #007bff;
  16. }
  17. .page-card-title a {
  18. color: #368CCB;
  19. text-decoration: none;
  20. }
  21. .page-card-title a:hover {
  22. color: #368CCB;
  23. text-decoration: none;
  24. }
  25. .wrapper {
  26. max-width: 960px;
  27. margin: 0 auto;
  28. }
  29. #page-container {
  30. position: relative;
  31. min-height: 97vh;
  32. }
  33. #content-wrap {
  34. padding-bottom: 4rem;
  35. }
  36. #footer {
  37. height: 4rem;
  38. }
  39. #footer a {
  40. /*color: black;*/
  41. }
  42. code {
  43. font-family: Consolas, 'Courier New', monospace;
  44. }
  45. .page-card-list {
  46. margin: 8px 8px;
  47. }
  48. .page-card-title {
  49. font-size: x-large;
  50. font-weight: 500;
  51. color: #000000;
  52. text-decoration: none;
  53. margin-bottom: 4px;
  54. }
  55. .page-card-text {
  56. margin-top: 16px;
  57. }
  58. .pagination {
  59. margin: 16px 4px;
  60. }
  61. .pagination a {
  62. border: none;
  63. overflow: hidden;
  64. }
  65. .shadow {
  66. box-shadow: 0 0.5em 1em -0.125em rgba(10, 10, 10, .1), 0 0 0 1px rgba(10, 10, 10, .02);
  67. }
  68. .nav-shadow {
  69. box-shadow: 0 2px 3px rgba(26, 26, 26, .1);
  70. }
  71. .paginator div {
  72. border: 2px solid #000;
  73. cursor: pointer;
  74. display: inline-block;
  75. min-width: 100px;
  76. text-align: center;
  77. font-weight: bold;
  78. padding: 10px;
  79. }
  80. .box article {
  81. overflow-wrap: break-word;
  82. /*font-size: larger;*/
  83. word-break: break-word;
  84. line-height: 1.6;
  85. padding: 16px;
  86. /*margin-bottom: 16px;*/
  87. background-color: #ffffff;
  88. }
  89. .toc-level-1 {
  90. list-style-type: none;
  91. }
  92. .toc-level-2 {
  93. list-style-type: none;
  94. }
  95. .toc-level-3 {
  96. list-style-type: disc;
  97. }
  98. .toc-level-4 {
  99. list-style-type: circle;
  100. }
  101. .toc-level-5 {
  102. list-style-type: square;
  103. }
  104. .toc-level-6 {
  105. list-style-type: square;
  106. }
  107. img {
  108. max-width: 100%;
  109. max-height: 100%;
  110. }
  111. .article-container {
  112. margin: auto;
  113. max-width: 960px;
  114. padding: 16px 16px;
  115. overflow-wrap: break-word;
  116. word-break: break-word;
  117. line-height: 1.6;
  118. /*font-size: larger;*/
  119. }
  120. article {
  121. font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  122. font-size: 16px;
  123. line-height: 1.5;
  124. word-wrap: break-word;
  125. color: #24292f;
  126. }
  127. article p, article blockquote, article ul, article ol, article dl, article table, article pre, article details {
  128. margin-top: 0;
  129. margin-bottom: 16px;
  130. }
  131. article ul, article ol {
  132. padding-left: 2em;
  133. }
  134. article ul ul, article ul ol, article ol ol, article ol ul {
  135. margin-top: 0;
  136. margin-bottom: 0;
  137. }
  138. article .tag {
  139. font-family: Verdana, Candara, Arial, Helvetica, Microsoft YaHei, sans-serif;
  140. }
  141. article a {
  142. color: #007bff;
  143. text-decoration: none;
  144. }
  145. article a:hover {
  146. color: #007bff;
  147. text-decoration: none;
  148. }
  149. article h2,
  150. article h3,
  151. article h4,
  152. article h5,
  153. article h6 {
  154. margin-top: 24px;
  155. margin-bottom: 16px;
  156. font-weight: 600;
  157. line-height: 1.5;
  158. margin-block-start: 1em;
  159. margin-block-end: 0.2em;
  160. }
  161. article h1 {
  162. font-size: 2em
  163. }
  164. article h2 {
  165. padding-bottom: 0.3em;
  166. font-size: 1.5em;
  167. }
  168. article h3 {
  169. font-size: 1.25em
  170. }
  171. article h4 {
  172. font-size: 1.25em;
  173. }
  174. article h5 {
  175. font-size: 1.1em;
  176. }
  177. article h6 {
  178. font-size: 1em;
  179. font-weight: bold
  180. }
  181. @media screen and (max-width: 960px) {
  182. article h1 {
  183. font-size: 1.5em
  184. }
  185. article h2 {
  186. font-size: 1.35em
  187. }
  188. article h3 {
  189. font-size: 1.3em
  190. }
  191. article h4 {
  192. font-size: 1.2em;
  193. }
  194. }
  195. article p {
  196. margin-top: 0;
  197. margin-bottom: 16px;
  198. }
  199. article table {
  200. margin: auto;
  201. border-collapse: collapse;
  202. border-spacing: 0;
  203. vertical-align: middle;
  204. text-align: left;
  205. min-width: 66%;
  206. }
  207. article table td,
  208. article table th {
  209. padding: 5px 8px;
  210. border: 1px solid #bbb;
  211. }
  212. article blockquote {
  213. margin-left: 0;
  214. padding: 0 1em;
  215. border-left: 0.25em solid #ddd;
  216. }
  217. article ol ul {
  218. list-style-type: circle;
  219. }
  220. article pre {
  221. max-width: 960px;
  222. display: block;
  223. overflow: auto;
  224. padding: 0;
  225. margin-top: 12px;
  226. margin-bottom: 12px;
  227. border-radius: 6px;
  228. }
  229. article pre code {
  230. font-size: 14px;
  231. }
  232. article ol {
  233. text-decoration: none;
  234. padding-inline-start: 40px;
  235. margin-bottom: 1.25rem;
  236. padding-left: 2em;
  237. }
  238. article ul {
  239. padding-left: 2em;
  240. }
  241. article li + li {
  242. margin-top: 0.25em;
  243. }
  244. code {
  245. font-family: "JetBrains Mono", "Cascadia Code", Consolas, Microsoft YaHei, monospace;
  246. }
  247. article code {
  248. color: #24292f;
  249. background-color: rgb(175 184 193 / 20%);
  250. padding: .065em .4em;
  251. border-radius: 6px;
  252. font-family: "JetBrains Mono", "Cascadia Code", Consolas, Microsoft YaHei, monospace;
  253. }
  254. article .copyright {
  255. display: none;
  256. }
  257. .info {
  258. font-size: 14px;
  259. line-height: 28px;
  260. text-align: left;
  261. color: #738292;
  262. margin-bottom: 24px;
  263. }
  264. .info a {
  265. text-decoration: none;
  266. color: inherit;
  267. }
  268. /* Code Page Style*/
  269. .code-page {
  270. margin-top: 32px;
  271. padding-left: 16px;
  272. padding-right: 16px;
  273. font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  274. }
  275. .code-page code {
  276. font-size: 16px;
  277. width: 100%;
  278. height: 100%;
  279. }
  280. .code-page pre {
  281. margin-top: 2px;
  282. overflow-x: auto;
  283. padding: 0;
  284. font-size: 16px;
  285. background-color: rgba(0, 0, 0, 0);
  286. }
  287. .code-page .control-panel {
  288. width: 100%;
  289. }
  290. #code-display {
  291. padding: 16px 24px;
  292. }
  293. .discuss h1 {
  294. font-size: 24px;
  295. line-height: 36px;
  296. text-align: left;
  297. }
  298. .discuss .time {
  299. font-size: 12px;
  300. line-height: 18px;
  301. text-align: left;
  302. color: #738292;
  303. }
  304. .discuss .content {
  305. font-size: 16px;
  306. line-height: 24px;
  307. text-align: left;
  308. }
  309. .raw {
  310. padding: 16px;
  311. }
  312. .raw .raw-content {
  313. overflow-y: hidden;
  314. overflow-x: scroll;
  315. }
  316. .links {
  317. margin: 16px;
  318. }
  319. span.line {
  320. display: inline-block;
  321. }
  322. .toc {
  323. position: sticky;
  324. top: 24px;
  325. }