CSS fix for issue 27009

This commit is contained in:
senff 2020-07-10 08:22:18 -04:00
parent 730df27bc6
commit 48a236e0e1
1 changed files with 12 additions and 0 deletions

12
assets/css/photoswipe/photoswipe.css Executable file → Normal file
View File

@ -56,6 +56,18 @@ button.pswp__button--zoom:hover {
.pswp img {
max-width: none; }
/* adjust for admin bar */
.admin-bar .pswp {
height: calc(100% - 32px);
top: 32px;
}
@media screen and (max-width: 782px) {
.admin-bar .pswp {
height: calc(100% - 46px);
top: 46px;
}
}
/* style is added when JS option showHideOpacity is set to true */
.pswp--animate_opacity {
/* 0.001, because opacity:0 doesn't trigger Paint action, which causes lag at start of transition */