Updates to media modal content alignment.

This commit is contained in:
mateuswetah 2022-01-27 18:16:23 -03:00
parent df528bbd7b
commit 296e357f55
3 changed files with 21 additions and 4 deletions

View File

@ -884,7 +884,8 @@ a.pswp__share--download:hover {
align-items: center; align-items: center;
text-align: center; text-align: center;
padding: 44px; padding: 44px;
margin-top: 22px; } margin-top: 22px;
margin-bottom: 22px; }
.tainacan-photoswipe-layer .pswp__container .attachment-without-image > iframe:not(.wp-embedded-content) { .tainacan-photoswipe-layer .pswp__container .attachment-without-image > iframe:not(.wp-embedded-content) {
width: 90vw; width: 90vw;
height: 90vh; height: 90vh;
@ -903,6 +904,10 @@ a.pswp__share--download:hover {
background-image: url("../images/preloader.gif"); background-image: url("../images/preloader.gif");
background-repeat: no-repeat; background-repeat: no-repeat;
background-position: center; } background-position: center; }
.tainacan-photoswipe-layer .pswp__container .pswp__zoom-wrap {
display: flex;
justify-content: center;
align-items: center; }
.tainacan-photoswipe-layer .pswp__container .tainacan-content-embed { .tainacan-photoswipe-layer .pswp__container .tainacan-content-embed {
width: 100%; width: 100%;
height: auto; } height: auto; }
@ -936,9 +941,12 @@ a.pswp__share--download:hover {
.tainacan-photoswipe-layer .pswp__container audio { .tainacan-photoswipe-layer .pswp__container audio {
background: black; background: black;
min-height: 38px; min-height: 38px;
border-radius: 20px; } border-radius: 20px;
min-width: 80%;
max-width: 80%; }
.tainacan-photoswipe-layer .pswp__container video { .tainacan-photoswipe-layer .pswp__container video {
min-height: 56px; } min-height: 56px;
max-width: 80%; }
.tainacan-photoswipe-layer .pswp__top-bar .pswp__name { .tainacan-photoswipe-layer .pswp__top-bar .pswp__name {
color: white; color: white;
text-align: center; text-align: center;

File diff suppressed because one or more lines are too long

View File

@ -375,6 +375,7 @@ $pswp__include-minimal-style: true !default;
text-align: center; text-align: center;
padding: 44px; padding: 44px;
margin-top: 22px; margin-top: 22px;
margin-bottom: 22px;
&>iframe:not(.wp-embedded-content) { &>iframe:not(.wp-embedded-content) {
width: 90vw; width: 90vw;
@ -398,6 +399,11 @@ $pswp__include-minimal-style: true !default;
background-repeat: no-repeat; background-repeat: no-repeat;
background-position: center; background-position: center;
} }
.pswp__zoom-wrap {
display: flex;
justify-content: center;
align-items: center;
}
.tainacan-content-embed { .tainacan-content-embed {
width: 100%; width: 100%;
@ -443,9 +449,12 @@ $pswp__include-minimal-style: true !default;
background: black; background: black;
min-height: 38px; min-height: 38px;
border-radius: 20px; border-radius: 20px;
min-width: 80%;
max-width: 80%;
} }
video { video {
min-height: 56px; min-height: 56px;
max-width: 80%;
} }
} }
.pswp__top-bar .pswp__name { .pswp__top-bar .pswp__name {