Skip to content

Commit

Permalink
partials: fix weird underline in menu sidebar (#9)
Browse files Browse the repository at this point in the history
Fix the unintentional underlining of other links in the menu sidebar by
assigning the `p` elements in the menu-footer partial a special class,
which we then specifically select for.

Signed-off-by: Luca Zeuch <[email protected]>
  • Loading branch information
l-zeuch authored Jan 22, 2024
1 parent 0a4bb57 commit b15108d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions layouts/partials/menu-footer.html
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
<!-- make sure links are visible as such -->
<style>
a {
p.menu-footer > a {
text-decoration: underline !important;
}
</style>

<p>
<p class="menu-footer">
Text available under <a href="https://creativecommons.org/licenses/by-sa/4.0/"
title="CC-BY-SA license">CC-BY-SA</a>; additional terms may apply.
</p>
<p>
<p class="menu-footer">
By using this site, you agree to our <a href="https://yagpdb.xyz/terms-of-use" title="Terms of Use">Terms of Use</a>
and <a href="https://botlabs.gg/privacy-policy" title="Privacy Policy">Privacy Policy</a>.
</p>

<!-- required to adhere to MIT license terms -->
<p>
<p class="menu-footer">
Built with <a href="https://github.com/McShelby/hugo-theme-relearn" title="love"><i class="fas fa-heart"></i></a>
by <a href="https://gohugo.io/">Hugo</a>
</p>

0 comments on commit b15108d

Please sign in to comment.