[feature] prompt background for all prompt
This commit is contained in:
parent
9cb2e22b84
commit
06587d6d3d
@ -20,7 +20,7 @@
|
||||
<button class="send-button" onclick="send()">Send</button>
|
||||
</div>
|
||||
|
||||
<div id="prompt-background"></div>
|
||||
<div id="prompt-background" hidden></div>
|
||||
<div id="prompt-box" hidden>
|
||||
<div id="prompt-box-title"></div>
|
||||
<div id="prompt-box-content">
|
||||
|
@ -186,6 +186,7 @@ function open_prompt(title) {
|
||||
$('#prompt-box-title').text(title);
|
||||
$('#prompt-data').val('');
|
||||
$('#prompt-box').show('fast', () => { $('#prompt-data').focus(); });
|
||||
$('#prompt-background').show();
|
||||
|
||||
let resolve_callback;
|
||||
let res = new Promise((resolve) => {
|
||||
|
@ -195,7 +195,7 @@ pre {
|
||||
}
|
||||
|
||||
#prompt-data:focus {
|
||||
border: var(--blue-50) 2px solid;
|
||||
border: var(--blue-50) 1px solid;
|
||||
box-shadow: 0 0 0 1px var(--blue-50), 0 0 0 4px var(--blue-50-a30);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user