ltsecurityinc安防产品在线商城代码
This commit is contained in:
+16
@@ -0,0 +1,16 @@
|
||||
<?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">
|
||||
<body>
|
||||
<referenceBlock name="catalog.leftnav">
|
||||
<action method="setTemplate">
|
||||
<argument name="template" xsi:type="string">Magento_LayeredNavigation::layer/view_leftnav.phtml</argument>
|
||||
</action>
|
||||
</referenceBlock>
|
||||
</body>
|
||||
</page>
|
||||
app/design/frontend/Olegnax/athlete2/Magento_LayeredNavigation/layout/catalogsearch_result_index.xml
Executable
+16
@@ -0,0 +1,16 @@
|
||||
<?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">
|
||||
<body>
|
||||
<referenceBlock name="catalogsearch.leftnav">
|
||||
<action method="setTemplate">
|
||||
<argument name="template" xsi:type="string">Magento_LayeredNavigation::layer/view_leftnav.phtml</argument>
|
||||
</action>
|
||||
</referenceBlock>
|
||||
</body>
|
||||
</page>
|
||||
Executable
+38
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
|
||||
// @codingStandardsIgnoreFile
|
||||
|
||||
?>
|
||||
<?php
|
||||
/** @var \Magento\LayeredNavigation\Block\Navigation\FilterRenderer $block */
|
||||
/** @var \Magento\Framework\Escaper $escaper */
|
||||
/** @var \Magento\Framework\Locale\LocaleFormatter $localeFormatter */
|
||||
/** @var \Magento\LayeredNavigation\ViewModel\Layer\Filter $viewModel */
|
||||
$viewModel = $block->getData('product_layer_view_model');
|
||||
?>
|
||||
|
||||
<ol class="items">
|
||||
<?php foreach ($filterItems as $filterItem): ?>
|
||||
<li class="item">
|
||||
<?php if ($filterItem->getCount() > 0): ?>
|
||||
<a href="<?= $block->escapeUrl($filterItem->getUrl()) ?>" rel="nofollow">
|
||||
<?= /* @escapeNotVerified */ $filterItem->getLabel() ?>
|
||||
</a>
|
||||
<?php if ($viewModel->shouldDisplayProductCountOnLayer()): ?>
|
||||
<span class="count"><?= /* @noEscape */ $localeFormatter->formatNumber((int) $filterItem->getCount()) ?><span class="filter-count-label">
|
||||
<?php if ($filterItem->getCount() == 1):?> <?= /* @escapeNotVerified */ __('item') ?><?php else:?> <?= /* @escapeNotVerified */ __('items') ?><?php endif;?></span></span>
|
||||
<?php endif; ?>
|
||||
<?php else:?>
|
||||
<strong><?= /* @escapeNotVerified */ $filterItem->getLabel() ?></strong>
|
||||
<?php if ($viewModel->shouldDisplayProductCountOnLayer()): ?>
|
||||
<span class="count"><?= /* @noEscape */ $localeFormatter->formatNumber((int) $filterItem->getCount()) ?><span class="filter-count-label">
|
||||
<?php if ($filterItem->getCount() == 1):?><?= /* @escapeNotVerified */ __('item') ?><?php else:?><?= /* @escapeNotVerified */ __('items') ?><?php endif;?></span></span>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
</li>
|
||||
<?php endforeach ?>
|
||||
</ol>
|
||||
Executable
+54
@@ -0,0 +1,54 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
|
||||
// @codingStandardsIgnoreFile
|
||||
?>
|
||||
<?php
|
||||
/**
|
||||
* Category layered navigation state
|
||||
*
|
||||
* @var $block \Magento\LayeredNavigation\Block\Navigation\State
|
||||
*/
|
||||
?>
|
||||
<?php $_filters = $block->getActiveFilters() ?>
|
||||
<?php if (!empty($_filters)): ?>
|
||||
<div class="filter-current collapsible open">
|
||||
<strong class="block-subtitle filter-current-subtitle"
|
||||
role="heading"
|
||||
aria-level="2"
|
||||
data-role="title"
|
||||
data-count="<?= count($_filters) ?>"><?= /* @escapeNotVerified */ __('Now Shopping by') ?>
|
||||
<span class="toggle-minus"><span></span></span></strong>
|
||||
<ol class="items ox-toggle-content">
|
||||
<?php foreach ($_filters as $_filter): ?>
|
||||
<li class="item">
|
||||
<span class="filter-label"><?= $block->escapeHtml(__($_filter->getName())) ?></span>
|
||||
<span class="filter-value"><?= /* @escapeNotVerified */ $block->stripTags($_filter->getLabel()) ?></span>
|
||||
<?php
|
||||
$clearLinkUrl = $_filter->getClearLinkUrl();
|
||||
$currentFilterName = $block->escapeHtml(__($_filter->getName())) . " " . $block->stripTags($_filter->getLabel());
|
||||
if ($clearLinkUrl):
|
||||
?>
|
||||
<a class="action previous" href="<?= /* @escapeNotVerified */ $_filter->getRemoveUrl() ?>"
|
||||
title="<?= /* @escapeNotVerified */ __('Previous') ?>">
|
||||
<span><?= /* @escapeNotVerified */ __('Previous') ?></span>
|
||||
</a>
|
||||
<a class="action remove"
|
||||
title="<?= $block->escapeHtml($_filter->getFilter()->getClearLinkText()) ?>"
|
||||
href="<?= /* @escapeNotVerified */ $clearLinkUrl ?>">
|
||||
<span><?= $block->escapeHtml($_filter->getFilter()->getClearLinkText()) ?></span>
|
||||
</a>
|
||||
<?php else: ?>
|
||||
<a class="action remove" href="<?= /* @escapeNotVerified */ $_filter->getRemoveUrl() ?>"
|
||||
title="<?= /* @escapeNotVerified */ $block->escapeHtml(__('Remove')) . " " . $currentFilterName ?>">
|
||||
<span><?= /* @escapeNotVerified */ __('Remove This Item') ?></span>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
</ol>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
Executable
+44
@@ -0,0 +1,44 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
|
||||
use Magento\LayeredNavigation\Block\Navigation;
|
||||
|
||||
?>
|
||||
<?php
|
||||
/**
|
||||
* Category layered navigation
|
||||
*
|
||||
* @var $block Navigation
|
||||
*/
|
||||
?>
|
||||
|
||||
<?php if ($block->canShowBlock()): ?>
|
||||
<div class="block filter">
|
||||
<div class="block-title filter-title">
|
||||
<strong><?= $block->escapeHtml(__('Shop By')) ?></strong>
|
||||
</div>
|
||||
|
||||
<div class="block-content filter-content">
|
||||
<?= $block->getChildHtml('state') ?>
|
||||
|
||||
<?php if ($block->getLayer()->getState()->getFilters()): ?>
|
||||
<div class="block-actions filter-actions">
|
||||
<a href="<?= $block->escapeUrl($block->getClearUrl()) ?>" class="action clear button filter-clear"><span><?= $block->escapeHtml(__('Clear All')) ?></span></a>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php foreach ($block->getFilters() as $filter): ?>
|
||||
<?php if ($filter->getItemsCount()): ?>
|
||||
<div class="filter-options collapsible">
|
||||
<div class="filter-options-title"><strong><?= $block->escapeHtml(__($filter->getName())) ?></strong><div class="toggle-minus"><span></span></div></div>
|
||||
<div class="filter-options-content" style="display:none;"><?= /* @noEscape */ $block->getChildBlock('renderer')->render($filter) ?></div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php endforeach; ?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
Executable
+44
@@ -0,0 +1,44 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
|
||||
use Magento\LayeredNavigation\Block\Navigation;
|
||||
|
||||
?>
|
||||
<?php
|
||||
/**
|
||||
* Category layered navigation
|
||||
*
|
||||
* @var $block Navigation
|
||||
*/
|
||||
?>
|
||||
|
||||
<?php if ($block->canShowBlock()): ?>
|
||||
<div class="block filter filters-slideout-content ox-move-item ox-move-item-filtersslideout">
|
||||
<div class="block-title filter-title">
|
||||
<strong><?= $block->escapeHtml(__('Shop By')) ?></strong>
|
||||
</div>
|
||||
|
||||
<div class="block-content filter-content">
|
||||
<?= $block->getChildHtml('state') ?>
|
||||
|
||||
<?php if ($block->getLayer()->getState()->getFilters()): ?>
|
||||
<div class="block-actions filter-actions">
|
||||
<a href="<?= $block->escapeUrl($block->getClearUrl()) ?>" class="action clear button filter-clear"><span><?= $block->escapeHtml(__('Clear All')) ?></span></a>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php foreach ($block->getFilters() as $filter): ?>
|
||||
<?php if ($filter->getItemsCount()): ?>
|
||||
<div class="filter-options collapsible <?php if(!$this->helper( 'Olegnax\Athlete2\Helper\Helper' )->getConfig('athlete2_settings/products_listing/filters_closed')){ ?>open<?php } ?>">
|
||||
<div class="filter-options-title"><strong><?= $block->escapeHtml(__($filter->getName())) ?></strong><div class="toggle-minus"><span></span></div></div>
|
||||
<div class="filter-options-content"><?= /* @noEscape */ $block->getChildBlock('renderer')->render($filter) ?></div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php endforeach; ?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
Executable
+674
@@ -0,0 +1,674 @@
|
||||
// /**
|
||||
// * Copyright © Magento, Inc. All rights reserved.
|
||||
// * See COPYING.txt for license details.
|
||||
// */
|
||||
|
||||
//
|
||||
// Common
|
||||
// _____________________________________________
|
||||
|
||||
& when (@media-common = true) {
|
||||
.page-layout-1column-fullwidth,
|
||||
.page-layout-1column{
|
||||
.filter {
|
||||
&.block {
|
||||
display:none;
|
||||
}
|
||||
}
|
||||
}
|
||||
.ox-slideout{
|
||||
.filter {
|
||||
&.block {
|
||||
display:block;
|
||||
&.ox-block-filter{
|
||||
padding: 35px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
.sidebar-nobg{
|
||||
.filter {
|
||||
&.block {
|
||||
.content{
|
||||
padding:0;
|
||||
border-top: none;
|
||||
background-color: transparent;
|
||||
margin-bottom: 23px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
.filter {
|
||||
&.block {
|
||||
margin-bottom: 0;
|
||||
> .title{
|
||||
display:none;
|
||||
}
|
||||
.content{
|
||||
margin: 0;
|
||||
border: 0;
|
||||
padding: 20px;
|
||||
border-top: 6px solid #ffe51e;
|
||||
background-color: #f8f8f8;
|
||||
margin-bottom: 15px;
|
||||
dl.options{
|
||||
margin:0;
|
||||
dt{
|
||||
.ox-toggle-title();
|
||||
}
|
||||
dd{
|
||||
margin: 0;
|
||||
padding-top: 17px;
|
||||
font-family: @tiny-font;
|
||||
font-size: 13px;
|
||||
line-height: 16px;
|
||||
li {
|
||||
a {
|
||||
margin-left: -5px;
|
||||
margin-right: -5px;
|
||||
padding: 5px 8px 4px;
|
||||
display: inline-block;
|
||||
line-height:1.3;
|
||||
|
||||
&:hover {
|
||||
background-color: #000000;
|
||||
color:#ffffff;
|
||||
text-decoration: none;
|
||||
|
||||
& + .count {
|
||||
background-color: @color-gray91;
|
||||
color:#333333;
|
||||
-webkit-transition: all 10ms ease-in-out;
|
||||
-moz-transition: all 10ms ease-in-out;
|
||||
-o-transition: all 10ms ease-in-out;
|
||||
transition: all 10ms ease-in-out;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.count {
|
||||
.lib-css(color, #adadad);
|
||||
padding: 5px 8px 4px;
|
||||
float: right;
|
||||
line-height:16px;
|
||||
-webkit-transition: all 600ms ease-in-out;
|
||||
-moz-transition: all 600ms ease-in-out;
|
||||
-o-transition: all 600ms ease-in-out;
|
||||
transition: all 600ms ease-in-out;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&-title {
|
||||
strong {
|
||||
display:none;
|
||||
}
|
||||
}
|
||||
|
||||
.block-subtitle {
|
||||
.lib-heading(h5);
|
||||
font-weight: @font-weight__black;
|
||||
letter-spacing: -0.03em;
|
||||
text-transform:uppercase;
|
||||
line-height: 1;
|
||||
margin: 0;
|
||||
display: block;
|
||||
padding: 0 0 14px;
|
||||
}
|
||||
.subtitle,
|
||||
&-subtitle {
|
||||
display: none;
|
||||
}
|
||||
|
||||
&-current {
|
||||
margin: 0;
|
||||
.toggle-minus{
|
||||
.ox-toggle-minus();
|
||||
margin-left: auto;
|
||||
flex: 0 0 24px;
|
||||
margin-left:10px;
|
||||
order: 2;
|
||||
}
|
||||
&-subtitle {
|
||||
.ox-toggle-title();
|
||||
&:hover {
|
||||
.toggle-minus{
|
||||
.ox-toggle-minus-hover();
|
||||
}
|
||||
}
|
||||
}
|
||||
&.open {
|
||||
.toggle-minus {
|
||||
.ox-toggle-minus-opened();
|
||||
}
|
||||
}
|
||||
.items {
|
||||
display:block;
|
||||
padding: @indent__xs @indent__s;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.item {
|
||||
position: relative;
|
||||
font-weight: @font-weight__bold;
|
||||
background: #f8f8f8;
|
||||
padding: 5px 10px 5px 40px;
|
||||
color: #000000;
|
||||
display: inline-block;
|
||||
margin-right: 10px;
|
||||
margin-bottom: 4px;
|
||||
.filter-label{
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
.filter &-subtitle {
|
||||
border: none;
|
||||
display: block;
|
||||
padding-bottom: 14px;
|
||||
}
|
||||
|
||||
.action.remove {
|
||||
.lib-icon-font(
|
||||
@icon-remove,
|
||||
@_icon-font-size: 10px,
|
||||
@_icon-font-line-height: 30px,
|
||||
@_icon-font-text-hide: true,
|
||||
@_icon-font-color: #ffffff,
|
||||
@_icon-font-color-hover: #000000,
|
||||
@_icon-font-color-active: #000000
|
||||
);
|
||||
|
||||
left: 0;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
width: 100%;
|
||||
&:hover{
|
||||
&:before{
|
||||
background: @main-color;
|
||||
-webkit-transition: all 10ms ease-in-out;
|
||||
-moz-transition: all 10ms ease-in-out;
|
||||
-o-transition: all 10ms ease-in-out;
|
||||
transition: all 10ms ease-in-out;
|
||||
}
|
||||
}
|
||||
&:before{
|
||||
width: 32px;
|
||||
font-weight: @font-weight__black;
|
||||
background: #000000;
|
||||
-webkit-transition: all 600ms ease-in-out;
|
||||
-moz-transition: all 600ms ease-in-out;
|
||||
-o-transition: all 600ms ease-in-out;
|
||||
transition: all 600ms ease-in-out;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&-actions {
|
||||
margin-bottom: @indent__m;
|
||||
padding: 0 @indent__s;
|
||||
}
|
||||
|
||||
&-label {
|
||||
font-weight: @font-weight__bold;
|
||||
|
||||
&:after {
|
||||
content: ': ';
|
||||
}
|
||||
}
|
||||
|
||||
&-options {
|
||||
margin: 0;
|
||||
border: 0;
|
||||
padding: 20px;
|
||||
border-top: 6px solid @main-color;
|
||||
background-color: #f8f8f8;
|
||||
margin-bottom: 15px;
|
||||
|
||||
&.open {
|
||||
.toggle-minus {
|
||||
.ox-toggle-minus-opened();
|
||||
}
|
||||
}
|
||||
&-item {
|
||||
border-bottom: @border-width__base solid @border-color__base;
|
||||
padding-bottom: @indent__s;
|
||||
}
|
||||
|
||||
&-title {
|
||||
.ox-toggle-title();
|
||||
.toggle-minus{
|
||||
.ox-toggle-minus();
|
||||
}
|
||||
|
||||
&:hover {
|
||||
.toggle-minus{
|
||||
.ox-toggle-minus-hover();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&-content {
|
||||
margin: 0;
|
||||
padding-top:17px;
|
||||
font-family: @tiny-font;
|
||||
font-size: 13px;
|
||||
line-height: 16px;
|
||||
.item {
|
||||
.lib-vendor-prefix-display(flex);
|
||||
line-height: 1.5em;
|
||||
margin: @indent__s 0;
|
||||
input {
|
||||
margin: 6px 7px 0 0;
|
||||
top: 0;
|
||||
}
|
||||
.ox-checkbox {
|
||||
width:16px;
|
||||
height: 16px;
|
||||
position:relative;
|
||||
line-height: 0;
|
||||
display: inline-block;
|
||||
border: 2px solid;
|
||||
vertical-align: text-top;
|
||||
margin: 0 7px 0 0;
|
||||
cursor:pointer;
|
||||
&:after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
display: none;
|
||||
left: 2px;
|
||||
top: 6px;
|
||||
width: 4px;
|
||||
height: 2px;
|
||||
transform: rotate(45deg);
|
||||
background: currentColor;
|
||||
}
|
||||
&:before{
|
||||
content: "";
|
||||
position: absolute;
|
||||
display: none;
|
||||
left: 4px;
|
||||
top: 5px;
|
||||
width: 6px;
|
||||
height: 2px;
|
||||
transform: rotate(-45deg);
|
||||
background: currentColor;
|
||||
}
|
||||
}
|
||||
input:checked + label {
|
||||
.ox-checkbox{
|
||||
&:before,
|
||||
&:after {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
.ui-slider,
|
||||
.ox-price-slider{
|
||||
height: 6px;
|
||||
background: #e4e4e4;
|
||||
-webkit-border-radius: 0;
|
||||
border-radius: 0;
|
||||
margin: 10px 5px 15px;
|
||||
.ui-slider-handle{
|
||||
-webkit-transition: none;
|
||||
-moz-transition: none;
|
||||
-o-transition: none;
|
||||
transition: none;
|
||||
position: absolute;
|
||||
z-index: 2;
|
||||
cursor: w-resize;
|
||||
top: -4px;
|
||||
background: #000;
|
||||
height: 14px;
|
||||
width: 10px;
|
||||
line-height: 0;
|
||||
padding: 0;
|
||||
-webkit-border-radius: 0;
|
||||
border-radius: 0;
|
||||
&:hover{
|
||||
background: #000;
|
||||
}
|
||||
}
|
||||
.ui-slider-range{
|
||||
background: @main-color;
|
||||
height: 6px;
|
||||
position:relative;
|
||||
}
|
||||
}
|
||||
.ox-seleted-item{
|
||||
.label,
|
||||
a {
|
||||
background-color: #000000;
|
||||
color:#ffffff;
|
||||
}
|
||||
}
|
||||
.ox-layered__items--checkbox .label,
|
||||
a {
|
||||
margin-left: -5px;
|
||||
margin-right: -5px;
|
||||
padding: 5px 8px 4px;
|
||||
display: inline-block;
|
||||
line-height:1.3;
|
||||
-webkit-transition: all 600ms ease-in-out;
|
||||
-moz-transition: all 600ms ease-in-out;
|
||||
-o-transition: all 600ms ease-in-out;
|
||||
transition: all 600ms ease-in-out;
|
||||
&:hover {
|
||||
background-color: #000000;
|
||||
color:#ffffff;
|
||||
text-decoration: none;
|
||||
-webkit-transition: all 10ms ease-in-out;
|
||||
-moz-transition: all 10ms ease-in-out;
|
||||
-o-transition: all 10ms ease-in-out;
|
||||
transition: all 10ms ease-in-out;
|
||||
}
|
||||
&.swatch-option-link-layered{
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
|
||||
.count {
|
||||
.lib-css(color, #adadad);
|
||||
padding: 5px 8px 4px;
|
||||
float: right;
|
||||
line-height:16px;
|
||||
margin-left:auto;
|
||||
-webkit-transition: all 600ms ease-in-out;
|
||||
-moz-transition: all 600ms ease-in-out;
|
||||
-o-transition: all 600ms ease-in-out;
|
||||
transition: all 600ms ease-in-out;
|
||||
}
|
||||
.ox-layered__items--checkbox label,
|
||||
a {
|
||||
&:hover {
|
||||
& + .count {
|
||||
background-color: @color-gray91;
|
||||
color:#333333;
|
||||
-webkit-transition: all 10ms ease-in-out;
|
||||
-moz-transition: all 10ms ease-in-out;
|
||||
-o-transition: all 10ms ease-in-out;
|
||||
transition: all 10ms ease-in-out;
|
||||
}
|
||||
}
|
||||
}
|
||||
.filter-count-label {
|
||||
&:extend(.abs-visually-hidden all);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
.sidebar-nobg{
|
||||
.filter-actions {
|
||||
.action.clear,
|
||||
.filter-clear {
|
||||
background: none;
|
||||
color: inherit;
|
||||
border-bottom: 2px solid;
|
||||
padding: 0;
|
||||
margin-top: 10px;
|
||||
&:hover{
|
||||
background: none;
|
||||
}
|
||||
&:after{
|
||||
content:none;
|
||||
}
|
||||
}
|
||||
}
|
||||
.filter-current {
|
||||
.action.remove {
|
||||
&:hover:before,
|
||||
&:before {
|
||||
background: none;
|
||||
color: inherit;
|
||||
}
|
||||
&:after{
|
||||
background: none;
|
||||
}
|
||||
}
|
||||
.item{
|
||||
padding: 5px 10px 5px 32px;
|
||||
}
|
||||
}
|
||||
.filter-options{
|
||||
padding: 23px 0;
|
||||
//border-top: 1px solid #e4e4e4;
|
||||
background-color: transparent;
|
||||
margin-bottom: 0;
|
||||
&:first-child{
|
||||
border:none;
|
||||
padding-top: 0;
|
||||
}
|
||||
}
|
||||
.filter-options-content{
|
||||
font-family: inherit;
|
||||
}
|
||||
}
|
||||
.ox-slideout{
|
||||
.filters-slideout-content{
|
||||
padding:35px;
|
||||
display:block;
|
||||
position:relative;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// Mobile
|
||||
// _____________________________________________
|
||||
.media-width(@extremum, @break) when (@extremum = 'max') and (@break = @screen__xs) {
|
||||
.ox-slideout{
|
||||
.filters-slideout-content{
|
||||
padding:25px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.media-width(@extremum, @break) when (@extremum = 'max') and (@break = @screen__m) {
|
||||
.filters-slideout-content{
|
||||
display:none;
|
||||
}
|
||||
|
||||
.filter {
|
||||
&.active {
|
||||
position: relative;
|
||||
visibility: visible;
|
||||
z-index: 99;
|
||||
|
||||
.filter-options-item:last-child {
|
||||
margin-bottom: @indent__xl;
|
||||
}
|
||||
|
||||
.filter-title {
|
||||
border-bottom: 1px solid @border-color__base;
|
||||
height: 48px;
|
||||
left: 0;
|
||||
position: fixed;
|
||||
right: 0;
|
||||
top: 0;
|
||||
z-index: 2;
|
||||
|
||||
strong {
|
||||
.lib-css(box-shadow, none);
|
||||
background: none;
|
||||
border: 0;
|
||||
color: transparent;
|
||||
left: auto;
|
||||
right: 3px;
|
||||
top: 10px;
|
||||
/*.lib-icon-font(
|
||||
@icon-remove,
|
||||
@_icon-font-color: @text__color__muted,
|
||||
@_icon-font-size: 16px,
|
||||
@_icon-font-position: after
|
||||
);*/
|
||||
}
|
||||
}
|
||||
|
||||
.filter-subtitle {
|
||||
//.lib-css(background, @toolbar-background);
|
||||
display: block;
|
||||
height: 50px;
|
||||
left: 0;
|
||||
line-height: 32px;
|
||||
position: fixed;
|
||||
right: 0;
|
||||
top: 0;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.filter-options {
|
||||
.lib-css(background, @color-white);
|
||||
bottom: 0;
|
||||
display: block;
|
||||
left: 0;
|
||||
overflow: scroll;
|
||||
position: fixed;
|
||||
right: 0;
|
||||
top: 50px;
|
||||
z-index: 10;
|
||||
}
|
||||
}
|
||||
&-actions{
|
||||
margin-bottom:0;
|
||||
}
|
||||
&-options{
|
||||
&:last-child{
|
||||
margin-bottom:0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.filter {
|
||||
& &-subtitle {
|
||||
font-size: 20px;
|
||||
font-weight: @font-weight__light;
|
||||
}
|
||||
|
||||
}
|
||||
.filter .filter-current {
|
||||
padding: 20px 10px;
|
||||
min-height: 52px;
|
||||
background: #f8f8f8;
|
||||
.lib-vendor-prefix-display(flex);
|
||||
-webkit-flex-flow: row wrap;
|
||||
-ms-flex-flow: row wrap;
|
||||
flex-flow: row wrap;
|
||||
-webkit-align-items: center;
|
||||
-ms-flex-align: center;
|
||||
align-items: center;
|
||||
margin-bottom: 15px;
|
||||
.items {
|
||||
/*display: none;*/
|
||||
margin: 5px 0 0 10px;
|
||||
padding: 10px 0 0 0;
|
||||
width: 100%;
|
||||
border-top: none;
|
||||
}
|
||||
|
||||
&-subtitle {
|
||||
min-height: 24px;
|
||||
padding: 0 10px;
|
||||
position: relative;
|
||||
text-transform: uppercase;
|
||||
z-index: 1;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
word-break: initial;
|
||||
&:after {
|
||||
content: ' (' attr(data-count) ')';
|
||||
margin-left: 5px;
|
||||
margin-right:auto;
|
||||
order: 1;
|
||||
}
|
||||
}
|
||||
|
||||
&.active {
|
||||
/*.toggle-minus{
|
||||
.ox-toggle-minus-opened();
|
||||
}*/
|
||||
.items {
|
||||
display: block;
|
||||
}
|
||||
|
||||
& + .block-actions {
|
||||
display: block;
|
||||
padding: 0 20px 20px 20px;
|
||||
background: #f8f8f8;
|
||||
}
|
||||
}
|
||||
|
||||
& + .block-actions {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
.sidebar-nobg {
|
||||
.filter {
|
||||
.filter-current {
|
||||
padding: 8px 0 23px 0;
|
||||
background-color: transparent;
|
||||
margin-bottom: 0;
|
||||
.items{
|
||||
margin-left: 0;
|
||||
}
|
||||
}
|
||||
.filter-current-subtitle{
|
||||
padding: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
.filter-no-options {
|
||||
.filter-title {
|
||||
&:before {
|
||||
background: rgba(255,255,255,.5);
|
||||
content: '';
|
||||
display: block;
|
||||
height: 40px;
|
||||
left: -15px;
|
||||
margin-top: -60px;
|
||||
position: relative;
|
||||
width: 100px;
|
||||
z-index: 99;
|
||||
}
|
||||
}
|
||||
|
||||
.filter-content {
|
||||
margin-bottom: @indent__base;
|
||||
}
|
||||
}
|
||||
|
||||
.page-with-filter {
|
||||
.columns {
|
||||
.sidebar-main {
|
||||
margin:0;
|
||||
.lib-vendor-prefix-order(0);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.media-width(@extremum, @break) when (@extremum = 'min') and (@break = @screen__m) {
|
||||
|
||||
.filter {
|
||||
&.block {
|
||||
display:block;
|
||||
}
|
||||
&-title {
|
||||
display: none;
|
||||
}
|
||||
|
||||
&-actions {
|
||||
margin-bottom: @indent__l;
|
||||
}
|
||||
&-subtitle {
|
||||
display: block;
|
||||
position: static;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user