203 lines
3.9 KiB
Plaintext
Executable File

@import "theme/vars.less";
html {
&.mobile {
.post-list {
overflow: unset;
overflow-x: hidden;
overflow-y: overlay;
height: 100%;
width: 100%;
//padding-top: 5px;
border-radius: 0;
.playlistTimelineEntry {
width: 100%;
.playlistTimelineEntry_content {
.playlistTimelineEntry_thumbnail {
img {
width: 20vw;
height: 20vw;
}
}
}
}
.postCard {
width: 100%;
}
}
}
}
.post-list_wrapper {
position: relative;
display: flex;
flex-direction: column;
position: relative;
width: fit-content;
//overflow: hidden;
overflow-x: hidden;
overflow-y: overlay;
height: 100%;
width: 100%;
}
.post-list {
position: relative;
// WARN: Only use if is a performance issue (If is using virtualized list)
will-change: transform;
overflow: hidden;
overflow-y: overlay;
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
align-items: center;
border-radius: 8px;
//margin: auto;
z-index: 150;
slot {
slot {
.post_card {
border-radius: 0;
border-bottom: 2px solid var(--border-color);
}
.playlistTimelineEntry {
border-radius: 0;
border-bottom: 2px solid var(--border-color);
}
}
&:first-child {
slot {
.post_card {
border-radius: 8px;
border-bottom-left-radius: 0px;
border-bottom-right-radius: 0px;
}
.playlistTimelineEntry {
border-radius: 8px;
border-bottom-left-radius: 0px;
border-bottom-right-radius: 0px;
}
}
}
&:last-child {
slot {
.post_card {
border-top-left-radius: 0px;
border-top-right-radius: 0px;
border-bottom-left-radius: 8px;
border-bottom-right-radius: 8px;
}
.playlistTimelineEntry {
border-top-left-radius: 0px;
border-top-right-radius: 0px;
border-bottom-left-radius: 8px;
border-bottom-right-radius: 8px;
}
}
}
}
.postCard {
width: 100%;
min-width: 0;
// FIXME: This is a walkaround for a bug when a post contains multiple attachments cause a overflow
max-width: unset;
}
.playlistTimelineEntry {
width: 100%;
min-width: 0;
max-width: unset;
}
}
.resume_btn_wrapper {
z-index: 200;
position: sticky;
top: 0;
right: 0;
padding: 10px;
background-color: rgba(var(--background-color-accent-values), 0.8);
border-radius: 8px;
-webkit-backdrop-filter: blur(10px);
backdrop-filter: blur(10px);
width: 100%;
height: fit-content;
display: flex;
justify-content: center;
align-items: center;
width: 100%;
//min-width: 300px;
max-width: 800px;
opacity: 0;
animation: fadeIn 150ms ease-in-out forwards;
}
@keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
.no-result {
display: flex !important;
flex-direction: column;
align-items: center;
justify-content: center;
height: fit-content;
background-color: var(--background-color-accent);
padding: 10px;
h1 {
margin: 0;
font-size: 0.9rem;
}
border-radius: 0 0 12px 12px;
}