Skip to content

CSS classes for just attribute/class/method/function name part of signature #240

@jayqi

Description

@jayqi

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:

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions