Skip to content
Snippets Groups Projects
library.css 2.34 KiB
Newer Older
steven dale's avatar
steven dale committed
@import "../../css/units.css";
@import "../../css/colors.css";

Ray Schamp's avatar
Ray Schamp committed
.library-scroll-grid {
    flex-grow: 1;
    flex-wrap: wrap;
steven dale's avatar
steven dale committed
    justify-content: space-between;
steven dale's avatar
steven dale committed
    overflow-y: scroll;
    margin-bottom: 2rem;
    padding: 0.5rem;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 1.5rem;
    font-weight: normal;
    color: #8e8f95;
steven dale's avatar
steven dale committed

.full-modal-header {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-content: center;

    box-sizing: border-box;
    width: 100%;
    background-color: $blue;

    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 1rem;
    font-weight: normal;
}

.modal-header-item {
    display: flex;
    align-items: center;
    padding: 1rem;
steven dale's avatar
steven dale committed
    cursor: pointer;
    text-decoration: none;
    color: white;
    user-select: none;
}

/*
    Modal header has 3 items:

    |filter     title       x|

    Use the same width for both side item containers,
    so that title remains centered
*/
$sides: 20rem;

.header-item-filter {
steven dale's avatar
steven dale committed
    display: flex;
    flex-basis: $sides;
steven dale's avatar
steven dale committed
    justify-content: flex-end;
}

.header-item-title {
    flex-grow: 1;
    flex-shrink: 0;
steven dale's avatar
steven dale committed
    justify-content: center;
}

.header-item-close {
    flex-basis: $sides;
steven dale's avatar
steven dale committed
    justify-content: flex-end;
}

/* @todo: make filter component */
.filter-component {
    display: flex;
    flex-direction: row;
    align-content: center;
    align-items: center;

    padding: $space;
    background: rgba(0, 0, 0, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.10);
steven dale's avatar
steven dale committed
    border-radius: 10rem;
    cursor: initial;
}

.filter-icon {
    height: 1rem;
    width: 1rem;
    margin: 0 0.5rem 0 0.75rem;
    cursor: initial;
}

.x-icon {
    position: relative;
    margin: 0 0.75rem 0 0.5rem;
}

.x-icon:hover:before {
    position: absolute;
    height: 1.25rem;
    width: 1.25rem;
    background: rgba(255, 255, 255, 0.10);
}

.filter-input {
    flex-grow: 1;
    line-height: 1.25rem;
    background-color: transparent;
steven dale's avatar
steven dale committed
    -webkit-appearance: none;
    outline: none;
steven dale's avatar
steven dale committed
    border: 0;
    color: white;
    font-size: 0.75rem;
    letter-spacing: 0.15px;
    cursor: text;
}
steven dale's avatar
steven dale committed

.filter-input::placeholder {
    color: white;
    opacity: 0.75;
    font-size: 0.75rem;
    letter-spacing: 0.15px;
    padding: 0 0 0 0.25rem;
steven dale's avatar
steven dale committed
}