improve styling for dialogs
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
This commit is contained in:
parent
ad43fa7f73
commit
e8908310b6
@ -23,3 +23,11 @@ img {
|
||||
align-items: center;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.hidden {
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
.none {
|
||||
display: none;
|
||||
}
|
@ -7,13 +7,10 @@ export class Dialog extends HTMLElement {
|
||||
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
|
||||
<link rel="stylesheet" href="css/style.css" type="text/css">
|
||||
<link rel="stylesheet" href="css/form.css" type="text/css">
|
||||
<dialog>
|
||||
<p id="prompt" style="text-align: center;"></p>
|
||||
<hr>
|
||||
<form method="dialog" class="input-grid" style="grid-template-columns: auto 1fr;" id="form">
|
||||
</form>
|
||||
<hr>
|
||||
<div class="w3-center">
|
||||
<dialog class="w3-container w3-card-4 w3-border-0">
|
||||
<p class="w3-large" id="prompt" style="text-align: center;"></p>
|
||||
<form method="dialog" class="input-grid" style="grid-template-columns: auto 1fr;" id="form"></form>
|
||||
<div class="w3-center w3-container">
|
||||
<button value="cancel" form="form" class="w3-button w3-margin" style="background-color: #f00;" formnovalidate>CANCEL</button>
|
||||
<button value="confirm" form="form" class="w3-button w3-margin" style="background-color: #0f0;">CONFIRM</button>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user