temp.css 2.3 KB

12345678910111213141516171819202122232425262728
  1. @page { size: A4; margin: 16mm 14mm 19mm 14mm; }
  2. @page { @bottom-center { content: "第 " counter(page) " 页 / 共 " counter(pages); font-family: sans-serif; font-size:8.5pt; color:#8b959f; position: absolute; bottom: 8mm; width: 100%; text-align: center; } }
  3. @page :first { @bottom-center { content: none; } @top-right { content: none; } }
  4. body { font-family:"PingFang SC","Hiragino Sans GB","Heiti SC",sans-serif; line-height:1.6; color:#1f2328; font-size:10.5pt; }
  5. h1 { font-size:17.5pt; margin:0 0 12pt; padding-bottom:6pt; border-bottom:2px solid #1f6feb; break-before: page; }
  6. h1:first-of-type { break-before: auto; }
  7. nav#TOC + h1, nav#TOC + hr + h1 { break-before: auto; }
  8. h2 { font-size:13.5pt; margin:16pt 0 8pt; padding-left:8px; border-left:4px solid #1f6feb; }
  9. h3 { font-size:11.5pt; margin:12pt 0 6pt; }
  10. table { width:100%; border-collapse:collapse; font-size:8.9pt; }
  11. thead { display: table-header-group; }
  12. tr { break-inside: avoid; }
  13. th, td { border:1px solid #ccd4dc; padding:3.5px 6px; text-align:left; vertical-align:top; line-height:1.45; }
  14. th { background:#edf3fa; font-weight:600; }
  15. tbody tr:nth-child(even) td { background:#fafbfc; }
  16. img { display:block; max-width:100%; max-height:86mm; margin:9px auto 11px; break-inside:avoid; }
  17. blockquote { margin:9px 0; padding:7px 11px; background:#f2f6fc; border-left:3px solid #8ab4f8; break-inside:avoid; }
  18. blockquote p:last-child { margin-bottom:0; }
  19. pre { background:#f6f8fa; border:1px solid #dde2e8; border-radius:4px; padding:7px 10px; font-size:9pt; break-inside:avoid; }
  20. code { font-family:"SF Mono",Menlo,monospace; font-size:0.87em; background:#f1f3f5; padding:1px 4px; border-radius:3px; }
  21. pre code { background:none; padding:0; }
  22. hr { border:none; border-top:1px solid #e3e6ea; margin:14px 0; }
  23. nav#TOC { background:#f7f9fc; padding:12px 14px; border:1px solid #e0e6ed; border-radius:5px; font-size:9.6pt; margin:10px 0 0; break-before: page; break-after: page; }
  24. nav#TOC::before { content:"目 录"; display:block; font-size:13pt; font-weight:600; margin-bottom:8px; padding-bottom:6px; border-bottom:1px solid #dbe1e8; }
  25. nav#TOC ul { list-style:none; padding-left:14px; margin:0; }
  26. nav#TOC > ul { padding-left:0; }
  27. nav#TOC > ul > li { margin-top:6px; font-weight:600; }
  28. nav#TOC > ul > li > ul { font-weight:400; color:#33414f; }