Skip to content
20 changes: 19 additions & 1 deletion src/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,23 @@ samp {
}
}

/* Previewed code block with side-by-side layout */
.previewed-code {
@apply rounded-md overflow-hidden flex;
}

.previewed-code pre {
@apply flex-1 m-0 rounded-none;
}

.previewed-code .preview {
@apply flex-1 bg-gray-200 flex items-center justify-center p-4;
}

.previewed-code .preview img {
@apply max-w-full max-h-96;
}

/*
Code block styles for Typst Light theme

Expand Down Expand Up @@ -170,6 +187,7 @@ pre code span.typ-error {
border-radius: 2px;
}
pre {
background: #f6f8fa;
/* Override typst-docs provided styles. */
background: #f6f8fa !important;
color: #1f2328;
}