okfde / django-filingcabinet

PDF document viewer Django app
13 stars 4 forks source link

Fix overlapping elements outside the document #3

Closed odzhychko closed 2 years ago

odzhychko commented 4 years ago

.toolbar uses a z-index that can lead to undesirable overlapping. See for example https://github.com/okfde/fragdenstaat_de/issues/157 This can be fixed by creating a new stacking context for .document. A new stacking context could have been created with isolation: isolate, but position: relative; z-index: 0; is more widely supported.