Skip to content
This repository was archived by the owner on Feb 23, 2023. It is now read-only.

Commit 06690e4

Browse files
committed
See the description
- New options: `defaultType : 'image' ` - Default content type if cannot be detected automatically `thumbs.parentEl : '.fancybox-container'` - Selector for element where thumbnails grid will be injected - Option `margin` now has default value 0 for mobile devices - Container is now placed at the bottom of the <body> - Thumbnail list should now scroll properly when `autoStart` is enabled - Share module uses current page link if hash module is not disabled - Bugfixes
1 parent 2148f30 commit 06690e4

File tree

13 files changed

+444
-419
lines changed

13 files changed

+444
-419
lines changed

dist/jquery.fancybox.css

Lines changed: 20 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -19,18 +19,14 @@ body.fancybox-iosfix {
1919
left: 0;
2020
width: 100%;
2121
height: 100%;
22-
z-index: 99993;
22+
z-index: 99992;
2323
-webkit-tap-highlight-color: transparent;
2424
-webkit-backface-visibility: hidden;
2525
backface-visibility: hidden;
2626
-webkit-transform: translateZ(0);
2727
transform: translateZ(0);
2828
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; }
2929

30-
/* Make sure that the first one is on the top */
31-
.fancybox-container ~ .fancybox-container {
32-
z-index: 99992; }
33-
3430
.fancybox-outer,
3531
.fancybox-inner,
3632
.fancybox-bg,
@@ -270,18 +266,6 @@ body.fancybox-iosfix {
270266
font-size: 16px;
271267
line-height: 20px; }
272268

273-
.fancybox-slide--iframe .fancybox-close-small {
274-
top: 0;
275-
right: -44px; }
276-
277-
.fancybox-slide--iframe .fancybox-close-small:after {
278-
font-size: 35px;
279-
color: #aaa; }
280-
281-
.fancybox-slide--iframe .fancybox-close-small:hover:after {
282-
color: #fff;
283-
background: transparent; }
284-
285269
/* Buttons */
286270
.fancybox-button {
287271
box-sizing: border-box;
@@ -401,6 +385,25 @@ body.fancybox-iosfix {
401385
color: #555;
402386
background: #eee; }
403387

388+
.fancybox-slide--image .fancybox-close-small,
389+
.fancybox-slide--iframe .fancybox-close-small {
390+
top: 0;
391+
right: -44px; }
392+
393+
.fancybox-slide--image .fancybox-close-small:after,
394+
.fancybox-slide--iframe .fancybox-close-small:after {
395+
font-size: 35px;
396+
color: #aaa; }
397+
398+
.fancybox-slide--image .fancybox-close-small:hover:after,
399+
.fancybox-slide--iframe .fancybox-close-small:hover:after {
400+
color: #fff;
401+
background: transparent; }
402+
403+
.fancybox-is-scaling .fancybox-close-small,
404+
.fancybox-is-zoomable.fancybox-can-drag .fancybox-close-small {
405+
display: none; }
406+
404407
/* Caption */
405408
.fancybox-caption-wrap {
406409
bottom: 0;

0 commit comments

Comments
 (0)