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 38980f1813
commit 71128e2392
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; font-weight: bold;
} }
} }

View File

@ -6,7 +6,7 @@
{% else %} {% else %}
<ul> <ul>
{%- for selector in doc.selectorArray %} {%- for selector in doc.selectorArray %}
<li><code>{$ selector $}</code></li> <li><code>{$ selector | replace(r/(:not\([^()]+\))/g, '<i>$1</i>') $}</code></li>
{% endfor %} {% endfor %}
</ul> </ul>
{% endif %} {% endif %}