ltsecurityinc安防产品在线商城代码
This commit is contained in:
+135
@@ -0,0 +1,135 @@
|
||||
// /**
|
||||
// * Olegnax Layeren Navigation
|
||||
// * Copyright (c) Olegnax. All rights reserved.
|
||||
// */
|
||||
|
||||
@import '_noui-slider.less';
|
||||
|
||||
//
|
||||
// Variables
|
||||
// _____________________________________________
|
||||
|
||||
@css-preloader-color: #000000;
|
||||
@css-preloader-size: 35px;
|
||||
@css-preloader-border-size: 4px;
|
||||
|
||||
//
|
||||
// Common
|
||||
// _____________________________________________
|
||||
|
||||
& when (@media-common = true) {
|
||||
|
||||
.column.main .products.products-grid,
|
||||
.column.main .products.products-list,
|
||||
.column.main .products-grid.grid,
|
||||
.sidebar.sidebar-main .block.filter {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.ox-product-nav {
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
z-index: 100;
|
||||
background: rgba(255, 255, 255, 0.5);
|
||||
top:0;
|
||||
left:0;
|
||||
|
||||
&.ox-product-nav-page {
|
||||
position: fixed;
|
||||
z-index: 99999;
|
||||
}
|
||||
|
||||
.ox-product-nav__loader {
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
top: 50%;
|
||||
transform: translate3d(-50%, -50%, 0);
|
||||
}
|
||||
|
||||
&.ox-product-nav__loader--magento {
|
||||
.ox-product-nav__loader {
|
||||
.lib-loading();
|
||||
width: @loader-icon__width;
|
||||
height: @loader-icon__height;
|
||||
margin-top: 0;
|
||||
}
|
||||
}
|
||||
|
||||
&.ox-product-nav__loader--css {
|
||||
.ox-product-nav__loader {
|
||||
display: block;
|
||||
width: @css-preloader-size;
|
||||
height: @css-preloader-size;
|
||||
border: @css-preloader-border-size solid rgba(0, 0, 0, 0);
|
||||
border-radius: @css-preloader-size;
|
||||
border-left: @css-preloader-border-size solid @css-preloader-color;
|
||||
border-right: @css-preloader-border-size solid @css-preloader-color;
|
||||
border-top: @css-preloader-border-size solid @css-preloader-color;
|
||||
animation: spin .65s infinite linear;
|
||||
transition: all 600ms ease-in-out;
|
||||
margin-left: -17px;
|
||||
margin-top: -17px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.filter-options-content{
|
||||
.item {
|
||||
&.item-price-slider {
|
||||
display: block;
|
||||
padding-right: 3px;
|
||||
}
|
||||
&[class*='ox-item-level-']{
|
||||
padding-left: 30px;
|
||||
}
|
||||
&.ox-item-level-,
|
||||
&.ox-item-level-0{
|
||||
padding-left: 0;
|
||||
}
|
||||
&.ox-item-level-1{
|
||||
padding-left: 12px;
|
||||
}
|
||||
&.ox-item-level-2{
|
||||
padding-left: 24px;
|
||||
}
|
||||
}
|
||||
.ox-layered__items--checkbox{
|
||||
.item{
|
||||
input{
|
||||
position: absolute;
|
||||
opacity: 0;
|
||||
cursor: pointer;
|
||||
height: 0;
|
||||
width: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
.ox-price-filter__values {
|
||||
text-align: left;
|
||||
overflow: hidden;
|
||||
|
||||
.ox-slider-min {
|
||||
float: left;
|
||||
}
|
||||
|
||||
.ox-slider-max {
|
||||
float: right;
|
||||
}
|
||||
|
||||
.ox-slider-max,
|
||||
.ox-slider-min {
|
||||
opacity: 0.6;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes spin {
|
||||
from {
|
||||
transform: rotate(0deg);
|
||||
}
|
||||
to {
|
||||
transform: rotate(360deg);
|
||||
}
|
||||
}
|
||||
}
|
||||
+425
@@ -0,0 +1,425 @@
|
||||
// /**
|
||||
// * Olegnax Layeren Navigation - noUiSlider
|
||||
// * Copyright (c) Olegnax. All rights reserved.
|
||||
// */
|
||||
|
||||
@main_color: #ffe51e;
|
||||
|
||||
//
|
||||
// Common
|
||||
// _____________________________________________
|
||||
|
||||
& when (@media-common = true) {
|
||||
/* Offset direction
|
||||
*/
|
||||
|
||||
html:not([dir="rtl"]) .filter-options-content .noUi-horizontal .noUi-origin {
|
||||
left: auto;
|
||||
right: 0;
|
||||
}
|
||||
html:not([dir="rtl"]) .filter-options-content .noUi-horizontal .noUi-handle {
|
||||
right: -6px;
|
||||
left: auto;
|
||||
}
|
||||
.filter-options-content{
|
||||
.noUi-target,
|
||||
.noUi-target * {
|
||||
-webkit-touch-callout: none;
|
||||
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
||||
-webkit-user-select: none;
|
||||
-ms-touch-action: none;
|
||||
touch-action: none;
|
||||
-ms-user-select: none;
|
||||
-moz-user-select: none;
|
||||
user-select: none;
|
||||
-moz-box-sizing: border-box;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.noUi-target {
|
||||
position: relative;
|
||||
direction: ltr;
|
||||
&.noUi-horizontal{
|
||||
margin: 10px 6px 45px;
|
||||
}
|
||||
}
|
||||
.noUi-base,
|
||||
.noUi-connects {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
/* Wrapper for all connect elements.
|
||||
*/
|
||||
|
||||
.noUi-connects {
|
||||
overflow: hidden;
|
||||
z-index: 0;
|
||||
}
|
||||
|
||||
.noUi-connect,
|
||||
.noUi-origin {
|
||||
will-change: transform;
|
||||
position: absolute;
|
||||
z-index: 1;
|
||||
top: 0;
|
||||
left: 0;
|
||||
-ms-transform-origin: 0 0;
|
||||
-webkit-transform-origin: 0 0;
|
||||
-webkit-transform-style: preserve-3d;
|
||||
transform-origin: 0 0;
|
||||
transform-style: flat;
|
||||
}
|
||||
|
||||
.noUi-connect {
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.noUi-origin {
|
||||
height: 10%;
|
||||
width: 10%;
|
||||
}
|
||||
|
||||
/* Give origins 0 height/width so they don't interfere with clicking the
|
||||
* connect elements.
|
||||
*/
|
||||
|
||||
.noUi-vertical .noUi-origin {
|
||||
width: 0;
|
||||
}
|
||||
|
||||
.noUi-horizontal .noUi-origin {
|
||||
height: 0;
|
||||
}
|
||||
|
||||
.noUi-handle {
|
||||
-webkit-backface-visibility: hidden;
|
||||
backface-visibility: hidden;
|
||||
position: absolute;
|
||||
}
|
||||
|
||||
.noUi-touch-area {
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.noUi-state-tap .noUi-connect,
|
||||
.noUi-state-tap .noUi-origin {
|
||||
-webkit-transition: transform 0.3s;
|
||||
transition: transform 0.3s;
|
||||
}
|
||||
|
||||
.noUi-state-drag * {
|
||||
cursor: inherit !important;
|
||||
}
|
||||
|
||||
/* Slider size and handle placement;
|
||||
*/
|
||||
|
||||
.noUi-horizontal {
|
||||
height: 18px;
|
||||
}
|
||||
|
||||
.noUi-horizontal .noUi-handle {
|
||||
width: 12px;
|
||||
height: 18px;
|
||||
left: -6px;
|
||||
top: -6px;
|
||||
cursor: w-resize;
|
||||
}
|
||||
|
||||
.noUi-vertical {
|
||||
width: 18px;
|
||||
}
|
||||
|
||||
.noUi-vertical .noUi-handle {
|
||||
width: 28px;
|
||||
height: 34px;
|
||||
left: -6px;
|
||||
top: -17px;
|
||||
}
|
||||
|
||||
/* Styling;
|
||||
* Giving the connect element a border radius causes issues with using transform: scale
|
||||
*/
|
||||
|
||||
.noUi-target {
|
||||
background: #e4e4e4;
|
||||
border-radius: 0;
|
||||
border: none;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.noUi-connects {
|
||||
border-radius: 0;
|
||||
}
|
||||
|
||||
.noUi-connect {
|
||||
background: @main_color;
|
||||
}
|
||||
|
||||
/* Handles and cursors;
|
||||
*/
|
||||
|
||||
.noUi-draggable {
|
||||
cursor: ew-resize;
|
||||
}
|
||||
.ox-price-filter__values{
|
||||
display: none;
|
||||
}
|
||||
|
||||
.noUi-vertical .noUi-draggable {
|
||||
cursor: ns-resize;
|
||||
}
|
||||
|
||||
.noUi-handle {
|
||||
border: none;
|
||||
border-radius: 0;
|
||||
background: #000000;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.noUi-handle{
|
||||
.noUi-tooltip{
|
||||
opacity:0;
|
||||
transition:opacity 200ms ease;
|
||||
}
|
||||
&.noUi-active,
|
||||
&:hover{
|
||||
.noUi-tooltip{
|
||||
opacity:1;
|
||||
}
|
||||
}
|
||||
}
|
||||
/*
|
||||
.noUi-active {
|
||||
background: @main_color;
|
||||
}*/
|
||||
|
||||
/* Handle stripes;
|
||||
*/
|
||||
|
||||
/*
|
||||
.noUi-handle:before,
|
||||
.noUi-handle:after {
|
||||
content: "";
|
||||
display: block;
|
||||
position: absolute;
|
||||
height: 14px;
|
||||
width: 1px;
|
||||
background: #E8E7E6;
|
||||
left: 14px;
|
||||
top: 6px;
|
||||
}*/
|
||||
|
||||
.noUi-handle:after {
|
||||
left: 17px;
|
||||
}
|
||||
|
||||
.noUi-vertical .noUi-handle:before,
|
||||
.noUi-vertical .noUi-handle:after {
|
||||
width: 14px;
|
||||
height: 1px;
|
||||
left: 6px;
|
||||
top: 14px;
|
||||
}
|
||||
|
||||
.noUi-vertical .noUi-handle:after {
|
||||
top: 17px;
|
||||
}
|
||||
|
||||
/* Disabled state;
|
||||
*/
|
||||
|
||||
[disabled] .noUi-connect {
|
||||
background: #B8B8B8;
|
||||
}
|
||||
|
||||
[disabled].noUi-target,
|
||||
[disabled].noUi-handle,
|
||||
[disabled] .noUi-handle {
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
/* Base;
|
||||
*
|
||||
*/
|
||||
.noUi-pips,
|
||||
.noUi-pips * {
|
||||
-moz-box-sizing: border-box;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.noUi-pips {
|
||||
position: absolute;
|
||||
color: #999;
|
||||
}
|
||||
|
||||
/* Values;
|
||||
*
|
||||
*/
|
||||
|
||||
.noUi-value {
|
||||
position: absolute;
|
||||
white-space: nowrap;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.noUi-value-sub {
|
||||
color: #ccc;
|
||||
font-size: 10px;
|
||||
}
|
||||
|
||||
/* Markings;
|
||||
*
|
||||
*/
|
||||
|
||||
.noUi-marker {
|
||||
position: absolute;
|
||||
background: #e4e4e4;
|
||||
}
|
||||
|
||||
.noUi-marker-sub {
|
||||
background: #AAA;
|
||||
}
|
||||
|
||||
.noUi-marker-large {
|
||||
background: #e4e4e4;
|
||||
}
|
||||
|
||||
/* Horizontal layout;
|
||||
*
|
||||
*/
|
||||
|
||||
.noUi-pips-horizontal {
|
||||
padding: 10px 0;
|
||||
height: 35px;
|
||||
top: 100%;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.noUi-value-horizontal {
|
||||
-webkit-transform: translate(0, 17px);
|
||||
transform: translate(0, 17px);
|
||||
margin-left: -3px;
|
||||
}
|
||||
.noUi-pips-horizontal{
|
||||
.noUi-value-horizontal:last-child {
|
||||
-webkit-transform: translate(-100%, 17px);
|
||||
transform: translate(-100%, 17px);
|
||||
margin-left: 3px;
|
||||
}
|
||||
}
|
||||
.noUi-rtl .noUi-value-horizontal {
|
||||
-webkit-transform: translate(50%, 50%);
|
||||
transform: translate(50%, 50%);
|
||||
}
|
||||
|
||||
.noUi-marker-horizontal.noUi-marker {
|
||||
margin-left: -1px;
|
||||
width: 2px;
|
||||
height: 5px;
|
||||
}
|
||||
|
||||
.noUi-marker-horizontal.noUi-marker-sub {
|
||||
height: 10px;
|
||||
}
|
||||
|
||||
.noUi-marker-horizontal.noUi-marker-large {
|
||||
height: 12px;
|
||||
}
|
||||
|
||||
/* Vertical layout;
|
||||
*
|
||||
*/
|
||||
|
||||
.noUi-pips-vertical {
|
||||
padding: 0 10px;
|
||||
height: 100%;
|
||||
top: 0;
|
||||
left: 100%;
|
||||
}
|
||||
|
||||
.noUi-value-vertical {
|
||||
-webkit-transform: translate(0, -50%);
|
||||
transform: translate(0, -50%);
|
||||
padding-left: 25px;
|
||||
}
|
||||
|
||||
.noUi-rtl .noUi-value-vertical {
|
||||
-webkit-transform: translate(0, 50%);
|
||||
transform: translate(0, 50%);
|
||||
}
|
||||
|
||||
.noUi-marker-vertical.noUi-marker {
|
||||
width: 5px;
|
||||
height: 2px;
|
||||
margin-top: -1px;
|
||||
}
|
||||
|
||||
.noUi-marker-vertical.noUi-marker-sub {
|
||||
width: 10px;
|
||||
}
|
||||
|
||||
.noUi-marker-vertical.noUi-marker-large {
|
||||
width: 15px;
|
||||
}
|
||||
|
||||
.noUi-tooltip {
|
||||
display: block;
|
||||
position: absolute;
|
||||
border: none;
|
||||
border-radius: 0;
|
||||
background: #000;
|
||||
color: #fff;
|
||||
padding: 5px 6px;
|
||||
line-height: 1;
|
||||
text-align: center;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.noUi-horizontal .noUi-tooltip {
|
||||
-webkit-transform: translate(-50%, 0);
|
||||
transform: translate(-50%, 0);
|
||||
left: 50%;
|
||||
bottom: 110%;
|
||||
}
|
||||
|
||||
.noUi-vertical .noUi-tooltip {
|
||||
-webkit-transform: translate(0, -50%);
|
||||
transform: translate(0, -50%);
|
||||
top: 50%;
|
||||
right: 120%;
|
||||
}
|
||||
/* hide pips options */
|
||||
.hide-pips{
|
||||
.noUi-pips{
|
||||
&.noUi-pips-horizontal{
|
||||
padding: 15px 0 0 0;
|
||||
}
|
||||
.noUi-value-horizontal{
|
||||
-webkit-transform: none;
|
||||
transform: none;
|
||||
}
|
||||
.noUi-marker{
|
||||
display:none;
|
||||
}
|
||||
}
|
||||
}
|
||||
/* always show tooltips */
|
||||
.tooltip-always-show{
|
||||
.noUi-handle{
|
||||
.noUi-tooltip{
|
||||
opacity:1;
|
||||
}
|
||||
}
|
||||
noUi-target.noUi-horizontal{
|
||||
margin-top:20px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user