diff options
author | Kuuuube <61125188+Kuuuube@users.noreply.github.com> | 2024-06-22 00:38:13 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-22 04:38:13 +0000 |
commit | a0de1670416b60e3cfa9381ce3dab37e70c1d857 (patch) | |
tree | 21b79053d08915ad1dcff4905f315890cecb7a22 /ext/search.html | |
parent | 079603c1f65ac2eb85861ad8d8fd10b6db315e11 (diff) |
Make search header sticky (#1114)
* Make search header sticky
* Fix progress bar location
Diffstat (limited to 'ext/search.html')
-rw-r--r-- | ext/search.html | 78 |
1 files changed, 41 insertions, 37 deletions
diff --git a/ext/search.html b/ext/search.html index 281c0c07..e15f9bb9 100644 --- a/ext/search.html +++ b/ext/search.html @@ -23,48 +23,52 @@ <div class="content-outer"> <div class="content"> <div class="content-scroll scrollbar" id="content-scroll"> - <div class="content-body" id="content-body"> - <div class="top-progress-bar-container"><div class="progress-bar-indeterminant" id="progress-indicator" hidden></div></div> - <div class="content-body-inner"> - - <span tabindex="-1" id="content-scroll-focus"></span> - - <div class="search-header"> - <div id="intro"> - <h1>Yomitan Search</h1> - </div> + <div class="top-progress-bar-container"><div class="progress-bar-indeterminant" id="progress-indicator" hidden></div></div> + <div class="search-header-wrapper"> + <div class="search-header"> + <div id="intro"> + <h1>Yomitan Search</h1> + </div> - <div class="scan-disable"> - <div class="search-options"> - <div class="search-option" id="search-option-profile-select"> - <span class="profile-select-container"><select class="profile-select" id="profile-select"> - <optgroup label="Primary Profile" id="profile-select-option-group"></optgroup> - </select></span> - </div> - <label class="search-option" id="search-option-clipboard-monitor-container"> - <label class="toggle"><input type="checkbox" id="clipboard-monitor-enable"><span class="toggle-body"><span class="toggle-track"></span><span class="toggle-knob"></span></span></label> - <span class="search-option-label">Clipboard monitor</span> - </label> - <label class="search-option" id="search-option-wanakana"> - <label class="toggle"><input type="checkbox" id="wanakana-enable"><span class="toggle-body"><span class="toggle-track"></span><span class="toggle-knob"></span></span></label> - <span class="search-option-label">Automatic kana conversion</span> - </label> - <div class="search-option" id="query-parser-mode-container" hidden> - <span class="search-option-pre-label">Parser:</span> - <select id="query-parser-mode-select"></select> - </div> + <div class="scan-disable"> + <div class="search-options"> + <div class="search-option" id="search-option-profile-select"> + <span class="profile-select-container"><select class="profile-select" id="profile-select"> + <optgroup label="Primary Profile" id="profile-select-option-group"></optgroup> + </select></span> </div> - <div class="search-textbox-container"> - <textarea id="search-textbox" class="scrollbar" placeholder="Input a term, expression, sentence, or block of text" autocomplete="off" lang="ja" autofocus></textarea> - <button type="button" id="search-back-button" class="search-button" hidden><span class="icon" data-icon="left-chevron"></span></button> - <button type="button" id="search-button" class="search-button"><span class="icon" data-icon="magnifying-glass"></span></button> + <label class="search-option" id="search-option-clipboard-monitor-container"> + <label class="toggle"><input type="checkbox" id="clipboard-monitor-enable"><span class="toggle-body"><span class="toggle-track"></span><span class="toggle-knob"></span></span></label> + <span class="search-option-label">Clipboard monitor</span> + </label> + <label class="search-option" id="search-option-wanakana"> + <label class="toggle"><input type="checkbox" id="wanakana-enable"><span class="toggle-body"><span class="toggle-track"></span><span class="toggle-knob"></span></span></label> + <span class="search-option-label">Automatic kana conversion</span> + </label> + <div class="search-option" id="query-parser-mode-container" hidden> + <span class="search-option-pre-label">Parser:</span> + <select id="query-parser-mode-select"></select> </div> </div> - - <div class="scan-disable scrollbar" id="query-parser-container" hidden> - <div id="query-parser-content" lang="ja"></div> - </div> </div> + </div> + </div> + <div class="search-header-wrapper sticky-header"> + <div class="search-header"> + <div class="search-textbox-container"> + <textarea id="search-textbox" class="scrollbar" placeholder="Input a term, expression, sentence, or block of text" autocomplete="off" lang="ja" autofocus></textarea> + <button type="button" id="search-back-button" class="search-button" hidden><span class="icon" data-icon="left-chevron"></span></button> + <button type="button" id="search-button" class="search-button"><span class="icon" data-icon="magnifying-glass"></span></button> + </div> + <div class="scan-disable scrollbar" id="query-parser-container" hidden> + <div id="query-parser-content" lang="ja"></div> + </div> + </div> + </div> + <div class="content-body" id="content-body"> + <div class="content-body-inner"> + + <span tabindex="-1" id="content-scroll-focus"></span> <div id="dictionary-entries"></div> |