Skip to content

Commit 7d9d546

Browse files
Martin MahnerMartin Mahner
authored andcommitted
Make inline code strings stand out better.
1 parent c921264 commit 7d9d546

File tree

4 files changed

+12
-31
lines changed

4 files changed

+12
-31
lines changed

biome.json

Lines changed: 0 additions & 23 deletions
This file was deleted.

main.py

Lines changed: 0 additions & 6 deletions
This file was deleted.

microdocs/templates/default/default.html

Lines changed: 1 addition & 2 deletions
Large diffs are not rendered by default.

templates_src/default/default.css

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,17 @@ html {
5555
@apply underline;
5656
}
5757

58+
/* Code, but not pre > code */
59+
code:not(pre>*) {
60+
@apply inline-block px-1 py-0.5 font-mono text-gray-800 bg-gray-50 rounded-md border-1 border-gray-200 dark:text-gray-300 dark:bg-gray-800 dark:border-gray-700;
61+
}
62+
63+
/* Remove backticks from code blocks */
64+
code::before,
65+
code::after {
66+
content: "";
67+
}
68+
5869
/* Headings use custom font */
5970

6071
h1,

0 commit comments

Comments
 (0)