mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-19 02:36:00 +00:00
#63 - keyboard modal, settings icon
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
|
||||
export let fullScreen = false;
|
||||
export let noPadding = false;
|
||||
export let simple = false;
|
||||
export let modalId;
|
||||
|
||||
function handleCloseModal() {
|
||||
@@ -32,7 +33,7 @@
|
||||
<!-- The Modal -->
|
||||
<div id="myModal" class="bglayer">
|
||||
<!-- Modal content -->
|
||||
<div class="window" class:fullScreen use:clickOutside on:clickOutside={handleCloseModal}>
|
||||
<div class="window" class:fullScreen class:simple use:clickOutside on:clickOutside={handleCloseModal}>
|
||||
{#if $$slots.header}
|
||||
<div class="header" class:fullScreen>
|
||||
<div><slot name="header" /></div>
|
||||
@@ -46,9 +47,11 @@
|
||||
<slot />
|
||||
</div>
|
||||
|
||||
<div class="footer" class:fullScreen>
|
||||
<slot name="footer" />
|
||||
</div>
|
||||
{#if $$slots.footer}
|
||||
<div class="footer" class:fullScreen>
|
||||
<slot name="footer" />
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -74,7 +77,7 @@
|
||||
outline: none;
|
||||
}
|
||||
|
||||
.window:not(.fullScreen) {
|
||||
.window:not(.fullScreen):not(.simple) {
|
||||
border-radius: 10px;
|
||||
margin: auto;
|
||||
margin-top: 15vh;
|
||||
@@ -89,6 +92,12 @@
|
||||
bottom: 0;
|
||||
}
|
||||
|
||||
.window.simple {
|
||||
margin: auto;
|
||||
margin-top: 25vh;
|
||||
width: 30%;
|
||||
}
|
||||
|
||||
.close {
|
||||
font-size: 12pt;
|
||||
padding: 5px 10px;
|
||||
|
||||
Reference in New Issue
Block a user