Extract tag component

This commit is contained in:
Oliver Davies 2019-03-05 12:15:36 +00:00
parent 6de88853d5
commit a42d2c5514
2 changed files with 8 additions and 2 deletions

View file

@ -22,4 +22,10 @@
&:hover,
&:focus
@apply bg-grey-darker
.tag
@apply text-2xs uppercase py-1 px-2 rounded border border-grey bg-white mr-2 mb-2
.tag.is-type
@apply bg-blue-light border-blue-light text-white
</style>

View file

@ -1,8 +1,8 @@
<template>
<div>
<ul class="list-reset flex flex-wrap -mr-2 -mb-2">
<li class="text-2xs uppercase py-1 px-2 rounded border border-transparent bg-blue-light text-white mr-2 mb-2">{{ type }}</li>
<li class="text-2xs uppercase py-1 px-2 rounded border border-grey bg-white mr-2 mb-2">{{ level }}</li>
<li class="tag is-type">{{ type }}</li>
<li class="tag">{{ level }}</li>
</ul>
</div>
</template>