mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 14:48:08 +02:00
Merge pull request #3671 from Rob--W/toolbar-layout-fix
Fix layout of main toolbar
This commit is contained in:
commit
9fcb1a9e40
1 changed files with 12 additions and 8 deletions
|
@ -126,24 +126,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%;
|
||||
}
|
||||
|
||||
|
@ -1528,12 +1532,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;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1577,11 +1581,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