fix dialog styling

This commit is contained in:
Arthur Lu 2023-05-07 04:35:44 +00:00
parent e2a6083e22
commit 32f0625770
2 changed files with 3 additions and 3 deletions

View File

@ -18,7 +18,7 @@ body {
grid-template-rows: auto 1fr;
}
main {
main, dialog {
max-width: 100vw;
background-color: #303030;
color: white;

View File

@ -4,8 +4,8 @@ export function dialog (header, body, callback = async (result, form) => {}) {
<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>
<button value="cancel" form="form" class="w3-button w3-margin" style="background-color: #f00; color: black;" formnovalidate>CANCEL</button>
<button value="confirm" form="form" class="w3-button w3-margin" style="background-color: #0f0; color: black;">CONFIRM</button>
</div>
`;
dialog.className = "w3-container w3-card w3-border-0";