From c5135f45a14498b251baf389fd5baef6013368c9 Mon Sep 17 00:00:00 2001 From: "John M. Horan" Date: Wed, 15 Nov 2023 11:10:28 -0800 Subject: [PATCH 1/2] Widen the RTD page #997 Reference: https://github.com/nexB/vulnerablecode/issues/977 Note: I just noticed that I named the branch with 997 but the issue is 977. Signed-off-by: John M. Horan --- docs/source/_static/theme_overrides.css | 20 ++++++++++++++++++++ docs/source/conf.py | 7 ++++++- 2 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 docs/source/_static/theme_overrides.css diff --git a/docs/source/_static/theme_overrides.css b/docs/source/_static/theme_overrides.css new file mode 100644 index 000000000..e9be61c58 --- /dev/null +++ b/docs/source/_static/theme_overrides.css @@ -0,0 +1,20 @@ +/* this is the container for the pages */ +.wy-nav-content { + max-width: 100%; + padding: 0px 40px 0px 0px; + margin-top: 0px; + background-color: #fcfcfc; +} + +.wy-nav-content-wrap { + background-color: #fcfcfc; + border-right: solid 1px #e8e8e8; +} + +div.rst-content { + max-width: 1300px; + background-color: #fcfcfc; + border: 0; + padding: 0px 80px 10px 80px; + margin-left: 50px; +} diff --git a/docs/source/conf.py b/docs/source/conf.py index 94f2c1d60..7141ba67d 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -60,6 +60,11 @@ # Add any paths that contain custom static files (such as style sheets) here, # relative to this directory. They are copied after the builtin static files, # so a file named "default.css" will overwrite the builtin "default.css". -html_static_path = [] +# html_static_path = [] +html_static_path = ["_static"] + +html_css_files = [ + "theme_overrides.css", +] master_doc = "index" From 4e4ca61fac88bf4ca61fcafe2cc7ad61dbdbf26d Mon Sep 17 00:00:00 2001 From: "John M. Horan" Date: Wed, 15 Nov 2023 13:16:14 -0800 Subject: [PATCH 2/2] Add width, margin and padding adjustments for mobile displays <= 768px #977 Reference: https://github.com/nexB/vulnerablecode/issues/977 Signed-off-by: John M. Horan --- docs/source/_static/theme_overrides.css | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/docs/source/_static/theme_overrides.css b/docs/source/_static/theme_overrides.css index e9be61c58..ce4aad98f 100644 --- a/docs/source/_static/theme_overrides.css +++ b/docs/source/_static/theme_overrides.css @@ -18,3 +18,14 @@ div.rst-content { padding: 0px 80px 10px 80px; margin-left: 50px; } + + +@media (max-width: 768px) { + div.rst-content { + max-width: 1300px; + background-color: #fcfcfc; + border: 0; + padding: 0px 10px 10px 10px; + margin-left: 0px; + } +}