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:
Pete Bacon Darwin 2018-09-21 14:07:51 +01:00 committed by Alex Rickabaugh
parent f4b60588fb
commit 935ef13096
2 changed files with 11 additions and 2 deletions

View File

@ -116,7 +116,16 @@
}
}
.property-name {
.selector-list {
li, a {
font-weight: bold;
i {
font-weight: normal;
}
}
}
.member-name {
font-weight: bold;
}
}

View File

@ -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 %}