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
@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,
&:focus,
&: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
href="{{ post.url }}"
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">
Read more
<span class="visuallyhidden">about {{ post.title }}</span>
<a href="{{ post.url }}" class="button">
Read more
<span class="visuallyhidden">about {{ post.title }}</span>
</a>

View file

@ -4,10 +4,7 @@
<ul class="list-reset flex flex-wrap">
{% for tag in page.tags|sort %}
<li>
<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:underline"
>
<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">
{{- tag -}}
</a>
</li>

View file

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