// Process each slide and calculate optimal height for image and slide container
m.find('.fb-slideshow-slide').each(function () {
-
// Set the height on this container so flexbox can vertically center
// the contents when they don't take up the full height available
$(this).css('height', slideMaxHeight);
- var captionHeight = 0;
- if (!optimizeHeight) {
- captionHeight = $(this).find('.fb-slideshow-slide-caption').outerHeight() || 0;
- }
+ var captionHeight = $(this).find('.fb-slideshow-slide-caption').outerHeight() || 0;
// Allow image to take up whatever height is left after accounting for the caption
// This is only the max-height so the image might not end up being this tall...
// Slideshow Module
.fb-slideshow {
- position: relative;
- padding: 0 60px;
-
- &.fb-slideshow-fullscreen {
- padding: 0;
- .fb-slideshow-slide {
- .msie &, .edge & {
- display: flex !important;
- }
- }
- }
-
- img {
- max-width: 100%;
- }
-
- &-slide {
- position: relative;
- display: flex !important;
-
- .msie &, .edge & {
- display: block !important;
- }
- flex-direction: column;
- justify-content: center;
- text-align: center;
- //visibility: hidden; // Hide until JS can resize the images to avoid flicker
-
- &-image {
- margin: 0 auto;
- }
-
- &-caption {
- padding: 1em 0;
- }
- }
-
- &-thumbnails {
- &.fb-slideshow-nothumbs {
- display: none;
- }
-
- padding: 20px 60px 40px;
-
- img {
- height: 80px;
- width: auto;
- margin-right: 30px;
- cursor: pointer;
- }
-
- .slick-current {
- // Using outline so it doesn't affect layout or image size
- outline: 5px solid @menu-select-background;
- outline-offset: -5px;
- }
- }
+ position: relative;
+ padding: 0 60px;
+
+ &.fb-slideshow-fullscreen {
+ padding: 0;
+
+ .fb-slideshow-slide {
+ }
+ }
+
+ img {
+ max-width: 100%;
+ }
+
+ &-slide {
+ position: relative;
+ display: block;
+ text-align: center;
+ //visibility: hidden; // Hide until JS can resize the images to avoid flicker
+
+ &-image {
+ margin: 0 auto;
+ }
+
+ &-caption {
+ padding: 1em 0;
+ }
+ }
+
+ &-thumbnails {
+ &.fb-slideshow-nothumbs {
+ display: none;
+ }
+
+ padding: 20px 60px 40px;
+
+ img {
+ height: 80px;
+ width: auto;
+ margin-right: 30px;
+ cursor: pointer;
+ }
+
+ .slick-current {
+ // Using outline so it doesn't affect layout or image size
+ outline: 5px solid @menu-select-background;
+ outline-offset: -5px;
+ }
+ }
}
//--- Slick slider overrides
.slick-slider * {
- outline: none;
+ outline: none;
}
.slick-disabled {
- opacity: 0.25; // Applied to arrows when not clickable
+ opacity: 0.25; // Applied to arrows when not clickable
}
.slick-arrow {
- display: inline-block;
- content: '';
- width: 25px;
- height: 25px;
- border-style: solid;
- border-color: #fff;
- border-width: 0 3px 3px 0;
- z-index: 2;
-
- &:before {
- display: none;
- }
+ display: inline-block;
+ content: '';
+ width: 25px;
+ height: 25px;
+ border-style: solid;
+ border-color: #fff;
+ border-width: 0 3px 3px 0;
+ z-index: 2;
+
+ &:before {
+ display: none;
+ }
}
.slick-next {
- transform: rotate(-45deg);
- right: 20px;
+ transform: rotate(-45deg);
+ right: 20px;
}
.slick-prev {
- transform: rotate(135deg);
- left: 20px;
+ transform: rotate(135deg);
+ left: 20px;
}