improve styling for dialogs

Signed-off-by: Arthur Lu <learthurgo@gmail.com>
This commit is contained in:
Arthur Lu 2023-04-12 22:23:40 +00:00
parent ad43fa7f73
commit e8908310b6
2 changed files with 12 additions and 7 deletions

View File

@ -22,4 +22,12 @@ img {
column-gap: 10px; column-gap: 10px;
align-items: center; align-items: center;
height: 100%; height: 100%;
}
.hidden {
visibility: hidden;
}
.none {
display: none;
} }

View File

@ -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="https://www.w3schools.com/w3css/4/w3.css">
<link rel="stylesheet" href="css/style.css" type="text/css"> <link rel="stylesheet" href="css/style.css" type="text/css">
<link rel="stylesheet" href="css/form.css" type="text/css"> <link rel="stylesheet" href="css/form.css" type="text/css">
<dialog> <dialog class="w3-container w3-card-4 w3-border-0">
<p id="prompt" style="text-align: center;"></p> <p class="w3-large" id="prompt" style="text-align: center;"></p>
<hr> <form method="dialog" class="input-grid" style="grid-template-columns: auto 1fr;" id="form"></form>
<form method="dialog" class="input-grid" style="grid-template-columns: auto 1fr;" id="form"> <div class="w3-center w3-container">
</form>
<hr>
<div class="w3-center">
<button value="cancel" form="form" class="w3-button w3-margin" style="background-color: #f00;" formnovalidate>CANCEL</button> <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> <button value="confirm" form="form" class="w3-button w3-margin" style="background-color: #0f0;">CONFIRM</button>
</div> </div>