Improve text input styling and behavior to match book design theme. Changes include: 1. Update input styling to span full width with subtle bottom border. 2. Add custom blinking cursor with terminal-like behavior. 3. Implement auto-focus functionality for better UX. 4. Reset cursor position after command submission.
This commit is contained in:
+4
-2
@@ -33,8 +33,10 @@
|
||||
</div>
|
||||
|
||||
<div id="command_input">
|
||||
<input type="text" id="player_input" placeholder="Enter your command..." autofocus>
|
||||
<button id="submit_command">Submit</button>
|
||||
<div class="input-wrapper">
|
||||
<input type="text" id="player_input" placeholder="Enter your command..." autofocus>
|
||||
<span id="cursor"></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="l10n-remark" id="remark"><i><sup>*</sup>click on page or press spacebar to fast forward text animation</i></div>
|
||||
|
||||
Reference in New Issue
Block a user