97 lines
1.5 KiB
SCSS
97 lines
1.5 KiB
SCSS
// Common styles for all media-type components across the app.
|
|
.media-inner {
|
|
position: relative;
|
|
|
|
video,
|
|
img {
|
|
display: block;
|
|
}
|
|
|
|
img, video {
|
|
object-fit: cover;
|
|
}
|
|
|
|
video {
|
|
background: no-repeat 50% 50%;
|
|
background-size: contain;
|
|
}
|
|
|
|
.thumbnail ~ .full-media, .media-loading {
|
|
position: absolute;
|
|
}
|
|
|
|
.thumbnail {
|
|
&.empty {
|
|
visibility: hidden;
|
|
}
|
|
}
|
|
}
|
|
|
|
.animated-close-icon {
|
|
position: absolute;
|
|
transform: rotate(-45deg);
|
|
|
|
&, &::before, &::after {
|
|
width: 1.125rem;
|
|
height: 0.125rem;
|
|
border-radius: 0.125rem;
|
|
background-color: var(--color-text-secondary);
|
|
transition: transform var(--slide-transition);
|
|
}
|
|
|
|
&::before, &::after {
|
|
position: absolute;
|
|
left: 0;
|
|
top: 0;
|
|
content: '';
|
|
}
|
|
|
|
&::before {
|
|
transform: rotate(90deg);
|
|
}
|
|
|
|
&.no-transition {
|
|
&, &::before, &::after {
|
|
transition: none;
|
|
}
|
|
}
|
|
|
|
&.state-back {
|
|
transform: rotate(180deg);
|
|
|
|
&::before {
|
|
transform: rotate(45deg) scaleX(0.75) translate(0, -0.375rem);
|
|
}
|
|
|
|
&::after {
|
|
transform: rotate(-45deg) scaleX(0.75) translate(0, 0.375rem);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Used by ChatList and ContactList components
|
|
.chat-list {
|
|
height: 100%;
|
|
overflow-y: auto;
|
|
padding: 0 .125rem .5rem .4375rem;
|
|
|
|
.scroll-container {
|
|
position: relative;
|
|
}
|
|
|
|
.ListItem.chat-item-clickable {
|
|
margin: 0;
|
|
}
|
|
|
|
@media (max-width: 600px) {
|
|
padding-left: 0;
|
|
padding-right: 0;
|
|
}
|
|
|
|
.no-results {
|
|
color: var(--color-text-meta);
|
|
margin-top: 2rem;
|
|
text-align: center;
|
|
}
|
|
}
|