feat(sidebar): prevent sidebar from moving on page scroll
This commit is contained in:
parent
bbe7e4b73d
commit
be6fcfb526
@ -19,12 +19,13 @@
|
||||
}
|
||||
|
||||
&.sticky {
|
||||
top: 30px;
|
||||
top: 0;
|
||||
}
|
||||
|
||||
@media (min-width: $on-phone + 1) {
|
||||
width: 25%;
|
||||
margin-right: 1%;
|
||||
padding-top: 50px;
|
||||
}
|
||||
|
||||
@media (min-width: $on-desktop) {
|
||||
|
@ -47,9 +47,14 @@ a {
|
||||
}
|
||||
}
|
||||
|
||||
#content {
|
||||
@media (min-width: $on-phone) {
|
||||
padding-top: 30px;
|
||||
main.main {
|
||||
min-width: 0;
|
||||
padding: 0 15px;
|
||||
max-width: 100%;
|
||||
flex-grow: 1;
|
||||
|
||||
@media (min-width: $on-phone + 1) {
|
||||
padding-top: 15px;
|
||||
}
|
||||
|
||||
@media (min-width: $on-tablet) {
|
||||
@ -57,16 +62,6 @@ a {
|
||||
}
|
||||
}
|
||||
|
||||
main.main {
|
||||
min-width: 0;
|
||||
padding: 0 15px;
|
||||
max-width: 100%;
|
||||
@media (min-width: $on-phone + 1) {
|
||||
padding: 0 15px;
|
||||
}
|
||||
flex-grow: 1;
|
||||
}
|
||||
|
||||
.main-grid {
|
||||
@media (max-width: $on-phone) {
|
||||
flex-direction: column;
|
||||
|
Loading…
Reference in New Issue
Block a user