Link hover and focus styling
This commit is contained in:
parent
907248b05b
commit
a91b413e4a
3 changed files with 11 additions and 5 deletions
|
@ -1,7 +1,7 @@
|
|||
<footer class="mt-20">
|
||||
<nav class="flex flex-wrap justify-center -mb-3">
|
||||
{% for link in site.menus.footer %}
|
||||
<a class="mx-3 mb-3 text-base md:text-lg dark:text-white dark:text-decoration-white link" href="{{ link.href }}">{{ link.title }}</a>
|
||||
<a class="mx-3 mb-3 text-base md:text-lg dark:text-white hover:text-gray-900 dark:hover:text-blue-400 link" href="{{ link.href }}">{{ link.title }}</a>
|
||||
{% endfor %}
|
||||
</nav>
|
||||
</footer>
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
<nav class="flex items-center mt-4 space-x-6 md:mt-0 md:flex-row">
|
||||
{% for item in site.menus.main %}
|
||||
{% set is_active = page.url matches '#' ~ item.is_active ~ '#' %}
|
||||
<a class="text-black dark:text-white border-b-3 py-2 {{ is_active ? 'border-blue-800 dark:border-blue-400' : 'border-transparent' }}" href="{{ item.href }}">{{ item.title }}</a>
|
||||
<a class="text-black dark:text-white border-b-3 py-2 hover:border-gray-300 {{ is_active ? 'border-blue-800 dark:border-blue-400' : 'border-transparent' }}" href="{{ item.href }}">{{ item.title }}</a>
|
||||
{% endfor %}
|
||||
</nav>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue