From 613998661e989fb2be1b98eaff23564df199da69 Mon Sep 17 00:00:00 2001 From: Laurens Valk Date: Mon, 9 Dec 2019 17:08:12 +0100 Subject: [PATCH] config: fix contentui css The extension CSS does not get included correctly. Fix html context so we don't have to copy the css. --- doc/common/_static/css/theme_overrides.css | 53 ---------------------- doc/common/conf.py | 1 + 2 files changed, 1 insertion(+), 53 deletions(-) diff --git a/doc/common/_static/css/theme_overrides.css b/doc/common/_static/css/theme_overrides.css index e5a9078..4a2db22 100644 --- a/doc/common/_static/css/theme_overrides.css +++ b/doc/common/_static/css/theme_overrides.css @@ -25,56 +25,3 @@ 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 e2b0399..d9abd2d 100644 --- a/doc/common/conf.py +++ b/doc/common/conf.py @@ -123,6 +123,7 @@ else: html_context = { 'css_files': [ '_static/css/theme_overrides.css', + '_static/contentui.css', ], 'disclaimer': _DISCLAIMER, }