mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 22:58:07 +02:00
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.
This commit is contained in:
parent
da1c944929
commit
d45d622354
1 changed files with 12 additions and 8 deletions
|
@ -104,24 +104,28 @@ select {
|
|||
}
|
||||
|
||||
/* outer/inner center provides horizontal center */
|
||||
.outerCenter {
|
||||
pointer-events: none;
|
||||
position: relative;
|
||||
}
|
||||
html[dir='ltr'] .outerCenter {
|
||||
float: right;
|
||||
position: relative;
|
||||
right: 50%;
|
||||
}
|
||||
html[dir='rtl'] .outerCenter {
|
||||
float: left;
|
||||
position: relative;
|
||||
left: 50%;
|
||||
}
|
||||
.innerCenter {
|
||||
pointer-events: auto;
|
||||
position: relative;
|
||||
}
|
||||
html[dir='ltr'] .innerCenter {
|
||||
float: right;
|
||||
position: relative;
|
||||
right: -50%;
|
||||
}
|
||||
html[dir='rtl'] .innerCenter {
|
||||
float: left;
|
||||
position: relative;
|
||||
left: -50%;
|
||||
}
|
||||
|
||||
|
@ -1430,12 +1434,12 @@ canvas {
|
|||
html[dir='ltr'] #outerContainer.sidebarMoving .outerCenter,
|
||||
html[dir='ltr'] #outerContainer.sidebarOpen .outerCenter {
|
||||
float: left;
|
||||
left: 185px;
|
||||
left: 205px;
|
||||
}
|
||||
html[dir='rtl'] #outerContainer.sidebarMoving .outerCenter,
|
||||
html[dir='rtl'] #outerContainer.sidebarOpen .outerCenter {
|
||||
float: right;
|
||||
right: 185px;
|
||||
right: 205px;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1479,11 +1483,11 @@ canvas {
|
|||
|
||||
html[dir='ltr'] .outerCenter {
|
||||
float: left;
|
||||
left: 185px;
|
||||
left: 205px;
|
||||
}
|
||||
html[dir='rtl'] .outerCenter {
|
||||
float: right;
|
||||
right: 185px;
|
||||
right: 205px;
|
||||
}
|
||||
|
||||
#outerContainer .hiddenLargeView,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue