Is there a way to modify the color of the hamburger icon when the menu is open?
I'm unsure on how to approach this. My assumption is that I need to check if the 'active' class is present and then apply specific CSS code.
You can view the site here:
<body>
<div class="page-transition">
<div class="layer"></div>
</div>
<nav class="site-navigation">
<div class="layer"></div>
<div class="inner">
<ul data-splitting>
<li><a href="/">Maison</a> <small>Retour au début</small></li>
<li><a href="/">Le Tournoi</a> <small>A propos de l'événement</small></li>
<li><a href="studio.html">Les Joueurs</a> <small>All About Us</small> </li>
<li><a href="showcases.html">Le Site</a> <small>Our all projects</small> </li>
<li><a href="blog.html">Media</a> <small>Recent posts</small> </li>
<li><a href="contact.html">Galerie</a> <small>Say hello</small> </li>
<li><a href="contact.html">Pro AM</a> <small>Say hello</small> </li>
<li><a href="contact.html">Partenaires</a> <small>Say hello</small> </li>
<li><a href="/contact">Pro AM</a> <small>Contact</small> </li>
</ul>
</div>
</nav>
<div class="social-media">
<div class="layer"> </div>
<div class="inner">
<h5>Social Share </h5>
<ul>
<li><a href="index.html#"><i class="fab fa-facebook-f"></i></a></li>
<li><a href="index.html#"><i class="fab fa-twitter"></i></a></li>
<li><a href="index.html#"><i class="fab fa-linkedin-in"></i></a></li>
<li><a href="index.html#"><i class="fab fa-google-plus-g"></i></a></li>
<li><a href="index.html#"><i class="fab fa-youtube"></i></a></li>
</ul>
</div>
</div>
<div class="all-cases">
<div class="layer"> </div>
<div class="inner">
<ul>
<li><a href="index.html#">Darkness</a></li>
<li><a href="index.html#">Goddes</a></li>
<li><a href="index.html#">Employee</a></li>
<li><a href="index.html#">Berry</a></li>
<li><a href="index.html#">Roosters</a></li>
<li><a href="index.html#">Primero</a></li>
</ul>
</div>
</div>
<main>
<aside class="left-side">
<div class="logo"> <a href="index.html"><img src="/themes/paris-legends-championship/assets/images/branding/paris-legends-icon.png" alt="Image"></a> </div>
<div class="hamburger" id="hamburger">
...
</div>
<div class="follow-us"> FOLLOW US </div>
</aside>
<div class="all-cases-link"> <span>Leaderboard</span> <b><i class="fa fa-table" aria-hidden="true"></i></b> </div>
Current CSS:
.hamburger__line-in::after, .hamburger__line-in::before {
width: 60px;
height: 2px;
content: '';
display: block;
position: absolute;
top: 0;
background-color: #fff;
}
Modified CSS:
.hamburger__line-in::after, .hamburger__line-in::before {
width: 60px;
height: 2px;
content: '';
display: block;
position: absolute;
top: 0;
background-color: #C1A473;
}
If anyone has a solution, it would be greatly appreciated.