Inline code style for admonition seems odd due to override #2492
Labels
change request
Issue requests a new feature or improvement
resolved
Issue is resolved, yet unreleased if open
I've found a bug and checked that ...
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
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:
Restore bg-color:
![Screenshot_20210326_191218](https://user-images.githubusercontent.com/5098581/112590140-3496b600-8e67-11eb-83bc-3dbae7c6ff58.png)
Full restore:
![Screenshot_20210326_191806](https://user-images.githubusercontent.com/5098581/112590847-59d7f400-8e68-11eb-8257-94e2164109b4.png)
Change bg-color to brighter shade with opacity (
![Screenshot_20210326_192119](https://user-images.githubusercontent.com/5098581/112591040-9d326280-8e68-11eb-8dc7-dade7737aa63.png)
#ffffffbf
):Change bg-color to darker shade with opacity (
![Screenshot_20210326_193014](https://user-images.githubusercontent.com/5098581/112591776-c56e9100-8e69-11eb-80b2-acd5c680e71b.png)
#3a3a3a30
):Change bg-color to better match admonition colour (
![Screenshot_20210326_193301](https://user-images.githubusercontent.com/5098581/112592112-4e85c800-8e6a-11eb-8575-6aba3eed57a8.png)
#d7d7d7ad
with CSSmix-blend-mode: multiply
):or with
![Screenshot_20210326_193734](https://user-images.githubusercontent.com/5098581/112592406-c9e77980-8e6a-11eb-9f20-d6848b9c0686.png)
mix-blend-mode: luminosity
: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
The text was updated successfully, but these errors were encountered: