Skip to content

Instantly share code, notes, and snippets.

@maciejmyslinski
Created November 3, 2016 20:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maciejmyslinski/e64e039739ca1685f52227404fc4e3bc to your computer and use it in GitHub Desktop.
Save maciejmyslinski/e64e039739ca1685f52227404fc4e3bc to your computer and use it in GitHub Desktop.
Connecting checkbox state with menu's position
.main-header {
&__checkbox:checked ~ .main-header__nav {
transform: translateX(0vw);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment