After successfully creating a navigation menu for desktop, I am now faced with the challenge of resizing the nav to fit mobile and tablet screens. Specifically, I want to add a class of "dropdown" to the top level list item if it contains children on smaller screens only (i.e., tablets or mobile devices). The desktop view of the navigation is working fine as it is.
The structure of my HTML code is as follows:
<nav>
<ul>
<li class="mobile">
<a href="#">
<span>Favourites</span>
</a>
</li>
<li class="dashboard">
<a href="#">
<span>Dashboard</span>
</a>
</li>
<li class="fitness">
<a href="#">
<span>Fitness</span>
</a>
<ul>
<li>
<a href="#">Stuart & Elise</a>
</li>
<li>
<a href="#">Workouts</a>
</li>
... (other nested list items)
</ul>
</li>
... (additional list items)
</ul>
</nav>
I am utilizing Bootstrap and LESS for this project. My question is, how can I implement a "chevron" or "accordion" class specifically for smaller devices?