2024-10-16 17:52:50 -04:00
|
|
|
.image-preview {
|
2024-10-08 12:01:51 -04:00
|
|
|
position: fixed;
|
2024-10-16 17:52:50 -04:00
|
|
|
z-index: 1000;
|
2024-10-17 13:54:52 -04:00
|
|
|
pointer-events: auto;
|
2024-10-16 17:52:50 -04:00
|
|
|
border: 2px solid var(--background-secondary);
|
|
|
|
background-color: var(--background-primary);
|
|
|
|
border-radius: 4px;
|
|
|
|
padding: 1px;
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
flex-direction: column;
|
|
|
|
gap: 10px;
|
2024-10-08 12:01:51 -04:00
|
|
|
}
|
|
|
|
|
2024-10-16 17:52:50 -04:00
|
|
|
.image-preview.allow-zoom-and-drag {
|
|
|
|
background-color: transparent;
|
|
|
|
border: none;
|
2024-10-17 11:06:43 -04:00
|
|
|
pointer-events: auto;
|
2024-10-08 12:01:51 -04:00
|
|
|
}
|
|
|
|
|
2024-10-16 17:52:50 -04:00
|
|
|
.image-preview .file-info {
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
width: 100%;
|
|
|
|
position: absolute;
|
|
|
|
bottom: -25px;
|
|
|
|
left: 0;
|
|
|
|
text-align: center;
|
2024-10-08 12:01:51 -04:00
|
|
|
}
|
|
|
|
|
2024-10-16 17:52:50 -04:00
|
|
|
.image-preview .file-info span {
|
|
|
|
background-color: var(--background-primary);
|
|
|
|
color: var(--text-normal);
|
|
|
|
padding: 2px 5px;
|
|
|
|
border-radius: 4px;
|
2024-10-08 12:01:51 -04:00
|
|
|
font-size: 12px;
|
2024-10-16 17:52:50 -04:00
|
|
|
box-shadow: 0 0 0 1px var(--background-secondary);
|
|
|
|
border: 1px solid var(--background-secondary);
|
2024-10-08 12:01:51 -04:00
|
|
|
}
|
|
|
|
|
2024-10-18 10:56:35 -04:00
|
|
|
.image-preview .file-info span:last-child:not(:first-child) {
|
|
|
|
margin: 0 5px;
|
|
|
|
}
|
|
|
|
|
2024-10-17 11:06:43 -04:00
|
|
|
.file-size {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
gap: 5px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.image-preview .file-info span p {
|
|
|
|
padding: 0;
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.image-preview .file-info span p:last-child:not(:first-child) {
|
|
|
|
color: var(--text-muted);
|
|
|
|
}
|
|
|
|
|
2024-10-16 17:52:50 -04:00
|
|
|
.image-preview.allow-zoom-and-drag .file-info {
|
|
|
|
display: none;
|
2024-10-08 12:01:51 -04:00
|
|
|
}
|
|
|
|
|
2024-10-16 17:52:50 -04:00
|
|
|
.loading-spinner {
|
|
|
|
border: 4px solid var(--background-primary);
|
|
|
|
border-top: 4px solid var(--background-tertiary);
|
|
|
|
border-radius: 50%;
|
|
|
|
width: 30px;
|
|
|
|
height: 30px;
|
|
|
|
animation: spin 1s linear infinite;
|
2024-10-14 19:33:17 -04:00
|
|
|
}
|
2024-10-16 17:52:50 -04:00
|
|
|
|
|
|
|
@keyframes spin {
|
|
|
|
0% {
|
|
|
|
transform: rotate(0deg);
|
|
|
|
}
|
|
|
|
|
|
|
|
100% {
|
|
|
|
transform: rotate(360deg);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.preview-media {
|
|
|
|
max-width: 90vw;
|
|
|
|
max-height: 90vh;
|
|
|
|
object-fit: contain;
|
|
|
|
display: none;
|
2024-10-17 13:54:52 -04:00
|
|
|
}
|