.upload-fieldĀ { display: flex; align-items: center; justify-content: flex-start; } .dropzone-base { border: 4px dashed #ccc; padding: 30px; transition: "all 0.5s"; width: 250px; cursor: pointer; color: #ccc; margin-right: 10px; position: relative; } .upload-uploading{ position: absolute; top: 0; bottom: 0; left: 0; right: 0; background: rgba(255,255,255,0.8); display: flex; justify-content: center; align-items: center; span{ display: block; font-size: 1.5rem; } } .dropzone-active { border: #4FC47F 4px solid; } .dropzone-reject { border: #DD3A0A 4px solid; } .upload-images{ display: flex; flex-direction: row; flex-wrap: wrap; // justify-content: space-between; // align-items: center; } .upload-image{ margin-right: 10px; a, img{ display: block; text-align: center; } a{ font-size: 0.8rem; } } .upload-image-contents{ position: relative; } .upload-loading{ position: absolute; top: 0; bottom: 0; left: 0; right: 0; background: rgba(255,255,255,0.8); display: flex; justify-content: center; align-items: center; } .upload-disabled{ .dropzone-base{ background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23cccccc' fill-opacity='0.4' fill-rule='evenodd'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/svg%3E"); } } .upload-image-error{ .upload-image-contents{ position: relative; &:after{ content: " "; display: block; position: absolute; height: 100%; width: 100%; top: 0; right: 0; left: 0; right: 0; background-color: rgba(255, 255, 255, 0.6); background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ff0000' fill-opacity='0.4' fill-rule='evenodd'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/svg%3E"); } } }