Commit Graph

490 Commits

Author SHA1 Message Date
Tim van der Meij
f95915fc73 Viewer: amend .sidebarOpen responsiveness rules with rules for
`.sidebarMoving`
2016-11-07 16:23:50 +01:00
Tim van der Meij
28ef012727 Viewer: improve responsiveness and clean up CSS
This patch resolves the responsiveness issues for the toolbar in the
viewer. Depending on the language (for example the Dutch language),
elements could overlap when the viewport size is reduced.

The main issue here is that the CSS rules are unnecessarily complex and
handle lots of different cases (LTR/RTL, displacements for specific
viewport widths, et cetera). By removing this complexity and letting the
browser handle the responsiveness, we not only get simpler CSS rules and
HTML mark-up, but the responsiveness issues are mostly fixed at the same
time. We no longer have to position the elements manually (by setting
their `left` attribute value) anymore.
2016-11-03 22:56:46 +01:00
Jonas Jenwald
23ec02bb93 Remove the "Page: " label and replace it with a tooltip
The following reasoning was used for deciding to remove the "Page: " label, and replace it with a tooltip, from the main toolbar:
 - We have no other visible labels in the *main* toolbar (e.g. the Zoom dropdown doesn't have a label, but only a tooltip).
 - We already hide the "Page: " label when the viewer is narrow.
 - The varying width of the "Page: " label in different locales is already causing issues for many languages, with overlap in the main toolbar as a result.
Trying to create responsive CSS styles that works well in all locales is already difficult, and if we add support for page labels that will only further compound the issues.
 - Some PDF viewers (e.g. Adobe Reader, pdfium in Chrome) doesn't show labels in the UI by default.
2016-10-26 13:30:26 +02:00
Yury Delendik
c09f634bb6 Removes mozPrintCallback polyfill, converts canvas to PNG. 2016-10-11 10:08:13 -05:00
Yury Delendik
24a7a58da7 Moves mozPrintCallback specific code to firefox_printservice.js 2016-10-08 07:33:07 -05:00
Yury Delendik
29947b5a57 Printing canvases at PDF document size. 2016-10-06 07:51:45 -05:00
Tobias Schneider
aeabd0db20 Fix insertion of blank pages during printing due to non-matching page sizes 2016-03-21 14:21:07 -07:00
Yury Delendik
bd7f121c83 Better "text" testing. 2015-11-19 11:03:52 -06:00
Jonas Jenwald
0f50147ba8 Create a new indeterminate loading bar animation for the default viewer
This patch contains an alternative solution (see the referenced PRs in 4718), in order for the indeterminate loading bar to have a consistent speed regardless of width.

Fixes 4718.
2015-11-04 17:44:51 +01:00
Andy Parisi
17fe0b1470 Added find match counter 2015-10-30 10:21:26 -05:00
Rob Wu
9f80060a18 Add mirrored triangle (TOC item icon) 2015-09-06 15:35:58 +02:00
Jonas Jenwald
da1b9df74a Adjust the min-width of outline items and use more consistent border-radius (PR 6242 follow-up)
Prior to PR 6242, the width of all outline items was set such that their right (or left, in RTL locales) edges lined up vertically. In my opinion that looked more consistent, therefore this patch adjusts the CSS to make sure that this will be the case again.

The patch also makes the `border-radius` values of outline items a bit more consistent.
2015-09-06 13:01:30 +02:00
Jonas Jenwald
2df1b7b3cd Switch expanded/collapsed in the names of the treeitem-* assets
It appears to me that the `expanded/collapsed` part of the names got switched around, since I'd expect the following convention:
 - `v` == expanded
 - `>` == collapsed
2015-08-27 23:21:34 +02:00
Jonas Jenwald
b1950d3657 Use the Retina assets for outlineItemToggler when in HiDPI mode 2015-08-27 17:50:35 +02:00
Yury Delendik
70fd360d51 Merge pull request #6242 from Rob--W/outline-collapsible
Allow outline to be collapsed / shown via +/-.
2015-08-27 08:41:34 -05:00
Rob Wu
7c992243fd Allow outline to be collapsed / shown via icon.
- This commit adds a '>' before every outline item that has subitems.
- Click on the '>' to collapse all subitems under that item (which turns
  the '>' in a 'v').
- Shift + click expands/collapses all descendant items under that tree.
- Double-clicking on the "Show Document Outline" button in the toolbar
  expands/collapses all outline items.
2015-08-22 18:49:08 +02:00
Jonas Jenwald
421289c7bc Merge pull request #6233 from Rob--W/crx-local-files
Improve support for viewing PDFs from file://-URLs in the Chrome extension
2015-08-15 14:15:36 +02:00
Rob Wu
775d4e69cf Teach users how to enable access to local files. 2015-08-14 18:59:30 +02:00
Daan Sprenkels
c3b7ed4541 Apply hover style to .overlayButton not only when hovered, but also when focused (issue #6261) 2015-08-04 14:20:43 +02:00
Timothy Gu
099f99d6ad Apply padding on <select> and not the button 2015-06-03 12:16:12 -07:00
Mike Corbin
a22319b98a Eliminate transition effects from thumbnail loader
During A/B testing we found a significant preference (increased engagement
time, reduced downloads of original PDF for local viewing) for the version that
doesn't animate loading thumbnails.

Profiling shows that the transition effects hit at a pessimal time when the
compositor is busy rendering the main PDF page view, and rendering thumbnail
previews, causing the main scroll view to stutter. With the transition removed
scrolling is perceptibly smoother in Chrome and Firefox. We also hypothesize
that the transition effects added to a perception of slowness but presumably
the aforementioned stutter is the primary issue here.
2015-05-16 15:08:10 +01:00
Jonas Jenwald
4dc52cf92c Tweak the :focus/:hover CSS rules of the .toolbarField class used in Overlay dialogs
Having recently spent some time staring at the PasswordPrompt, while fixing issue 6010, I felt that the current border style does not really give a good visual  indication that the input field actually has focus.

The current appearance was first introduced in PR 3527; but I don't know if having a different border style in Overlay dialogs was intentional, or if it just "happened".
However, given the colour palette used in the viewer UI, I think that using the same border style for all .toolbarFields makes sense.
2015-05-15 13:52:18 +02:00
Tim van der Meij
d7aa95d6b1 Merge pull request #5857 from Rob--W/print-page-size
Set page size via @page + size
2015-05-14 16:52:40 +02:00
Jonas Jenwald
601bd4a930 Preface all "fullscreen" CSS rules with a |pdfPresentationMode| class, and add it to the |viewerContainer| while Presentation Mode is active 2015-04-21 16:28:50 +02:00
Rob Wu
d34e6ddd60 Set page size via @page + size
In Blink-based browsers, there is a mismatch between document size and
paper size. Even if exactly the same values and unit are used, it is
possible that the printed results takes more pages than expected.

To solve the issue, the page size is set via @page size, and the canvas
and ancestor nodes are assigned a width+height of 100% (=relative to the
page). This change resolves bugs such as blank pages and split pages.
2015-03-23 11:19:48 +01:00
Jonas Jenwald
f0d538d7cf Revert PR 5510, except in WebKit browsers, for breaking print preview in Firefox
See https://bugzilla.mozilla.org/show_bug.cgi?id=1138993.
2015-03-07 00:16:55 +01:00
Tim van der Meij
997c2b9d94 Merge pull request #5596 from fkaelberer/fixBordersAroundThumbnails
Fix border sizes around thumbnails
2015-01-23 21:29:49 +01:00
Jonas Jenwald
c149d4d75e Fix thumbnail rendering regression, when using |draw|, for PDF files with blend modes (issue 5637) 2015-01-19 21:55:59 +01:00
Brendan Dahl
e93cf5ca97 Merge pull request #5552 from yurydelendik/pdfpageview
Creates/refactors PDFPageView class
2015-01-05 11:26:36 -08:00
fkaelberer
1d31018c7d Make thumbnail CSS size independent of data-loaded tag 2014-12-30 15:07:20 +01:00
Jonas Jenwald
86edb8687d Fix the placement of arrows in the zoom box
Now that [bug 649849](https://bugzilla.mozilla.org/show_bug.cgi?id=649849) has been fixed, adding support for `-moz-appearance: none`, the arrow is now too close to the text in the zoom box. This is currently only an issue in Nightly, but assuming the patch doesn't get backed out, this will soon affect all versions of Firefox.

The only simple solution I could find seems to be removing `*-appearance: none` rules from the CSS. I haven't been able to find any easier solutions that still looks the same with/without bug 649849.
2014-12-30 11:37:21 +01:00
Yury Delendik
513a3d8c91 Replaces text selection example 2014-12-20 23:41:34 -06:00
dustyrockpyle
7a0e764ffd Added page break hints in viewer css. 2014-11-26 11:56:00 -05:00
Tim van der Meij
dc5961d969 Merge pull request #5465 from Snuffleupagus/findbar-notFound-color
[GENERIC viewer] Fix the background color of the findInput when the search term is not found
2014-11-18 20:07:31 +01:00
Jonas Jenwald
86309faf3c Prevent text selection in Presentation Mode (bug 1018882) 2014-11-07 12:02:48 +01:00
Jonas Jenwald
fbca0e1ab0 [GENERIC viewer] Fix the background color of the findInput when the search term is not found
When a search term isn't found, the background color of the findInput is supposed to change (to red). This is currently not working as intended, because the CSS rule is not being applied correctly. (It seems that this broke in PR 2208.)

This patch also changes the background color to match the one used in the native Firefox findbar, since the old color seemed a bit too pink.
2014-11-01 20:26:44 +01:00
Yury Delendik
29eb147d42 Merge pull request #4150 from Snuffleupagus/issue-3990
Add a page loading indicator to the page number input
2014-09-30 18:06:39 -05:00
Yury Delendik
193b55dba0 Fixes printing regression a10fde1 2014-09-30 18:01:30 -05:00
Jonas Jenwald
902b72ba50 Add updated loading-small.png (and corresponding Retina) asset 2014-10-01 00:13:45 +02:00
Jonas Jenwald
b9ef80e167 Add a page loading indicator to the page number input 2014-10-01 00:13:44 +02:00
Yury Delendik
70a0935737 Move text_layer_builder and pdf_viewer styles out 2014-09-30 10:48:29 -05:00
Jonas Jenwald
9c3ea3c40b Fix text highlighting in the Font Inspector in the debugger
After PR #5282, the text highlighting in the Font Inspector is very hard to see against a white background. That seems to be an oversight from the mentioned PR, hence this patch fixes that.
2014-09-24 00:18:35 +02:00
Fabian Lange
931b444e00 TextLayer selection coloring improvement for overlap.
As a consequence of merging #5221 it is more likely to have multiple
overlapping selection divs inside the text layer. Because each individual
element gets the selection style applied, the 30%opacity stacks, making a
60% bar visible where the overlap happens.

As proposed by @rocallahan, this can be fixed by making the selection
style solid and setting opacity for the overall layer.

I assume also that this should make the work for the renderer easier, but
was unable to bench it.
2014-09-09 15:21:50 +02:00
Jonas Jenwald
5c84dd319f Fix the placement of the findInput loading indicator in RTL locales
Currently in RTL locales, the loading indicator is placed such that it is in the way when entring a search term. Hence this patch moves it to the other side of the input field to fix this.
2014-08-25 22:58:44 +02:00
Fabian Lange
1da38ec91e no need to set textlayer properties which are overwritten in individual styles. 2014-08-19 22:47:39 +02:00
Fabian Lange
6a0aa2cf49 Set transformOrigin for text layer in css.
transformOrigin is set to 0% 0% in all cases. This adds extra memory
impact into the dom tree. It also involves the CustomStyles workaround
to determine the correct css rule for the browser.
By setting all vendor and standard variants in css, the rule is applied
without the dom memory overhead and without the minor computation
overhead to set the value.
2014-08-19 22:46:09 +02:00
Adolfo Jayme Barrientos
ba426f479e Reduce load progress bar’s height to 4 pixels 2014-08-11 23:09:38 -05:00
Samuel Chantaraud
221d00a11f Removed non-base64 bytes before the last 3 characters 2014-06-11 09:12:26 -04:00
Mohammed Abu-alsaad
2b595e6d32 Fixed IE links bug by adding a base64 transparent gif for anchor tags for
IE only.
2014-06-03 11:06:43 +12:00
Yury Delendik
09b24d5231 Merge pull request #4808 from fkaelberer/fixAndroidButtons
Fix strange looking buttons in mobile Firefox
2014-05-19 11:56:57 -05:00
fkaelberer
2d4c35cda7 fix buttons under android 2014-05-18 17:32:26 +02:00
Jonas Jenwald
73a9d50fd1 Refactor the CSS rules for the overlayContainer 2014-05-13 10:43:38 +02:00
Tim van der Meij
9d6ffbb3bf Converts attachment items to buttons instead of links 2014-04-25 23:15:25 +02:00
Samuel Chantaraud
25ee0e8572 Preliminary attachments support
Added a partial Filespec support
Added getAttachments in API
Added a new attachments view in UI (with a new icon by @shorlander)
2014-04-18 12:11:00 -04:00
Brendan Dahl
5bd8a83c9b Build the text layer geometry on the worker. 2014-04-09 16:44:07 -07:00
Yury Delendik
4be65a9477 Merge pull request #4516 from dferer/ios-scrolling
Added CSS rules to improve scrolling on iOS devices
2014-04-03 09:34:20 -05:00
Samuel Chantaraud
50aa49bb06 Added CSS rules to allow smooth (momentum) scrolling on iOS devices 2014-03-31 11:09:18 -04:00
fkaelberer
db84851e27 Use full screen width in presentation mode 2014-03-28 08:58:18 +01:00
Yury Delendik
e4d0af2687 Fixes HiDPI icons of the secondary toolbar for Chrome 2014-03-17 11:25:50 -05:00
Samuel Chantaraud
076b3433b4 Improved annotations' display/behavior.
Added an "InteractiveAnnotation" class to homogenize the annotations' structure (highlighting) and user interactions (for now, used for text and link annotations).

Text annotations:
The appearance (AP) has priority over the icon (Name).
The popup extends horizontally (up to a limit) as well as vertically.
Reduced the title's font size.
The annotation's color (C) is used to color the popup's background.
On top of the mouseover show/hide behavior, a click on the icon will lock the annotation open (for mobile purposes). It can be closed with another click on either the icon or the popup.

An annotation printing is conditioned by its "print" bit
Unsupported annotations are not displayed at all.
2014-03-07 10:48:42 -04:00
Yury Delendik
15847ef94f Fixes CSS for webkit 2014-03-05 08:50:31 -06:00
Tim van der Meij
f281669151 Implement Retina assets 2014-02-26 22:22:38 +01:00
Jonas Jenwald
2337e974f7 Move print icons now that all icons are the same size 2014-02-20 22:49:16 +01:00
Rob Wu
65701f941d Get rid of weird scrollbar on mouse down 2014-01-30 15:06:04 +01:00
Rob Wu
45c633b072 Update Grab to pan to fix performance issue
Reported at http://stackoverflow.com/questions/21392844/pdf-js-recalculating-problme
See also e0f893753a

Changes versus grab-to-pan.js: Moved inline style to viewer.css,
lowered z-index from 2e9 to 50000 (note to future maintainers:
make sure that all other z-index values stay below 50000!).
2014-01-30 00:16:25 +01:00
Tim van der Meij
fa603af391 Removes button outline as visible in Chrome 2014-01-27 11:57:33 +01:00
Tim van der Meij
c952b6fb85 Miscellaneous improvements for the document properties dialog 2014-01-23 00:30:48 +01:00
Tim van der Meij
5f7ded4ff6 Document properties 2014-01-22 00:07:07 +01:00
Tim van der Meij
d25b0a74d0 RTL CSS improvements 2014-01-21 22:56:19 +01:00
Jonas Jenwald
80f5ae518f Remove old CSS rules 2014-01-17 16:31:51 +01:00
Tim van der Meij
e05bda4045 De-inline CSS for the 'open file' button 2014-01-13 22:04:36 +01:00
Tim van der Meij
08e1ef356a Make presentation mode use a black background 2014-01-13 21:30:47 +01:00
Jonas Jenwald
356ebf25cc Merge pull request #4038 from Rob--W/css-unprefixed-cursor-grab
Add unprefixed "grab" / "grabbing" values for cursor
2013-12-16 10:42:51 -08:00
Rob Wu
364676823b Add unprefixed grab/grabbing cursor
Unprefixed "grab" / "grabbing" values of cursor will land in Firefox 27
 (https://bugzilla.mozilla.org/show_bug.cgi?id=880672)
 (https://github.com/Rob--W/grab-to-pan.js/commit/fda961a3)
2013-12-16 19:01:59 +01:00
Tim van der Meij
b1e5c7e068 Fix typo in viewer.css 2013-12-14 23:01:49 +01:00
Jonathan Watt
3eaa421c74 Prevent the page number field from having a spinner (spin buttons) in mozilla now that it supports <input type=number> 2013-12-10 15:15:22 +00:00
Rob Wu
3914768085 Implement hand tool
The logic for the hand tool is implemented in a separate project,
maintained at https://github.com/Rob--W/grab-to-pan.js

Integration notes
- Added toggle as an entry under the Secondary toolbar
- Added shortcut "h" to toggle hand tool (to-do: document this in wiki
  after merge). This shortcut is also used in Adobe's Acrobat Reader.

To-do: localizations for:
hand_tool_enable.title=
hand_tool_enable_label=
hand_tool_disable.title=
hand_tool_disable_label=

To-do (wish): persistence of hand tool preference, preferably a global setting.

secondaryToolbarButton-handTool.png created by Stephen Horlander <shorlander@mozilla.com>
2013-12-03 15:51:41 +01:00
Brendan Dahl
c79acf5861 Fix the B2G viewer and enable bot preview. 2013-10-09 15:04:58 -07:00
Tim van der Meij
b1b661a274 Refactoring thumbnail scroll code to fix jumps 2013-10-09 20:40:21 +02:00
Tim van der Meij
a68375c48e Merge pull request #3739 from Snuffleupagus/bug-921162
Add the viewBookmark button to the Secondary Toolbar
2013-10-04 13:16:38 -07:00
Brendan Dahl
17a953c7b3 Merge pull request #3643 from Snuffleupagus/issue-3423
Change the cursor so that text selection doesn't appear possible in presentation mode
2013-10-01 13:27:19 -07:00
Jonas Jenwald
b148c9cb51 Add the viewBookmark button to the secondary toolbar 2013-09-27 11:51:32 +02:00
Jonas Jenwald
9fcb1a9e40 Merge pull request #3671 from Rob--W/toolbar-layout-fix
Fix layout of main toolbar
2013-09-26 07:55:52 -07:00
Tim van der Meij
63233fa8c2 Improved password prompt 2013-09-24 17:46:54 +02:00
mark-5
866186dcaa dont display file input when printing
closes #2464
2013-09-20 19:08:41 -04:00
Tim van der Meij
67e4c03786 Improvements for RTL languages 2013-09-14 19:33:00 +02:00
Rob Wu
d45d622354 Fix layout of main toolbar
Before this commit there were two main issues:

- In small windows, the zoom controls visually floated above the page number
  (e.g. 733px).
- In small windows, the (transparent) zoom container covered the go-to-page
  input box, which prevented one from using the input field to quickly navigate
  to a different page.
2013-09-11 18:56:10 +02:00
Thor Larholm
3c2d079c42 Fixed review notes: Adding specificity and removing redundant declaration 2013-09-10 22:17:40 +02:00
Thor Larholm
0f07d8ad55 Squashed: Added basic support for presentationMode in IE11 2013-09-10 21:40:14 +02:00
Tim van der Meij
14912b5a03 Annotation selection 2013-09-05 23:19:04 +02:00
Jonas
afbff781a7 Change the cursor so that text selection doesn't appear possible in presentation mode 2013-09-05 00:18:36 +02:00
Tim van der Meij
3c0ac37292 Secondary toolbar 2013-09-04 23:48:31 +02:00
Brendan Dahl
b368a99f20 Merge pull request #3421 from Snuffleupagus/avoid-multiple-rendering-on-wheel-zoom
Avoid triggering rendering multiple times when zooming using the mouse wheel
2013-09-04 10:25:31 -07:00
Brendan Dahl
d00157d3ab Merge pull request #3587 from debloper/master
Stripping down some CSS prefixes [#868160]
2013-08-26 12:59:32 -07:00
Jonas
8630e29054 Avoid triggering rendering multiple times when zooming using the mouse wheel 2013-08-26 21:00:35 +02:00
Brendan Dahl
427dd3948b Merge pull request #3569 from yurydelendik/bug900193
Fixes canvas alignment for small scale...
2013-08-26 10:52:47 -07:00
Soumya Deb
de52e711f8 Unprefixing CSS as current browsers support 2013-08-16 14:18:37 +05:30
Yury Delendik
86077810b0 Fixes canvas alignment for small scale and scale adjustment after Cmd+0 2013-08-13 18:45:06 -05:00
Jonas
d031c2bd62 Prevent the loadingBar from overlaying the errorWrapper 2013-07-29 12:43:42 +02:00
Jonas
4890c5d017 Fix the positioning of the progressive loadingBar 2013-07-18 18:28:59 +02:00
Rob Wu
066dffde3c Fix printing behaviour in Chrome
Two major issues:
1. Border/shadow around every page. Removed by adding "border:none".
2. Added "overflow:visible" (overrides "overflow:auto") in #viewContainer.
   This solves two problems:
   - It prevents scrollbars from appearing.
   - Every "page" is automatically resized to fit on a printed page,
     just like the Firefox.
To see what's wrong, here's a picture of how PDF.js rendered the pdf in
 Chrome (using "Print to PDF" feature of Chrome):
 https://robwu.nl/pdfjs/pdfjs-print-with-chromium-28.pdf

Successfully tested with Chrome 28 and Firefox 22.

Solves #3445
2013-07-15 16:23:43 +02:00
Brendan Dahl
c17f90e1aa Merge pull request #3406 from Snuffleupagus/remove-old-moz-prefixes
Remove old -moz prefixed rules from viewer.css
2013-07-09 13:13:20 -07:00
Rob Wu
4a2eefe1b6 Allow scrolling by keyboard in Chrome/Opera
Set "tabindex" attribute to allow focus;
Added "outline: none" to prevent focus ring from appearing.

Fixes #3443
2013-07-06 15:37:03 +02:00
Jonas
d417ef9a39 Remove old -moz prefixed rules from viewer.css 2013-06-28 17:21:07 +02:00
Brendan Dahl
4a7bd37162 Hide canvas overflow for high dpi screens. 2013-05-30 08:17:16 -07:00
Kalervo Kujala
5e08f8039d Replace fullscreen with presentationMode 2013-05-01 09:22:17 +03:00
Brendan Dahl
b89d7272e2 Remove background when printing. 2013-04-30 14:39:57 -07:00
vyv03354
2c504120b8 Fixes the unprefixed gradient declaration 2013-04-30 20:24:01 +09:00
Yury Delendik
2a320f851e Merge branch 'vyv03354/unprefix_gradient'
Conflicts:
	web/viewer.css
2013-04-29 22:06:59 -05:00
Mack Duan
ef423ef30c Implement progressive loading of PDFs 2013-04-12 16:13:22 -07:00
Jakob Miland
6b4f72a2c3 Disable outline button when unavailable 2013-04-11 18:27:35 +02:00
vyv03354
36ea87af38 Remove prefixed gradients usage 2013-04-07 20:57:14 +09:00
Yury Delendik
884b2dc9e4 Merge pull request #3022 from Rob--W/css-button-fix
Explicitly define layout of toolbar buttons
2013-04-03 11:19:35 -07:00
Rob Wu
5328b461ee Explicitly define layout of toolbar buttons
Before:

- Firefox's buttons looks OK
- Chrome (quirks mode): Buttons were aligned to the bottom (too much)
- Chrome (standards mode): Buttons were aligned to the top (too much)
- Opera/IE/Safari: Like Chrome (standards): Buttons too high

(Too high = Compare the other buttons to the rightmost button)

After:

- Firefox's button positions didn't change at all
- All buttons are aligned at the same level, across all browsers
2013-04-03 19:17:08 +02:00
Jonas
e081c764af Tweak external links in fullscreen mode - follow up on #2712 2013-03-25 17:50:49 +01:00
Jonas
83c09f27cc Fix bug 795225 - address comment 2013-03-18 23:53:45 +01:00
Yury Delendik
85ddd9405a Replacing page shadow with image; removing some profixed styles 2013-03-03 09:38:38 -06:00
waddlesplash
d0864f766b CSS fixes to the sidebar.
No need for a 15px margin, and links should have a pointer cursor.
2013-02-28 17:02:09 -05:00
Yury Delendik
7ca99df0d7 Merge pull request #2816 from Snuffleupagus/zoom-select-adjust-followup
Resize the zoom box width to fit the content - fix embedding
2013-02-28 08:25:44 -08:00
waddlesplash
322709257d Spacing fixes. 2013-02-27 12:53:14 -05:00
waddlesplash
b5dadab5c7 Add "cursor: text;" to textLayer div CSS.
Fixes problem caused by e4e4b1ab4e.
2013-02-26 14:18:11 -05:00
Jonas
0bde16a0a0 Resize the zoom box width to fit the content - fix embedding - address comments 2013-02-26 18:46:50 +01:00
Yury Delendik
3b506bd294 Merge pull request #2805 from brendandahl/no-hide-download
Don't hide the download/print buttons when view is small.
2013-02-25 17:11:48 -08:00
Brendan Dahl
60edfce733 Don't hide the download/print buttons when view is small. 2013-02-25 16:53:54 -08:00
Brendan Dahl
a13f7964b1 Merge pull request #2686 from vyv03354/bug770409
Implement vertical writing
2013-02-25 12:47:47 -08:00
waddlesplash
9ec51d89bd Fixes to findbar CSS. 2013-02-22 12:52:05 -05:00
vyv03354
c5b8ee6a91 Implements vertical writing 2013-02-15 03:53:34 +09:00
Snuffleupagus
c2e2afdd59 Prevent text selection divs from overflowing page boundries 2013-02-07 12:13:25 +01:00
Snuffleupagus
e08e326a67 Automatically resize the zoom box width to fit the content 2013-01-26 22:17:37 +01:00
Snuffleupagus
d3836c0173 Fixes the Outline view in RTL languages, follow up of #2510 2012-12-28 13:26:30 +01:00
Snuffleupagus
727505b85d Add word wrap of text in the Outline view to avoid horizontal scrolling 2012-12-27 18:58:09 +01:00
Daniel Johansson
097c3cf8b1 Fix margin on toolbar button separator to avoid changing height on hover, causing jittering 2012-12-14 22:24:28 +01:00
Brendan Dahl
11175ba6fe Minor css tweaks for small viewer and aligning borders. 2012-10-29 14:35:07 -07:00
waddlesplash
ceee2c4d04 Make the comments look nicer & fix a linebreak bug. 2012-10-24 10:52:14 -04:00
Saebekassebil
75af308b38 Fix annotation clipping 2012-10-22 18:00:37 +02:00
Yury Delendik
391b5b0244 Moving fullscreen top border few pixels up 2012-10-10 22:41:28 -05:00
Yury Delendik
da73934baf Fixes fit-page and fullscreen 2012-10-10 22:12:47 -05:00
Yury Delendik
be779c2ec7 Hides cursor in presentation mode 2012-10-10 19:32:48 -05:00
Brendan Dahl
4734cd8198 Change status attribute name. 2012-10-10 15:46:04 -07:00
Brendan Dahl
c3debc6ee0 Delay extracting text until first find event. 2012-10-10 13:58:14 -07:00
Yury Delendik
ade5f96787 Add pilot find next/prev icons; localization 2012-10-05 19:15:06 -05:00
Yury Delendik
92770fdd84 Minor CSS fixed for find bar 2012-10-05 10:47:58 -05:00
Brendan Dahl
dd0cb37f38 Add some door hanger styling for the find bar 2012-09-28 12:30:07 -07:00
Brendan Dahl
38193b1887 Update the find bar ui status. 2012-09-28 11:18:45 -07:00
Artur Adib
6090b3edf9 colors closer to FF's, add highlightAll support 2012-09-27 12:21:04 -04:00
Artur Adib
1ec2e2a1a2 remove old unused code 2012-09-26 16:38:02 -04:00
Artur Adib
6864a07221 Use "find" instead of both find & search 2012-09-25 16:17:27 -04:00
Julian Viereck
da57e0f89e Julian's html-search-bar work 2012-09-25 14:48:05 -04:00
Julian Viereck
58ed7fc35c Make the textLayer divs prevent whitespaces 2012-09-20 17:08:42 +02:00
gigaherz
bbcb05af7b Implement page rotation controls using keyboard (R/shift-R) and context menu. 2012-09-08 01:05:14 +02:00
Yury Delendik
a9026f0a6c Changes thumbs and outline panels positioning to absolute 2012-09-05 10:31:23 -05:00
Brendan Dahl
332ae4ce41 Change to the Apache v2 license. 2012-08-31 15:48:21 -07:00
Yury Delendik
72bb0f5a45 Add top padding for full screen mode 2012-08-27 12:46:26 -05:00
Yury Delendik
1cbbb37fbc Making webkit fullscreen work as for moz 2012-08-27 10:57:40 -05:00
Yury Delendik
cd1a645881 Adds support of the indeterminate loading progress 2012-08-22 10:48:56 -05:00
Yury Delendik
c02e539e35 Adds textlayer debug modes 2012-08-19 20:02:12 -05:00
Brendan Dahl
78e7d531b2 Merge pull request #1942 from gigaherz/opera-dropdown-background
Workaround Opera background style in <select> element.
2012-08-01 13:16:15 -07:00
gigaherz
d9ea503399 Workaround Opera not supporting 'transparent' background style in <select> element. 2012-07-31 10:48:52 +02:00
Saebekassebil
8544101970 Add fullscreen image, and fix last page artifact 2012-07-30 20:15:48 +02:00
Saebekassebil
dacdbaa978 Correct l10n and address yury's comments 2012-07-30 17:58:34 +02:00
Saebekassebil
7a147c0091 Revert mistakes in css 2012-07-30 17:52:29 +02:00
Saebekassebil
39d3ea862b Initial support for Presentation Mode 2012-07-30 17:12:49 +02:00
Brendan Dahl
d32906adc4 Add back basic printing support for non-moz browsers.
Shadow/cache supports browsing.
Destroy pages on error and only abort if supported.
2012-07-12 10:31:20 -07:00
Brendan Dahl
7e5a9b7a39 Adds support for the new mozPrintCallback api. 2012-07-09 10:41:52 -07:00
Brendan Dahl
8b0fd2a8f9 Merge upstream. 2012-06-19 09:02:23 -07:00
Brendan Dahl
6a751a9acb Merge pull request #1823 from msujaws/patch-1
PDF.js should use a consistent font for its user interface
2012-06-18 08:46:41 -07:00
Jared Wein
c3c01d10b3 message-box needs to use the font property, not the font-family property. 2012-06-13 10:47:46 -07:00
Jared Wein
cba8d992fc Added |button| to the list of elements that message-box should be applied to. 2012-06-13 02:27:22 -07:00
Jared Wein
ced219c12f Switch to using message-box for the body and form elements in the UI of PDF.js. This will use the system's native UI font for each platform as well as fix the current inconsistency between the font of the text label for total page count and the text inside of the input element for current page number. 2012-06-13 02:15:31 -07:00
Steffen Märcker
3b14930eec added missing css vendor prefixes and reordered some properties according to cascade 2012-06-11 11:10:33 +02:00
Brendan Dahl
cebee4026d UI update from shorlanders comments. 2012-06-07 13:51:29 -07:00
Artur Adib
277c127921 Merge pull request #1743 from yurydelendik/mobile-1
Add viewport metatag for mobile
2012-06-04 14:34:02 -07:00
Artur Adib
2a962f2c97 merging upstream 2012-05-29 12:16:57 -04:00
Artur Adib
9597efb3f4 merge upstream 2012-05-29 11:54:11 -04:00
Yury Delendik
dc09e164da Merge remote-tracking branch 'mozilla/master' into print-visible
Conflicts:
	web/viewer.css
2012-05-25 07:38:50 -05:00
Yury Delendik
902a2a9f03 Hide page label and zoom selector 2012-05-23 17:10:53 -05:00
Yury Delendik
74616848ca Merge remote-tracking branch 'mozilla/master' into textsearch
Conflicts:
	l10n/en-US/viewer.properties
	web/viewer.html
2012-05-21 14:07:30 -05:00
Yury Delendik
a4f319104b Don't print toolbar and not loaded pages 2012-05-21 13:08:42 -05:00
Yury Delendik
609b2a797e Merge remote-tracking branch 'mozilla/master' into textsearch
Conflicts:
	l10n/en-US/viewer.properties
	web/viewer.html
2012-05-21 11:32:16 -05:00
Yury Delendik
55d9a53e40 Fixes tab order, temp icon and localization 2012-05-21 11:23:12 -05:00
Yury Delendik
35171a8d31 Simplify small screen CSS logic 2012-05-21 10:59:43 -05:00
Yury Delendik
cc3e7197b3 Replaces browse button with a icon 2012-05-20 17:12:58 -05:00
Artur Adib
58be8a02fb Merge pull request #1706 from yurydelendik/fix-ie-7
Fixes classList and dataset for IE9; background for option element
2012-05-17 13:10:26 -07:00
Yury Delendik
cd18c197ac Fixes classList and dataset for IE9; background for option element 2012-05-16 20:31:43 -05:00
Yury Delendik
326b739bd1 Adds styles for small screens 2012-05-15 14:47:33 -05:00
Artur Adib
2d3ed7fc78 Merge branch 'refs/heads/master' into textsearch
Conflicts:
	web/viewer.css
	web/viewer.html
	web/viewer.js
2012-05-08 17:22:48 -04:00
Yury Delendik
19cf459943 Merge branch 'master' of git://github.com/mozilla/pdf.js.git into l10n
Conflicts:
	web/viewer.html
2012-05-04 13:13:29 -05:00
Yury Delendik
92a9003191 Fixing display: none; title for zoom 2012-05-04 12:34:18 -05:00
Yury Delendik
c04ea2897e Addressing accessebility aspects 2012-05-04 09:51:21 -05:00
Yury Delendik
e7f63e3e5e Fixes rtl zoom and page up/down icons 2012-05-01 19:39:24 -05:00
Yury Delendik
89b6c74a53 Merge remote-tracking branch 'mozilla/master' into l10n
Conflicts:
	web/viewer.css
	web/viewer.html
2012-05-01 17:19:02 -05:00
Yury Delendik
72ec5d070b Fixes rtl languages 2012-05-01 17:08:30 -05:00
Yury Delendik
b8db3356c3 Fixes visibility of the moving sidebar 2012-05-01 13:31:23 -05:00
Yury Delendik
69a40ef8d8 Fixes tab order and focus highlight 2012-05-01 11:43:48 -05:00
Brendan Dahl
7b02cb3a30 Fix the bookmark button alignment. 2012-04-30 14:58:12 -07:00
Brendan Dahl
68321ae671 Add back the browse button for the web viewer. 2012-04-30 14:23:26 -07:00
Artur Adib
2fa0c18b30 minor bookmak button adjustment 2012-04-27 11:00:54 -04:00
Brendan Dahl
aed05b580b Fix buttons after doctype addition. 2012-04-26 14:38:41 -07:00
Brendan Dahl
fe0d7d24bc Update pdfbug style. 2012-04-26 12:35:52 -07:00
Brendan Dahl
27caa7741a Fix the error box. 2012-04-25 17:20:13 -07:00
Brendan Dahl
71efba48bb Add disabled style for buttons. 2012-04-25 16:48:01 -07:00
Brendan Dahl
88ffc2db33 Don't disable outline. Add some more style to outline. 2012-04-25 16:38:36 -07:00
Brendan Dahl
3d43576838 Re-order the zoom options, add actual size option. 2012-04-25 15:55:11 -07:00
Artur Adib
0d248a05a1 Merge branch 'new-ui' of github.com:mozilla/pdf.js into new-ui 2012-04-25 17:33:06 -04:00
Artur Adib
f06ca00e1c progress bar matches new UI 2012-04-25 17:32:26 -04:00
Brendan Dahl
47badedeff Fix sidebar capitalization. 2012-04-25 14:19:02 -07:00
Brendan Dahl
c4189b46f3 Move sidebar open class. 2012-04-25 13:46:17 -07:00
Brendan Dahl
0a29804357 Fix thumbnails/outline. 2012-04-25 12:14:09 -07:00
Brendan Dahl
cce830bf62 Merge upstream. 2012-04-25 11:53:59 -07:00
Brendan Dahl
50088867c0 Remove flex box. Add side animation. Add dashed line around unload thumbnails. 2012-04-25 11:34:28 -07:00
Artur Adib
a423827e0f nit 2012-04-25 14:21:10 -04:00
Artur Adib
ffe3dbfc8f minor fixes 2012-04-25 14:10:53 -04:00
Artur Adib
31a757e301 "Page: 1 of 14" 2012-04-25 11:32:37 -04:00
Brendan Dahl
a57054ef9e Reduce the search box width to avoid wrapping. 2012-04-24 12:38:07 -07:00
Brendan Dahl
11d7278c93 Give the thumbnail default width/height. 2012-04-18 17:02:32 -07:00
Artur Adib
d9db7af4c8 fixing Chrome quirks 2012-04-17 14:10:52 -04:00
Artur Adib
195efa404d removed all old elements; file input & dl work 2012-04-16 15:41:55 -04:00
Brendan Dahl
a23eda3f4b Merge remote-tracking branch 'upstream/new-ui' into new-ui 2012-04-13 14:15:15 -07:00
Brendan Dahl
cc43117039 Add selection ring around thumbnails. 2012-04-13 14:14:05 -07:00
Artur Adib
e1e41aa792 dropdown menu 2012-04-13 11:13:53 -07:00
Artur Adib
e954a6236f loadingIcon 2012-04-13 08:17:35 -07:00
Artur Adib
d5f296e404 user-changes to pageNumber are working 2012-04-12 17:57:52 -07:00
Artur Adib
18211be401 disable user select in outline 2012-04-12 17:21:18 -07:00
Artur Adib
e92656712f outline view 2012-04-12 17:19:57 -07:00
Artur Adib
76fce75091 text selection OK, switch outline OK 2012-04-12 16:29:15 -07:00
Artur Adib
8363ca88ad fixing sidebarView scroll bar overflow 2012-04-12 15:13:58 -07:00
Artur Adib
c8695cfa0a sidebar toggle working 2012-04-12 15:08:07 -07:00
Artur Adib
324ea1d743 first mockup, loads tracemonkey pages OK 2012-04-11 16:12:51 -07:00
Julian Viereck
3c77291013 Merge text search with current master 2012-04-08 08:57:55 -07:00
gigaherz
a094dd4746 Simplified the ProgressBar a bit: made the div fixed-size, removed the unnecessary '.remaining' div, used percent size for the '.progress' div. 2012-03-27 09:13:32 +02:00
gigaherz
114d2c9ebd Simplified ProgressBar class. Visual tweaks. 2012-03-22 22:54:12 +01:00
gigaherz
ecaf467a13 One more cosmetic tweak and fix 'make lint' complaints. 2012-03-22 00:05:24 +01:00
gigaherz
ce8b0625b1 Cosmetic changes 2012-03-21 23:56:20 +01:00
gigaherz
d2f463bf7c Add a progressbar to the loading indicator, below the text. 2012-03-21 23:36:10 +01:00
Brendan Dahl
e07505ff8d Update stats to use the new pdfBug panel. 2012-02-21 09:52:09 -08:00
Brendan Dahl
5e818ce04f Merge branch 'master' of https://github.com/mozilla/pdf.js into stats 2012-02-16 18:47:00 -08:00
Artur Adib
1b0bf24322 Merge pull request #1211 from brendandahl/debugger2
Debugging Tools
2012-02-16 11:14:05 -08:00
notmasteryet
3e6c7693a0 Vector pins 2012-02-15 20:11:08 -06:00
Brendan Dahl
c04ab5fe45 Change name of debugger to stepper. 2012-02-15 14:12:58 -08:00
Brendan Dahl
0175f53637 Merge upstream. 2012-02-15 12:56:05 -08:00
Brendan Dahl
9fe5eff905 Combining Yury's and my debugging tools. 2012-02-13 17:35:58 -08:00
gigaherz
349e0b9d47 Merge branch 'master' of git://github.com/mozilla/pdf.js into sidebar-pinning 2012-02-13 09:35:46 +01:00
gigaherz
7c3a756457 Forgot to lower a bit the outline view. 2012-02-10 20:35:42 +01:00
gigaherz
418c914199 (I hate myself right now) Reduce pointless differences from the original code. 2012-02-10 20:27:59 +01:00
gigaherz
4e51fa7a02 Whoops. 2012-02-10 20:25:36 +01:00
gigaherz
c24684b8e9 Got rid of the "released" class and made the pin icon depend on the sidebar state. 2012-02-10 20:21:55 +01:00
notmasteryet
cdf1db35fc Using sans-serif instead of loaded fonts; fix IE9 dataset compatibility shim 2012-02-10 12:55:11 -06:00
Brendan Dahl
a5d9ff8568 Merge upstream. 2012-02-08 16:31:30 -08:00
gigaherz
3b271f1f52 More style fixes. 2012-02-07 16:20:25 +01:00
gigaherz
14eae7cb9f Move code to the right place and give it a better style.
Highlight the background on hover.
2012-02-07 09:23:23 +01:00