Skip to content

Commit 3b09fd7

Browse files
author
Prestarocket
committed
category block
1 parent af7a4d6 commit 3b09fd7

File tree

6 files changed

+43
-14
lines changed

6 files changed

+43
-14
lines changed

_dev/css/components/categories.scss

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,31 @@
4444

4545
.active_filters{
4646
background-color: $bg-dark;
47+
}
48+
49+
//block categories
50+
.block-categories a{
51+
color:$body-color;
52+
}
53+
.category-sub__item{
54+
display: block;
55+
width: 100%;
56+
}
57+
.category-sub__item--0{
58+
border-bottom: 1px solid $border-color;
59+
padding: $spacer/4 0;
60+
}
61+
.category-sub__item:not(.category-sub__item--0):not(.category-sub__item--1) {
62+
padding-left: $spacer/4;
63+
}
64+
.block-categories .collapse-icons .remove {
65+
display: none;
66+
}
67+
.block-categories .collapse-icons[aria-expanded=true] {
68+
&.remove{
69+
display: block;
70+
}
71+
&.add{
72+
display: none;
73+
}
4774
}

_dev/css/components/utilities.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,7 @@ img[data-lazy] {
33
}
44
.text-underline{
55
text-decoration: underline;
6+
}
7+
.cursor-pointer{
8+
cursor: pointer;
69
}

_dev/css/partials/_commons.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,4 +324,5 @@ custom-file-label.selected:after{
324324
//home content spacing
325325
.page-home > *{
326326
margin-bottom: $spacer * .75;
327-
}
327+
}
328+

_dev/css/partials/custom_variables.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ $product-thumb-wrap-height: $product-thumb-height + $product-thumb-margin *
3838
//prices
3939
$regular-price-font-size: $font-size-base * .875;
4040
$regular-price-font-weight: 700;
41-
$regular-price-color: $gray-600;
41+
$regular-price-color: $gray-700;
4242
$price-color: $black;
4343
$product-price-discount-color: $tertiary;
4444
$product-regular-price-font-size: $font-size-base * 1.25;
@@ -53,7 +53,7 @@ $social-share-bg-color: $gray-300;
5353

5454
//main menu
5555
$menu-topitem-font-size: $font-size-base;
56-
$menu-topitem-color: #7a7a7a;
56+
$menu-topitem-color: $gray-800;
5757
$menu-item-padding: $spacer/2;
5858
$menu-item-border-color: $border-color;
5959
$menu-sub-mobile-bg-color: $wrapper-bg;

assets/css/theme.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

modules/ps_categorytree/views/templates/hook/ps_categorytree.tpl

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -28,26 +28,23 @@
2828
{if $nodes|count}
2929
<ul class="category-sub-menu">
3030
{foreach from=$nodes item=node}
31-
<li data-depth="{$depth}">
31+
<li data-depth="{$depth}" class="category-sub__item category-sub__item--{$depth}{if $depth===0} clearfix{/if}">
3232
{if $depth===0}
33-
<a href="{$node.link}">{$node.name}</a>
33+
<a href="{$node.link}" {if $node.children}class="float-left"{/if}>{$node.name}</a>
3434
{if $node.children}
35-
<div class="navbar-toggler collapse-icons" data-toggle="collapse" data-target="#exCollapsingNavbar{$node.id}">
35+
<div class="float-right navbar-toggler collapse-icons" data-toggle="collapse" data-target="#exCollapsingNavbar{$node.id}">
3636
<i class="material-icons add">&#xE145;</i>
3737
<i class="material-icons remove">&#xE15B;</i>
3838
</div>
39-
<div class="collapse" id="exCollapsingNavbar{$node.id}">
39+
<div class="collapse float-left clearfix w-100" id="exCollapsingNavbar{$node.id}">
4040
{categories nodes=$node.children depth=$depth+1}
4141
</div>
4242
{/if}
4343
{else}
4444
<a class="category-sub-link" href="{$node.link}">{$node.name}</a>
4545
{if $node.children}
46-
<span class="arrows" data-toggle="collapse" data-target="#exCollapsingNavbar{$node.id}">
47-
<i class="material-icons arrow-right">&#xE315;</i>
48-
<i class="material-icons arrow-down">&#xE313;</i>
49-
</span>
50-
<div class="collapse" id="exCollapsingNavbar{$node.id}">
46+
<i class="material-icons icon-collapse cursor-pointer" data-toggle="collapse" data-target="#exCollapsingNavbar{$node.id}">&#xE313;</i>
47+
<div class="collapse float-left clearfix w-100" id="exCollapsingNavbar{$node.id}">
5148
{categories nodes=$node.children depth=$depth+1}
5249
</div>
5350
{/if}
@@ -61,7 +58,8 @@
6158

6259
<div class="block-categories d-none d-md-block">
6360
<ul class="category-top-menu">
64-
<li><a class="text-uppercase h6" href="{$categories.link nofilter}">{$categories.name}</a></li>
61+
<li><a class="text-uppercase h5" href="{$categories.link nofilter}">{$categories.name}</a></li>
6562
<li>{categories nodes=$categories.children}</li>
6663
</ul>
64+
<div class="clearfix"></div>
6765
</div>

0 commit comments

Comments
 (0)