@import "../../css/units.css";
@import "../../css/colors.css";

.library-scroll-grid {
    display: flex;
    justify-content: center;
    align-content: flex-start;
    align-items: flex-start;
    background: $ui-secondary;
    flex-grow: 1;
    flex-wrap: wrap;
    overflow-y: auto;
    height: auto;
    padding: 0.5rem;
    height: calc(100% - $library-header-height);
}

[theme='dark'] .library-scroll-grid {
    background-color: $ui-primary-dark;
}

.library-scroll-grid.withFilterBar {
    height: calc(100% - $library-header-height - $library-filter-bar-height - 2rem);
}

.filter-bar {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    height: calc($library-filter-bar-height + 2rem); /* padding */
    background-color: $motion-transparent;
    padding: 0 1rem;
    font-size: .875rem;
}

[theme='dark'] .filter-bar {
    background-color: $ui-tertiary-dark;
}

.filter-bar-item {
    margin-right: .75rem;
}

.filter {
    flex-grow: 0;
}

.filter-input {
    width: 11.5rem;
    transition: .2s;
}

.filter-input:focus,
.filter-input:not([value=""]) {
    width: 18.75rem;
}

.divider {
    transform: scaleY(1.39);
    height: $library-filter-bar-height;
}

.tag-wrapper {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    height: $library-filter-bar-height;
    overflow: hidden;
}

[effect='blur'] .tag-wrapper {
	backdrop-filter: blur(4px);
}

.spinner-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-button {
    padding: .625rem 1rem;
    margin-right: 1rem;
    background: $motion-primary;
    border-radius: 1.375rem;
    color: $ui-white;
    height: $library-filter-bar-height;
}
