Skip to content

Instantly share code, notes, and snippets.

@tjkhara
Created May 3, 2021 13:36
Show Gist options
  • Select an option

  • Save tjkhara/ec5c22f37b94d0c20af0ff7d8c51944b to your computer and use it in GitHub Desktop.

Select an option

Save tjkhara/ec5c22f37b94d0c20af0ff7d8c51944b to your computer and use it in GitHub Desktop.
.navigation {
&__checkbox {
display: none;
}
&__button {
background-color: $color-white;
// This is also a circle slightly bigger than the background circle
// To cover it properly
height: 7rem;
width: 7rem;
position: fixed;
top: 6rem;
right: 6rem;
border-radius: 50%;
z-index: 2000;
}
&__background {
height: 6rem;
width: 6rem;
border-radius: 50%;
position: fixed;
top: 6.5rem;
right: 6.5rem;
background-image: radial-gradient(
$color-primary-light,
$color-primary-dark
);
// When we scroll this circle gets hidden behind
// to fix that we have the z-index below
z-index: 1000;
}
// This is a huge element that covers the entire viewport
// so that we can center the links over this horizontally and vertically
&__nav {
height: 100vh;
width: 100%;
position: fixed;
top: 0;
right: 0;
z-index: 1500;
}
&__list {
}
&__item {
}
&__link {
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment