Override styles for inline code and code blocks

This commit is contained in:
Harald Eilertsen 2025-07-31 11:42:14 +02:00
parent 7d2860f97c
commit 2d93361d2f

View file

@ -6,3 +6,23 @@
*
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
/*
* Make code snippets display inline by default.
* If they should be blocks, wrap them in <pre> tags.
*/
code {
display: inline;
}
/*
* Make code blocks nicer
*/
pre {
background-color: var(--bs-secondary-bg);
border: 1px solid var(--bs-border-color);
border-radius: var(--bs-border-radius);
padding: 0.3rem;
margin-top: 0.3rem;
margin-bottom: 1rem;
}