CMake/Utilities/Sphinx/static/cmake.css
Nikita Nemkin dafcef8b50 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
2020-12-02 21:00:28 +05:00

25 lines
657 B
CSS

/* Import the Sphinx theme style. */
@import url("default.css");
/* Wrap sidebar content even within words so that long
document names do not escape sidebar borders. */
div.sphinxsidebarwrapper {
word-wrap: break-word;
}
/* Make links inside parsed-literal blocks more obvious
by using a background color and increased line spacing
to make them look boxed. */
.literal-block {
line-height: 1.4;
}
.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;
}