diff --git a/volse/css/style.css b/volse/css/style.css index 1d4166d..7da0867 100644 --- a/volse/css/style.css +++ b/volse/css/style.css @@ -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
 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;
+}