Use sass, move drupal block styles into component

This commit is contained in:
Oliver Davies 2018-12-06 07:36:15 +00:00
parent c0880191e6
commit ebf97fc10c
4 changed files with 435 additions and 33 deletions

View file

@ -15,17 +15,8 @@ export default {
}
</script>
<style>
@tailwind preflight;
@tailwind components;
.widget {
@apply bg-grey-lightest p-4;
}
.widget:not(:last-child) {
@apply mb-4;
}
@tailwind utilities;
<style lang="sass">
@tailwind preflight
@tailwind components
@tailwind utilities
</style>

View file

@ -1,5 +1,13 @@
<template>
<div class="widget">
<div class="drupal-block">
<slot></slot>
</div>
</template>
<style lang="sass" scoped>
.drupal-block
@apply bg-grey-lightest p-4
&:not(:last-child)
@apply mb-4
</style>