build(docs-infra): improve directive selector rendering (#25768)
`:not(...)` blocks are now rendered as italic, while the rest of the selector is bold. PR Close #25768
This commit is contained in:
parent
f4b60588fb
commit
935ef13096
|
@ -116,7 +116,16 @@
|
|||
}
|
||||
}
|
||||
|
||||
.property-name {
|
||||
.selector-list {
|
||||
li, a {
|
||||
font-weight: bold;
|
||||
i {
|
||||
font-weight: normal;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.member-name {
|
||||
font-weight: bold;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
{% else %}
|
||||
<ul>
|
||||
{%- for selector in doc.selectorArray %}
|
||||
<li><code>{$ selector $}</code></li>
|
||||
<li><code>{$ selector | replace(r/(:not\([^()]+\))/g, '<i>$1</i>') $}</code></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
|
|
Loading…
Reference in New Issue