Skip to content

Add CSS class indicating its domain for each desc node #7144

Closed

Description

@tk0miya

Is your feature request related to a problem? Please describe.
As commented at #6990 (comment), it would be better to decorate (change a style) every element of object descriptions. To do that, it would be useful to give a domain-named CSS class for each desc element to select specific domain.

Describe the solution you'd like
Give a domain-named CSS class for each desc element.

<desc classes=['py', 'function']>
  <desc_signature>...</desc_signature>
  <desc_content>...</desc_content>
</desc>

This structure enables themes to give a style with a CSS selector like .py.function > .attribute-name.

Describe alternatives you've considered
N/A

Additional context
N/A

Activity

  1. added
    type:enhancement
    on Feb 13, 2020
  2. added this to the 3.0.0 milestone on Feb 13, 2020
  3. added 4 commits that reference this issue on Feb 13, 2020
    1bc56f9
    87856cc
    333596d
    58a7cd2
  4. locked as resolved and limited conversation to collaborators on Jul 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    domainmarkuptype:enhancement

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions