diff --git a/l10n/en-US/viewer.properties b/l10n/en-US/viewer.properties index d0ba6ffac..0922062a6 100644 --- a/l10n/en-US/viewer.properties +++ b/l10n/en-US/viewer.properties @@ -43,3 +43,4 @@ zoom.title=Zoom thumb_page_title=Page {{page}} thumb_page_canvas=Thumbnail of Page {{page}} request_password=PDF is protected by a password: +open_file_label=Open diff --git a/web/images/toolbarButton-openFile.png b/web/images/toolbarButton-openFile.png new file mode 100644 index 000000000..12ce45f87 Binary files /dev/null and b/web/images/toolbarButton-openFile.png differ diff --git a/web/viewer.css b/web/viewer.css index 92d9f44eb..d0a7be9a0 100644 --- a/web/viewer.css +++ b/web/viewer.css @@ -501,6 +501,11 @@ html[dir='rtl'] .toolbarButton.pageDown::before { content: url(images/toolbarButton-print.png); } +.toolbarButton.openFile::before { + display: inline-block; + content: url(images/toolbarButton-openFile.png); +} + .toolbarButton.download::before { display: inline-block; content: url(images/toolbarButton-download.png); @@ -932,17 +937,26 @@ canvas { font-size: 10px; } -@media all and (max-width: 770px) { - #scaleSelectContainer, #fileInput, #pageNumberLabel { - display: none; +@media all and (max-width: 950px) { + html[dir='ltr'] #outerContainer.sidebarMoving .outerCenter, + html[dir='ltr'] #outerContainer.sidebarOpen .outerCenter { + float: left; + left: 180px; } + html[dir='rtl'] #outerContainer.sidebarMoving .outerCenter, + html[dir='rtl'] #outerContainer.sidebarOpen .outerCenter { + float: right; + right: 180px; + } +} +@media all and (max-width: 770px) { #sidebarContainer { top: 33px; z-index: 100; } #sidebarContent { - top: 33px; + top: 32px; background-color: hsla(0,0%,0%,.7); } #thumbnailView, #outlineView { @@ -956,16 +970,6 @@ canvas { right: 0px; } - #pageNumber { - width: 30px; - } -} - -@media all and (max-width: 500px) { - #viewBookmark { - display: none; - } - html[dir='ltr'] .outerCenter { float: left; left: 180px; @@ -975,3 +979,9 @@ canvas { right: 180px; } } + +@media all and (max-width: 600px) { + #toolbarViewerRight { + display: none; + } +} diff --git a/web/viewer.html b/web/viewer.html index 45fb9f040..4a307c7ef 100644 --- a/web/viewer.html +++ b/web/viewer.html @@ -87,14 +87,10 @@
- - -