forked from github/cinny
* Add lightbox * Fix vertical media height (#467) * Update dialog animation * Fix overlay opacity * Fix dialog animation * Update open in new tab icon
91 lines
1.4 KiB
SCSS
91 lines
1.4 KiB
SCSS
@use '../../partials/text';
|
|
|
|
.file-header {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: var(--sp-ultra-tight) var(--sp-tight);
|
|
min-height: 42px;
|
|
|
|
& .file-name {
|
|
@extend .cp-txt__ellipsis;
|
|
flex: 1;
|
|
color: var(--tc-surface-low);
|
|
}
|
|
|
|
& a {
|
|
line-height: 0;
|
|
}
|
|
}
|
|
|
|
.file-container {
|
|
--media-max-width: 296px;
|
|
|
|
background-color: var(--bg-surface-hover);
|
|
border-radius: calc(var(--bo-radius) / 2);
|
|
overflow: hidden;
|
|
max-width: var(--media-max-width);
|
|
white-space: initial;
|
|
}
|
|
|
|
.sticker-container {
|
|
display: inline-flex;
|
|
max-width: 128px;
|
|
width: 100%;
|
|
& img {
|
|
width: 100% !important;
|
|
}
|
|
}
|
|
|
|
.image-container,
|
|
.video-container,
|
|
.audio-container {
|
|
font-size: 0;
|
|
line-height: 0;
|
|
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
|
|
background-position: center;
|
|
background-repeat: no-repeat;
|
|
background-size: cover;
|
|
}
|
|
|
|
.image-container,
|
|
.video-container {
|
|
& img,
|
|
& canvas {
|
|
max-width: unset !important;
|
|
width: 100% !important;
|
|
height: 100%;
|
|
border-radius: 0 !important;
|
|
margin: 0 !important;
|
|
}
|
|
}
|
|
.image-container {
|
|
max-height: 460px;
|
|
img {
|
|
cursor: pointer;
|
|
object-fit: cover;
|
|
}
|
|
}
|
|
|
|
.video-container {
|
|
position: relative;
|
|
& .ic-btn-surface {
|
|
background-color: var(--bg-surface-low);
|
|
}
|
|
& .ic-btn-surface,
|
|
& .donut-spinner {
|
|
position: absolute;
|
|
}
|
|
video {
|
|
width: 100%;
|
|
}
|
|
}
|
|
.audio-container {
|
|
audio {
|
|
width: 100%;
|
|
}
|
|
}
|