I have been using Zurb's Foundation to customize the navbar with my own styles, which has been successful so far. However, I encountered an issue with the responsive behavior of the navbar when the viewing container size changes. The navbar adds a second class "expanded" during this responsive change.
Before the responsive change:
<nav class="top-bar">
After the responsive change:
<nav class="top-bar expanded">
The custom styles I applied do not look good for the expanded navbar, and I am looking for a way to only apply styles when an element contains just one class, and not multiple classes. While it is easy to style elements with two or more classes, I need to exclude cases where there is only one class present.
Thank you!