All Downloads are FREE. Search and download functionalities are using the official Maven repository.

sass.n2o.components.ImageUploader.scss Maven / Gradle / Ivy

The newest version!
.n2o-image-uploader-container {
    max-width: max-content;
    min-height: max-content;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.n2o-image-uploader-link {
    position: relative;
    height: 100px;
    display: flex;
    align-items: center;
}

.n2o-image-uploader-link--shape-circle,
.n2o-image-uploader-link--shape-circle.single-img {
    border-radius: 50% !important;
    overflow: hidden;
}

.n2o-image-uploader-link.single-img {
    border: $image-uploader-card-border;
    border-radius: 3px;
}

.n2o-image-uploader__watch {
    width: 100%;
    height: 100%;
    position: absolute;
    display: flex;
    align-items: center;
    border-radius: 3px;
    justify-content: center;
    color: #d2d2d2;
    background-color: $primary;
    opacity: 0;
    z-index: 100;
    transition: 0.3s;
}

.n2o-image-uploader__watch--icons-container {
    width: 2.5rem;
    display: flex;
    font-size: 16px;
    justify-content: space-around;
}

.n2o-image-uploader__watch--shape-circle {
    border-radius: 50%;
    position: relative;
    width: 100px;
    height: 100px;
}

.n2o-image-uploader-link:hover {
    .n2o-image-uploader__watch {
        opacity: 0.8;
        transition: 0.3s;
    }
}

.n2o-image-uploader__watch--eye:hover,
.n2o-image-uploader__watch--trash:hover {
    color: white;
    cursor: pointer;
}

.n2o-image-uploader-control {
    width: 100px;
    height: 100px;
    margin-right: 5px;
    margin-bottom: 5px;
    display: flex;
    border: 1px dashed #d9d9d9;
    border-radius: 3px;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 12px;
    transition: 0.3s;
}

.n2o-image-uploader-control.disabled {
    div::before {
        color: #263238;
        opacity: 0.65;
    }
}

.n2o-image-uploader-control--shape-square {
    border-radius: 0;
}

.n2o-image-uploader-control--shape-circle {
    border-radius: 50%;
}

.n2o-image-uploader-control.img-error {
    color: darkred;
}

.n2o-image-uploader-item-error {
    border-color: darkred !important;
}

.n2o-image-uploader-control:hover {
    border: $image-uploader-border;
    cursor: pointer;
    transition: 0.3s;
}

.n2o-image-uploader-control.disabled:hover {
    cursor: default;
    border-color: #d9d9d9;
}

.n2o-image-uploader-control.avatar {
    border: none;
    cursor: default;
    transition: 0.3s;
}

.n2o-image-uploader-control.avatar:hover {
    border: none;
    cursor: default;
    transition: 0.3s;
}

.n2o-image-uploader-img-info {
    display: flex;
}

.n2o-image-uploader-img-info__file-name {
    margin-right: 5px;
    font-size: 12px;
    color: #3f515e;
}

.n2o-image-uploader-img-info__file-size {
    margin-right: 5px;
    font-size: 12px;
    color: #3f515e;
}

.n2o-image-uploader-files-item {
    display: flex;
    max-height: 100px;
    margin-right: 5px;
    margin-bottom: 5px;
}

.n2o-image-uploader-files-item .with-info {
    min-height: 100px;
    border: $image-uploader-card-border;
    border-radius: 3px;
    margin-right: 5px;
}

.n2o-image-uploader-img-list {
    display: flex;
}

.n2o-image-uploader--img {
    max-width: 90px;
    min-width: 90px;
    max-height: 90px;
    margin: 0 5px 0 0;
    transform: scale(0.9);
    color: darkred;
    font-size: 14px;
    text-align: center;
}

.n2o-image-uploader--img--shape-circle {
    position: absolute;
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: 100%;
    transform: scale(1);
    object-fit: cover;
}

.n2o-image-uploader__modal {
    width: min-content;
    height: min-content;
    padding: 10px;
}

.n2o-image-uploader__modal--icon-close {
    color: #3f515e;
    float: right;
    margin: 15px;
}

.n2o-image-uploader__modal--icon-close:hover {
    cursor: pointer;
    color: $primary;
}

.n2o-image-uploader__modal--image {
    width: 400px;
    transform: scale(0.9);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy