Mobile navigation, merchandise content
This commit is contained in:
100
src/style/_sidebar.scss
Normal file
100
src/style/_sidebar.scss
Normal file
@@ -0,0 +1,100 @@
|
||||
#sidebar {
|
||||
position: fixed;
|
||||
right: 0;
|
||||
top: 0;
|
||||
background-color: #FFF;
|
||||
border-left: 0px solid $primary-color;
|
||||
height: calc(100vh - #{$navigation-height});
|
||||
height: 100vh;
|
||||
width: 0;
|
||||
z-index: 2000;
|
||||
transition: width .4s;
|
||||
display: none;
|
||||
|
||||
ul {
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
|
||||
a {
|
||||
color: #000;
|
||||
text-decoration: none;
|
||||
display: block;
|
||||
padding-left: 10px;
|
||||
padding-top: 5px;
|
||||
padding-bottom: 5px;
|
||||
|
||||
li {
|
||||
padding-left: 10px;
|
||||
padding-top: 5px;
|
||||
padding-bottom: 5px;
|
||||
border-left: 2px solid transparent;
|
||||
}
|
||||
|
||||
&:hover,
|
||||
&.active {
|
||||
li {
|
||||
border-left-color: black;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (max-width: $breakpoint-sm) {
|
||||
display: inherit;
|
||||
}
|
||||
}
|
||||
|
||||
div.hamburger {
|
||||
height: $navigation-height;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
flex-direction: column;
|
||||
align-items: end;
|
||||
|
||||
> div {
|
||||
padding: 25px;
|
||||
|
||||
&:hover {
|
||||
cursor: pointer;
|
||||
}
|
||||
}
|
||||
|
||||
span {
|
||||
display: block;
|
||||
width: 33px;
|
||||
height: 4px;
|
||||
margin-bottom: 5px;
|
||||
position: relative;
|
||||
|
||||
background: #FFF;
|
||||
border-radius: 3px;
|
||||
|
||||
transition: transform .2s;
|
||||
}
|
||||
}
|
||||
|
||||
body.sidebar {
|
||||
#sidebar {
|
||||
width: 265px;
|
||||
border-left-width: 4px;
|
||||
}
|
||||
|
||||
div.hamburger {
|
||||
span {
|
||||
transform-origin: center;
|
||||
background-color: #000;
|
||||
}
|
||||
|
||||
span:nth-child(1) {
|
||||
transform: translateY(9px) rotate(45deg);
|
||||
}
|
||||
|
||||
span:nth-child(2) {
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
span:nth-child(3) {
|
||||
transform: translateY(-9px) rotate(-45deg);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user