mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-21 23:58:07 +02:00
Viewer: replace find label with placeholder/tooltip
This is common in the rest of the UI and helps us prevent responsiveness issues for different length strings in different locales.
This commit is contained in:
parent
a544a3b4a4
commit
c79e5b3f17
5 changed files with 22 additions and 5 deletions
|
@ -372,6 +372,21 @@ html[dir='rtl'] .findbar {
|
|||
-moz-user-select: none;
|
||||
}
|
||||
|
||||
#findInput {
|
||||
width: 200px;
|
||||
}
|
||||
#findInput::-webkit-input-placeholder {
|
||||
font-style: italic;
|
||||
}
|
||||
#findInput::-moz-placeholder {
|
||||
font-style: italic;
|
||||
}
|
||||
#findInput:-ms-input-placeholder {
|
||||
font-style: italic;
|
||||
}
|
||||
#findInput::placeholder {
|
||||
font-style: italic;
|
||||
}
|
||||
#findInput[data-status="pending"] {
|
||||
background-image: url(images/loading-small.png);
|
||||
background-repeat: no-repeat;
|
||||
|
|
|
@ -98,8 +98,7 @@ See https://github.com/adobe-type-tools/cmap-resources
|
|||
|
||||
<div id="mainContainer">
|
||||
<div class="findbar hidden doorHanger hiddenSmallView" id="findbar">
|
||||
<label for="findInput" class="toolbarLabel" data-l10n-id="find_label">Find:</label>
|
||||
<input id="findInput" class="toolbarField" tabindex="91">
|
||||
<input id="findInput" class="toolbarField" title="Find" placeholder="Find in document" tabindex="91" data-l10n-id="find_input">
|
||||
<div class="splitToolbarButton">
|
||||
<button class="toolbarButton findPrevious" title="" id="findPrevious" tabindex="92" data-l10n-id="find_previous">
|
||||
<span data-l10n-id="find_previous_label">Previous</span>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue