관리-도구
편집 파일: vendor-product.scss
/* Image Upload */ .upload-file { position: relative; display: inline-block; margin: auto; max-width: 100%; &__input { position: absolute; inset-inline-start: 0; inset-block-start: 0; inline-size: 100%; block-size: 100%; cursor: pointer; opacity: 0; z-index: 9; } &__wrapper { height: 100px; min-width: 100px; max-width: 100%; border-radius: 5px; background: var(--bs-white); border: 1px dashed var(--bs-border-color); display: flex; justify-content: center; align-items: center; aspect-ratio: 1; position: relative; overflow: hidden; transition: all 0.3s ease-in-out; .upload-file-img { inline-size: 100%; block-size: 100%; object-fit: cover; display: none; } .upload-file-textbox { user-select: none; } } .overlay { position: absolute; inset-inline-start: 0; inset-block-start: 0; inline-size: 100%; block-size: 100%; opacity: 0; border-radius: 5px; background: linear-gradient( 0deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.4) 100% ); transition: opacity 0.3s ease-in-out; z-index: 2; .icon-btn { inline-size: 20px; block-size: 20px; padding: 5px; font-size: 10px; background-color: var(--bs-white); cursor: pointer; } } &:hover .overlay.show { opacity: 1; z-index:10; } .remove_btn { position: absolute; inset-block-start: -5px; inset-inline-end: -5px; z-index: 11; opacity: 0; } &.input-disabled { .single_file_input { pointer-events: none; opacity: 0; } } } // Image Modal #imageModal { .modal-dialog, .modal-content { width: fit-content !important; } } .imageModal { background-color: rgba(0, 0, 0, 0.6); .modal-dialog, .modal-content { width: auto; width: fit-content; } .modal-content{ background: transparent; border: none; } .imageModal_img_wrapper { position: relative; max-width: 700px; max-height: 90vh; margin: auto; background-color: #fff; border-radius: 10px; display: flex; justify-content: center; align-items: center; padding: .5rem; overflow: hidden; .imageModal_img { width: auto; height: auto; min-width: 100px; max-width: 100%; max-height: calc(90vh - 100px); text-align: center; object-fit: contain; border-radius: inherit; } .imageModal_btn_wrapper{ position: absolute; bottom: 0.5rem; inset-inline-end: 0.5rem; display: flex; gap: 5px; align-items: center; } .download_btn{ color: var(--bs-dark); background-color: #fff; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4); &:hover { box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5); } } } } @media (max-width:767px) { .imageModal { .imageModal_img_wrapper { max-width: 100%; } } } .tooltip-icon { color: var(--body-light-color); cursor: pointer; } /* fixed action button */ .action-btn-wrapper { --bs-bg-opacity: 0; transition: all 0.3s ease-in-out; -webkit-animation: actionFooterShow 0.3s ease-out; animation: actionFooterShow 0.3s ease-out; &.fixed { inline-size: fit-content; padding: 1.25rem; box-shadow: var(--toaster-shadow); border-top-left-radius: 0.625rem; --bs-bg-opacity: 1; transition: all 0.3s ease-in-out; -webkit-animation: actionFooterShow 0.3s ease-out; animation: actionFooterShow 0.3s ease-out; } } @keyframes actionFooterShow { 0% { -webkit-transform: translateY(-0.625rem); transform: translateY(-0.625rem); opacity: 0; } 100% { -webkit-transform: translateY(0); transform: translateY(0); opacity: 1; } } [dir="rtl"] .action-btn-wrapper { &.fixed { border-top-left-radius: 0; border-top-right-radius: 0.625rem; } } @media (max-width: 575px) { .action-btn-wrapper { &.fixed { border-top-left-radius: 0.625rem; border-top-right-radius: 0.625rem; padding: 1rem; } } } @media (min-width: 576px) { .flex-grow-sm-0 { flex-grow: 0 !important; } } .select2-container--default .select2-selection--multiple .select2-selection__rendered .select2-selection__choice__remove { color: #fff; background-color: var(--border-dark); border-radius: 20px; width: 1rem; height: 1rem; font-size: 15px; line-height: 1; border: none; padding: 0; // padding-bottom: 2px; padding-inline-start: 0; font-weight: 300; position: static; display: flex; justify-content: center; align-items: center; margin-inline-start: 5px; } .image-uploader { --aspect-ratio: 1; --size: 180px; overflow: hidden; position: relative; block-size: var(--size); min-inline-size: var(--size); max-inline-size: 100%; border-radius: 0.5rem; cursor: pointer; aspect-ratio: var(--aspect-ratio); border: 2px dashed var(--bs-border-color); &__zip { position: absolute; inline-size: 100%; block-size: 100%; opacity: 0; cursor: pointer; z-index: 2; inset: 0; } &__zip-preview { display: flex; align-items: center; flex-direction: column; justify-content: center; inline-size: 100%; block-size: 100%; background-color: transparent; text-align: center; gap: 10px; padding: 10px; } &__zip-preview img { width: 40px; height: 40px; -o-object-fit: contain; object-fit: contain; } &__icon_delete, &__icon { border-radius: inherit; } .zip-remove-btn { position: absolute; inset-inline-end: 16px; top: 16px; z-index: 4; padding-top: 7px; &__outside { top: -10px; inset-inline-end: -10px; padding-top: 0; } } &__file { position: absolute; inline-size: 100%; block-size: 100%; opacity: 0; cursor: pointer; z-index: 2; inset: 0; } } .overflow-visible{ overflow: visible; } .document-upload-wrapper.lg { height: 180px; max-width: 100%; } .document-upload-wrapper.lg + .pdf-single { max-width: 100%; } .fs-18{ font-size: 18px !important; } .bootstrap-tagsinput .tag{ overflow-wrap: anywhere; }