Burger JS add-ons

This commit is contained in:
Raphael Goetter 2017-09-07 17:07:19 +02:00
parent b0030aeec2
commit 0f91666bbc
3 changed files with 7 additions and 8 deletions

View file

@ -93,8 +93,9 @@ button {
}
// burger button
// active it with :focus, .is-active or .js-active
// active it with a JS toggle-class to .is-active
// recommanded HTML : <button class="button-burger" type="button" role="button" aria-label="open/close navigation"><i></i></button>
// see doc : https://knacss.com/styleguide.html#buttons
.button-burger {
padding: 0;
background-color: transparent;
@ -138,9 +139,7 @@ button {
}
}
&:focus,
&.is-active,
&.js-active {
&.is-active {
& > * {
background-image: none;