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

Commit d3000f0

Browse files
committed
See description
- redesigned share module; - switched mouse wheel direction (down/right=next); - improved touch handling (it is now possible to swipe inline content that is larger than container); - inline content is now preloaded (e.g., next/previous `image`/`inline` gallery items are now loaded on start) - Options width/height now can be used to set image max dimensions; this is also useful for setting dimensions for SVG images.
1 parent 63351b3 commit d3000f0

File tree

11 files changed

+604
-555
lines changed

11 files changed

+604
-555
lines changed

dist/jquery.fancybox.css

Lines changed: 50 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ body.fancybox-iosfix {
380380
right: 5px;
381381
width: 30px;
382382
height: 30px;
383-
font: 20px/30px Arial,"Helvetica Neue",Helvetica,sans-serif;
383+
font: 22px/30px Arial,"Helvetica Neue",Helvetica,sans-serif;
384384
color: #888;
385385
font-weight: 300;
386386
text-align: center;
@@ -579,66 +579,85 @@ body.fancybox-iosfix {
579579
padding: 30px;
580580
border-radius: 3px;
581581
background: #f4f4f4;
582-
max-width: 90%; }
582+
max-width: 90%;
583+
text-align: center; }
583584

584585
.fancybox-share h1 {
585586
color: #222;
586587
margin: 0 0 20px 0;
587-
font-size: 33px;
588-
font-weight: 700;
589-
text-align: center; }
588+
font-size: 35px;
589+
font-weight: 700; }
590590

591591
.fancybox-share p {
592592
margin: 0;
593-
padding: 0;
594-
text-align: center; }
593+
padding: 0; }
595594

596-
.fancybox-share p:first-of-type {
595+
p.fancybox-share__links {
597596
margin-right: -10px; }
598597

599-
.fancybox-share_button {
598+
.fancybox-share__button {
600599
display: inline-block;
601600
text-decoration: none;
602601
margin: 0 10px 10px 0;
603-
padding: 10px 20px;
602+
padding: 0 15px;
603+
min-width: 130px;
604604
border: 0;
605605
border-radius: 3px;
606-
box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.16);
607606
background: #fff;
608607
white-space: nowrap;
609-
font-size: 16px;
610-
line-height: 23px;
608+
font-size: 14px;
609+
font-weight: 700;
610+
line-height: 40px;
611611
-webkit-user-select: none;
612612
-moz-user-select: none;
613613
-ms-user-select: none;
614614
user-select: none;
615-
min-width: 140px;
616-
color: #707070;
615+
color: #fff;
617616
transition: all .2s; }
618617

619-
.fancybox-share_button:focus,
620-
.fancybox-share_button:hover {
621-
text-decoration: none;
622-
color: #333;
623-
box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.3); }
618+
.fancybox-share__button:hover {
619+
text-decoration: none; }
620+
621+
.fancybox-share__button--fb {
622+
background: #3b5998; }
624623

625-
.fancybox-share_button svg {
626-
margin-right: 5px;
627-
width: 20px;
628-
height: 20px;
629-
vertical-align: text-bottom; }
624+
.fancybox-share__button--fb:hover {
625+
background: #344e86; }
630626

631-
.fancybox-share input {
627+
.fancybox-share__button--pt {
628+
background: #bd081d; }
629+
630+
.fancybox-share__button--pt:hover {
631+
background: #aa0719; }
632+
633+
.fancybox-share__button--tw {
634+
background: #1da1f2; }
635+
636+
.fancybox-share__button--tw:hover {
637+
background: #0d95e8; }
638+
639+
.fancybox-share__button svg {
640+
position: relative;
641+
top: -1px;
642+
width: 25px;
643+
height: 25px;
644+
margin-right: 7px;
645+
vertical-align: middle; }
646+
647+
.fancybox-share__button svg path {
648+
fill: #fff; }
649+
650+
.fancybox-share__input {
632651
box-sizing: border-box;
633652
width: 100%;
634-
margin: 5px 0 0 0;
653+
margin: 10px 0 0 0;
635654
padding: 10px 15px;
636-
border: 1px solid #d7d7d7;
637-
border-radius: 3px;
638-
background: #ebebeb;
655+
background: transparent;
639656
color: #5d5b5b;
640657
font-size: 14px;
641-
outline: none; }
658+
outline: none;
659+
border: 0;
660+
border-bottom: 2px solid #d7d7d7; }
642661

643662
/* Thumbs */
644663
.fancybox-thumbs {

0 commit comments

Comments
 (0)