Skip to content

Commit

Permalink
Fixed breadcrumb label
Browse files Browse the repository at this point in the history
  • Loading branch information
alothemes committed Dec 26, 2020
1 parent 57affbb commit 4997dd4
Show file tree
Hide file tree
Showing 2 changed files with 71 additions and 15 deletions.
2 changes: 1 addition & 1 deletion Block/Menu.php
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ public function getCatLabel($cat)
$html = '';
$label = explode(',', $cat->getMagicLabel());
foreach ($label as $lab) {
if($lab) $html .= '<span class="cat_label '.$lab.'">'.__(trim($lab)) .'</span>';
if($lab) $html .= '<span class="cat_label '.$lab.'" rel='.__(trim($lab)).'></span>';
}
return $html;
}
Expand Down
84 changes: 70 additions & 14 deletions view/frontend/web/css/source/_module.less
Original file line number Diff line number Diff line change
Expand Up @@ -362,20 +362,6 @@
margin: 0 0 0 3px;
position: absolute !important;
text-transform: uppercase;
&:after {
content: '';
position: absolute;
bottom: -5px;
left: 0;
width: 0;
height: 0;
border-style: solid;
border-bottom-color: transparent !important;
border-right-color: transparent !important;
border-right-width: 5px;
border-top-width: 5px;
display: none;
}
}
}
&:hover {
Expand Down Expand Up @@ -2080,4 +2066,74 @@
}
}
}
/*Zoe Trinh*/
body{
.magicmenu {
.nav-desktop {
.level0 {
span{
&.cat_label {
&:after {
width: 100%;
height: 100%;
line-height: 20px;
border: 0;
padding: 0;
display: block;
content: attr(rel);
text-align: center;
position: static;
}
}
}
}
}
}
ul{
&.nav-accordion {
li {
a {
span{
&.cat_label {
&:after {
width: 100%;
height: 100%;
line-height: 20px;
border: 0 ;
padding: 0;
display: block;
content: attr(rel);
text-align: center;
position: static;
}
}
}
}
}
}
}
.nav-sections {
.mean-nav {
li {
a {
span{
&.cat_label {
&:after {
width: 100%;
height: 100%;
line-height: 20px;
border: 0;
padding: 0;
display: block;
content: attr(rel);
text-align: center;
position: static;
}
}
}
}
}
}
}
}
}

0 comments on commit 4997dd4

Please sign in to comment.