on master help sign in
Merge pull request #163 from matildepark/tooltip
f87e496Morgan Sutherland
content/docs+1−1

Submodule changed.

sass/_main.scss+4
@@ -363,6 +363,10 @@ iframe {
363 }
363 }
364}
364}
365
365
366+.tippy-tooltip {
367+ border-radius: 0px;
368+}
369+
366/*
370/*
367 * styling
371 * styling
368 */
372 */
static/scripts.js+12−1
@@ -340,4 +340,15 @@ let docsNavScroll = function() {
340 }
340 }
341}
341}
342
342
343−if (window.location.href.includes("docs")) docsNavScroll();
343+if (window.location.href.includes("docs")) {
344+ docsNavScroll();
345+ tippy('.tooltip', {
346+ content(reference) {
347+ const title = reference.getAttribute('title')
348+ reference.removeAttribute('title')
349+ return title
350+ },
351+ animateFill: false,
352+ animation: 'fade'
353+ })
354+}
templates/base.html+2
@@ -35,6 +35,8 @@
35 {% if config.build_search_index %}
35 {% if config.build_search_index %}
36 <script type="text/javascript" src="{{ get_url(path="elasticlunr.min.js") | safe }}"></script>
36 <script type="text/javascript" src="{{ get_url(path="elasticlunr.min.js") | safe }}"></script>
37 <script type="text/javascript" src="{{ get_url(path="search_index.en.js") | safe }}"></script>
37 <script type="text/javascript" src="{{ get_url(path="search_index.en.js") | safe }}"></script>
38+ <script src="https://unpkg.com/popper.js@1"></script>
39+ <script src="https://unpkg.com/tippy.js@4"></script>
38 {% endif %}
40 {% endif %}
39 <script src="{{ config.base_url }}/scripts.js"></script>
41 <script src="{{ config.base_url }}/scripts.js"></script>
40 </body>
42 </body>