aboutsummaryrefslogtreecommitdiffhomepage
path: root/application/components/modal.vue
blob: 65d10f25348bd4ecdec8724e265bdac8c9ca78f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<script>
export default {
  name: 'Modal',
  props: []
}
</script>

<template>
  <teleport to="body">
    <div class="wrapper">
      <div class="content">
        <slot />
      </div>
    </div>
  </teleport>
</template>

<style scoped>
.wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.25);
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
}
.content {
  display: block;
}
</style>