image-upload.css 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  1. #upload-files .wrapper {
  2. display: -webkit-box;
  3. display: -ms-flexbox;
  4. display: flex;
  5. -webkit-box-orient: horizontal;
  6. -webkit-box-direction: normal;
  7. -ms-flex-direction: row;
  8. flex-direction: row;
  9. -ms-flex-wrap: wrap;
  10. flex-wrap: wrap;
  11. -webkit-box-align: center;
  12. -ms-flex-align: center;
  13. align-items: center;
  14. -webkit-box-pack: center;
  15. -ms-flex-pack: center;
  16. justify-content: center;
  17. }
  18. #upload-files .box {
  19. position: relative;
  20. display: block;
  21. min-width: 160px;
  22. height: 180px;
  23. margin: 10px;
  24. background-color: white;
  25. border-radius: 5px;
  26. box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
  27. -webkit-transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  28. transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  29. overflow: hidden;
  30. }
  31. #upload-files .wrapper .box:first-child {
  32. background-color: #e6ffe6;
  33. }
  34. #upload-files .upload-options {
  35. position: relative;
  36. height: 40px;
  37. background-color: cadetblue;
  38. cursor: pointer;
  39. overflow: hidden;
  40. text-align: center;
  41. -webkit-transition: background-color ease-in-out 150ms;
  42. transition: background-color ease-in-out 150ms;
  43. }
  44. #upload-files .upload-options:hover {
  45. background-color: #7fb1b3;
  46. }
  47. #upload-files .upload-options label {
  48. padding-top: 3px;
  49. width: 100%;
  50. height: 100%;
  51. cursor: pointer;
  52. overflow: hidden;
  53. }
  54. #upload-files .upload-options span {
  55. position: relative;
  56. margin: auto;
  57. color: #e6ffe6;
  58. font-size: 2.1em;
  59. }
  60. #upload-files .upload-options label span:hover {
  61. color: white;
  62. }
  63. #upload-files .upload-options input {
  64. width: 0.1px;
  65. height: 0.1px;
  66. opacity: 0;
  67. overflow: hidden;
  68. position: absolute;
  69. z-index: -1;
  70. }
  71. #upload-files .js--image-preview {
  72. height: 140px;
  73. width: 100%;
  74. position: relative;
  75. overflow: hidden;
  76. background-image: url("");
  77. background-color: transparent;
  78. /*background-color: white;*/
  79. background-position: center center;
  80. background-repeat: no-repeat;
  81. background-size: cover;
  82. }
  83. #upload-files .js--image-preview span {
  84. font-size: 5.5em;
  85. color: #7fb1b3; /*##bfbfbf;*/
  86. margin-top: 15%;
  87. margin-left: auto;
  88. z-index: 0;
  89. }
  90. #upload-files .js--image-preview.js--no-default::after {
  91. display: none;
  92. }
  93. @-webkit-keyframes ripple {
  94. 100% {
  95. opacity: 0;
  96. -webkit-transform: scale(2.5);
  97. transform: scale(2.5);
  98. }
  99. }
  100. @keyframes ripple {
  101. 100% {
  102. opacity: 0;
  103. -webkit-transform: scale(2.5);
  104. transform: scale(2.5);
  105. }
  106. }
  107. /* Required field START */
  108. #upload-files .required-field-block {
  109. position: relative;
  110. }
  111. #upload-files .required-field-block .required-icon {
  112. display: inline-block;
  113. vertical-align: middle;
  114. background-color: rgba(240, 240, 240, 0.9); /*#E8E8E8;*/
  115. border-color: rgba(240, 240, 240, 0.9); /*#E8E8E8;*/
  116. padding: 0.5em 0.8em;
  117. text-transform: uppercase;
  118. font-weight: normal;
  119. border-radius: 0.325em;
  120. -webkit-box-sizing: border-box;
  121. -moz-box-sizing: border-box;
  122. -ms-box-sizing: border-box;
  123. box-sizing: border-box;
  124. -webkit-transition: background 0.1s linear;
  125. -moz-transition: background 0.1s linear;
  126. transition: background 0.1s linear;
  127. }
  128. #upload-files.required-field-block .required-icon {
  129. background-color: transparent;
  130. position: absolute;
  131. top: -0.1em;
  132. right: -0.1em;
  133. z-index: 10;
  134. margin: 0em;
  135. width: 30px;
  136. height: 30px;
  137. padding: 0em;
  138. text-align: center;
  139. -webkit-transition: color 0.2s ease;
  140. -moz-transition: color 0.2s ease;
  141. transition: color 0.2s ease;
  142. }
  143. .required-field-block .required-icon:after {
  144. position: absolute;
  145. content: "";
  146. right: 1px;
  147. top: 1px;
  148. z-index: -1;
  149. width: 0em;
  150. height: 0em;
  151. border-top: 0em solid transparent;
  152. border-right: 38px solid transparent;
  153. border-bottom: 38px solid transparent;
  154. border-left: 0em solid transparent;
  155. border-right-color: inherit;
  156. -webkit-transition: border-color 0.2s ease;
  157. -moz-transition: border-color 0.2s ease;
  158. transition: border-color 0.2s ease;
  159. }
  160. .required-field-block .required-icon .text {
  161. color: #B80000;
  162. font-size: 26px;
  163. margin: -3px 0 0 12px;
  164. }
  165. /* Required field END */