Extract btn component

This commit is contained in:
Oliver Davies 2019-03-05 12:15:24 +00:00
parent 2e0d9eb39d
commit 6de88853d5
4 changed files with 521 additions and 23 deletions

View file

@ -4,8 +4,22 @@
</div>
</template>
<style>
@tailwind preflight;
@tailwind components;
@tailwind utilities;
<style lang="sass">
@tailwind preflight
@tailwind components
@tailwind utilities
.btn
@apply text-sm font-thin antialiased text-white px-4 py-3 no-underline rounded mx-1 bg-blue-dark
&:hover,
&:focus
@apply bg-blue-darker
.btn.is-secondary
@apply bg-grey-dark
&:hover,
&:focus
@apply bg-grey-darker
</style>

View file

@ -74,8 +74,8 @@
</div>
<div class="flex justify-center">
<button type="button" class="text-sm font-thin bg-blue-dark hover:bg-blue-darker antialiased text-white px-4 py-3 no-underline rounded mx-1">Enable Uptime</button>
<button type="button" class="text-sm font-thin bg-grey-dark hover:bg-grey-darker antialiased text-white px-4 py-3 no-underline rounded mx-1">Learn more</button>
<button type="button" class="btn">Enable Uptime</button>
<button type="button" class="btn is-secondary">Learn more</button>
</div>
</div>
</div>