Skip to content

Instantly share code, notes, and snippets.

@simevidas
Last active January 3, 2023 23:57
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save simevidas/6a7d8490a714ac7eb9bff3bd7a02a4e2 to your computer and use it in GitHub Desktop.
Save simevidas/6a7d8490a714ac7eb9bff3bd7a02a4e2 to your computer and use it in GitHub Desktop.
User styles for scroll snapping on pinafore.social
#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;
}
@simevidas
Copy link
Author

simevidas commented Jan 3, 2023

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/.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment