form-file-uploader.scss 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. @import '../../bootstrap-extended/include'; // Bootstrap includes
  2. @import '../../components/include'; // Components includes
  3. .dropzone {
  4. min-height: 350px;
  5. border: 2px dashed $primary;
  6. background: $body-bg;
  7. position: relative;
  8. // dropzone message customization
  9. .dz-message {
  10. font-size: 2rem;
  11. position: absolute;
  12. top: 0;
  13. left: 0;
  14. width: 100%;
  15. height: 100%;
  16. color: #0085DD;
  17. display: flex;
  18. justify-content: center;
  19. align-items: center;
  20. margin: 0;
  21. }
  22. // dropzone message icon
  23. .dz-message:before {
  24. content: '';
  25. background-image: url(str-replace(str-replace($download, 'currentColor', $primary), '#', '%23'));
  26. font-size: 80px;
  27. position: absolute;
  28. top: 14rem;
  29. width: 80px;
  30. height: 80px;
  31. display: inline-block;
  32. line-height: 1;
  33. z-index: 2;
  34. color: $primary;
  35. text-indent: 0px;
  36. font-weight: normal;
  37. -webkit-font-smoothing: antialiased;
  38. }
  39. // for preview of files
  40. .dz-preview {
  41. // background: transparent !important;
  42. .dz-error-mark,
  43. .dz-success-mark {
  44. z-index: 10;
  45. }
  46. .dz-image {
  47. border-radius: $border-radius;
  48. }
  49. .dz-error-message {
  50. background: $danger;
  51. &:after {
  52. border-bottom: 6px solid $danger;
  53. }
  54. }
  55. &.dz-image-preview{
  56. background: transparent !important;
  57. }
  58. }
  59. // for dropzone preview and remove icon
  60. .dz-preview .dz-remove {
  61. font-size: 1.1rem;
  62. color: $danger;
  63. line-height: 2rem;
  64. &:before {
  65. content: '';
  66. background-image: url(str-replace(str-replace($remove, 'currentColor', $danger), '#', '%23'));
  67. display: inline-block;
  68. line-height: 1;
  69. z-index: 2;
  70. text-indent: 0px;
  71. font-weight: normal;
  72. -webkit-font-smoothing: antialiased;
  73. }
  74. &:hover {
  75. text-decoration: none;
  76. color: darken($danger, 10%);
  77. }
  78. }
  79. }
  80. // For Small Screen drop Logo
  81. @media (max-width: 576px) {
  82. .dropzone {
  83. .dz-message {
  84. &:before {
  85. top: 15rem;
  86. }
  87. }
  88. }
  89. }
  90. // dark layout
  91. .dark-layout {
  92. .dropzone {
  93. background-color: lighten($theme-dark-card-bg, 3%);
  94. }
  95. }