gitea源码

dropzone.css 1.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. .ui .field .dropzone {
  2. border: 2px dashed var(--color-secondary);
  3. background: none;
  4. box-shadow: none;
  5. padding: 0;
  6. border-radius: var(--border-radius-medium);
  7. min-height: 0;
  8. }
  9. .ui .field .dropzone .dz-message {
  10. margin: 10px 0;
  11. }
  12. .dropzone .dz-button {
  13. color: var(--color-text-light) !important;
  14. }
  15. .dropzone:hover .dz-button {
  16. color: var(--color-text) !important;
  17. }
  18. .dropzone .dz-error-message {
  19. top: 145px !important;
  20. }
  21. .dropzone .dz-image {
  22. display: flex !important;
  23. align-items: center !important;
  24. justify-content: center !important;
  25. border-radius: 0 !important;
  26. }
  27. .dropzone .dz-image img {
  28. max-width: 100% !important;
  29. max-height: 100% !important;
  30. object-fit: contain !important;
  31. }
  32. .dropzone .dz-preview.dz-image-preview,
  33. .dropzone-attachments .thumbnails img {
  34. background: transparent !important;
  35. }
  36. .dropzone-attachments .thumbnails img {
  37. height: 120px !important;
  38. width: 120px !important;
  39. object-fit: contain !important;
  40. margin-bottom: 0 !important;
  41. }
  42. .dropzone .dz-preview:hover .dz-image img {
  43. filter: opacity(0.5) !important;
  44. }
  45. .ui .field .dropzone .dz-preview .dz-progress {
  46. /* by default the progress-bar is vertically centered (top: 50%), it's better to put it after the "details (size, filename)",
  47. then the layout from top to bottom is: size, filename, progress */
  48. top: 7em;
  49. }