-
Notifications
You must be signed in to change notification settings - Fork 4k
Description
- I've read the [contribution guidelines][1] and agree with them
I've found a bug and checked that ...
- ... the problem doesn't occur with the default MkDocs template
- ... the problem is not in any of my customizations (CSS, JS, template)
- ... the documentation does not mention anything about my problem
- ... there are no open or closed issues that are related to my problem
Description
I don't quite get the reasoning for this override?:
mkdocs-material/src/assets/stylesheets/main/extensions/markdown/_admonition.scss
Lines 154 to 163 in 414ffe1
| // Omit background on inline code blocks, as they don't go well with the | |
| // pastelly tones applied to admonition titles | |
| code { | |
| margin: initial; | |
| padding: initial; | |
| color: currentColor; | |
| background-color: transparent; | |
| border-radius: initial; | |
| box-shadow: none; | |
| } |
How is the override visually better? If it was a concern for the user they might as well at that point just not use the inline code syntax?
If the concern is with contrast, wouldn't it be better to instead use alpha?
Expected behavior
EDIT: See the comparison images below in the 2nd message.
original examples
Any of the following:
-
Change bg-color to better match admonition colour (
#d7d7d7adwith CSSmix-blend-mode: multiply):

Personally 3 or 6 look quite nice.
Actual behavior
Package versions / Project configuration / System information
Active release used for project demo site (if modified to use an inline code block in admonition title): https://squidfunk.github.io/mkdocs-material/reference/admonitions





