Skip to content

Commit 73a3361

Browse files
authored
Merge pull request #143 from bkmgit/clickable-navigation
Ensure links are above any images to remain clickable
2 parents 2635092 + 6075584 commit 73a3361

7 files changed

Lines changed: 17 additions & 12 deletions

File tree

blogsource/content/contributors/contributor-index.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<img class="overlay" src="../images/profanity_mouth-only.png" alt="Profanity Illustration" />
1515
<header>
1616
<h1>
17-
<a href="../../index.html">
17+
<a href="../../index.html" style="position: relative">
1818
Profani<span class="kern-ty">ty</span>
1919
</a>
2020
</h1>
@@ -23,7 +23,7 @@
2323
<nav style="float: right;">
2424
<a href="../index.html">Main page</a>
2525
</nav>
26-
<article id="manual">
26+
<article id="manual" style="position: relative">
2727
<ul>
2828
<li data-sblg-nav="1" data-sblg-navcontent="1">
2929
<a href="${sblg-base}.html">${sblg-title}</a>

blogsource/content/contributors/contributor-template.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<img class="overlay" src="../images/profanity_mouth-only.png" alt="Profanity Illustration" />
1515
<header>
1616
<h1>
17-
<a href="../index.html">
17+
<a href="../index.html" style="position: relative">
1818
Profani<span class="kern-ty">ty</span>
1919
</a>
2020
</h1>
@@ -31,7 +31,7 @@
3131
<a href="${sblg-next-base}.html">&#x21A0;</a>
3232
</span>
3333
</nav>
34-
<article data-sblg-article="1"> Content</article>
34+
<article data-sblg-article="1" style="position: relative"> Content</article>
3535
<nav style="float: right;">
3636
<span>
3737
<a href="${sblg-prev-base}.html">&#x219E;</a>

blogsource/content/post/blog-index.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,16 @@
1414
<img class="overlay" src="../../images/profanity_mouth-only.png" alt="Profanity Illustration" />
1515
<header>
1616
<h1>
17-
<a href="../../index.html">
17+
<a href="../../index.html" style="position: relative">
1818
Profani<span class="kern-ty">ty</span>
1919
</a>
2020
</h1>
2121
<h2>Developer Blog</h2>
2222
</header>
2323
<nav style="float: right;">
24-
<a href="../../index.html">Main page</a>
24+
<a href="../../index.html" style="position: relative">Main page</a>
2525
</nav>
26-
<article id="manual">
26+
<article id="manual" style="position: relative">
2727
<ul>
2828
<li data-sblg-nav="1" data-sblg-navcontent="1">
2929
<a href="${sblg-base}.html">${sblg-title}</a>

blogsource/content/post/blog-post-template.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<img class="overlay" src="../../images/profanity_mouth-only.png" alt="Profanity Illustration" />
1515
<header>
1616
<h1>
17-
<a href="../../index.html">
17+
<a href="../../index.html" style="position: relative">
1818
Profani<span class="kern-ty">ty</span>
1919
</a>
2020
</h1>
@@ -31,7 +31,7 @@
3131
<a href="${sblg-next-base}.html">&#x21A0;</a>
3232
</span>
3333
</nav>
34-
<article data-sblg-article="1"> Content</article>
34+
<article data-sblg-article="1" style="position: relative"> Content</article>
3535
<nav style="float: right;">
3636
<span>
3737
<a href="${sblg-prev-base}.html">&#x219E;</a>

landing-template.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<h1>Profani<span class="kern-ty">ty</span></h1>
1818
<h2>${sblg-get|subtitle}</h2>
1919
</header>
20-
<article data-sblg-article="1"> Content</article>
20+
<article data-sblg-article="1" style="position: relative"> Content</article>
2121
<div id="Zoomer" style="overflow-y:auto"></div>
2222
<footer>
2323
<p class="matty">site designed by <a href="http://www.matthewbalaam.co.uk">Matthew Balaam</a></p>

manual-template.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@
1414
<img class="overlay" src="images/profanity_mouth-only.png" alt="Profanity Illustration" />
1515
<header>
1616
<h1>
17-
<a href="index.html">
17+
<a href="index.html" style="position: relative">
1818
Profani<span class="kern-ty">ty</span>
1919
</a>
2020
</h1>
2121
<h2>${sblg-get|subtitle}</h2>
2222
</header>
23-
<article data-sblg-article="1"> Content</article>
23+
<article data-sblg-article="1" style="position: relative"> Content</article>
2424
<footer>
2525
<p class="matty">site designed by <a href="http://www.matthewbalaam.co.uk">Matthew Balaam</a></p>
2626
</footer>

src/scss/layout.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ body {
2020
overflow-x: hidden; //stop horizontal scrollbars
2121
padding-left: $grid-padding-mobile;
2222
padding-right: $grid-padding-mobile;
23+
a {
24+
position: relative;
25+
}
2326
@media screen and (min-width: $medium) {
2427
width: auto;
2528
margin-left: auto;
@@ -100,6 +103,7 @@ header {
100103
margin-top: $gap-vertical * 3;
101104
margin-bottom: $gap-vertical * 3;
102105
a {
106+
position:relative,
103107
&:link,
104108
&:visited,
105109
&:hover,
@@ -216,6 +220,7 @@ header {
216220
}
217221

218222
a {
223+
position: relative;
219224
border-radius: 6px;
220225
min-height: 10em;
221226
border: 1em solid color.mix(black, $backgroundShade, 95%);

0 commit comments

Comments
 (0)