fix(comment media): rename, refactor, fix performance

This commit is contained in:
plebeius.eth
2024-04-09 19:04:21 +02:00
parent 9aab7624ec
commit e8c60fc5be
5 changed files with 67 additions and 58 deletions
@@ -0,0 +1,90 @@
.thumbnailBig {
background-color: var(--media-thumbnail-background-color);
width: var(--width);
height: var(--height);
max-width: 250px;
max-height: 250px;
margin: 3px 20px 5px 0;
display: flex;
justify-content: center;
align-items: center;
}
.thumbnailSmall {
background-color: var(--media-thumbnail-background-color);
width: var(--width);
height: var(--height);
max-width: 125px;
max-height: 125px;
margin: 3px 10px 5px 5px;
display: flex;
justify-content: center;
align-items: center;
}
.thumbnail {
float: left;
}
.hide {
display: none !important;
}
.thumbnail .show {
display: block;
}
.content img, .content video, .content iframe, .content audio {
box-sizing: border-box;
max-width: 100%;
max-height: 100%;
}
.content img {
cursor: pointer;
}
.content iframe {
border: none;
}
.fileInfo {
padding-bottom: 5px;
text-align: center;
color: var(--post-mobile-file-info-text-color);
font-size: 9pt;
}
.fileInfo a {
color: var(--post-link-text-color);
text-decoration: var(--post-link-text-decoration);
}
.fileInfo a:hover {
color: var(--post-link-text-color-hover);
}
.closeButton {
text-align: center;
padding: 5px 0 10px 0;
}
.thumbnailReplyDesktop {
margin: 3px 20px 5px 20px;
}
.thumbnailMobile {
margin: 8px 10px 5px 5px;
}
.mediaMobile img, .mediaMobile video, .mediaMobile iframe, .mediaMobile audio {
padding: 3px 0 5px 0;
}
.mediaDesktopReply img, .mediaDesktopReply video, .mediaDesktopReply iframe, .mediaDesktopReply audio {
padding: 3px 20px 5px 20px;
}
.mediaDesktopOp img, .mediaDesktopOp video, .mediaDesktopOp iframe, .mediaDesktopOp audio {
padding: 3px 20px 5px 0;
}