Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
tk0miya opened this issue Feb 13, 2020 · 0 comments
Closed

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

tk0miya opened this issue Feb 13, 2020 · 0 comments
Labels
domain markup type:enhancement enhance or introduce a new feature
Milestone

Comments

@tk0miya
Copy link
Member

tk0miya commented Feb 13, 2020

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

@tk0miya tk0miya added type:enhancement enhance or introduce a new feature domain markup labels Feb 13, 2020
@tk0miya tk0miya added this to the 3.0.0 milestone Feb 13, 2020
tk0miya added a commit to tk0miya/sphinx that referenced this issue Feb 13, 2020
tk0miya added a commit to tk0miya/sphinx that referenced this issue Feb 13, 2020
tk0miya added a commit to tk0miya/sphinx that referenced this issue Feb 16, 2020
tk0miya added a commit that referenced this issue Feb 22, 2020
Close #7144: Add CSS class indicating its domain for each desc node
@tk0miya tk0miya closed this as completed Feb 22, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 28, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
domain markup type:enhancement enhance or introduce a new feature
Projects
None yet
Development

No branches or pull requests

1 participant