1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-21 01:38:37 +00:00

Dropzone styling improvements (#15291) (#15374)

* Dropzone styling improvements

- Move all dropzone styles to separate file
- Fix white background in arc-green
- Fix rendering of non-square images and previews

* increase thumbnail quality, set contain in js, replace blur effect with opacity

Co-authored-by: techknowlogick <techknowlogick@gitea.io>
This commit is contained in:
silverwind
2021-04-10 01:43:36 +02:00
committed by GitHub
parent 53c2136a9a
commit e861dcbbaf
5 changed files with 57 additions and 37 deletions

View File

@@ -1021,11 +1021,6 @@
color: var(--color-text-light-2);
font-style: italic;
}
.dropzone-attachments .thumbnails .ui.image {
max-height: 150px;
}
}
.ui.form {
@@ -2417,29 +2412,6 @@
padding-top: 15px;
}
.ui.form {
.dropzone {
border: 2px dashed var(--color-secondary);
background: none;
box-shadow: none !important;
padding: 0;
min-height: 5rem;
border-radius: 4px;
.dz-button {
color: rgba(0, 0, 0, .6);
}
&:hover .dz-button {
color: rgba(0, 0, 0, .8);
}
.dz-error-message {
top: 140px;
}
}
}
.settings {
.content {
margin-top: 2px;