| 1 |
// ===== ai-shared/preview.scss — typography for the rendered HTML preview ===== |
| 2 |
// Shared by the Write-with-AI and Edit-with-AI bundles (the `.bd-ai-doc-preview` |
| 3 |
// surface rendered by ai-shared/PreviewAccept.js). Requires tokens.scss. |
| 4 |
|
| 5 |
.bd-ai-scope { |
| 6 |
.bd-ai-doc-preview { |
| 7 |
h1, h2, h3, h4 { |
| 8 |
color: var(--ink); |
| 9 |
line-height: 1.3; |
| 10 |
margin: 18px 0 8px; |
| 11 |
font-weight: 700; |
| 12 |
} |
| 13 |
h2 { font-size: 17px; } |
| 14 |
h3 { font-size: 15px; } |
| 15 |
p { margin: 0 0 10px; } |
| 16 |
ul, ol { margin: 0 0 10px; padding-left: 22px; } |
| 17 |
li { margin: 4px 0; } |
| 18 |
a { color: var(--ai); } |
| 19 |
code { |
| 20 |
background: #f1f4f8; |
| 21 |
padding: 1px 5px; |
| 22 |
border-radius: 4px; |
| 23 |
font-size: 0.9em; |
| 24 |
} |
| 25 |
pre { |
| 26 |
background: #0f172a; |
| 27 |
color: #e2e8f0; |
| 28 |
padding: 12px 14px; |
| 29 |
border-radius: 8px; |
| 30 |
overflow: auto; |
| 31 |
font-size: 12.5px; |
| 32 |
} |
| 33 |
table { |
| 34 |
border-collapse: collapse; |
| 35 |
width: 100%; |
| 36 |
margin: 0 0 12px; |
| 37 |
font-size: 13px; |
| 38 |
} |
| 39 |
th, td { |
| 40 |
border: 1px solid var(--border); |
| 41 |
padding: 6px 10px; |
| 42 |
text-align: left; |
| 43 |
} |
| 44 |
th { background: #f4f6f8; font-weight: 700; } |
| 45 |
blockquote { |
| 46 |
margin: 0 0 12px; |
| 47 |
padding: 6px 14px; |
| 48 |
border-left: 3px solid var(--ai-100); |
| 49 |
color: var(--muted); |
| 50 |
} |
| 51 |
.highlight { |
| 52 |
background: linear-gradient(transparent 60%, var(--ai-50) 60%); |
| 53 |
color: inherit; |
| 54 |
} |
| 55 |
> *:first-child { margin-top: 0; } |
| 56 |
> *:last-child { margin-bottom: 0; } |
| 57 |
} |
| 58 |
} |
| 59 |
|