Skip to content

Commit e381e68

Browse files
committed
fix inline code block
1 parent 53872a0 commit e381e68

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

assets/css/main.css

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ footer p {
170170
margin-bottom: 0;
171171
}
172172

173-
pre, code {
173+
pre {
174174
background: var(--color-bg-secondary);
175175
border: 1px solid var(--color-border);
176176
padding: var(--spacing-sm);
@@ -179,7 +179,20 @@ pre, code {
179179
word-wrap: break-word;
180180
}
181181

182-
pre, code ::selection {
182+
pre ::selection {
183+
background: var(--color-selection-code-bg);
184+
color: var(--color-text-primary);
185+
}
186+
187+
p > code {
188+
background: var(--color-bg-secondary);
189+
border: 1px solid var(--color-border);
190+
border-radius: var(--border-radius);
191+
white-space: pre-wrap;
192+
word-wrap: break-word;
193+
}
194+
195+
p > code ::selection {
183196
background: var(--color-selection-code-bg);
184197
color: var(--color-text-primary);
185198
}

0 commit comments

Comments
 (0)