Merge pull request #51 from nikandlv/development

Dialog enhancements
master
Nikan Dalvand 2019-08-03 23:01:59 +04:30 committed by GitHub
commit 6693c3ab97
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 3 deletions

View File

@ -4,7 +4,7 @@
</div>
<div class="dialog">
<slot></slot>
</div>
</div>
</template>
@ -22,13 +22,17 @@ export default {
</script>
<style scoped lang="sass">
.dialog-wrapper.open
.dialog-wrapper
z-index: 1400
position: absolute
left: 0
top: 0
width: 100vw
height: 100vh
display: flex
opacity: 0
transition: opacity 150ms
pointer-events: none
align-items: center
justify-content: center
.overlay
@ -48,4 +52,8 @@ export default {
min-width: 250px
z-index: 1400
box-shadow: 0px 3px 5px -1px rgba(0,0,0,0.2), 0px 6px 10px 0px rgba(0,0,0,0.14), 0px 1px 18px 0px rgba(0,0,0,0.12)
.dialog-wrapper.open
pointer-events: all
opacity: 1
</style>

View File

@ -1,6 +1,9 @@
<template>
<div>
<Dialog :open="aboutOpen" :onClose="closeAbout" />
<Dialog :open="aboutOpen" :onClose="closeAbout">
test
<Logo :nopadding="true"/>
</Dialog>
<section class="handle" :class="{'open': menuStatus}">
<div @click="toggleMenuStatus" class="icon">
<svg version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 384.97 384.97" style="enable-background:new 0 0 384.97 384.97;" xml:space="preserve">