toggle-corp/react-store

View on GitHub
components/Input/FileInput/styles.scss

Summary

Maintainability
Test Coverage
.file-input-wrapper {
    display: inline-block;
    width: 100%;

    .preview {
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: var(--color-foreground);

        .img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            object-position: center center;
        }
    }

    .label {
        display: block;
        cursor: pointer;
        padding: var(--spacing-medium);
        width: 100%;
        text-align: center;
        text-transform: uppercase;
    }

    .input {
        display: none;
    }

    .status {
        margin: 0;
    }
}