Skip to content

Commit 634d6e1

Browse files
committed
Hide fork-me banner on small screens
Nobody is going to go forking around mobile anyway.
1 parent 4c43b5e commit 634d6e1

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

_layouts/default.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ <h1 class="site-name">{{ site.name }}</h1>
4747
</center> </p>
4848
</div>
4949
</div>
50-
<a href="https://github.com/AustinHackers/austinhackers.github.io"><img decoding="async" loading="lazy" width="149" height="149" src="https://github.blog/wp-content/uploads/2008/12/forkme_right_green_007200.png?resize=149%2C149" class="attachment-full size-full" alt="Fork me on GitHub" data-recalc-dims="1" style="position: absolute; top: 0; right: 0; border: 0;"></a>
50+
<a href="https://github.com/AustinHackers/austinhackers.github.io" class="fork-me-banner"><img decoding="async" loading="lazy" width="149" height="149" src="https://github.blog/wp-content/uploads/2008/12/forkme_right_green_007200.png?resize=149%2C149" class="attachment-full size-full" alt="Fork me on GitHub" data-recalc-dims="1" style="position: absolute; top: 0; right: 0; border: 0;"></a>
5151
</div>
5252
{% include text-expand.html %}
5353
</body>

css/main.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,3 +292,8 @@ table tr:nth-child(even) {
292292
background-color: #f9f9f9;
293293
}
294294

295+
@media screen and (max-width: 825px) {
296+
.fork-me-banner {
297+
display: none;
298+
}
299+
}

0 commit comments

Comments
 (0)