|
44 | 44 | background-color: #f3f6f9; |
45 | 45 | } |
46 | 46 |
|
47 | | - |
48 | 47 | .afb_file_container .afb_upload_container.afb_no_preview .afb_filename { |
49 | 48 | flex: 1; |
50 | 49 | overflow: hidden; |
|
80 | 79 |
|
81 | 80 | /*with preview option*/ |
82 | 81 |
|
83 | | -.afb_file_container .afb_dropzone-preview .afb_item { |
| 82 | +.afb_file_container.with_preview .afb_item { |
84 | 83 | position: relative; |
85 | 84 | display: inline-block; |
86 | 85 | vertical-align: top; |
87 | 86 | margin: 16px; |
88 | | - min-height: 100px; |
89 | 87 | } |
90 | 88 |
|
91 | | -.afb_file_container .afb_dropzone-preview .afb_filename { |
| 89 | +.afb_file_container.with_preview .afb_filename { |
92 | 90 | position: absolute; |
93 | 91 | top: 40%; |
94 | 92 | left: 0; |
|
101 | 99 | line-height: 150%; |
102 | 100 | } |
103 | 101 |
|
104 | | -.afb_file_container .afb_dropzone-preview .afb_file_preview { |
| 102 | +.afb_file_container.with_preview .afb_file_preview { |
105 | 103 | border-radius: 0.42rem; |
106 | 104 | overflow: hidden; |
107 | 105 | width: 120px; |
|
111 | 109 | z-index: 10; |
112 | 110 | } |
113 | 111 |
|
114 | | -.afb_file_container .afb_dropzone-preview .afb_file_preview img { |
| 112 | +.afb_file_container.with_preview .afb_file_preview img { |
115 | 113 | width: 100%; |
116 | 114 | height: 100%; |
117 | 115 | object-fit: cover; |
118 | 116 | } |
119 | 117 |
|
120 | | -.afb_file_container .afb_dropzone-preview .afb_item:hover img { |
| 118 | +.afb_file_container.with_preview .afb_item:hover img { |
121 | 119 | transform: scale(1.05, 1.05); |
122 | 120 | filter: blur(8px); |
123 | 121 | } |
124 | 122 |
|
125 | | -.afb_file_container .afb_dropzone-preview .afb_item:hover .afb_filename { |
| 123 | +.afb_file_container.with_preview .afb_item:hover .afb_filename { |
126 | 124 | opacity: 1; |
127 | 125 | z-index: 51; |
128 | 126 | } |
129 | 127 |
|
130 | | -.afb_file_container .afb_dropzone-preview .afb_filename:not(:hover) { |
| 128 | +.afb_file_container.with_preview .afb_filename:not(:hover) { |
131 | 129 | overflow: hidden; |
132 | 130 | text-overflow: ellipsis; |
133 | 131 | white-space: nowrap; |
134 | 132 | } |
135 | 133 |
|
136 | | -.afb_file_container .afb_dropzone-preview .afb_item .afb_filename span { |
| 134 | +.afb_file_container.with_preview .afb_item .afb_filename span { |
137 | 135 | background-color: rgba(255, 255, 255, .8); |
138 | 136 | padding: 0 0.4em; |
139 | 137 | border-radius: 3px; |
140 | 138 | white-space: nowrap; |
141 | 139 | } |
142 | 140 |
|
143 | | -.afb_file_container .afb_dropzone-preview.dz-complete .afb_file_progress { |
| 141 | +.afb_file_container.with_preview .dz-complete .afb_file_progress { |
144 | 142 | opacity: 0; |
145 | 143 | transition: opacity 0.4s ease-in; |
146 | 144 | } |
147 | 145 |
|
148 | | -.afb_file_container .afb_dropzone-preview .afb_file_progress { |
| 146 | +.afb_file_container.with_preview .afb_file_progress { |
149 | 147 | opacity: 1; |
150 | 148 | z-index: 100; |
151 | 149 | pointer-events: none; |
|
161 | 159 | overflow: hidden; |
162 | 160 | } |
163 | 161 |
|
164 | | -.afb_file_container .afb_dropzone-preview .afb_file_progress > div { |
| 162 | +.afb_file_container.with_preview .afb_file_progress > div { |
165 | 163 | background: #333; |
166 | 164 | background: linear-gradient(to bottom, #666, #444); |
167 | 165 | position: absolute; |
|
172 | 170 | transition: width 300ms ease-in-out; |
173 | 171 | } |
174 | 172 |
|
175 | | -.afb_file_container .afb_dropzone-preview .afb_upload_complete .afb_file_progress { |
| 173 | +.afb_file_container.with_preview .afb_upload_complete .afb_file_progress { |
176 | 174 | opacity: 0; |
177 | 175 | transition: opacity 0.4s ease-in; |
178 | 176 | } |
179 | 177 |
|
180 | | -.afb_file_container .afb_dropzone-preview .afb_upload_progressing .afb_file_progress { |
| 178 | +.afb_file_container.with_preview .afb_upload_progressing .afb_file_progress { |
181 | 179 | opacity: 1; |
182 | 180 | transition: all 0.2s linear; |
183 | 181 | } |
184 | 182 |
|
185 | | -.afb_file_container .afb_dropzone-preview .afb_file_success-mark, |
186 | | -.afb_file_container .afb_dropzone-preview .afb_file_error-mark { |
| 183 | +.afb_file_container.with_preview .afb_file_success-mark, |
| 184 | +.afb_file_container.with_preview .afb_file_error-mark { |
187 | 185 | pointer-events: none; |
188 | 186 | opacity: 0; |
189 | 187 | z-index: 50; |
|
195 | 193 | margin-top: -27px; |
196 | 194 | } |
197 | 195 |
|
198 | | -.afb_file_container .afb_dropzone-preview .afb_upload_complete .afb_file_success-mark { |
| 196 | +.afb_file_container.with_preview .afb_upload_complete .afb_file_success-mark { |
199 | 197 | opacity: 1; |
200 | 198 | animation: slide-in 3s cubic-bezier(0.77, 0, 0.175, 1); |
201 | 199 | } |
202 | 200 |
|
203 | | -.afb_file_container .afb_dropzone-preview .afb_remove_file { |
| 201 | +.afb_file_container.with_preview .afb_remove_file { |
204 | 202 | position: absolute; |
205 | 203 | top: -12.5px; |
206 | 204 | right: -12.5px; |
|
216 | 214 | justify-content: center; |
217 | 215 | } |
218 | 216 |
|
219 | | -.afb_file_container .afb_dropzone-preview.afb_dropzone-started .afb_dropzone-title { |
| 217 | +.afb_file_container.with_preview .afb_dropzone-started .afb_dropzone-title { |
220 | 218 | display: none; |
221 | 219 | } |
| 220 | + |
| 221 | +/** with preview non multiple **/ |
| 222 | +.afb_file_container.with_preview .afb_upload_container .afb_item { |
| 223 | + position: relative; |
| 224 | + width: 120px; |
| 225 | +} |
0 commit comments