-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
17347b3
commit 1321a9c
Showing
7 changed files
with
70 additions
and
98 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
55 changes: 15 additions & 40 deletions
55
_templates/plugin_layouts/sphinx_bootstrap/subchapter.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,49 +1,24 @@ | ||
<ul role="navigation" class="nextprev-list nextprev-list-{{place}}" aria-label="Change page"> | ||
{%- if prev %} | ||
<ul> | ||
<li id="relations-prev" style="opacity:0.4" onmouseover="mouseOverPrev()" onmouseout="mouseOutPrev()"class="navLink" title='Previous Section - {{ prev.title|extractText|extractTextII }}' data-toggle="tooltip"> | ||
<a href="{{ prev.link|e }}" aria-label="{{ prev.title|extractText|extractTextII }}"> | ||
<div style="background-color: white; border-style:solid; border-color:lightgrey; border-width:2px; width:100px; height:50px"> | ||
<i class='prevNav glyphicon glyphicon-chevron-left' style="top:50%; transform:translateY(-50%)translateX(-50%); left: 50%; color:black;"></i> | ||
</div> | ||
</a> | ||
</li> | ||
</ul> | ||
|
||
{% endif %} | ||
<li id="relations-prev-{{place}}" class="relations-prev navLink" title='Previous Section - {{ prev.title|extractText|extractTextII }}' data-toggle="tooltip"> | ||
<a href="{{ prev.link|e }}" aria-label="Previous - {{ prev.title|extractText|extractTextII }}"> | ||
<i class='prevNav glyphicon glyphicon-chevron-left' style="top:50%; transform:translateY(-50%)translateX(-50%); left: 50%; color:black;"></i> | ||
</a> | ||
</li> | ||
{% endif %} | ||
|
||
{%- if next %} | ||
<ul> | ||
<li id="relations-next" style="opacity:0.4" onmouseover="mouseOverNext()" onmouseout="mouseOutNext()" class="navLink" title='Next Section - {{ next.title|extractText|extractTextII }}' data-toggle="tooltip" > | ||
<a href="{{ next.link|e }}" aria-label="{{ next.title|extractText|extractTextII }}"> | ||
<div style="background-color: white; border-style:solid; border-color:lightgrey; border-width:2px; width:100px; height:50px"> | ||
<i id="relationsNextIcon" class='nextNav glyphicon glyphicon-chevron-right' style="top:50%; transform:translateY(-50%)translateX(-50%); left: 50%; color:black; "></i> | ||
</div> | ||
<li id="relations-next-{{place}}" class="relations-next navLink" title='Next Section - {{ next.title|extractText|extractTextII }}' data-toggle="tooltip" > | ||
<a href="{{ next.link|e }}" aria-label="Next - {{ next.title|extractText|extractTextII }}"> | ||
<i id="relationsNextIcon" class='nextNav glyphicon glyphicon-chevron-right' style="top:50%; transform:translateY(-50%)translateX(-50%); left: 50%; color:black; "></i> | ||
</a> | ||
</li> | ||
</ul> | ||
|
||
{%- endif %} | ||
|
||
<script type="text/javascript"> | ||
|
||
$('#relations-prev').tooltip({'placement':'right', 'selector': '', 'delay': { show: 100, hide: 50}}); | ||
$('#relations-next').tooltip({'placement':'left', 'selector': '', 'delay': { show: 100, hide: 50}}); | ||
|
||
</script> | ||
</ul> | ||
|
||
<script> | ||
function mouseOverPrev() { | ||
document.getElementById("relations-prev").style.opacity=1; | ||
} | ||
|
||
function mouseOutPrev() { | ||
document.getElementById("relations-prev").style.opacity=0.4; | ||
} | ||
function mouseOverNext() { | ||
document.getElementById("relations-next").style.opacity=1; | ||
} | ||
|
||
function mouseOutNext() { | ||
document.getElementById("relations-next").style.opacity=0.4; | ||
} | ||
window.addEventListener('load', (event) => { | ||
$('#relations-prev-{{place}}').tooltip({'placement': 'right', 'delay': { show: 100, hide: 50}}); | ||
$('#relations-next-{{place}}').tooltip({'placement': 'left', 'delay': { show: 100, hide: 50}}); | ||
}); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters