Skip to content

Commit f10b7bb

Browse files
committed
Refactor inline code styling for improved readability and consistency in light and dark themes
1 parent 5e81067 commit f10b7bb

1 file changed

Lines changed: 19 additions & 13 deletions

File tree

assets/css/custom.css

Lines changed: 19 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,25 @@ p {
6464
color: #7eace4;
6565
}
6666

67+
/* Inline code styling */
68+
code {
69+
background-color: #eee;
70+
padding: 0.2em 0.4em;
71+
border-radius: 3px;
72+
font-size: 0.9em;
73+
color: #4a6fa5;
74+
}
75+
76+
.theme--dark code {
77+
background-color: #292929;
78+
color: #7eb3d3;
79+
}
80+
81+
/* Override code block backgrounds */
82+
.theme--light .post__content pre {
83+
background-color: #eee;
84+
}
85+
6786
/* Mobile burger more prominent */
6887
a.navbar-burger {
6988
height: 4.25rem;
@@ -129,16 +148,3 @@ a.navbar-burger {
129148
}
130149
}
131150

132-
/* Inline code styling */
133-
code {
134-
background-color: #f4f4f4;
135-
padding: 0.2em 0.4em;
136-
border-radius: 3px;
137-
font-size: 0.9em;
138-
color: #d14;
139-
}
140-
141-
.theme--dark code {
142-
background-color: #2d2d2d;
143-
color: #ff6b6b;
144-
}

0 commit comments

Comments
 (0)