From f6e4299398262762885946a440f791614a8ecdd2 Mon Sep 17 00:00:00 2001 From: Marco Pfatschbacher Date: Tue, 19 Feb 2019 13:58:06 +0100 Subject: [PATCH] Increase default content width by 200px (#549) (#558) The default layout is quite narrow and makes it tedious to fit our content in tables. Bump the width from 800px to 1000px. (2nd try with different css include) --- .gitignore | 6 ++++-- _static/theme_overrides.css | 4 ++++ _templates/layout.html | 4 ++++ conf.py | 2 +- 4 files changed, 13 insertions(+), 3 deletions(-) create mode 100644 _static/theme_overrides.css create mode 100644 _templates/layout.html diff --git a/.gitignore b/.gitignore index 8d8b2b21c..ea375ffb0 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,3 @@ -_static _build .DS_Store @@ -19,4 +18,7 @@ pip-selfcheck.json # Windows specific files Scripts -tcl \ No newline at end of file +tcl + +# vim bak files +*.swp diff --git a/_static/theme_overrides.css b/_static/theme_overrides.css new file mode 100644 index 000000000..b79568991 --- /dev/null +++ b/_static/theme_overrides.css @@ -0,0 +1,4 @@ +/* override width restrictions */ +.wy-nav-content { + max-width: 1000px !important; +} diff --git a/_templates/layout.html b/_templates/layout.html new file mode 100644 index 000000000..935c1d788 --- /dev/null +++ b/_templates/layout.html @@ -0,0 +1,4 @@ +{% extends "!layout.html" %} +{% block extrahead %} + +{% endblock %} diff --git a/conf.py b/conf.py index 7b832d093..b44cc4ab7 100644 --- a/conf.py +++ b/conf.py @@ -143,7 +143,7 @@ # 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 = ['_static'] # Add any extra paths that contain custom files (such as robots.txt or # .htaccess) here, relative to this directory. These files are copied