How can I set custom colors for inline code?

css

(Ivan Rapekas) #1

Hi, currently inline code is gray-highlighted. How can I change this to make it more contrast with color text?

For instance like this:
%D0%B8%D0%B7%D0%BE%D0%B1%D1%80%D0%B0%D0%B6%D0%B5%D0%BD%D0%B8%D0%B5
vs
noticeable inline code

Regards,
Ivan


(Ivan Rapekas) #2

Found Gitlab-style solution:

inline code

CSS:

p>code, li>code {
   color: #c7254e;
   background: #f9f2f4;
   padding: 2px 4px;
   border-radius: 2px;
}