jayqi · GitHub

Is your feature request related to a problem? Please describe.

There is currently not a straightforward way to specify CSS selectors to just grab attribute/class/method/function names for styling. For example, I decided to style my docs' headers such that the names are bolded but not the rest of the signature like the type hints and arguments.

Describe the solution you'd like

CSS classes for the names of attribute/class/method/function signatures

Describe alternatives you've considered

Currently, I'm using a work around by first selecting all span elements inside doc-heading and styling them and then selecting all spans except the first and unstyling them. This is approach is obtuse and feels fragile—I'd much rather achieve this declaratively.

Example:

Read the original on github.com ↗