Spaces:
Sleeping
Sleeping
File size: 3,137 Bytes
83491c8 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 | /* ===== 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;
}
} |