ltsecurityinc安防产品在线商城代码
This commit is contained in:
+18
@@ -0,0 +1,18 @@
|
||||
<?xml version="1.0"?>
|
||||
<!--
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
-->
|
||||
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
|
||||
<referenceContainer name="head.additional">
|
||||
<block name="ox_core_assets" class="Olegnax\Core\Block\SimpleTemplate" template="Olegnax_Core::assets.phtml"/>
|
||||
</referenceContainer>
|
||||
<body>
|
||||
<referenceContainer name="before.body.end">
|
||||
<block ifconfig="olegnax_core_settings/general/lazyload" class="Olegnax\Core\Block\SimpleTemplate" name="ox_core_lazy" template="Olegnax_Core::lazy_min.phtml"/>
|
||||
</referenceContainer>
|
||||
</body>
|
||||
</page>
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
var config = {
|
||||
paths: {
|
||||
'owl.carousel': 'Olegnax_Core/owl.carousel/owl.carousel.min',
|
||||
'OXowlCarousel': 'Olegnax_Core/owl.carousel'
|
||||
},
|
||||
shim: {
|
||||
'owl.carousel': {deps: ['jquery', 'jquery-ui-modules/widget']}
|
||||
}
|
||||
};
|
||||
if(window?.OX_OWL_DISABLE){
|
||||
delete config.paths['owl.carousel'];
|
||||
delete config.paths['OXowlCarousel'];
|
||||
delete config.shim['owl.carousel'];
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
<?php
|
||||
if ($this->getConfig('olegnax_core_settings/general/owlcarousel')) { ?>
|
||||
<link href="<?= $block->getViewFileUrl('Olegnax_Core::owl.carousel/assets/owl.carousel.css'); ?>" rel="stylesheet" media="print" onload="this.media='all'" crossorigin="anonymous">
|
||||
<?php } ?>
|
||||
|
||||
+120
@@ -0,0 +1,120 @@
|
||||
<script type="text/javascript">
|
||||
(function () {
|
||||
function LazyLoad () {
|
||||
this.settings = {
|
||||
src: 'data-original',
|
||||
srcset: 'data-originalset',
|
||||
selector: '.lazy',
|
||||
selectorClass: 'lazy',
|
||||
loadClass: 'lazy-loader',
|
||||
loadEvent: 'lazyLoaded.oxlazy',
|
||||
root: null,
|
||||
rootMargin: '0px',
|
||||
threshold: 0,
|
||||
debouncer: 500
|
||||
}
|
||||
this.images = document.querySelectorAll(this.settings.selector)
|
||||
this.observer = null
|
||||
let self = this
|
||||
this.load = (event) => {
|
||||
let image = event.target,
|
||||
parent = image.parentElement
|
||||
if (image.src == image.getAttribute(this.settings.src)) {
|
||||
image.classList.remove(self.settings.selectorClass)
|
||||
parent.classList.remove(self.settings.loadClass)
|
||||
let _parent = parent.closest('.product-item-photo')
|
||||
if (_parent) {
|
||||
_parent.classList.remove(self.settings.loadClass)
|
||||
}
|
||||
image.dispatchEvent(new Event(self.settings.loadEvent))
|
||||
if (this.observer) {
|
||||
this.observer.unobserve(image)
|
||||
}
|
||||
}
|
||||
}
|
||||
this.destroy = () => {
|
||||
this.observer.disconnect()
|
||||
}
|
||||
this.oldLoadImages = () => {
|
||||
if (!this.settings) {
|
||||
return
|
||||
}
|
||||
let debouncer = function (func, timeout) {
|
||||
var timeoutID
|
||||
return function () {
|
||||
var scope = this,
|
||||
args = arguments
|
||||
clearTimeout(timeoutID)
|
||||
timeoutID = setTimeout(function () {
|
||||
func.apply(scope, Array.prototype.slice.call(args))
|
||||
}, timeout)
|
||||
}
|
||||
}
|
||||
window.addEventListener('scroll', debouncer(self.oldInit, self.settings.debouncer))
|
||||
window.addEventListener('resize', debouncer(self.oldInit, self.settings.debouncer))
|
||||
self.oldInit()
|
||||
}
|
||||
this.oldInit = () => {
|
||||
let height = window.visualViewport ? window.visualViewport.height : window.innerHeight
|
||||
Array.prototype.forEach.call(this.images, function (image) {
|
||||
if (image.classList.contains(self.settings.selectorClass)) {
|
||||
let bounding = image.getBoundingClientRect()
|
||||
if (bounding.top != bounding.bottom && 0 < bounding.bottom && height > bounding.top) {
|
||||
self.applyImage(image)
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
this.applyImage = (image) => {
|
||||
let src = image.getAttribute(self.settings.src),
|
||||
srcset = image.getAttribute(self.settings.srcset)
|
||||
if ('img' === image.tagName.toLowerCase()) {
|
||||
image.onload = self.load
|
||||
if (src) {
|
||||
image.src = src
|
||||
}
|
||||
if (srcset) {
|
||||
image.srcset = srcset
|
||||
}
|
||||
} else {
|
||||
image.style.backgroundImage = 'url(\'' + src + '\')'
|
||||
}
|
||||
}
|
||||
this.init = () => {
|
||||
if (!window.IntersectionObserver) {
|
||||
this.oldLoadImages()
|
||||
return
|
||||
}
|
||||
try {
|
||||
this.observer = new IntersectionObserver(function (entries, observer) {
|
||||
Array.prototype.forEach.call(entries, function (entry) {
|
||||
if (entry.isIntersecting) {
|
||||
self.applyImage(entry.target)
|
||||
}
|
||||
})
|
||||
}, {
|
||||
rootMargin: this.settings.rootMargin,
|
||||
threshold: [this.settings.threshold]
|
||||
})
|
||||
Array.prototype.forEach.call(this.images, function (image) {
|
||||
self.observer.observe(image)
|
||||
})
|
||||
} catch (e) {
|
||||
console.info(e)
|
||||
this.oldLoadImages()
|
||||
}
|
||||
}
|
||||
this.init()
|
||||
}
|
||||
|
||||
window.lazyLoad = function () {
|
||||
return new LazyLoad()
|
||||
}
|
||||
})()
|
||||
document.addEventListener('DOMContentLoaded', function () {
|
||||
lazyLoad()
|
||||
}, false)
|
||||
require(['jquery'], function ($) {
|
||||
$(document.body).on('contentUpdated contentUpdated.oxlazy', lazyLoad)
|
||||
})
|
||||
</script>
|
||||
@@ -0,0 +1 @@
|
||||
<script type="text/javascript">!function(){function a(){this.settings={src:"data-original",srcset:"data-originalset",selector:".lazy",selectorClass:"lazy",loadClass:"lazy-loader",loadEvent:"lazyLoaded.oxlazy",root:null,rootMargin:"0px",threshold:0,debouncer:500},this.images=document.querySelectorAll(this.settings.selector),this.observer=null;let a=this;this.load=e=>{let b=e.target,c=b.parentElement;if(b.src==b.getAttribute(this.settings.src)){b.classList.remove(a.settings.selectorClass),c.classList.remove(a.settings.loadClass);let d=c.closest(".product-item-photo");d&&d.classList.remove(a.settings.loadClass),b.dispatchEvent(new Event(a.settings.loadEvent)),this.observer&&this.observer.unobserve(b)}},this.destroy=()=>{this.observer.disconnect()},this.oldLoadImages=()=>{if(!this.settings)return;let b=function(a,b){var c;return function(){var d=this,e=arguments;clearTimeout(c),c=setTimeout(function(){a.apply(d,Array.prototype.slice.call(e))},b)}};window.addEventListener("scroll",b(a.oldInit,a.settings.debouncer)),window.addEventListener("resize",b(a.oldInit,a.settings.debouncer)),a.oldInit()},this.oldInit=()=>{let b=window.visualViewport?window.visualViewport.height:window.innerHeight;Array.prototype.forEach.call(this.images,function(d){if(d.classList.contains(a.settings.selectorClass)){let c=d.getBoundingClientRect();c.top!=c.bottom&&0<c.bottom&&b>c.top&&a.applyImage(d)}})},this.applyImage=b=>{let c=b.getAttribute(a.settings.src),d=b.getAttribute(a.settings.srcset);"img"===b.tagName.toLowerCase()?(b.onload=a.load,c&&(b.src=c),d&&(b.srcset=d)):b.style.backgroundImage="url('"+c+"')"},this.init=()=>{if(!window.IntersectionObserver){this.oldLoadImages();return}try{this.observer=new IntersectionObserver(function(b,c){Array.prototype.forEach.call(b,function(b){b.isIntersecting&&a.applyImage(b.target)})},{rootMargin:this.settings.rootMargin,threshold:[this.settings.threshold]}),Array.prototype.forEach.call(this.images,function(b){a.observer.observe(b)})}catch(b){console.info(b),this.oldLoadImages()}},this.init()}window.lazyLoad=function(){return new a}}(),document.addEventListener("DOMContentLoaded",function(){lazyLoad()},!1),require(["jquery"],function(a){a(document.body).on("contentUpdated contentUpdated.oxlazy",lazyLoad)})</script>
|
||||
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
/**
|
||||
* @author Olegnax
|
||||
* @package Olegnax_Core
|
||||
* @copyright Copyright (c) 2023 Olegnax (http://olegnax.com/). All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
|
||||
use Magento\Framework\View\Element\Template;
|
||||
use Olegnax\Core\Helper\Helper;
|
||||
/** @var Template $block */
|
||||
/** @var Helper $helper */
|
||||
$helper = $block->getData('helper');
|
||||
$mobile = $helper->isMobileTheme();
|
||||
?>
|
||||
<script>
|
||||
var OX_MOBILE = <?= $mobile ? 1 : 0 ?>,
|
||||
OX_PHOTOSWIPE = 1,
|
||||
OX_CATALOG_AJAX = <?= !$helper->getSystemValue('athlete2_settings/products_listing/catalog_ajax_add_to_cart') ? 1 : 0 ?>,
|
||||
OX_WAYPOINTS = <?= $helper->getSystemValue('athlete2_settings/general/waypoints') ? 1 : 0 ?>,
|
||||
OX_OWL_DISABLE = <?= !$helper->getModuleConfig('general/owlcarousel') ? 1 : 0 ?>,
|
||||
OX_OWL_OBS_DISABLE = false;
|
||||
</script>
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 68 B |
Binary file not shown.
|
After Width: | Height: | Size: 747 B |
@@ -0,0 +1,55 @@
|
||||
<svg id="athlete_preloader_image" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 44 3">
|
||||
<defs>
|
||||
<style type="text/css"><![CDATA[
|
||||
@keyframes athlete_preloader {
|
||||
0%{
|
||||
transform-origin:left;
|
||||
transform: scale(0, 1);
|
||||
}
|
||||
70% {
|
||||
transform-origin:left;
|
||||
transform: scale(1, 1);
|
||||
}
|
||||
70.01% {
|
||||
transform-origin:right;
|
||||
transform: scale(1, 1);
|
||||
}
|
||||
100% {
|
||||
transform-origin:right;
|
||||
transform: scale(0, 1);
|
||||
}
|
||||
}
|
||||
@-webkit-keyframes athlete_preloader {
|
||||
0%{
|
||||
-webkit-transform-origin:left;
|
||||
-webkit-transform: scale(0, 1);
|
||||
transform-origin:left;
|
||||
transform: scale(0, 1);
|
||||
}
|
||||
70% {
|
||||
-webkit-transform-origin:left;
|
||||
-webkit-transform: scale(1, 1);
|
||||
transform-origin:left;
|
||||
transform: scale(1, 1);
|
||||
}
|
||||
70.01% {
|
||||
-webkit-transform-origin:right;
|
||||
-webkit-transform: scale(1, 1);
|
||||
transform-origin:right;
|
||||
transform: scale(1, 1);
|
||||
}
|
||||
100% {
|
||||
-webkit-transform-origin:right;
|
||||
-webkit-transform: scale(0, 1);
|
||||
transform-origin:right;
|
||||
transform: scale(0, 1);
|
||||
}
|
||||
}
|
||||
.athlete_preloader_fill{
|
||||
transform-origin:left;
|
||||
animation: athlete_preloader 1s infinite;
|
||||
}
|
||||
]]></style>
|
||||
</defs>
|
||||
<rect width="44" height="3" class="athlete_preloader_fill"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.4 KiB |
+146
@@ -0,0 +1,146 @@
|
||||
define([
|
||||
'jquery',
|
||||
'jquery-ui-modules/widget',
|
||||
'jquery-ui-modules/core',
|
||||
'owl.carousel',
|
||||
], function ($) {
|
||||
'use strict';
|
||||
|
||||
$.widget('mage.OXowlCarousel', {
|
||||
options: {
|
||||
items: 3,
|
||||
loop: false,
|
||||
center: false,
|
||||
rewind: false,
|
||||
lazyLoad: true,
|
||||
checkVisibility: true,
|
||||
|
||||
mouseDrag: true,
|
||||
touchDrag: true,
|
||||
pullDrag: true,
|
||||
freeDrag: false,
|
||||
|
||||
margin: 0,
|
||||
stagePadding: 0,
|
||||
|
||||
merge: false,
|
||||
mergeFit: true,
|
||||
autoWidth: false,
|
||||
|
||||
startPosition: 0,
|
||||
rtl: false,
|
||||
|
||||
smartSpeed: 400,
|
||||
fluidSpeed: false,
|
||||
dragEndSpeed: false,
|
||||
|
||||
responsive: {},
|
||||
responsiveRefreshRate: 200,
|
||||
responsiveBaseElement: window,
|
||||
|
||||
fallbackEasing: 'swing',
|
||||
slideTransition: '',
|
||||
|
||||
info: false,
|
||||
|
||||
nestedItemSelector: false,
|
||||
itemElement: 'div',
|
||||
stageElement: 'div',
|
||||
|
||||
refreshClass: 'owl-refresh',
|
||||
loadedClass: 'owl-loaded',
|
||||
loadingClass: 'owl-loading',
|
||||
rtlClass: 'owl-rtl',
|
||||
responsiveClass: 'owl-responsive',
|
||||
dragClass: 'owl-drag',
|
||||
itemClass: 'owl-item',
|
||||
stageClass: 'owl-stage',
|
||||
stageOuterClass: 'owl-stage-outer',
|
||||
grabClass: 'owl-grab',
|
||||
wrapperSelectorClass: '.block.widget',
|
||||
|
||||
callbacks: true,
|
||||
observerLoad: !(window.hasOwnProperty('OX_OWL_OBS_DISABLE') ? OX_OWL_OBS_DISABLE : false)
|
||||
},
|
||||
|
||||
_create: function () {
|
||||
this.options.onInitialized = this.owlchanged;
|
||||
this.options.onChanged = this.owlchanged;
|
||||
this.options.onRefreshed = this.owlchanged;
|
||||
if (this.options.observerLoad) {
|
||||
this._loadObserver();
|
||||
} else {
|
||||
this._loadOwl();
|
||||
}
|
||||
},
|
||||
_loadObserver: function () {
|
||||
let _self = this;
|
||||
if (window.IntersectionObserver) {
|
||||
let observer = new IntersectionObserver(function (entries, observer) {
|
||||
Array.prototype.forEach.call(entries, function (entry) {
|
||||
if (entry.isIntersecting) {
|
||||
_self._loadOwl.call(_self);
|
||||
observer.unobserve(entry.target);
|
||||
}
|
||||
});
|
||||
}, {
|
||||
root: null,
|
||||
rootMargin: "0px",
|
||||
threshold: [0]
|
||||
});
|
||||
this.element.each(function (i, el) {
|
||||
observer.observe(el);
|
||||
});
|
||||
} else {
|
||||
let debouncer = function (func) {
|
||||
var timeoutID;
|
||||
return function () {
|
||||
var scope = this,
|
||||
args = arguments;
|
||||
clearTimeout(timeoutID);
|
||||
timeoutID = setTimeout(function () {
|
||||
func.apply(scope, Array.prototype.slice.call(args));
|
||||
}, 200);
|
||||
}
|
||||
};
|
||||
$(window).one('scroll resize', debouncer(function () {
|
||||
let height = window.visualViewport ? window.visualViewport.height : window.innerHeight;
|
||||
this.element.each(function (i, el) {
|
||||
let bounding = el.getBoundingClientRect();
|
||||
if (bounding.top != bounding.bottom && 0 < bounding.bottom && height > bounding.top) {
|
||||
_self._loadOwl.call(_self);
|
||||
}
|
||||
})
|
||||
}));
|
||||
}
|
||||
},
|
||||
_loadOwl: function () {
|
||||
this.element.find('picture.owl-lazy').removeClass('owl-lazy');
|
||||
this.element.owlCarousel(this.options);
|
||||
this.arrows();
|
||||
},
|
||||
owlchanged: function (event) {
|
||||
var $wraper = this.$element.closest(this.options.wrapperSelectorClass).eq(0);
|
||||
var current = this.current();
|
||||
$wraper.find('.ox-owl-nav').toggle(this.settings.items < this.items().length);
|
||||
var disable_nav_min = current === this.minimum();
|
||||
var disable_nav_max = current === this.maximum();
|
||||
if (this.settings.loop) {
|
||||
disable_nav_min = disable_nav_max = false;
|
||||
}
|
||||
$wraper.find('.ox-owl-next').toggleClass('disabled', disable_nav_max);
|
||||
$wraper.find('.ox-owl-prev').toggleClass('disabled', disable_nav_min);
|
||||
},
|
||||
arrows: function () {
|
||||
var $wraper = this.element.closest(this.options.wrapperSelectorClass).eq(0);
|
||||
$wraper.on('click', '.ox-owl-next', $.proxy(function () {
|
||||
this.element.trigger('next.owl.carousel');
|
||||
}, this));
|
||||
$wraper.on('click', '.ox-owl-prev', $.proxy(function () {
|
||||
this.element.trigger('prev.owl.carousel');
|
||||
}, this));
|
||||
}
|
||||
});
|
||||
|
||||
return $.mage.OXowlCarousel;
|
||||
});
|
||||
BIN
Binary file not shown.
|
After Width: | Height: | Size: 3.1 KiB |
+206
@@ -0,0 +1,206 @@
|
||||
/**
|
||||
* Owl Carousel v2.3.4
|
||||
* Copyright 2013-2018 David Deutsch
|
||||
* Licensed under: SEE LICENSE IN https://github.com/OwlCarousel2/OwlCarousel2/blob/master/LICENSE
|
||||
*/
|
||||
/*
|
||||
* Owl Carousel - Core
|
||||
*/
|
||||
.owl-carousel {
|
||||
width: 100%;
|
||||
-webkit-tap-highlight-color: transparent;
|
||||
/* position relative and z-index fix webkit rendering fonts issue */
|
||||
position: relative;
|
||||
z-index: 1; }
|
||||
.owl-carousel:not(.owl-loaded){
|
||||
display: flex!important;
|
||||
overflow: hidden;
|
||||
opacity: 0;
|
||||
visibility: hidden;
|
||||
}
|
||||
.owl-carousel:not(.owl-loaded) > *{
|
||||
display: block!important;
|
||||
opacity: 0;
|
||||
visibility: hidden;
|
||||
}
|
||||
.owl-carousel .owl-stage {
|
||||
position: relative;
|
||||
-ms-touch-action: pan-Y;
|
||||
touch-action: manipulation;
|
||||
-moz-backface-visibility: hidden;
|
||||
/* fix firefox animation glitch */ }
|
||||
.owl-carousel .owl-stage:after {
|
||||
content: ".";
|
||||
display: block;
|
||||
clear: both;
|
||||
visibility: hidden;
|
||||
line-height: 0;
|
||||
height: 0; }
|
||||
.owl-carousel .owl-stage-outer {
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
/* fix for flashing background */
|
||||
-webkit-transform: translate3d(0px, 0px, 0px); }
|
||||
.owl-carousel .owl-wrapper,
|
||||
.owl-carousel .product-item,
|
||||
.owl-carousel .owl-item {
|
||||
-webkit-backface-visibility: hidden;
|
||||
-moz-backface-visibility: hidden;
|
||||
-ms-backface-visibility: hidden;
|
||||
-webkit-transform: translate3d(0, 0, 0);
|
||||
-moz-transform: translate3d(0, 0, 0);
|
||||
-ms-transform: translate3d(0, 0, 0); }
|
||||
.owl-carousel .product-item,
|
||||
.owl-carousel .owl-item {
|
||||
position: relative;
|
||||
min-height: 1px;
|
||||
float: left;
|
||||
-webkit-backface-visibility: hidden;
|
||||
-webkit-tap-highlight-color: transparent;
|
||||
-webkit-touch-callout: none; }
|
||||
.owl-carousel .product-item img,
|
||||
.owl-carousel .owl-item img {
|
||||
display: block;
|
||||
width: 100%; }
|
||||
.owl-carousel .owl-nav.disabled,
|
||||
.owl-carousel .owl-dots.disabled {
|
||||
display: none; }
|
||||
.owl-carousel .owl-nav .owl-prev,
|
||||
.owl-carousel .owl-nav .owl-next,
|
||||
.owl-carousel .owl-dot {
|
||||
cursor: pointer;
|
||||
-webkit-user-select: none;
|
||||
-khtml-user-select: none;
|
||||
-moz-user-select: none;
|
||||
-ms-user-select: none;
|
||||
user-select: none; }
|
||||
.owl-carousel .owl-nav button.owl-prev,
|
||||
.owl-carousel .owl-nav button.owl-next,
|
||||
.owl-carousel button.owl-dot {
|
||||
background: none;
|
||||
color: inherit;
|
||||
border: none;
|
||||
padding: 0 !important;
|
||||
font: inherit; }
|
||||
.owl-carousel.owl-loaded {
|
||||
display: block; }
|
||||
.owl-carousel.owl-loading {
|
||||
opacity: 0;
|
||||
display: block; }
|
||||
.owl-carousel.owl-hidden {
|
||||
opacity: 0; }
|
||||
.owl-carousel.owl-refresh .product-item,
|
||||
.owl-carousel.owl-refresh .owl-item {
|
||||
visibility: hidden; }
|
||||
.owl-carousel.owl-drag .product-item,
|
||||
.owl-carousel.owl-drag .owl-item {
|
||||
-ms-touch-action: pan-y;
|
||||
touch-action: pan-y;
|
||||
-webkit-user-select: none;
|
||||
-moz-user-select: none;
|
||||
-ms-user-select: none;
|
||||
user-select: none; }
|
||||
.owl-carousel.owl-grab {
|
||||
cursor: move;
|
||||
cursor: grab; }
|
||||
.owl-carousel.owl-rtl {
|
||||
direction: rtl; }
|
||||
.owl-carousel.owl-rtl .product-item,
|
||||
.owl-carousel.owl-rtl .owl-item {
|
||||
float: right; }
|
||||
|
||||
/* No Js */
|
||||
.no-js .owl-carousel {
|
||||
display: block; }
|
||||
|
||||
/*
|
||||
* Owl Carousel - Animate Plugin
|
||||
*/
|
||||
.owl-carousel .animated {
|
||||
animation-duration: 1000ms;
|
||||
animation-fill-mode: both; }
|
||||
|
||||
.owl-carousel .owl-animated-in {
|
||||
z-index: 0; }
|
||||
|
||||
.owl-carousel .owl-animated-out {
|
||||
z-index: 1; }
|
||||
|
||||
.owl-carousel .fadeOut {
|
||||
animation-name: fadeOut; }
|
||||
|
||||
@keyframes fadeOut {
|
||||
0% {
|
||||
opacity: 1; }
|
||||
100% {
|
||||
opacity: 0; } }
|
||||
|
||||
/*
|
||||
* Owl Carousel - Auto Height Plugin
|
||||
*/
|
||||
.owl-height {
|
||||
transition: height 500ms ease-in-out; }
|
||||
|
||||
/*
|
||||
* Owl Carousel - Lazy Load Plugin
|
||||
*/
|
||||
.owl-carousel .product-item,
|
||||
.owl-carousel .owl-item {
|
||||
/**
|
||||
This is introduced due to a bug in IE11 where lazy loading combined with autoheight plugin causes a wrong
|
||||
calculation of the height of the owl-item that breaks page layouts
|
||||
*/ }
|
||||
.owl-carousel .product-item .owl-lazy,
|
||||
.owl-carousel .owl-item .owl-lazy {
|
||||
opacity: 0;
|
||||
transition: opacity 400ms ease; }
|
||||
.owl-carousel .product-item .owl-lazy[src^=""], .owl-carousel .product-item .owl-lazy:not([src]),
|
||||
.owl-carousel .owl-item .owl-lazy[src^=""], .owl-carousel .owl-item .owl-lazy:not([src]) {
|
||||
max-height: 0; }
|
||||
.owl-carousel .product-item img.owl-lazy,
|
||||
.owl-carousel .owl-item img.owl-lazy {
|
||||
transform-style: preserve-3d; }
|
||||
|
||||
/*
|
||||
* Owl Carousel - Video Plugin
|
||||
*/
|
||||
.owl-carousel .owl-video-wrapper {
|
||||
position: relative;
|
||||
height: 100%;
|
||||
background: #000; }
|
||||
|
||||
.owl-carousel .owl-video-play-icon {
|
||||
position: absolute;
|
||||
height: 80px;
|
||||
width: 80px;
|
||||
left: 50%;
|
||||
top: 50%;
|
||||
margin-left: -40px;
|
||||
margin-top: -40px;
|
||||
background: url("owl.video.play.png") no-repeat;
|
||||
cursor: pointer;
|
||||
z-index: 1;
|
||||
-webkit-backface-visibility: hidden;
|
||||
transition: transform 100ms ease; }
|
||||
|
||||
.owl-carousel .owl-video-play-icon:hover {
|
||||
-ms-transform: scale(1.3, 1.3);
|
||||
transform: scale(1.3, 1.3); }
|
||||
|
||||
.owl-carousel .owl-video-playing .owl-video-tn,
|
||||
.owl-carousel .owl-video-playing .owl-video-play-icon {
|
||||
display: none; }
|
||||
|
||||
.owl-carousel .owl-video-tn {
|
||||
opacity: 0;
|
||||
height: 100%;
|
||||
background-position: center center;
|
||||
background-repeat: no-repeat;
|
||||
background-size: contain;
|
||||
transition: opacity 400ms ease; }
|
||||
|
||||
.owl-carousel .owl-video-frame {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
height: 100%;
|
||||
width: 100%; }
|
||||
Vendored
Executable
+6
@@ -0,0 +1,6 @@
|
||||
/**
|
||||
* Owl Carousel v2.3.4
|
||||
* Copyright 2013-2018 David Deutsch
|
||||
* Licensed under: SEE LICENSE IN https://github.com/OwlCarousel2/OwlCarousel2/blob/master/LICENSE
|
||||
*/
|
||||
.owl-carousel{width:100%;-webkit-tap-highlight-color:transparent;position:relative;z-index:1}.owl-carousel:not(.owl-loaded){ display: flex!important; overflow: hidden; opacity: 0; visibility: hidden; } .owl-carousel:not(.owl-loaded) > *{ display: block!important; opacity: 0; visibility: hidden; }.owl-carousel .owl-stage{position:relative;-ms-touch-action:pan-Y;touch-action:manipulation;-moz-backface-visibility:hidden}.owl-carousel .owl-stage:after{content:".";display:block;clear:both;visibility:hidden;line-height:0;height:0}.owl-carousel .owl-stage-outer{position:relative;overflow:hidden;-webkit-transform:translate3d(0,0,0)}.owl-carousel .owl-item,.owl-carousel .owl-wrapper,.owl-carousel .product-item{-webkit-backface-visibility:hidden;-moz-backface-visibility:hidden;-ms-backface-visibility:hidden;-webkit-transform:translate3d(0,0,0);-moz-transform:translate3d(0,0,0);-ms-transform:translate3d(0,0,0)}.owl-carousel .owl-item,.owl-carousel .product-item{position:relative;min-height:1px;float:left;-webkit-backface-visibility:hidden;-webkit-tap-highlight-color:transparent;-webkit-touch-callout:none}.owl-carousel .owl-item img,.owl-carousel .product-item img{display:block;width:100%}.owl-carousel .owl-dots.disabled,.owl-carousel .owl-nav.disabled{display:none}.no-js .owl-carousel,.owl-carousel.owl-loaded{display:block}.owl-carousel .owl-dot,.owl-carousel .owl-nav .owl-next,.owl-carousel .owl-nav .owl-prev{cursor:pointer;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.owl-carousel .owl-nav button.owl-next,.owl-carousel .owl-nav button.owl-prev,.owl-carousel button.owl-dot{background:0 0;color:inherit;border:none;padding:0!important;font:inherit}.owl-carousel.owl-loading{opacity:0;display:block}.owl-carousel.owl-hidden{opacity:0}.owl-carousel.owl-refresh .owl-item,.owl-carousel.owl-refresh .product-item{visibility:hidden}.owl-carousel.owl-drag .owl-item,.owl-carousel.owl-drag .product-item{-ms-touch-action:pan-y;touch-action:pan-y;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.owl-carousel.owl-grab{cursor:move;cursor:grab}.owl-carousel.owl-rtl{direction:rtl}.owl-carousel.owl-rtl .owl-item,.owl-carousel.owl-rtl .product-item{float:right}.owl-carousel .animated{animation-duration:1s;animation-fill-mode:both}.owl-carousel .owl-animated-in{z-index:0}.owl-carousel .owl-animated-out{z-index:1}.owl-carousel .fadeOut{animation-name:fadeOut}@keyframes fadeOut{0%{opacity:1}100%{opacity:0}}.owl-height{transition:height .5s ease-in-out}.owl-carousel .owl-item .owl-lazy,.owl-carousel .product-item .owl-lazy{opacity:0;transition:opacity .4s ease}.owl-carousel .owl-item .owl-lazy:not([src]),.owl-carousel .owl-item .owl-lazy[src^=""],.owl-carousel .product-item .owl-lazy:not([src]),.owl-carousel .product-item .owl-lazy[src^=""]{max-height:0}.owl-carousel .owl-item img.owl-lazy,.owl-carousel .product-item img.owl-lazy{transform-style:preserve-3d}.owl-carousel .owl-video-wrapper{position:relative;height:100%;background:#000}.owl-carousel .owl-video-play-icon{position:absolute;height:80px;width:80px;left:50%;top:50%;margin-left:-40px;margin-top:-40px;background:url(owl.video.play.png) no-repeat;cursor:pointer;z-index:1;-webkit-backface-visibility:hidden;transition:transform .1s ease}.owl-carousel .owl-video-play-icon:hover{-ms-transform:scale(1.3,1.3);transform:scale(1.3,1.3)}.owl-carousel .owl-video-playing .owl-video-play-icon,.owl-carousel .owl-video-playing .owl-video-tn{display:none}.owl-carousel .owl-video-tn{opacity:0;height:100%;background-position:center center;background-repeat:no-repeat;background-size:contain;transition:opacity .4s ease}.owl-carousel .owl-video-frame{position:relative;z-index:1;height:100%;width:100%}
|
||||
BIN
Binary file not shown.
|
After Width: | Height: | Size: 4.9 KiB |
File diff suppressed because it is too large
Load Diff
+7
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user