How can I achieve a rounded border radius effect in the opposite direction on hover for menu items in the menubar?
I would like this effect to be applied when hovering over menu items.
https://i.sstatic.net/sLlsN.png
Currently, my menubar looks like the following:
https://i.sstatic.net/p0o7e.png
This is the CSS code I am using:
sidebar-menu .dropdown-toggle:hover, .sidebar-menu .show>.dropdown-toggle {
background: #f8f9fa;
color: #2daab8;
border-top-left-radius: 50px;
border-bottom-left-radius: 50px;
border-bottom-right-radius: 70px;
border-top-right-radius: 70px;
width: 250px;
}
HTML Code:
<div class="left-side-bar lftsideBar">
<div class="brand-logo">
<a href="{% url 'home' %}">
<img src="{% static 'website/vendors/images/Rectangle_33.png' %}" alt="" />
</a>
</div>
<div class="close-sidebar" data-toggle="left-sidebar-close">
<i class="ion-close-round"></i>
</div>
<div class="menu-block customscroll">
<div class="sidebar-menu">
<ul id="accordion-menu menucls" style="margin-left: 25px !important;margin-bottom:250px;">
<li>
<a href="{% url 'home' %}" class="dropdown-toggle no-arrow">
<span class="micon dw dw-house-1"></span><span class="mtext">Home</span>
</a>
</li>
<li>
<a href="#" class="dropdown-toggle no-arrow">
<span class="micon dw dw-add-user"></span><span class="mtext">Client</span>
</a>
</li>
<li>
<a href="#" class="dropdown-toggle no-arrow">
<span class="micon dw dw-add-user"></span><span class="mtext">Medical</span>
</a>
</li>
<li>
<a href="#" class="dropdown-toggle no-arrow">
<span class="micon dw dw-add-user"></span><span class="mtext">Social</span>
</a>
</li>
<li>
<a href="#" class="dropdown-toggle no-arrow">
<span class="micon dw dw-add-user"></span><span class="mtext">Transportation</span>
</a>
</li>
<li>
<a href="#" class="dropdown-toggle no-arrow">
<span class="micon dw dw-add-user"></span><span class="mtext">Activity</span>
</a>
</li>
<li>
<a href="#" class="dropdown-toggle no-arrow">
<span class="micon dw dw-add-user"></span><span class="mtext">Food</span>
</a>
</li>
<li>
<a href="#" class="dropdown-toggle no-arrow">
<span class="micon dw dw-add-user"></span><span class="mtext">Reports</span>
</a>
</li>
</ul>
</div>
</div>
Could you please advise me on which CSS properties need to be modified in order to achieve the design shown in screenshot-1 for each and every item in the menubar?