feat(sidebar): prevent sidebar from moving on page scroll

This commit is contained in:
Jimmy Cai
2020-09-03 23:37:48 +02:00
parent bbe7e4b73d
commit be6fcfb526
2 changed files with 11 additions and 15 deletions
+3 -2
View File
@@ -19,14 +19,15 @@
}
&.sticky {
top: 30px;
top: 0;
}
@media (min-width: $on-phone + 1) {
width: 25%;
margin-right: 1%;
padding-top: 50px;
}
@media (min-width: $on-desktop) {
width: 20%;
}