how to customize style of inline code blocks only #7042
-
what I want to doI'd like to customize bg and fg color of inline code blocks, and change them from image 1 shown below to image 2. what I triedI tried the following, according to this guide, which changes the style of all code blocks, including normal code blocks: :root>* {
--md-code-fg-color: #ffffff;
--md-code-bg-color: #0000ff;
} images |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
Something like this? .md-typeset > p > code {
background-color: red;
} |
Beta Was this translation helpful? Give feedback.
-
hi @aborcyjnydreamteam, may I ask you a follow up question? Your suggestion works for inline code block in body text, but not for those in bullet point text (which is actually what is shown in the image I posted above.). So, is there a CSS setting for this specifically? Thanks. |
Beta Was this translation helpful? Give feedback.
Something like this?