Spaces:
Sleeping
Sleeping
| /* ===== MassiveMark Playground – Compact Print Styles (A4) ===== */ | |
| :root { | |
| --text: #222; | |
| --muted: #57606a; | |
| --line: #d0d7de; | |
| --bg-soft: #f6f8fa; | |
| --bg-zebra: #fafbfc; | |
| --brand: #0969da; | |
| --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, "Noto Sans", | |
| "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji"; | |
| --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", | |
| "Courier New", monospace; | |
| --fs: 12.2pt; | |
| --lh: 1.55; | |
| } | |
| /* === Page setup: khổ A4, margin nhỏ, chiếm gần full chiều ngang === */ | |
| @page { | |
| size: A4; | |
| margin-top: 10mm; | |
| margin-bottom: 10mm; | |
| margin-left: 8mm; | |
| margin-right: 8mm; | |
| } | |
| html, | |
| body { | |
| color: var(--text); | |
| font-family: var(--font); | |
| font-size: var(--fs); | |
| line-height: var(--lh); | |
| background: white; | |
| margin: 0 auto; | |
| max-width: 190mm; | |
| /* gần full khổ A4 */ | |
| } | |
| /* === Headings === */ | |
| h1, | |
| h2, | |
| h3, | |
| h4, | |
| h5, | |
| h6 { | |
| font-weight: 700; | |
| color: #24292f; | |
| margin: 1.1em 0 .55em; | |
| } | |
| h1 { | |
| font-size: 20pt; | |
| border-bottom: 2px solid var(--line); | |
| padding-bottom: .25em; | |
| text-align: center; | |
| } | |
| h2 { | |
| font-size: 16.8pt; | |
| border-bottom: 1px solid var(--line); | |
| padding-bottom: .2em; | |
| margin-top: 1.2em; | |
| } | |
| h3 { | |
| font-size: 14pt; | |
| margin-top: 1em; | |
| } | |
| h4 { | |
| font-size: 13pt; | |
| font-weight: 600; | |
| } | |
| /* === Paragraph & Lists === */ | |
| p { | |
| margin: .55em 0; | |
| } | |
| ul, | |
| ol { | |
| margin: .55em 0 .55em 1.3em; | |
| } | |
| li { | |
| margin: .15em 0; | |
| } | |
| /* === Tables === */ | |
| table { | |
| width: 100%; | |
| border-collapse: collapse; | |
| margin: 1em 0; | |
| page-break-inside: avoid; | |
| font-size: 11.5pt; | |
| } | |
| th, | |
| td { | |
| border: 1px solid var(--line); | |
| padding: 7px 9px; | |
| text-align: left; | |
| vertical-align: top; | |
| } | |
| th { | |
| background: var(--bg-soft); | |
| font-weight: 600; | |
| } | |
| tbody tr:nth-child(even) td { | |
| background: var(--bg-zebra); | |
| } | |
| /* === Code blocks === */ | |
| code { | |
| font-family: var(--mono); | |
| background: var(--bg-soft); | |
| border: 1px solid #eaeef2; | |
| border-radius: 6px; | |
| padding: 2px 5px; | |
| } | |
| pre { | |
| font-family: var(--mono); | |
| background: var(--bg-soft); | |
| border: 1px solid #eaeef2; | |
| border-radius: 8px; | |
| padding: 10px 12px; | |
| page-break-inside: avoid; | |
| overflow-x: auto; | |
| } | |
| /* === Links & Blockquotes === */ | |
| a { | |
| color: var(--brand); | |
| text-decoration: none; | |
| } | |
| a:hover { | |
| text-decoration: underline; | |
| } | |
| blockquote { | |
| margin: .8em 0; | |
| padding: .6em .9em; | |
| border-left: 4px solid var(--line); | |
| background: var(--bg-soft); | |
| color: var(--muted); | |
| border-radius: 4px; | |
| } | |
| /* === Images === */ | |
| img { | |
| max-width: 100%; | |
| height: auto; | |
| page-break-inside: avoid; | |
| display: block; | |
| margin: .4em auto; | |
| } | |
| /* === Horizontal lines === */ | |
| hr { | |
| border: none; | |
| border-top: 1px solid var(--line); | |
| margin: 1.2em 0; | |
| } | |
| /* === Math (MathJax SVG) === */ | |
| mjx-container[jax="SVG"] { | |
| page-break-inside: avoid; | |
| } | |
| /* === Print optimization === */ | |
| @media print { | |
| * { | |
| -webkit-print-color-adjust: exact; | |
| print-color-adjust: exact; | |
| } | |
| } |