dropzone
Version:
Handles drag and drop of files for you.
1 lines • 6.54 kB
Source Map (JSON)
{"version":3,"mappings":"AAMA,uJAeA,mGAUA,wFAWA,4CAKA,sCAGA,wCAGA,uFAIA,0FAMA,8CAGA,2CAGA,+CAGA,qDAIA,gIASA,6GAOA,yCAMA,yGAKA,4DAGA,uDAGA,iFAGA,2GAOA,iEAGA,kDAGA,2MAcA,4EAIA,kEAGA,sIAIA,6FAGA,kGAIA,2KAMA,iFAIA,uIASA,kDAGA,0GAGA,yGAIA,sPAcA,mIAOA,qFAIA,wFAIA,mFAGA,qPAeA,sKASA,+DAGA,qFAIA,0PAgBA","sources":["src/dropzone.css"],"sourcesContent":["/* The Dropzone stylesheet. Plain CSS: no build step beyond minification.\n *\n * Flattened rather than nested on purpose -- native CSS nesting only\n * landed in browsers in 2023, well above the range this library targets.\n */\n\n@keyframes passing-through {\n 0% {\n opacity: 0;\n transform: translateY(40px);\n }\n 30%,\n 70% {\n opacity: 1;\n transform: translateY(0px);\n }\n 100% {\n opacity: 0;\n transform: translateY(-40px);\n }\n}\n@keyframes slide-in {\n 0% {\n opacity: 0;\n transform: translateY(40px);\n }\n 30% {\n opacity: 1;\n transform: translateY(0px);\n }\n}\n@keyframes pulse {\n 0% {\n transform: scale(1);\n }\n 10% {\n transform: scale(1.1);\n }\n 20% {\n transform: scale(1);\n }\n}\n.dropzone,\n.dropzone * {\n box-sizing: border-box;\n}\n\n.dropzone.dz-clickable {\n cursor: pointer;\n}\n.dropzone.dz-clickable * {\n cursor: default;\n}\n.dropzone.dz-clickable .dz-message,\n.dropzone.dz-clickable .dz-message * {\n cursor: pointer;\n}\n.dropzone {\n min-height: 150px;\n border: 1px solid rgba(0, 0, 0, 0.8);\n border-radius: 5px;\n padding: 20px 20px;\n}\n.dropzone.dz-started .dz-message {\n display: none;\n}\n.dropzone.dz-drag-hover {\n border-style: solid;\n}\n.dropzone.dz-drag-hover .dz-message {\n opacity: 0.5;\n}\n.dropzone .dz-message {\n text-align: center;\n margin: 3em 0;\n}\n.dropzone .dz-message .dz-button {\n background: none;\n color: inherit;\n border: none;\n padding: 0;\n font: inherit;\n cursor: pointer;\n outline: inherit;\n}\n.dropzone .dz-preview {\n position: relative;\n display: inline-block;\n vertical-align: top;\n margin: 16px;\n min-height: 100px;\n}\n.dropzone .dz-preview:hover {\n z-index: 1000;\n}\n.dropzone .dz-preview:hover .dz-details {\n opacity: 1;\n}\n.dropzone .dz-preview.dz-file-preview .dz-image {\n border-radius: 20px;\n background: #999;\n background: linear-gradient(to bottom, #eee, #ddd);\n}\n.dropzone .dz-preview.dz-file-preview .dz-details {\n opacity: 1;\n}\n.dropzone .dz-preview.dz-image-preview {\n background: white;\n}\n.dropzone .dz-preview.dz-image-preview .dz-details {\n transition: opacity 0.2s linear;\n}\n.dropzone .dz-preview .dz-remove {\n font-size: 14px;\n text-align: center;\n display: block;\n cursor: pointer;\n border: none;\n}\n.dropzone .dz-preview .dz-remove:hover {\n text-decoration: underline;\n}\n.dropzone .dz-preview:hover .dz-details {\n opacity: 1;\n}\n.dropzone .dz-preview .dz-details {\n z-index: 20;\n position: absolute;\n top: 0;\n left: 0;\n opacity: 0;\n font-size: 13px;\n min-width: 100%;\n max-width: 100%;\n padding: 2em 1em;\n text-align: center;\n color: rgba(0, 0, 0, 0.9);\n line-height: 150%;\n}\n.dropzone .dz-preview .dz-details .dz-size {\n margin-bottom: 1em;\n font-size: 16px;\n}\n.dropzone .dz-preview .dz-details .dz-filename {\n white-space: nowrap;\n}\n.dropzone .dz-preview .dz-details .dz-filename:hover span {\n border: 1px solid rgba(200, 200, 200, 0.8);\n background-color: rgba(255, 255, 255, 0.8);\n}\n.dropzone .dz-preview .dz-details .dz-filename:not(:hover) span {\n border: 1px solid transparent;\n}\n.dropzone .dz-preview .dz-details .dz-filename:not(:hover) {\n overflow: hidden;\n text-overflow: ellipsis;\n}\n.dropzone .dz-preview .dz-details .dz-filename span,\n.dropzone .dz-preview .dz-details .dz-size span {\n background-color: rgba(255, 255, 255, 0.4);\n padding: 0 0.4em;\n border-radius: 3px;\n}\n.dropzone .dz-preview:hover .dz-image img {\n transform: scale(1.05, 1.05);\n filter: blur(8px);\n}\n.dropzone .dz-preview .dz-image {\n border-radius: 20px;\n overflow: hidden;\n width: 120px;\n height: 120px;\n position: relative;\n display: block;\n z-index: 10;\n}\n.dropzone .dz-preview .dz-image img {\n display: block;\n}\n.dropzone .dz-preview.dz-success .dz-success-mark {\n animation: passing-through 3s cubic-bezier(0.77, 0, 0.175, 1);\n}\n.dropzone .dz-preview.dz-error .dz-error-mark {\n opacity: 1;\n animation: slide-in 3s cubic-bezier(0.77, 0, 0.175, 1);\n}\n.dropzone .dz-preview .dz-success-mark,\n.dropzone .dz-preview .dz-error-mark {\n pointer-events: none;\n opacity: 0;\n z-index: 500;\n position: absolute;\n display: block;\n top: 50%;\n left: 50%;\n margin-left: -27px;\n margin-top: -27px;\n background: rgba(0, 0, 0, 0.8);\n border-radius: 50%;\n}\n.dropzone .dz-preview .dz-success-mark svg,\n.dropzone .dz-preview .dz-error-mark svg {\n display: block;\n width: 54px;\n height: 54px;\n fill: white;\n}\n.dropzone .dz-preview.dz-processing .dz-progress {\n opacity: 1;\n transition: all 0.2s linear;\n}\n.dropzone .dz-preview.dz-complete .dz-progress {\n opacity: 0;\n transition: opacity 0.4s ease-in;\n}\n.dropzone .dz-preview:not(.dz-processing) .dz-progress {\n animation: pulse 6s ease infinite;\n}\n.dropzone .dz-preview .dz-progress {\n opacity: 1;\n z-index: 1000;\n pointer-events: none;\n position: absolute;\n height: 20px;\n top: 50%;\n margin-top: -10px;\n left: 15%;\n right: 15%;\n border: 3px solid rgba(0, 0, 0, 0.8);\n background: rgba(0, 0, 0, 0.8);\n border-radius: 10px;\n overflow: hidden;\n}\n.dropzone .dz-preview .dz-progress .dz-upload {\n background: white;\n display: block;\n position: relative;\n height: 100%;\n width: 0;\n transition: width 300ms ease-in-out;\n border-radius: 17px;\n}\n.dropzone .dz-preview.dz-error .dz-error-message {\n display: block;\n}\n.dropzone .dz-preview.dz-error:hover .dz-error-message {\n opacity: 1;\n pointer-events: auto;\n}\n.dropzone .dz-preview .dz-error-message {\n pointer-events: none;\n z-index: 1000;\n position: absolute;\n display: none;\n opacity: 0;\n transition: opacity 0.3s ease;\n border-radius: 8px;\n font-size: 13px;\n top: 130px;\n left: -10px;\n width: 140px;\n background: rgb(177, 6, 6);\n padding: 0.5em 1em;\n color: white;\n}\n.dropzone .dz-preview .dz-error-message:after {\n content: \"\";\n position: absolute;\n top: -6px;\n left: 64px;\n width: 0;\n height: 0;\n border-left: 6px solid transparent;\n border-right: 6px solid transparent;\n border-bottom: 6px solid rgb(177, 6, 6);\n}\n"],"names":[]}