modal styling

This commit is contained in:
Martin McKeaveney 2020-03-22 14:05:13 +00:00
parent e58546729d
commit f18653af33
3 changed files with 45 additions and 14 deletions

View File

@ -138,12 +138,19 @@
{/if}
</form>
<div class="uk-modal-footer uk-text-right">
<ButtonGroup>
<footer>
<ActionButton primary on:click={save}>Save</ActionButton>
<ActionButton alert on:click={() => onFinished(false)}>
Cancel
</ActionButton>
</ButtonGroup>
</div>
<ActionButton alert on:click={() => onFinished(false)}>Cancel</ActionButton>
</footer>
</div>
<style>
footer {
position: absolute;
padding: 20px;
width: 100%;
bottom: 0;
left: 0;
background: #fafafa;
}
</style>

View File

@ -18,8 +18,21 @@
<section>
Database Name
<input class="uk-input" type="text" bind:value={databaseName} />
<div class="actions">
<footer>
<ActionButton alert on:click={onClosed}>Cancel</ActionButton>
<ActionButton disabled={!databaseName} on:click={createDatabase}>Save</ActionButton>
</div>
<ActionButton disabled={!databaseName} on:click={createDatabase}>
Save
</ActionButton>
</footer>
</section>
<style>
footer {
position: absolute;
padding: 20px;
width: 100%;
bottom: 0;
left: 0;
background: #fafafa;
}
</style>

View File

@ -63,7 +63,7 @@
</div>
{/each}
</form>
<div class="actions">
<footer>
<ActionButton alert on:click={onClosed}>Cancel</ActionButton>
<ActionButton
on:click={async () => {
@ -79,6 +79,17 @@
}}>
Save
</ActionButton>
</footer>
</div>
</div>
</div>
<style>
footer {
position: absolute;
padding: 20px;
width: 100%;
bottom: 0;
left: 0;
background: #fafafa;
}
</style>