mirror of
https://github.com/go-gitea/gitea
synced 2024-11-27 09:52:48 +01:00
11b4827791
And shrink the height of Dropzone.
55 lines
1.2 KiB
Text
55 lines
1.2 KiB
Text
.ui .field {
|
|
.dropzone {
|
|
border: 2px dashed var(--color-secondary);
|
|
background: none;
|
|
box-shadow: none;
|
|
padding: 0;
|
|
border-radius: 4px;
|
|
min-height: 0;
|
|
margin-top: -1em; // we have another `field` above, it's usually an EasyMDE editor with "status bar", so we do not need the space above.
|
|
.dz-message {
|
|
margin: 10px 0;
|
|
}
|
|
}
|
|
}
|
|
|
|
.dropzone .dz-button {
|
|
color: var(--color-text-light) !important;
|
|
}
|
|
|
|
.dropzone:hover .dz-button {
|
|
color: var(--color-text) !important;
|
|
}
|
|
|
|
.dropzone .dz-error-message {
|
|
top: 145px !important;
|
|
}
|
|
|
|
.dropzone .dz-image {
|
|
display: flex !important;
|
|
align-items: center !important;
|
|
justify-content: center !important;
|
|
border-radius: 0 !important;
|
|
}
|
|
|
|
.dropzone .dz-image img {
|
|
max-width: 100% !important;
|
|
max-height: 100% !important;
|
|
object-fit: contain !important;
|
|
}
|
|
|
|
.dropzone .dz-preview.dz-image-preview,
|
|
.dropzone-attachments .thumbnails img {
|
|
background: transparent !important;
|
|
}
|
|
|
|
.dropzone-attachments .thumbnails img {
|
|
height: 120px !important;
|
|
width: 120px !important;
|
|
object-fit: contain !important;
|
|
margin-bottom: 0 !important;
|
|
}
|
|
|
|
.dropzone .dz-preview:hover .dz-image img {
|
|
filter: opacity(.5) !important;
|
|
}
|