fix(docs-infra): amend color of code links inside single anchors (#43586)

when some auto code links fail to happen they can be added manually
with the md ``[`code text`](link)``, these generate anchor elements which
contain a code element, such code element does not get the correct text
color, this commit fixes such issue

PR Close #43586
This commit is contained in:
dario-piotrowicz 2021-10-02 10:16:02 +03:00 committed by Dylan Hunn
parent d2f3f2cad6
commit 2a58ff3e41

View file

@ -87,15 +87,17 @@
}
.sidenav-content {
code {
a {
color: if($is-dark-theme, constants.$cyan, constants.$darkblue);
}
code a,
a > code {
color: if($is-dark-theme, constants.$cyan, constants.$darkblue);
}
:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(pre) {
> code {
background-color: if($is-dark-theme, constants.$darkgray, rgba(constants.$lightgray, 0.3));
}
&:not(a) > code {
color: if($is-dark-theme, constants.$white, constants.$darkgray);
}
}