Last active
January 3, 2023 23:57
-
-
Save simevidas/6a7d8490a714ac7eb9bff3bd7a02a4e2 to your computer and use it in GitHub Desktop.
User styles for scroll snapping on pinafore.social
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#main-nav { | |
width: fit-content !important; | |
} | |
.main-nav-ul { | |
flex-direction: column !important; | |
} | |
.main-nav-link { | |
align-items: flex-start !important; | |
} | |
.main-content { | |
padding-top: 0 !important; | |
} | |
.compose-box-button-sticky { | |
position: static !important; | |
} | |
html { | |
scroll-snap-type: y mandatory !important; | |
} | |
.virtual-list-item, .compose-box { | |
scroll-snap-align: start !important; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I’ve had problems with scroll snapping on other (non-timeline) pages — Firefox would scroll in ways that I didn’t want — so I switched to applying this user style only on the timeline. In the Stylus extension, at the bottom of the editor, switch to “URLs matching the regexp” and set the value to
https://pinafore.social/
.