77 lines
1.6 KiB
Vue
77 lines
1.6 KiB
Vue
<template>
|
|
<div class="modal__backdrop">
|
|
<div class="modal">
|
|
<div class="modal__header">
|
|
<content-block-title-input></content-block-title-input>
|
|
</div>
|
|
<div class="modal__body">
|
|
<add-content-block-widget></add-content-block-widget>
|
|
</div>
|
|
<div class="modal__footer">
|
|
<a class="button button--active">Speichern</a>
|
|
<a class="button" v-on:click="hideModal">Abbrechen</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
import AddContentBlockWidget from '@/components/AddContentBlockWidget';
|
|
import ContentBlockTitleInput from '@/components/ContentBlockTitleInput';
|
|
|
|
export default {
|
|
components: {
|
|
AddContentBlockWidget,
|
|
ContentBlockTitleInput
|
|
},
|
|
|
|
methods: {
|
|
hideModal() {
|
|
this.$store.dispatch('hideModal');
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style scoped lang="scss">
|
|
@import "@/styles/_variables.scss";
|
|
|
|
.modal {
|
|
align-self: center;
|
|
justify-self: center;
|
|
width: 700px;
|
|
height: 80vh;
|
|
background-color: $color-white;
|
|
border-radius: 12px;
|
|
box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.15);
|
|
border: 1px solid $color-lightgrey;
|
|
display: grid;
|
|
grid-template-rows: auto 1fr 65px;
|
|
|
|
&__backdrop {
|
|
display: grid;
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
bottom: 0;
|
|
right: 0;
|
|
background-color: rgba($color-white, 0.8);
|
|
z-index: 90;
|
|
}
|
|
|
|
&__header {
|
|
padding: 10px 30px;
|
|
border-bottom: 1px solid $color-lightgrey;
|
|
}
|
|
|
|
&__body {
|
|
padding: 10px 34px;
|
|
}
|
|
|
|
&__footer {
|
|
border-top: 1px solid $color-lightgrey;
|
|
padding: 16px 30px;
|
|
}
|
|
}
|
|
</style>
|