Update button and tag styling

This commit is contained in:
Oliver Davies 2018-12-19 21:34:19 +00:00
parent 007435e4d7
commit 8982cdcf3c
4 changed files with 11 additions and 12 deletions

View file

@ -1,6 +1,10 @@
.button .button
@apply bg-blue inline-block rounded text-white px-4 py-2 @apply bg-blue border-blue border-2 inline-block rounded-lg text-white no-underline px-4 py-2
&:active, &:active,
&:focus,
&:hover &:hover
@apply bg-blue-dark @apply bg-white text-blue
&:focus
@apply px-4 py-2 m-0

View file

@ -1,6 +1,4 @@
<a <a href="{{ post.url }}" class="button">
href="{{ post.url }}" Read more
class="inline-block bg-blue hover:bg-blue-dark focus:bg-blue-dark px-5 py-2 rounded-full no-underline hover:underline focus:underline text-white text-sm"> <span class="visuallyhidden">about {{ post.title }}</span>
Read more
<span class="visuallyhidden">about {{ post.title }}</span>
</a> </a>

View file

@ -4,10 +4,7 @@
<ul class="list-reset flex flex-wrap"> <ul class="list-reset flex flex-wrap">
{% for tag in page.tags|sort %} {% for tag in page.tags|sort %}
<li> <li>
<a <a href="/blog/tags/{{ tag }}" class="text-sm py-1 px-2 mr-1 mb-1 bg-grey-lighter text-grey-darker leading-none no-underline hover:underline focus:bg-grey-darker focus:text-white">
href="/blog/tags/{{ tag }}"
class="text-sm py-1 px-2 mr-1 mb-1 bg-grey-lighter text-grey-darker leading-none no-underline hover:underline focus:underline"
>
{{- tag -}} {{- tag -}}
</a> </a>
</li> </li>

View file

@ -282,7 +282,7 @@ module.exports = {
modules: { modules: {
appearance: ['responsive'], appearance: ['responsive'],
backgroundAttachment: ['responsive'], backgroundAttachment: ['responsive'],
backgroundColors: ['responsive', 'hover'], backgroundColors: ['responsive', 'hover', 'focus'],
backgroundPosition: ['responsive'], backgroundPosition: ['responsive'],
backgroundRepeat: ['responsive'], backgroundRepeat: ['responsive'],
backgroundSize: ['responsive'], backgroundSize: ['responsive'],