From ea1d19b66d3ef080f63a372f30ff71ac668f3b64 Mon Sep 17 00:00:00 2001 From: Laurens Valk Date: Sat, 19 Oct 2019 21:52:51 +0200 Subject: [PATCH] doc: resolve css conflict --- doc/common/_static/css/theme_overrides.css | 53 ++++++++++++++++++++++ doc/common/conf.py | 2 - 2 files changed, 53 insertions(+), 2 deletions(-) diff --git a/doc/common/_static/css/theme_overrides.css b/doc/common/_static/css/theme_overrides.css index 4a2db22..e5a9078 100644 --- a/doc/common/_static/css/theme_overrides.css +++ b/doc/common/_static/css/theme_overrides.css @@ -25,3 +25,56 @@ span.caption-number:after { font-family: "Roboto Slab","ff-tisa-web-pro","Georgia",Arial,sans-serif; margin-bottom: 24px !important; } + +/* The following CSS from https://github.com/ulrobix/sphinxcontrib-contentui + which is available under the MIT License. +*/ + +ul.contenttab-selector { + display:block; + list-style-type: none; + margin: 0 0 10px; + padding: 0; + line-height: normal; + overflow: auto; +} +ul.contenttab-selector li { + display: block; + cursor: pointer; + font-weight: bold; + margin: 0 5px 0 0; + padding: 5px 10px; + float: left; + background-color: #999; + color: #fff; + -moz-border-radius: 5px; + -webkit-border-radius: 5px; + border-radius: 5px; + -khtml-border-radius: 5px; +} +.rst-content .section ul.contenttab-selector, +.rst-content .toctree-wrapper ul.contenttab-selector, +article ul.contenttab-selector{ + line-height: normal; + margin: 0 0 10px; +} +.rst-content .section ul.contenttab-selector li, +.rst-content .toctree-wrapper ul.contenttab-selector li, +article ul.contenttab-selector li{ + margin-left: 0; +} +ul.contenttab-selector li:hover { + background-color: #777; +} +ul.contenttab-selector li.selected { + background-color: #2980b9; +} +ul.contenttab-selector li.selected:hover { + background-color: #333; +} +.content-tabs { + margin: 10px 0 20px 0; +} +.tab-content { + clear: both; +} diff --git a/doc/common/conf.py b/doc/common/conf.py index 6e87d6c..e2b0399 100644 --- a/doc/common/conf.py +++ b/doc/common/conf.py @@ -113,7 +113,6 @@ if ON_RTD: 'https://media.readthedocs.org/css/sphinx_rtd_theme.css', 'https://media.readthedocs.org/css/readthedocs-doc-embed.css', '_static/css/theme_overrides.css', - '_static/contentui.css', ], 'disclaimer': _DISCLAIMER, } @@ -124,7 +123,6 @@ else: html_context = { 'css_files': [ '_static/css/theme_overrides.css', - '_static/contentui.css', ], 'disclaimer': _DISCLAIMER, }