mirror of
https://github.com/pacnpal/django-anymail.git
synced 2025-12-20 03:41:05 -05:00
* Update docs build config
* Specify Sphinx and theme versions in docs/requirements.txt
(tox had been using latest; RTD had pinned older versions)
* Update docs builds for Python 3 and recent Sphinx
* Remove obsolete sphinx-rtd-theme patches
* Add .readthedocs.yml
* Move some JS to async (now that Sphinx supports that)
* Fix version-alert.js for async loading
* Remove docs versionadded/changed info older than v3.0
* Fix broken GitHub issue links in changelog (never worked?)
* Add setup long_description_content_type
* Drop poorly maintained AUTHORS.txt
(just point to GitHub contributors page)
46 lines
1.6 KiB
CSS
46 lines
1.6 KiB
CSS
/* Anymail modifications to sphinx-rtd-theme styles */
|
|
|
|
|
|
/* Sticky table first column (used for ESP feature matrix) */
|
|
table.sticky-left td:first-of-type,
|
|
table.sticky-left th:first-of-type {
|
|
position: sticky;
|
|
left: 0;
|
|
background-color: #fcfcfc; /* override transparent from .wy-table td */
|
|
}
|
|
table.sticky-left td:first-of-type[colspan] > p,
|
|
table.sticky-left th:first-of-type[colspan] > p {
|
|
/* Hack: the full-width <td colspan=N> section headers can't stick left;
|
|
since those always wrap a rubric <p> (in the specific table that uses this),
|
|
just make the <p> sticky within the <td>. */
|
|
display: inline-block;
|
|
position: sticky;
|
|
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: inherit;
|
|
/*font-weight: inherit;*/
|
|
}
|
|
.rst-content a:hover code.xref {
|
|
color: inherit;
|
|
}
|
|
.rst-content a:visited code.xref {
|
|
color: inherit;
|
|
}
|