Skip to content

Commit abb970c

Browse files
committed
Styles: Add outline and bg to inline <code>
For increased readability and contrast.
1 parent bc94186 commit abb970c

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

assets/css/v2/style.css

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1304,6 +1304,15 @@ code {
13041304
font-family: 'JetBrainsMono', monospace;
13051305
}
13061306

1307+
/* Inline Code */
1308+
code:not(pre code) {
1309+
border: solid 1px #ccc;
1310+
border-radius: 4px;
1311+
padding: 0 0.25rem;
1312+
background-color: #f9f9f9;
1313+
font-size: 0.875rem;
1314+
}
1315+
13071316
.highlight {
13081317
padding: 0 1rem 0 1rem;
13091318
position: relative;

0 commit comments

Comments
 (0)