Fix video fullscreen mode on mobile
This commit is contained in:
@@ -13,8 +13,8 @@
|
|||||||
## To Do List
|
## To Do List
|
||||||
* ECMA import/export
|
* ECMA import/export
|
||||||
* Reset zoom on image closing (lightbox)
|
* Reset zoom on image closing (lightbox)
|
||||||
* Fix video fullscreen button on ios
|
* Fix lightbox portrait mode: push text under (mobile especially)
|
||||||
* Fix lightbox portrait mode: push text under
|
|
||||||
* Add mail frequency slider
|
* Add mail frequency slider
|
||||||
* Replace Project Time Zone with browser Time Zone when uploading media?
|
* Replace Project Time Zone with browser Time Zone when uploading media?
|
||||||
* Use WMTS servers directly when not using Geo Caching Server
|
* Use WMTS servers directly when not using Geo Caching Server
|
||||||
|
* Newsletter: Add custom link to media/post
|
||||||
@@ -126,7 +126,7 @@
|
|||||||
|
|
||||||
//ADDED-START
|
//ADDED-START
|
||||||
if(self.options.hasVideo) {
|
if(self.options.hasVideo) {
|
||||||
this.$video = $('<video class="lb-video" src="" controls="true" autoplay playsinline></video>');
|
this.$video = $('<video class="lb-video" controls autoplay></video>');
|
||||||
this.$image.after(this.$video);
|
this.$image.after(this.$video);
|
||||||
this.videoBorderWidth = {
|
this.videoBorderWidth = {
|
||||||
top: parseInt(this.$video.css('border-top-width'), 10),
|
top: parseInt(this.$video.css('border-top-width'), 10),
|
||||||
|
|||||||
@@ -41,6 +41,14 @@
|
|||||||
scale(var(--scale, 1));
|
scale(var(--scale, 1));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.lb-video {
|
||||||
|
box-sizing: content-box;
|
||||||
|
}
|
||||||
|
&.lb-video-nav .lb-nav {
|
||||||
|
top: 45px;
|
||||||
|
height: calc(100% - 90px);
|
||||||
|
}
|
||||||
|
|
||||||
.lb-nav {
|
.lb-nav {
|
||||||
a.lb-prev, a.lb-next {
|
a.lb-prev, a.lb-next {
|
||||||
color: white;
|
color: white;
|
||||||
|
|||||||
@@ -35,15 +35,6 @@ body.lb-disable-scrolling {
|
|||||||
border: 4px solid white;
|
border: 4px solid white;
|
||||||
}
|
}
|
||||||
|
|
||||||
//ADDED-START
|
|
||||||
.lightbox .lb-video {
|
|
||||||
box-sizing: content-box;
|
|
||||||
}
|
|
||||||
.lightbox .lb-video-nav .lb-nav {
|
|
||||||
height: calc(100% - 45px);
|
|
||||||
}
|
|
||||||
//ADDED-END
|
|
||||||
|
|
||||||
.lightbox a img {
|
.lightbox a img {
|
||||||
border: none;
|
border: none;
|
||||||
}
|
}
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user