<div class="
         gallery
         
             gallery--horizontal
     ">
    <div class="
             gallery__stage
             
                 gallery__stage--horizontal
         ">
        <div class="gallery__frame">
            <div class="lazyload-wrapper ">
                <img class="image lazyload " src="" data-src="/images/product/UFC_MMA_GLOVES.png" alt="">
            </div>

        </div>
    </div>
    <div class="gallery__nav
                    gallery__nav--horizontal
                
         ">
        <div class="gallery__thumb-arr">
            <svg class="
                     gallery__icon-arrow
                         gallery__icon-arrow--horizontal
            ">
                <use xlink:href="/images/icons-sprite.svg#angle-up"></use>
            </svg>
        </div>
        <div class="
                     gallery__thumb
                         gallery__thumb--active
                 ">
            <div class="lazyload-wrapper ">
                <img class="image lazyload " src="" data-src="/images/product/UFC_MMA_GLOVES.png" alt="">
            </div>

        </div>
        <div class="
                     gallery__thumb
                 ">
            <div class="lazyload-wrapper ">
                <img class="image lazyload " src="" data-src="/images/product/UFC_MMA_GLOVES.png" alt="">
            </div>

        </div>
        <div class="
                     gallery__thumb
                 ">
            <div class="lazyload-wrapper ">
                <img class="image lazyload " src="" data-src="/images/product/UFC_MMA_GLOVES.png" alt="">
            </div>

        </div>
        <div class="
                     gallery__thumb
                 ">
            <div class="lazyload-wrapper ">
                <img class="image lazyload " src="" data-src="/images/product/UFC_MMA_GLOVES.png" alt="">
            </div>

        </div>
        <div class="gallery__thumb-arr">
            <svg class="
                     gallery__icon-arrow
                         gallery__icon-arrow--horizontal
                 ">
                <use xlink:href="/images/icons-sprite.svg#angle-down"></use>
            </svg>
        </div>
    </div>
</div>
<div class="
         gallery
         {{ class }}
         {{#if typeHorizontal }}
             gallery--horizontal
         {{else}}
             gallery--vertical
         {{/if}}
     "
     {{{ attributes }}}
>
    <div class="
             gallery__stage
             {{ stage.class }}
             {{#if typeHorizontal }}
                 gallery__stage--horizontal
             {{else}}
                 gallery__stage--vertical
             {{/if}}
         "
    >
        <div class="gallery__frame">
            {{#if productLabel }}
                {{ render '@badge' productLabel }}
            {{/if}}
            {{ render '@image' imageMain }}
        </div>
    </div>
    <div class="gallery__nav
                {{#if typeHorizontal }}
                    gallery__nav--horizontal
                {{else}}
                    gallery__nav--vertical
                {{/if}}
                {{ nav.class }}
         "
   >
        <div class="gallery__thumb-arr">
            <svg class="
                     gallery__icon-arrow
                     {{#if typeHorizontal }}
                         gallery__icon-arrow--horizontal
                     {{else}}
                         gallery__icon-arrow--vertical
                     {{/if}}
            ">
                <use xlink:href="{{ svg 'angle-up' }}"></use>
            </svg>
        </div>
        {{#each thumbs }}
            <div class="
                     gallery__thumb
                     {{#if imageThumb.active}}
                         gallery__thumb--active
                     {{/if}}
                 "
            >
                {{ render '@image' imageThumb }}
            </div>
        {{/each}}
        <div class="gallery__thumb-arr">
            <svg class="
                     gallery__icon-arrow
                     {{#if typeHorizontal }}
                         gallery__icon-arrow--horizontal
                     {{else}}
                         gallery__icon-arrow--vertical
                     {{/if}}
                 "
            >
                <use xlink:href="{{ svg 'angle-down' }}"></use>
            </svg>
        </div>
    </div>
</div>
{
  "class": "",
  "typeHorizontal": true,
  "imageMain": {
    "dataSrc": "/images/product/UFC_MMA_GLOVES.png"
  },
  "thumbs": [
    {
      "imageThumb": {
        "dataSrc": "/images/product/UFC_MMA_GLOVES.png",
        "active": true
      }
    },
    {
      "imageThumb": {
        "dataSrc": "/images/product/UFC_MMA_GLOVES.png"
      }
    },
    {
      "imageThumb": {
        "dataSrc": "/images/product/UFC_MMA_GLOVES.png"
      }
    },
    {
      "imageThumb": {
        "dataSrc": "/images/product/UFC_MMA_GLOVES.png"
      }
    }
  ]
}
  • Content:
    .gallery {
        display: flex;
        flex-flow: nowrap;
        justify-content: flex-start;
        width: 100%;
        margin: 0;
        padding: 0;
        list-style-type: none;
        flex-direction: column;
        &--vertical {
            @include mq($screen-m) {
                flex-direction: row;
            }
        }
        &__frame {
            position: relative;
            background-color: #ecf5f4;
            padding: $spacer--1;
            margin-bottom: $spacer--15;
    
            & .lazyload-wrapper {
                background-color: transparent;
            }
        }
        &__stage {
            order: 1;
            margin-bottom: $spacer--medium;
            &--vertical {
                margin-bottom: 0;
                @include mq($screen-m) {
                    order: 2;
                    width: calc(100% - (#{$spacer--medium} + #{48px}));
                }
                @include mq($screen-l) {
                    width: calc(100% - (#{20px} + #{80px}));
                }
            }
            &--horizontal {
                order: 1;
            }
        }
        &__nav {
            order: 2;
            display: flex;
            align-items: center;
            &--vertical {
                @include mq($screen-m) {
                    margin-right: $spacer--medium;
                    flex-direction: column;
                    order: 1;
                }
                @include mq($screen-l) {
                    margin-right: $spacer--2;
                }
            }
        }
        &__thumb {
            background-color: #ecf5f4;
            padding: $spacer--05;
    
            overflow: hidden;
            margin-right: $spacer--medium;
            border: none;
            width: 48px;
            height: 48px;
            @include mq($screen-m) {
                margin-bottom: $spacer--medium;
                margin-right: 0;
            }
            @include mq($screen-l) {
                width: 80px;
                height: 80px;
            }
            &:hover,
            &:focus {
                cursor: pointer;
            }
            &--active {
                border: 1px solid $green;
            }
            & .lazyload-wrapper {
                background-color: transparent;
            }
        }
        &__thumb-arr {
            display: flex !important; // sass-lint:disable-line no-important
            justify-content: center;
            align-items: center;
            width: 48px;
            height: 48px;
            margin: 0 auto;
            &:hover,
            &:focus {
                cursor: pointer;
            }
        }
        &__icon-arrow {
            width: 12px;
            height: 12px;
            transform: rotate(-90deg);
            fill: $gray;
            &--small {
                width: 12px;
            }
            &--vertical {
                @include mq($screen-m) {
                    transform: none;
                }
            }
        }
        &__product-label {
            position: absolute;
            left: $spacer;
            top: $spacer--medium;
        }
    
        &-placeholder {
            position: relative;
    
            .loader {
                position: absolute;
            }
        }
    }
    
    .fotorama {
        &__thumb-border {
            border: 1px solid $red;
            border-radius: 5px;
        }
    
        &__fullscreen-icon {
            z-index: 1001;
        }
    
        &__thumb {
            cursor: pointer;
        }
    
        &__dot {
            height: 12px;
            width: 12px;
        }
    
        &__active {
            & .fotorama__dot {
                background-color: $red;
                border-color: $red;
            }
        }
    }
    .product-video.responsive,
    .product-video.responsive iframe {
        height: auto;
        min-height: 350px;
        @include mq($screen-l) {
            min-height: 500px;
        }
    }
    .video_placeholder {
        position: relative;
        overflow: hidden;
        padding-top: 56.25%;
        margin: 2rem 0 0;
    }
    
    .video_placeholder img {
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0;
        object-fit: cover
    }
    
    .video_placeholder iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border: 0;
        opacity: 0;
        transition: opacity 2.4s ease 0s;
    }
  • URL: /components/raw/gallery/_gallery.scss
  • Filesystem Path: build/components/03-modules/gallery/_gallery.scss
  • Size: 3.8 KB

There are no notes for this item.