Rename component

This commit is contained in:
Oliver Davies 2018-12-28 00:04:50 +00:00
parent 618a538ed5
commit 689df8b10a
3 changed files with 11 additions and 19 deletions

View file

@ -1,13 +0,0 @@
<template>
<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>

View file

@ -0,0 +1,5 @@
<template>
<div class="bg-grey-lightest p-4 mb-4">
<slot></slot>
</div>
</template>

View file

@ -38,8 +38,8 @@
</div>
</div>
<div class="w-full md:w-1/3 lg:w-1/4 flex-none md:px-6">
<drupal-block>
<div class="w-full md:w-1/3 lg:w-1/4 flex-none md:px-6 -mb-4">
<sidebar-block>
<h2 class="font-serif font-normal text-base text-grey-darkest border-b border-solid border-grey-light mb-3">Search</h2>
<div>
@ -51,7 +51,7 @@
</button>
</form>
</div>
</drupal-block>
</sidebar-block>
</div>
</div>
</div>
@ -79,13 +79,13 @@
</template>
<script>
import DrupalBlock from './DrupalBlock.vue'
import MainMenu from './MainMenu.vue';
import SidebarBlock from './SidebarBlock.vue'
export default {
components: {
DrupalBlock,
MainMenu,
SidebarBlock,
},
props: {