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
38980f1813
commit
71128e2392
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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 %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user