Replaces browse button with a icon
This commit is contained in:
parent
840fe94e46
commit
cc3e7197b3
@ -43,3 +43,4 @@ zoom.title=Zoom
|
|||||||
thumb_page_title=Page {{page}}
|
thumb_page_title=Page {{page}}
|
||||||
thumb_page_canvas=Thumbnail of Page {{page}}
|
thumb_page_canvas=Thumbnail of Page {{page}}
|
||||||
request_password=PDF is protected by a password:
|
request_password=PDF is protected by a password:
|
||||||
|
open_file_label=Open
|
||||||
|
BIN
web/images/toolbarButton-openFile.png
Normal file
BIN
web/images/toolbarButton-openFile.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 708 B |
@ -501,6 +501,11 @@ html[dir='rtl'] .toolbarButton.pageDown::before {
|
|||||||
content: url(images/toolbarButton-print.png);
|
content: url(images/toolbarButton-print.png);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.toolbarButton.openFile::before {
|
||||||
|
display: inline-block;
|
||||||
|
content: url(images/toolbarButton-openFile.png);
|
||||||
|
}
|
||||||
|
|
||||||
.toolbarButton.download::before {
|
.toolbarButton.download::before {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
content: url(images/toolbarButton-download.png);
|
content: url(images/toolbarButton-download.png);
|
||||||
@ -933,7 +938,7 @@ canvas {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@media all and (max-width: 770px) {
|
@media all and (max-width: 770px) {
|
||||||
#scaleSelectContainer, #fileInput, #pageNumberLabel {
|
#scaleSelectContainer, #pageNumberLabel {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -87,14 +87,10 @@
|
|||||||
<span id="numPages" class="toolbarLabel"></span>
|
<span id="numPages" class="toolbarLabel"></span>
|
||||||
</div>
|
</div>
|
||||||
<div id="toolbarViewerRight">
|
<div id="toolbarViewerRight">
|
||||||
<input id="fileInput" class="fileInput" type="file" oncontextmenu="return false;" tabindex="10" />
|
|
||||||
|
|
||||||
<!--
|
|
||||||
<input id="fileInput" class="fileInput" type="file" oncontextmenu="return false;" style="visibility: hidden; position: fixed; right: 0; top: 0" />
|
<input id="fileInput" class="fileInput" type="file" oncontextmenu="return false;" style="visibility: hidden; position: fixed; right: 0; top: 0" />
|
||||||
<button id="openFile" class="toolbarButton print" title="Open File" tabindex="10" data-l10n-id="open_file" onclick="document.getElementById('fileInput').click()">
|
<button id="openFile" class="toolbarButton openFile" title="Open File" tabindex="10" data-l10n-id="open_file" onclick="document.getElementById('fileInput').click()">
|
||||||
<span data-l10n-id="open_file_label">Open</span>
|
<span data-l10n-id="open_file_label">Open</span>
|
||||||
</button>
|
</button>
|
||||||
-->
|
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
<button id="print" class="toolbarButton print" title="Print" tabindex="11" data-l10n-id="print" onclick="window.print()">
|
<button id="print" class="toolbarButton print" title="Print" tabindex="11" data-l10n-id="print" onclick="window.print()">
|
||||||
|
@ -1366,7 +1366,7 @@ window.addEventListener('load', function webViewerLoad(evt) {
|
|||||||
|
|
||||||
if (PDFJS.isFirefoxExtension || !window.File || !window.FileReader ||
|
if (PDFJS.isFirefoxExtension || !window.File || !window.FileReader ||
|
||||||
!window.FileList || !window.Blob) {
|
!window.FileList || !window.Blob) {
|
||||||
document.getElementById('fileInput').setAttribute('hidden', 'true');
|
document.getElementById('openFile').setAttribute('hidden', 'true');
|
||||||
} else {
|
} else {
|
||||||
document.getElementById('fileInput').value = null;
|
document.getElementById('fileInput').value = null;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user