diff --git a/README.rst b/README.rst index bdd799947..680679920 100644 --- a/README.rst +++ b/README.rst @@ -89,8 +89,8 @@ in development Pydoctor should now run on windows without the need to be administrator. * Adjust the sphinx extension to support Sphinx 8.1. The entries dynamically added to the intersphinx config from the ``pydoctor_url_path`` config option now includes a project name which defaults to 'main' (instead of putting None), - use mapping instead of a list define your own project name. - + use mapping instead of a list to define your own project name. +* Improve the themes so the adds injected by ReadTheDocs are rendered with the correct width and do not overlap too much with the main content. pydoctor 24.3.3 ^^^^^^^^^^^^^^^ diff --git a/pydoctor/themes/base/apidocs.css b/pydoctor/themes/base/apidocs.css index 537c3ba5c..98d734d3c 100644 --- a/pydoctor/themes/base/apidocs.css +++ b/pydoctor/themes/base/apidocs.css @@ -5,11 +5,25 @@ body { overflow-y: scroll; } -.container-fluid{ - max-width: 1380px; +.container-fluid { + max-width: 1400px; width: 100%; flex: auto; + margin-left: 0; +} + +/* For laptop displays */ +@media only screen and (max-width: 1850px) { + .container-fluid { + max-width: 1350px; + } } +@media only screen and (max-width: 1750px) { + .container-fluid { + max-width: 1250px; + } +} + nav.navbar { width:100%; diff --git a/pydoctor/themes/base/footer.html b/pydoctor/themes/base/footer.html index 45a5acd95..76e92babd 100644 --- a/pydoctor/themes/base/footer.html +++ b/pydoctor/themes/base/footer.html @@ -1,7 +1,7 @@