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

Commit a829fab

Browse files
committed
Updated to v3.4.1
* Revised focus trapping; * Navigation arrows are now buttons; * Slideshow now waits for html5 video to end; * Changed window.jQuery to global value; * Fixed issue with 2inline items in looping group * Fixed issue with custom full-screen button
1 parent e11639e commit a829fab

15 files changed

+548
-454
lines changed

dist/jquery.fancybox.css

Lines changed: 24 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ body.compensate-for-scrollbar {
6363
direction: ltr;
6464
opacity: 0;
6565
position: absolute;
66-
transition: opacity .25s, visibility 0s linear .25s;
66+
transition: opacity .25s ease, visibility 0s ease .25s;
6767
visibility: hidden;
6868
z-index: 99997; }
6969

@@ -72,7 +72,7 @@ body.compensate-for-scrollbar {
7272
.fancybox-show-caption .fancybox-caption,
7373
.fancybox-show-nav .fancybox-navigation .fancybox-button {
7474
opacity: 1;
75-
transition: opacity .25s, visibility 0s;
75+
transition: opacity .25s ease 0s, visibility 0s ease 0s;
7676
visibility: visible; }
7777

7878
.fancybox-infobar {
@@ -293,6 +293,7 @@ body.compensate-for-scrollbar {
293293
padding: 10px;
294294
transition: color .2s;
295295
vertical-align: top;
296+
visibility: inherit;
296297
width: 44px; }
297298

298299
.fancybox-button,
@@ -303,19 +304,20 @@ body.compensate-for-scrollbar {
303304
.fancybox-button:hover {
304305
color: #fff; }
305306

307+
.fancybox-button:focus {
308+
outline: none; }
309+
310+
.fancybox-button.fancybox-focus {
311+
outline: 1px dotted; }
312+
306313
.fancybox-button.disabled,
307314
.fancybox-button.disabled:hover,
308315
.fancybox-button[disabled],
309316
.fancybox-button[disabled]:hover {
310317
color: #888;
311-
cursor: default; }
312-
313-
.fancybox-button:focus {
318+
cursor: default;
314319
outline: none; }
315320

316-
.fancybox-button.fancybox-focus {
317-
outline: 1px dotted; }
318-
319321
.fancybox-button svg {
320322
display: block;
321323
height: 100%;
@@ -350,48 +352,41 @@ body.compensate-for-scrollbar {
350352
z-index: 401; }
351353

352354
.fancybox-close-small:hover {
353-
color: #fff; }
355+
color: #fff;
356+
opacity: 1; }
354357

355358
.fancybox-slide--html .fancybox-close-small {
356359
color: currentColor;
357360
padding: 10px;
358361
right: 0;
359362
top: 0; }
360363

361-
.fancybox-slide--html .fancybox-close-small:hover {
362-
color: currentColor;
363-
opacity: 1; }
364-
365364
.fancybox-is-scaling .fancybox-close-small,
366365
.fancybox-is-zoomable.fancybox-can-pan .fancybox-close-small {
367366
display: none; }
368367

369368
/* Navigation arrows */
370369
.fancybox-navigation .fancybox-button {
371-
height: 38px;
370+
background: transparent;
371+
height: 100px;
372372
margin: 0;
373373
opacity: 0;
374-
padding: 7px;
375374
position: absolute;
376-
top: calc(50% - (38px / 2));
377-
width: 38px; }
378-
379-
.fancybox-show-nav .fancybox-navigation .fancybox-button {
380-
transition: opacity .25s, visibility 0s, color .25s; }
381-
382-
.fancybox-navigation .fancybox-button::after {
383-
content: '';
384-
height: 100px;
385-
left: -26px;
386-
position: absolute;
387-
top: -31px;
375+
top: calc(50% - 50px);
388376
width: 70px; }
389377

378+
.fancybox-navigation .fancybox-button div {
379+
background: rgba(30, 30, 30, 0.6);
380+
height: 100%;
381+
padding: 7px; }
382+
390383
.fancybox-navigation .fancybox-button--arrow_left {
391-
left: 6px; }
384+
left: 0;
385+
padding: 31px 26px 31px 6px; }
392386

393387
.fancybox-navigation .fancybox-button--arrow_right {
394-
right: 6px; }
388+
padding: 31px 6px 31px 26px;
389+
right: 0; }
395390

396391
/* Caption */
397392
.fancybox-caption {

0 commit comments

Comments
 (0)