2025-04-02 13:24:56 +05:30

363 lines
7.9 KiB
CSS

.dropzone {
width: 100%;
position: relative;
cursor: pointer;
border-radius: 0.5rem;
}
.dropzone:not(.dz-clickable) {
opacity: 0.5;
cursor: not-allowed;
}
.dropzone.dz-drag-hover {
border-style: solid;
}
.dropzone.dz-drag-hover .dz-message {
opacity: 0.5;
}
.dz-message {
font-size: 1.5rem;
}
.dz-message:before {
content: "";
border-radius: 6px;
position: absolute;
top: 5rem;
left: calc(50% - 23px);
display: inline-block;
height: 40px;
width: 40px;
background-repeat: no-repeat !important;
background-position: center !important;
}
.dz-message .note {
font-size: 0.9375rem;
}
.dz-browser-not-supported.dropzone-box {
min-height: auto !important;
border: none !important;
border-radius: 0 !important;
padding: 0 !important;
width: auto !important;
cursor: default !important;
transition: none;
}
.dz-browser-not-supported .dz-message {
display: none !important;
}
.dz-started .dz-message {
display: none;
}
.dz-message {
margin: 8rem 0 3rem;
font-weight: 500;
text-align: center;
}
.dz-message .note {
display: block;
margin-top: 0.5rem;
}
.app-ecommerce .dz-message {
margin-top: 5rem;
}
.app-ecommerce .dz-message::before {
top: 3rem;
}
.dz-preview {
position: relative;
vertical-align: top;
margin: 1rem;
background: #fff;
font-size: 0.8125rem;
box-sizing: content-box;
cursor: default;
}
@media (max-width: 575.98px) {
.dz-preview {
margin: 0.75rem;
}
}
html:not([dir=rtl]) .dz-preview {
margin-right: 0.25rem;
}
[dir=rtl] .dz-preview {
margin-left: 0.25rem;
}
.dz-filename {
position: absolute;
width: 100%;
overflow: hidden;
padding: 0.625rem 0.625rem 0 0.625rem;
background: #fff;
white-space: nowrap;
text-overflow: ellipsis;
}
.dz-filename:hover {
white-space: normal;
text-overflow: inherit;
}
.dz-size {
padding: 1.875rem 0.625rem 0.625rem 0.625rem;
font-size: 0.6875rem;
}
.dz-preview .progress,
.dz-preview .progess-bar {
height: 0.5rem;
}
.dz-preview .progress {
position: absolute;
left: 1.25rem;
right: 1.25rem;
top: 50%;
margin-top: -0.25rem;
z-index: 30;
}
.dz-complete .progress {
display: none;
}
.dz-thumbnail {
position: relative;
padding: 0.625rem;
height: 7.5rem;
text-align: center;
box-sizing: content-box;
}
.dz-thumbnail > img,
.dz-thumbnail .dz-nopreview {
top: 50%;
position: relative;
transform: translateY(-50%) scale(1);
margin: 0 auto;
display: block;
}
.dz-thumbnail > img {
max-height: 100%;
max-width: 100%;
}
.dz-nopreview {
font-weight: 500;
text-transform: uppercase;
font-size: 0.6875rem;
}
.dz-thumbnail img[src] ~ .dz-nopreview {
display: none;
}
.dz-remove {
display: block;
text-align: center;
padding: 0.375rem 0;
font-size: 0.75rem;
}
.dz-remove:hover, .dz-remove:focus {
text-decoration: none;
border-top-color: transparent;
}
.dz-error-mark,
.dz-success-mark {
position: absolute;
left: 50%;
top: 50%;
display: none;
margin-left: -1.875rem;
margin-top: -1.875rem;
height: 3.75rem;
width: 3.75rem;
border-radius: 50%;
background-position: center center;
background-size: 1.875rem 1.875rem;
background-repeat: no-repeat;
box-shadow: 0 0 1.25rem rgba(0, 0, 0, 0.06);
}
.dz-success-mark {
background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3E%3Cpath fill='%235cb85c' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3E%3C/svg%3E");
}
.dz-error-mark {
background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23d9534f' viewBox='-2 -2 7 7'%3E%3Cpath stroke='%23d9534f' d='M0 0l3 3m0-3L0 3'/%3E%3Ccircle r='.5'/%3E%3Ccircle cx='3' r='.5'/%3E%3Ccircle cy='3' r='.5'/%3E%3Ccircle cx='3' cy='3' r='.5'/%3E%3C/svg%3E");
}
.dz-error-message {
position: absolute;
top: -1px;
left: -1px;
bottom: -1px;
right: -1px;
display: none;
color: #fff;
z-index: 40;
padding: 0.75rem;
text-align: left;
overflow: auto;
font-weight: 500;
}
[dir=rtl] .dz-error-message {
text-align: right;
}
.dz-error .dz-error-message {
display: none;
}
.dz-error .dz-error-mark {
display: block;
}
.dz-error:hover .dz-error-message {
display: block;
}
.dz-error:hover .dz-error-mark {
display: none;
}
.dz-success .dz-success-mark {
display: block;
}
[dir=rtl] .dz-hidden-input {
left: auto !important;
right: 0 !important;
}
.light-style .dropzone {
border: 2px dashed #e4e6e8;
}
.light-style .dz-preview {
border: 0 solid #e4e6e8;
border-radius: 0.375rem;
box-shadow: 0 0.1875rem 0.5rem 0 rgba(34, 48, 62, 0.1);
}
.light-style .dz-message {
color: #384551;
}
.light-style .dz-message:before {
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3e%3cpath d='M11 15H13V9H16L12 4L8 9H11V15Z' fill='%238592A3'/%3e%3cpath d='M20 18H4V11H2V18C2 19.103 2.897 20 4 20H20C21.103 20 22 19.103 22 18V11H20V18Z' fill='%238592A3'/%3e%3c/svg%3e") !important;
background: #eeedf0;
}
.light-style .dz-message .note {
color: #646e78;
font-weight: 400;
}
.light-style .dz-thumbnail {
border-bottom: 1px solid #e4e6e8;
background: rgba(34, 48, 62, 0.025);
border-top-left-radius: calc(0.375rem - 1px);
border-top-right-radius: calc(0.375rem - 1px);
}
.light-style .dz-size {
color: #a7acb2;
}
.light-style .dz-remove {
color: #646e78;
border-top: 1px solid #e4e6e8;
border-bottom-right-radius: calc(0.375rem - 1px);
border-bottom-left-radius: calc(0.375rem - 1px);
}
.light-style .dz-remove:hover, .light-style .dz-remove:focus {
color: #646e78;
background: rgba(34, 48, 62, 0.1);
}
.light-style .dz-nopreview {
color: #a7acb2;
}
.light-style .dz-error-mark,
.light-style .dz-success-mark {
background-color: rgba(43, 44, 64, 0.5);
}
.light-style .dz-error-message {
background: rgba(255, 62, 29, 0.8);
border-top-left-radius: 0.375rem;
border-top-right-radius: 0.375rem;
}
@media (min-width: 576px) {
.light-style .dz-preview {
display: inline-block;
width: 11.25rem;
}
.light-style .dz-thumbnail {
width: 10rem;
}
}
.dark-style .dropzone {
border: 2px dashed #4e4f6c;
}
.dark-style .dz-preview {
background: #2b2c40;
border: 0 solid #4e4f6c;
border-radius: 0.375rem;
box-shadow: 0 0.1875rem 0.5rem 0 rgba(20, 20, 29, 0.22);
}
.dark-style .dz-message {
color: #d5d5e2;
}
.dark-style .dz-message:before {
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3e%3cpath d='M11 15H13V9H16L12 4L8 9H11V15Z' fill='%238592A3'/%3e%3cpath d='M20 18H4V11H2V18C2 19.103 2.897 20 4 20H20C21.103 20 22 19.103 22 18V11H20V18Z' fill='%238592A3'/%3e%3c/svg%3e") !important;
background: #373b50;
}
.dark-style .dz-message .note {
color: #b2b2c4;
font-weight: 400;
}
.dark-style .dz-filename {
background: #2b2c40;
padding-top: 0.25rem;
padding-bottom: 0.25rem;
border-bottom: 0 solid #4e4f6c;
}
.dark-style .dz-size {
color: #7e7f96;
}
.dark-style .dz-thumbnail {
border-bottom: 1px solid #4e4f6c;
background: rgba(230, 230, 241, 0.025);
border-top-left-radius: calc(0.375rem - 1px);
border-top-right-radius: calc(0.375rem - 1px);
}
.dark-style .dz-nopreview {
color: #7e7f96;
}
.dark-style .dz-remove {
color: #b2b2c4;
border-top: 1px solid #4e4f6c;
border-bottom-right-radius: calc(0.375rem - 1px);
border-bottom-left-radius: calc(0.375rem - 1px);
}
.dark-style .dz-remove:hover, .dark-style .dz-remove:focus {
color: #b2b2c4;
background: rgba(230, 230, 241, 0.1);
}
.dark-style .dz-error-mark,
.dark-style .dz-success-mark {
background-color: rgba(107, 108, 157, 0.5);
}
.dark-style .dz-error-message {
background: rgba(255, 62, 29, 0.8);
border-top-left-radius: 0.375rem;
border-top-right-radius: 0.375rem;
}
@media (min-width: 576px) {
.dark-style .dz-preview {
display: inline-block;
width: 11.25rem;
}
.dark-style .dz-thumbnail {
width: 10rem;
}
}