mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
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:
parent
d2f3f2cad6
commit
2a58ff3e41
1 changed files with 6 additions and 4 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue