From 4fc15a5beb4dd643318b9f6cd75ae56336be69d1 Mon Sep 17 00:00:00 2001 From: chriseth Date: Thu, 9 Aug 2018 22:42:19 +0200 Subject: Fix table css. --- docs/_static/css/custom.css | 14 ++++++++++++++ docs/conf.py | 2 +- docs/docs-css/custom.css | 14 -------------- 3 files changed, 15 insertions(+), 15 deletions(-) create mode 100644 docs/_static/css/custom.css delete mode 100644 docs/docs-css/custom.css diff --git a/docs/_static/css/custom.css b/docs/_static/css/custom.css new file mode 100644 index 00000000..fd506203 --- /dev/null +++ b/docs/_static/css/custom.css @@ -0,0 +1,14 @@ +pre { + white-space: pre-wrap; /* css-3 */ + white-space: -moz-pre-wrap; /* Mozilla, since 1999 */ + white-space: -pre-wrap; /* Opera 4-6 */ + white-space: -o-pre-wrap; /* Opera 7 */ + word-wrap: break-word; +} + +.wy-table-responsive table td, .wy-table-responsive table th { + white-space: normal; +} +.rst-content table.docutils td { + vertical-align: top; +} diff --git a/docs/conf.py b/docs/conf.py index 55f4f1a8..233ff7b6 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -143,7 +143,7 @@ html_theme = 'sphinx_rtd_theme' # 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 diff --git a/docs/docs-css/custom.css b/docs/docs-css/custom.css deleted file mode 100644 index 970148ed..00000000 --- a/docs/docs-css/custom.css +++ /dev/null @@ -1,14 +0,0 @@ -pre { - white-space: pre-wrap; /* css-3 */ - white-space: -moz-pre-wrap; /* Mozilla, since 1999 */ - white-space: -pre-wrap; /* Opera 4-6 */ - white-space: -o-pre-wrap; /* Opera 7 */ - word-wrap: break-word; -} - -.wy-table-responsive table td, .wy-table-responsive table th { - white-space: pre-wrap; -} -.wy-table-responsive table td, .wy-table-responsive table th { - white-space: pre-wrap; -} -- cgit v1.2.3