Skip to content
This repository was archived by the owner on Jun 7, 2023. It is now read-only.

Commit e08a403

Browse files
authored
Merge branch 'master' into fix-requirements-click
2 parents 9ddc6f7 + bb27301 commit e08a403

3 files changed

Lines changed: 13 additions & 36 deletions

File tree

runestone/common/css/runestone-custom-sphinx-bootstrap.css

Lines changed: 4 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -688,11 +688,11 @@ div.flash {
688688
height:50px
689689
}
690690

691-
.relations-next {
691+
#relations-next {
692692
right: 35px;
693693
}
694694

695-
.relations-prev {
695+
#relations-prev {
696696
left: 35px;
697697
}
698698

@@ -702,35 +702,16 @@ div.flash {
702702
height: 50px;
703703
}
704704

705-
.nextprev-list-top {
706-
display: none;
707-
}
708-
709705
@media (max-width: 600px) {
710-
711-
.nextprev-list-top {
712-
display: block;
713-
}
714706

715707
.navLink {
716708
display: inline-block;
717709
bottom: auto;
718710
position: absolute;
719711
}
720712

721-
ul#top-relations-console,
722-
ul#bottom-relations-console {
723-
list-style: none;
724-
text-align: center;
725-
width: 100%;
726-
margin: 0 auto;
727-
padding: 40px 0 20px 0;
728-
}
729-
730-
#top-relations-next,
731-
#top-relations-prev,
732-
#bottom-relations-next,
733-
#bottom-relations-prev {
713+
#relations-next,
714+
#relations-prev {
734715
width: 25%;
735716
padding: 0 20px;
736717
display: inline;

runestone/common/project_template/_templates/plugin_layouts/sphinx_bootstrap/layout.html

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -293,11 +293,7 @@
293293
<div class="container" id="continue-reading"></div>
294294

295295
<div class="container" id="main-content" role="main">
296-
297-
{% with place='top' %}
298-
{% include "subchapter.html" %}
299-
{% endwith %}
300-
296+
301297
<!-- Ad Serving for Runestone Campaign -->
302298
{% if dynamic_pages == 'True' %}
303299
{% raw %}
@@ -319,9 +315,9 @@
319315
<div id="scprogresscontainer">
320316
You have attempted <span id="scprogresstotal"></span> of <span id="scprogressposs"></span> activities on this page <div id="subchapterprogress" aria-label="Page progress"></div>
321317
</div>
322-
{% with place='bottom'%}
323-
{% include "subchapter.html" %}
324-
{% endwith %}
318+
319+
{% include "subchapter.html" %}
320+
325321
</div>
326322
{%- endblock %}
327323

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
<ul role="navigation" class="nextprev-list nextprev-list-{{place}}" aria-label="Change page">
1+
<ul role="navigation" class="nextprev-list nextprev-list" aria-label="Change page">
22
{%- if prev %}
3-
<li id="relations-prev-{{place}}" class="relations-prev navLink" title='Previous Section - {{ prev.title|extractText|extractTextII }}' data-toggle="tooltip">
3+
<li id="relations-prev" class="navLink" title='Previous Section - {{ prev.title|extractText|extractTextII }}' data-toggle="tooltip">
44
<a href="{{ prev.link|e }}" aria-label="Previous - {{ prev.title|extractText|extractTextII }}">
55
<i class='prevNav glyphicon glyphicon-chevron-left' style="top:50%; transform:translateY(-50%)translateX(-50%); left: 50%; color:black;"></i>
66
</a>
77
</li>
88
{% endif %}
99

1010
{%- if next %}
11-
<li id="relations-next-{{place}}" class="relations-next navLink" title='Next Section - {{ next.title|extractText|extractTextII }}' data-toggle="tooltip" >
11+
<li id="relations-next" class="navLink" title='Next Section - {{ next.title|extractText|extractTextII }}' data-toggle="tooltip" >
1212
<a href="{{ next.link|e }}" aria-label="Next - {{ next.title|extractText|extractTextII }}">
1313
<i id="relationsNextIcon" class='nextNav glyphicon glyphicon-chevron-right' style="top:50%; transform:translateY(-50%)translateX(-50%); left: 50%; color:black; "></i>
1414
</a>
@@ -18,7 +18,7 @@
1818

1919
<script>
2020
window.addEventListener('load', (event) => {
21-
$('#relations-prev-{{place}}').tooltip({'placement': 'right', 'delay': { show: 100, hide: 50}});
22-
$('#relations-next-{{place}}').tooltip({'placement': 'left', 'delay': { show: 100, hide: 50}});
21+
$('#relations-prev').tooltip({'placement': 'right', 'delay': { show: 100, hide: 50}});
22+
$('#relations-next').tooltip({'placement': 'left', 'delay': { show: 100, hide: 50}});
2323
});
2424
</script>

0 commit comments

Comments
 (0)