Files
pytorch/docs/cpp/source/_static/cpp_theme.css
Brandon Green 392afb9f8b Fix overlapping keywords (#34142)
Summary:
This commit fixes overlapping keywords in the CPP Docs
Pull Request resolved: https://github.com/pytorch/pytorch/pull/34142

Test Plan: Imported from GitHub, without a `Test Plan:` line.

Differential Revision: D20319949

Pulled By: yf225

fbshipit-source-id: e7bb2efdc286c85792c6f18a260c3bba33c54008
2020-03-06 19:16:21 -08:00

33 lines
888 B
CSS

/* These are hacks on top of pytorch-sphinx-theme to fix random problems when
it is applied to C++ docs */
/* Fix clickable types floating to the right */
a.reference.internal {
position: static !important;
}
/* Clickable links should have a underline */
a.reference.internal:hover {
text-decoration: underline !important;
}
/* Non-clickable type properties should match C++ syntax and be black */
.function em.property {
text-transform: none !important;
color: #262626 !important;
}
/* This was broken for some reason and wasn't using the right font */
.function a.anchorjs-link {
font-family: anchorjs-icons !important;
}
/* Prevents keywords from overlapping */
article.pytorch-article .class dt em.property {
position: initial !important;
}
/* Properly aligns keywords the left */
article.pytorch-article .class dt {
padding-left: 0.5em !important;
}