Can anyone make sense of my unconventional explanation? I've set up a hidden section as shown below:
<section class="intro">
<label>
<input type="checkbox">
<span class="menu">
<span class="hamburger"></span>
</span>
<ul>
<li>
<a href="#">Home</a>
</li>
<li>
<a href="#">About</a>
</li>
<li>
<a href="#">Contact</a>
</li>
</ul>
</label>
</section>
<section class="invis">
</section>
.invis {
display:none;
}
When a "button" is pressed, the section should reappear - default: hidden, visible when clicked, and hidden again when closed. Now, for the interesting part (indicated by ** **):
label input:checked + .menu {
box-shadow: 0 0 0 100vw #E0C9B7, 0 0 0 100vh #E0C9B7;
border-radius: 0;
**display: .invis**;
}
How can I achieve this functionality? Examples in code would be greatly appreciated.