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

Commit fa3f972

Browse files
authored
Merge branch 'master' into style_fix
2 parents 637a7fd + bb27301 commit fa3f972

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
@@ -774,11 +774,11 @@ div.flash {
774774
height:50px
775775
}
776776

777-
.relations-next {
777+
#relations-next {
778778
right: 35px;
779779
}
780780

781-
.relations-prev {
781+
#relations-prev {
782782
left: 35px;
783783
}
784784

@@ -788,35 +788,16 @@ div.flash {
788788
height: 50px;
789789
}
790790

791-
.nextprev-list-top {
792-
display: none;
793-
}
794-
795791
@media (max-width: 600px) {
796-
797-
.nextprev-list-top {
798-
display: block;
799-
}
800792

801793
.navLink {
802794
display: inline-block;
803795
bottom: auto;
804796
position: absolute;
805797
}
806798

807-
ul#top-relations-console,
808-
ul#bottom-relations-console {
809-
list-style: none;
810-
text-align: center;
811-
width: 100%;
812-
margin: 0 auto;
813-
padding: 40px 0 20px 0;
814-
}
815-
816-
#top-relations-next,
817-
#top-relations-prev,
818-
#bottom-relations-next,
819-
#bottom-relations-prev {
799+
#relations-next,
800+
#relations-prev {
820801
width: 25%;
821802
padding: 0 20px;
822803
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)