Override styles for inline code and code blocks
This commit is contained in:
parent
7d2860f97c
commit
2d93361d2f
1 changed files with 20 additions and 0 deletions
|
@ -6,3 +6,23 @@
|
||||||
*
|
*
|
||||||
* SPDX-License-Identifier: AGPL-3.0-or-later
|
* 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;
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue