Equicord/src/equicordplugins/imagePreview/styles.css

58 lines
1.1 KiB
CSS
Raw Normal View History

.preview-div {
position: fixed;
border: 2px solid var(--background-tertiary);
background-color: var(--background-secondary);
padding: 5px;
border-radius: 5px;
pointer-events: none;
z-index: 9999;
display: none;
max-width: 100vw;
max-height: 96vh;
overflow: hidden;
box-shadow: 0 4px 20px rgba(0 0 0 / 40%);
}
.file-name {
font-size: 15px;
color: var(--text-normal);
text-align: center;
margin-bottom: 5px;
display: block;
word-break: break-all;
max-width: 180px;
}
2024-10-10 20:03:18 -04:00
.preview-div img,
video {
max-width: 100%;
max-height: 100%;
display: block;
margin: 0 auto;
2024-10-10 20:03:18 -04:00
object-fit: contain;
}
.preview-header {
color: white;
font-size: 12px;
margin-bottom: 5px;
text-align: center;
display: flex;
justify-content: space-between;
align-items: center;
gap: 5px;
}
.dimensions-div {
display: flex;
flex-direction: column;
gap: 5px;
align-items: flex-end;
font-size: 11px;
color: var(--text-muted);
}
.dimensions-displaying,
.dimensions-original {
display: block;
2024-10-10 20:03:18 -04:00
}