fix: the panel's input dialog - a dark field as everywhere, with the accent outline when focused
This commit is contained in:
1 parent
b4bcc05162
commit
ded86e1c3f
2 files changed
+2
-1
No files matched your search
@@ -945,6 +945,7 @@ dialog.uidlg { width:fit-content; min-width:min(300px, 92vw); max-width:min(560p
|
|||||||
.uidlg .ui-text { overflow:hidden; }
|
.uidlg .ui-text { overflow:hidden; }
|
||||||
.uidlg .ui-long { display:inline-block; max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; vertical-align:bottom; }
|
.uidlg .ui-long { display:inline-block; max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; vertical-align:bottom; }
|
||||||
.uidlg .ui-input[hidden] { display:none; }
|
.uidlg .ui-input[hidden] { display:none; }
|
||||||
|
.uidlg .ui-input:focus { outline:none; border-color:var(--accent); box-shadow:0 0 0 2px rgba(91,140,255,.12); }
|
||||||
.sshdlg .chk { display:flex; align-items:center; gap:8px; font-size:13px; color:var(--muted); }
|
.sshdlg .chk { display:flex; align-items:center; gap:8px; font-size:13px; color:var(--muted); }
|
||||||
.sshdlg .chk input { width:auto; }
|
.sshdlg .chk input { width:auto; }
|
||||||
.sshdlg .saved-row[hidden] { display:none; }
|
.sshdlg .saved-row[hidden] { display:none; }
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
function make() {
|
function make() {
|
||||||
dlg = document.createElement('dialog');
|
dlg = document.createElement('dialog');
|
||||||
dlg.className = 'uidlg';
|
dlg.className = 'uidlg';
|
||||||
dlg.innerHTML = '<form method="dialog"><p class="ui-text"></p><input class="ui-input" autocomplete="off" spellcheck="false">' +
|
dlg.innerHTML = '<form method="dialog"><p class="ui-text"></p><input type="text" class="ui-input" autocomplete="off" spellcheck="false">' +
|
||||||
'<div class="row end"><button type="button" class="btn ghost close ui-no">Отмена</button><button type="submit" class="ui-yes">OK</button></div></form>';
|
'<div class="row end"><button type="button" class="btn ghost close ui-no">Отмена</button><button type="submit" class="ui-yes">OK</button></div></form>';
|
||||||
document.body.appendChild(dlg);
|
document.body.appendChild(dlg);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user