Browse Source

set slide content width and height 100% when fullscreen and idle

master
filesite 1 month ago
parent
commit
6097943752
  1. 1
      www/css/beauty.css
  2. 2
      www/js/beauty.js

1
www/css/beauty.css

@ -181,6 +181,7 @@ a:link{text-decoration:none} @@ -181,6 +181,7 @@ a:link{text-decoration:none}
.has-slideshow.is-idle .fancybox__viewport,
.has-slideshow.is-idle .fancybox__content{cursor:none}
.has-slideshow.is-idle .fancybox__toolbar{display:none}
.has-slideshow.is-idle .fancybox__slide.has-image>.fancybox__content{width:100% !important;height:100% !important}
/* 主题切换 */

2
www/js/beauty.js

@ -155,8 +155,6 @@ if ($('#image_site').get(0)) { @@ -155,8 +155,6 @@ if ($('#image_site').get(0)) {
Toolbar: fancyboxToolbar,
loop: true,
smallBtn: false,
//height: $(window).height(),
width: $(window).width(),
on: {
startSlideshow: function(fancybox) {
var autoplay = fancybox.plugins.Slideshow.ref;

Loading…
Cancel
Save