Skip to content

Commit 86ff35d

Browse files
author
Oleksandr Dubovyk
committed
MAGETWO-46895: Category with 1 column layout has Layered Navigation UI broken
- Fixed filters are displayed in Footer - Fixed filter element is displayed on several rows at the same time - Fixed the second row is displayed with a tab - Fixed paddings are missed inside the LN block
1 parent d0d6a94 commit 86ff35d

File tree

2 files changed

+41
-8
lines changed
  • app/design/frontend/Magento

2 files changed

+41
-8
lines changed

app/design/frontend/Magento/blank/Magento_LayeredNavigation/web/css/source/_module.less

Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,34 @@
2121
}
2222
}
2323

24-
.filter-subtitle {
25-
display: none;
24+
25+
26+
.block-subtitle {
27+
display: inline-block;
28+
margin-bottom: @indent__s;
29+
}
30+
31+
.filter-current {
32+
33+
.item {
34+
margin-bottom: @indent__s;
35+
}
36+
37+
.filter-label {
38+
display: block;
39+
font-weight: bold;
40+
41+
&:after {
42+
content: ':'
43+
}
44+
}
45+
46+
+ .filter-actions {
47+
margin-bottom: @indent__l;
48+
}
2649
}
27-
50+
51+
2852
.filter-options-content {
2953
.filter-count-label {
3054
&:extend(.abs-visually-hidden all);

app/design/frontend/Magento/luma/Magento_LayeredNavigation/web/css/source/_module.less

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@
9595

9696
&-label {
9797
font-weight: @font-weight__bold;
98+
9899
&:after {
99100
content: ': ';
100101
}
@@ -123,6 +124,7 @@
123124
text-transform: uppercase;
124125
word-break: break-all;
125126
z-index: 1;
127+
126128
.lib-icon-font(
127129
@_icon-font-content: @icon-down,
128130
@_icon-font-size: 13px,
@@ -304,6 +306,7 @@
304306
position: relative;
305307
text-transform: uppercase;
306308
z-index: 1;
309+
307310
.lib-icon-font(
308311
@_icon-font-content: @icon-down,
309312
@_icon-font-size: 13px,
@@ -408,8 +411,8 @@
408411
}
409412

410413
&-subtitle {
411-
position: static;
412414
display: block;
415+
position: static;
413416
}
414417
}
415418

@@ -448,11 +451,15 @@
448451
border: 0;
449452
display: inline-block;
450453
margin-right: @indent__m;
454+
position: relative;
451455

452456
&.active {
453-
position: relative;
454457
z-index: 2;
455458

459+
.filter-options-content {
460+
visibility: visible;
461+
}
462+
456463
&:hover {
457464
z-index: 3;
458465
}
@@ -463,15 +470,14 @@
463470
bottom: -1px;
464471
content: '';
465472
display: block;
466-
left: 50%;
467-
margin-left: -@indent__base;
473+
left: @indent__xs;
468474
position: absolute;
469475
z-index: 3;
470476
}
471477

472478
&:after {
473479
.lib-css(border-bottom-color, @color-white);
474-
margin-top:2px;
480+
margin-top: 2px;
475481
z-index: 4;
476482
}
477483
}
@@ -496,6 +502,7 @@
496502
padding: @indent__xs 0;
497503
position: absolute;
498504
top: 100%;
505+
visibility: hidden;
499506
width: 180px;
500507
z-index: 2;
501508

@@ -537,6 +544,7 @@
537544

538545
.item {
539546
margin-right: @indent__m;
547+
white-space: nowrap;
540548
}
541549

542550
.action.remove {
@@ -546,6 +554,7 @@
546554

547555
&-actions {
548556
display: inline;
557+
white-space: nowrap;
549558

550559
& ~ .filter-options {
551560
margin-top: @indent__m;

0 commit comments

Comments
 (0)