@import '@/styles/variables.scss';
@import "../shared.scss";

.libraryView {
    @include overlayTool;
    margin: 20px 20px 0;

    display: flex;
    flex-direction: column;

}

.header {
    font-size: 120%;
    border-bottom: 1px solid $color-light-grey;
    padding: 0 10px;
    text-align: center;
    position: relative;
}

.entry {
    padding: 0 10px;
    display: flex;
}

.name {
    flex: 1 0 0;
    cursor: pointer;

    &:hover {
        background-color: lighten($color-highlight, 25%);
    }
}

.divider {
    border-bottom: 1px solid $color-light-grey;
}

.btn {
    background-color: transparent;
    border: none;
    cursor: pointer;
    margin: 0;
    outline: none;
    padding: 0 10px;

    &:hover:not(:disabled) {
        background-color: rgba($color-highlight, 0.5);
    }

    &:disabled {
        cursor: default;
        opacity: 0.5;
    }
}

.btnIcon {
    @extend .btn;
    font-size: 80%;
    color: #777;
}

.input {
    width: 100%;
    flex: 1 0 0;
    border-radius: 4px;

    &:focus {
        background-color: #eee;
        outline: none;
        border: none;
    }
}
