Fullscreen modals

fixes #80
This commit is contained in:
Jiiks 2018-02-04 14:00:08 +02:00
parent bf648dce6c
commit 8a799f29f7
6 changed files with 25 additions and 2 deletions

View File

@ -32,7 +32,7 @@
}
}
&.active {
&.bd-active {
background: transparent;
opacity: 1;
box-shadow: none;

View File

@ -98,3 +98,16 @@
}
}
}
.bd-settings .bd-sidebar-view.bd-stop .bd-content-region {
z-index: 3003;
}
.bd-backdrop {
z-index: 3003;
}
.bd-sidebar .bd-settings-button {
position: absolute;
top: 0;
}

View File

@ -31,6 +31,7 @@
box-sizing: border-box;
pointer-events: none;
z-index: 9001;
justify-content: center;
}
.bd-modal .bd-modal-inner {
@ -46,6 +47,8 @@
flex-grow: 1;
border-radius: 4px;
max-height: 100%;
max-width: 500px;
width: 500px;
}
.bd-modal .bd-modal-body {

View File

@ -17,3 +17,7 @@
.bd-flex-spacer {
flex-grow: 1;
}
.bd-hide {
display: none;
}

View File

@ -12,6 +12,9 @@
<div class="bd-settings" :class="{active: active}" @keyup="close">
<SidebarView :contentVisible="this.activeIndex >= 0" :animating="this.animating" :class="{'bd-stop': !first}">
<Sidebar slot="sidebar">
<div class="bd-settings-button bd-active">
<div class="bd-settings-button-btn"></div>
</div>
<div class="bd-settings-x" @click="close">
<MiClose size="17"/>
<span class="bd-x-text">ESC</span>

View File

@ -10,7 +10,7 @@
<template>
<div class="bd-settings-wrapper" :class="[{active: active}, 'platform-' + this.platform]">
<div class="bd-settings-button" :class="{active: active}" @click="showSettings">
<div class="bd-settings-button" :class="{'bd-hide': active}" @click="showSettings">
<div class="bd-settings-button-btn" :class="[{'bd-loading': !loaded}]"></div>
</div>
<BdSettings :active="active" :close="hideSettings" />