Skip to content
Snippets Groups Projects
Commit dafcef8b authored by Nikita Nemkin's avatar Nikita Nemkin
Browse files

Help: Improve styling for versionadded/deprecated directives

Sphinx theme CSS removes top margin for dd > p combination,
but directives add an intervening div and need a separate rule.

Issue: #19715
parent 6ae216da
No related branches found
No related tags found
No related merge requests found
......@@ -16,3 +16,9 @@ div.sphinxsidebarwrapper {
.literal-block a.reference.internal {
background-color: #dfdfdf;
}
/* Remove unwanted margin in case list item contains a div-wrapping
directive like `.. versionadded` or `.. deprecated`. */
dd > :first-child > p {
margin-top: 0px;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment