diff --git a/doc/sphinx-guides/source/_static/docsdataverse_org.css b/doc/sphinx-guides/source/_static/docsdataverse_org.css index ed017802f6a..29b6a08ab59 100755 --- a/doc/sphinx-guides/source/_static/docsdataverse_org.css +++ b/doc/sphinx-guides/source/_static/docsdataverse_org.css @@ -96,6 +96,12 @@ div.code-example .color-swatch { margin: 0 5px; border-radius: 3px } +div.code-example .messagePanel .glyphicon { + font-size: 1.5em; + vertical-align: bottom; +} +div.code-example span.glyphicon-question-sign.tooltip-icon {color: #99bcdb !important;} +div.code-example span.glyphicon-question-sign.tooltip-icon:hover {color: #337AB7 !important;} #breadcrumbNavBlock {margin-top:.5em;} #breadcrumbNavBlock .breadcrumbBlock {float:left; position:relative;} diff --git a/doc/sphinx-guides/source/_static/dv_rebind_bootstrap_ui.js b/doc/sphinx-guides/source/_static/dv_rebind_bootstrap_ui.js index dc61716f837..e90a1268419 100644 --- a/doc/sphinx-guides/source/_static/dv_rebind_bootstrap_ui.js +++ b/doc/sphinx-guides/source/_static/dv_rebind_bootstrap_ui.js @@ -1,4 +1,31 @@ -function bind_tooltip(){ - // bind tooltips to all necessary elements - $("a.bootstrap-button-tooltip").tooltip({container: 'body'}); +function bind_bsui_components(){ + bind_tooltip_popover(); +} + +function bind_tooltip_popover(){ + // bind tooltips + popovers to all necessary elements + $jqTheme(".bootstrap-button-tooltip, [data-toggle='tooltip']").tooltip({container: 'body'}); + $jqTheme("[data-toggle='popver']").popover({container: 'body'}); + + // CLOSE OPEN TOOLTIPS + POPOVERS ON BODY CLICKS + $jqTheme('body').on("touchstart", function(e){ + $jqTheme(".bootstrap-button-tooltip, [data-toggle='tooltip']").each(function () { + // hide any open tooltips when anywhere else in body is clicked + if (!$jqTheme(this).is(e.target) && $jqTheme(this).has(e.target).length === 0 && $jqTheme('div.tooltip').has(e.target).length === 0) { + $jqTheme(this).tooltip('hide'); + }////end if + }); + $jqTheme("a.popoverHTML, [data-toggle='popover']").each(function () { + //the 'is' for buttons that trigger popups + //the 'has' for icons within a button that triggers a popup + if (!$jqTheme(this).is(e.target) && $jqTheme(this).has(e.target).length === 0 && $jqTheme('div.popover').has(e.target).length === 0) { + $jqTheme(this).popover('hide'); + } + }); + }); + + // CLOSE OPEN TOOLTIPS ON BUTTON CLICKS + $jqTheme('.bootstrap-button-tooltip').on('click', function () { + $jqTheme(this).tooltip('hide'); + }); } \ No newline at end of file diff --git a/doc/sphinx-guides/source/_templates/layout.html b/doc/sphinx-guides/source/_templates/layout.html index 7a31569b0d5..3942c492970 100755 --- a/doc/sphinx-guides/source/_templates/layout.html +++ b/doc/sphinx-guides/source/_templates/layout.html @@ -4,6 +4,12 @@ {# Add some extra stuff before and use existing with 'super()' call. #} {% block footer %} {{ super() }} + +
@@ -29,8 +30,7 @@