mirror of
https://github.com/discourse/discourse.git
synced 2024-12-05 08:48:24 +08:00
54 lines
900 B
SCSS
54 lines
900 B
SCSS
.uploaded-image-preview {
|
|
background: var(--primary-medium) center;
|
|
background-size: cover;
|
|
position: relative;
|
|
max-width: 400px;
|
|
width: 100%;
|
|
height: 150px;
|
|
margin-bottom: 0.5em;
|
|
|
|
.meta {
|
|
display: none;
|
|
}
|
|
|
|
.placeholder-overlay {
|
|
background-size: contain;
|
|
background-repeat: no-repeat;
|
|
background-position: center;
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
opacity: 0.3;
|
|
}
|
|
|
|
.image-upload-controls {
|
|
position: relative;
|
|
display: flex;
|
|
padding: 10px;
|
|
gap: 0.5em;
|
|
|
|
.image-uploader-lightbox-btn {
|
|
margin-left: auto;
|
|
}
|
|
}
|
|
}
|
|
|
|
.image-uploader.no-repeat {
|
|
.uploaded-image-preview {
|
|
background-repeat: no-repeat;
|
|
}
|
|
}
|
|
|
|
.image-uploader.contain-image {
|
|
.uploaded-image-preview {
|
|
background-size: contain;
|
|
}
|
|
}
|
|
|
|
.hidden-upload-field {
|
|
visibility: hidden;
|
|
position: absolute;
|
|
}
|