title: CSS-only push nav won't hide
body: <p>I'm using a css-only push nav. It works great, however I can't figure out how to make the menu hide away when a nav link is clicked. You have to manually click the menu icon for the menu to go back into hiding. However, when a link is clicked and the site jumps to a section, I want the menu to slide into hiding automatically.</p>
  
  <p>Here's a fiddle of it: </p>
  
  <p><a href="http://jsfiddle.net/ex7jthnn/28/" rel="nofollow">http://jsfiddle.net/ex7jthnn/28/</a> </p>
  
  <p>html:</p>
  
  <pre><code>&lt;input type="checkbox" id="menu" name="menu" class="menu-checkbox"&gt;
  &lt;div class="menu"&gt;  
  &lt;label class="menu-toggle" for="menu"&gt;&lt;span&gt;Toggle&lt;/span&gt;&lt;/label&gt;
  &lt;ul class="mainnav"&gt;
  &lt;li&gt;&lt;a class="text-right" href="#about"&gt;ABOUT&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a class="text-right" href="#process"&gt;PROCESS&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a class="text-right" href="#work"&gt;WORK&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a class="text-right" href="#contact"&gt;CONTACT&lt;/a&gt;&lt;/li&gt;
  &lt;/ul&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>CSS:</p>
  
  <pre><code>label{
  cursor: pointer;
  &amp;:focus;
  outline: none;
  }  
  
  .menu{
  position: fixed;
  top: 0;
  left: 0;
  background-color: rgba(111, 206, 204, 0.7);
  width: 240px;
  height: 100%;
  z-index: 10;
  }
  
  label.menu-toggle{
  position: absolute;    
  right: -60px;
  width: 75px;
  height: 90px;
  line-height: 0px;  
  display: block;
  margin-top: 30px; 
  margin-right: -50px;
  padding: 0px 0px 0px 20px;
  text-indent: -9999px;
  background: 50% 50% / 45px 32px no-repeat;
  background-image:url(../images/menu.png);
  }
  
  
  a, label{
  display: block;
  text-align: center;
  line-height: 50px;
  text-decoration: none;
  }
  
  .menu-checkbox{
  display: none;
  }
  
  .menu .menu label.menu-toggle{
  background: none;
  }
  
  .menu-checkbox:checked + .menu{
  transform: translate3d(0, 0, 0);
  -webkit-transition: translate3d(0, 0, 0);
  }enter code here
  </code></pre>