You could use some JavaScript/JQuery to unchecked the checkbox that triggers the menu. I don't think this can be simply done in css/html:
Event Listener Method
This code listens out for a click on one of the menu items and then removes the checked attribute from the check-box controlling the menu slide out.
JavaScript:
function addEventListenerList(list, event, fn) {
for (var i = 0, len = list.length; i < len; i++) {
list[i].addEventListener(event, fn, false);
}
}
var navitems = document.getElementsByClassName('nav-item');
addEventListenerList(navitems, 'click', hidemenu);
function hidemenu() {
document.getElementById("nav-trigger").checked = false;
}
source: addEventListener on NodeList
OR jQuery: (if you are alreayd using jQuery in your site)
$( ".nav-item" ).click(function() {
$( "#nav-trigger" ).attr('checked', false);
});
On Click call Function method
Or another method would be to attach the function directly to the menu items on click. You can do this with the following code:
HTML
<ul class="navigation">
<li class="nav-item"><a href="#" onclick="hidemenu()">Home</a></li>
<li class="nav-item"><a href="#" onclick="hidemenu()>Portfolio</a></li>
<li class="nav-item"><a href="#" onclick="hidemenu()>About</a></li>
<li class="nav-item"><a href="#" onclick="hidemenu()>Blog</a></li>
<li class="nav-item"><a href="#" onclick="hidemenu()>Contact</a></li>
</ul>
JavaScript
function hidemenu() {
document.getElementById("nav-trigger").checked = false;
}