1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-22 16:18:08 +02:00

Update the left/right CSS calculation for the sidebarContainer HTML element to enable IE11 compatibility

As gross as this hack is, it nonetheless seem necessary to allow using CSS variables; see also https://github.com/mozilla/pdf.js/pull/11567#issuecomment-582166160
This commit is contained in:
Jonas Jenwald 2020-02-05 00:34:44 +01:00
parent cb61bdee34
commit 102142537f
4 changed files with 62 additions and 2 deletions

View file

@ -107,11 +107,11 @@ select {
}
html[dir='ltr'] #sidebarContainer {
transition-property: left;
left: calc(-1 * var(--sidebar-width));
left: calc(0px - var(--sidebar-width));
}
html[dir='rtl'] #sidebarContainer {
transition-property: right;
right: calc(-1 * var(--sidebar-width));
right: calc(0px - var(--sidebar-width));
}
.loadingInProgress #sidebarContainer {