@import '~styles/settings';

.archiveSidebar {
    top: 56px;
    bottom: 0;
    position: fixed;
    width: $sidebar-width;
    z-index: 999;
    overflow-y: scroll;
    overflow-x: hide;

    background: $background-grey-light;

    transition: all 0.4s;
    visibility: hidden;
    transform: translate3d(-100%, 0, 0);

}

.archiveSidebar-opened {
    transform: translate3d(0, 0, 0);
    visibility: visible;
}

// todo: fix at left side of screen when bigger than $total-screen-width
@media only screen and (max-width: $total-screen-width) {

}

.archiveSidebar-item {
    margin: 10px;
    padding: 10px 20px 0;
    width: calc(100% - 20px);
    height: $sidebar-item-height;
    overflow: hidden;

    position: relative;
    background: white;

    cursor: move;

    .archiveSidebar-header {
        h2 {
            font-size: 2rem;
            color: $accent-color
        }
        span {
            margin-left: 0.2rem;
            font-size: 0.8rem;
            color: $secondary-text-color;
        }
    }

    .archiveSidebar-content {
        font-size: 0.7rem;
        opacity: 0.8;
        margin-top: 5px;
        * {
            cursor: move !important;
        }
    }

    .archiveSidebar-actions {
        position: absolute;
        top: 10px;
        right: 10px;

        .archiveSidebar-delete {
            color: $accent-color;
        }
        button {
            color: $accent-color;
        }
    }
}

.archiveSidebar-fadeout {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 4em;
    background: -webkit-linear-gradient(
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 1) 100%
    );

    z-index: 100;
}

