mirror of
https://github.com/pacnpal/django-anymail.git
synced 2025-12-20 03:41:05 -05:00
Docs: Show code cross-reference links as clickable (blue)
This commit is contained in:
27
docs/_static/anymail-theme.css
vendored
27
docs/_static/anymail-theme.css
vendored
@@ -1,6 +1,7 @@
|
|||||||
/* Anymail modifications to sphinx-rtd-theme styles */
|
/* Anymail modifications to sphinx-rtd-theme styles */
|
||||||
|
|
||||||
/* List item spacing: https://github.com/rtfd/sphinx_rtd_theme/issues/590 */
|
/* List item spacing: https://github.com/rtfd/sphinx_rtd_theme/issues/590 */
|
||||||
|
/* Regression: https://github.com/rtfd/sphinx_rtd_theme/issues/705 */
|
||||||
.rst-content .section ol li p:last-child,
|
.rst-content .section ol li p:last-child,
|
||||||
.rst-content .section ul li p:last-child {
|
.rst-content .section ul li p:last-child {
|
||||||
margin-bottom: 24px;
|
margin-bottom: 24px;
|
||||||
@@ -39,3 +40,29 @@ table.sticky-left th:first-of-type[colspan] > p {
|
|||||||
position: sticky;
|
position: sticky;
|
||||||
left: 17px; /* (.wy-table $table-padding-size) + (docutils border="1" in html) */
|
left: 17px; /* (.wy-table $table-padding-size) + (docutils border="1" in html) */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* Show code cross-reference links as clickable $link-color (blue).
|
||||||
|
|
||||||
|
Sphinx-rtd-theme usually wants `.rst-content a code` to be $link-color [1], but has
|
||||||
|
a more specific rule setting `.rst-content a code.xref` to $text-codexref-color,
|
||||||
|
bold [2]. And $text-codexref-color is $text-color (black).
|
||||||
|
|
||||||
|
This makes code.xref's inside an <a> use standard link coloring instead.
|
||||||
|
|
||||||
|
[1]: https://github.com/rtfd/sphinx_rtd_theme/blob/0.4.2/sass/_theme_rst.sass#L293-L294
|
||||||
|
[2]: https://github.com/rtfd/sphinx_rtd_theme/blob/0.4.2/sass/_theme_rst.sass#L287-L289
|
||||||
|
|
||||||
|
Related: https://github.com/rtfd/sphinx_rtd_theme/issues/153
|
||||||
|
https://github.com/rtfd/sphinx_rtd_theme/issues/92
|
||||||
|
*/
|
||||||
|
.rst-content a code.xref {
|
||||||
|
color: #2980B9;
|
||||||
|
font-weight: inherit;
|
||||||
|
}
|
||||||
|
.rst-content a:hover code.xref {
|
||||||
|
color: #3091d1;
|
||||||
|
}
|
||||||
|
.rst-content a:visited code.xref {
|
||||||
|
color: #9B59B6;
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user