added sub menu to homayon

master
A1Gard 1 day ago
parent 685afb3bcc
commit a9d3fb27e9

@ -103,6 +103,17 @@
<a href="{{$itm->webUrl()}}"> <a href="{{$itm->webUrl()}}">
{{$itm->name}} {{$itm->name}}
</a> </a>
@if($itm->children()->where('hide',false)->count() > 0)
<ul class="sub-sub-item">
@foreach($itm->children()->where('hide',false)->get() as $subItem)
<li>
<a href="{{$subItem->webUrl()}}">
{{$subItem->name}}
</a>
</li>
@endforeach
</ul>
@endif
</li> </li>
@endforeach @endforeach
</ul> </ul>

@ -199,6 +199,37 @@
} }
} }
.sub-menu-item{
li{
position: relative;
.sub-sub-item{
width: 200px;
display: none;
}
&:hover{
.sub-sub-item{
padding: 0;
border-radius: 7px;
position: absolute;
display: block;
inset-inline-start: 90%;
top: 0;
height: auto;
li{
border-radius: 7px;
margin: 0;
a{
border-radius: 7px !important;
}
}
}
}
}
}
/*-875px width*/ /*-875px width*/
@media (max-width: 875px) { @media (max-width: 875px) {
ul { ul {

Loading…
Cancel
Save