forked from go-gitea/gitea
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dropzone styling improvements (go-gitea#15291)
* 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
- Loading branch information
1 parent
3dc0997
commit afa781b
Showing
5 changed files
with
57 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
.dropzone { | ||
border: 2px dashed var(--color-secondary) !important; | ||
background: none !important; | ||
box-shadow: none !important; | ||
padding: 0 !important; | ||
min-height: 5rem !important; | ||
border-radius: 4px !important; | ||
} | ||
|
||
.dropzone .dz-button { | ||
color: var(--color-text-light) !important; | ||
} | ||
|
||
.dropzone:hover .dz-button { | ||
color: var(--color-text) !important; | ||
} | ||
|
||
.dropzone .dz-error-message { | ||
top: 120px !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; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters