Fixed color of link-embedded code blocks

This commit is contained in:
squidfunk
2020-04-03 09:44:05 +02:00
parent 2cc068594e
commit dff96cbf62
8 changed files with 12 additions and 17 deletions

View File

@@ -188,14 +188,9 @@ kbd {
box-shadow: none;
}
// Reset code if it's inside a link
// Ensure link color in code blocks
a > code {
margin: initial;
padding: initial;
color: initial;
background-color: transparent;
border-radius: initial;
box-shadow: none;
color: currentColor;
}
// Unformatted code blocks

View File

@@ -143,10 +143,10 @@ $admonitions: (
}
// Reset code inside Admonition titles
> code {
code {
margin: initial;
padding: initial;
color: initial;
color: currentColor;
background-color: transparent;
border-radius: initial;
box-shadow: none;