make usercard sticky on post

This commit is contained in:
2025-06-05 00:37:05 +03:00
parent 3b7a7db0ca
commit 2bf5f4faa3
3 changed files with 27 additions and 15 deletions

View File

@ -144,15 +144,20 @@ body {
.usercard {
grid-area: usercard;
display: flex;
flex-direction: column;
align-items: center;
padding: 20px 10px;
border: 4px outset $light;
background-color: $dark_bg;
border-right: solid 2px;
}
.usercard-inner {
display: flex;
flex-direction: column;
align-items: center;
top: 10px;
position: sticky;
}
.post-content-container {
display: grid;
grid-template-columns: 1fr;
@ -297,7 +302,7 @@ blockquote {
width: 90%;
height: 90%;
object-fit: contain;
padding-bottom: 10px;
margin-bottom: 10px;
}
.username-link {