@import "variables";

:host {
    display: block;
}
.collection {
    background-color: white;
    color: rgba(0, 0, 0, 0.87);
    transition: transform 250ms cubic-bezier(0, 0, 0.2, 1);

    .collection-detail {
        padding: 6px 12px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        border-bottom: 1px solid $color-grey-2;

        &.active {
            background-color: $color-grey-2;
        }

        &.depth-1 { padding-left: 12px + 24px; }
        &.depth-2 { padding-left: 12px + 48px; }
        &.depth-3 { padding-left: 12px + 72px; }
        &.depth-4 { padding-left: 12px + 96px; }
    }
}

.flex-spacer {
    flex: 1;
}

.tree-node {
    display: block;
    background: white;
    overflow: hidden;
}

.drag-placeholder {
    min-height: 120px;
    background-color: $color-grey-3;
    transition: transform 250ms cubic-bezier(0, 0, 0.2, 1);
}

.cdk-drag-preview {
    box-sizing: border-box;
    border-radius: 4px;
    box-shadow: 0 5px 5px -3px rgba(0, 0, 0, 0.2),
    0 8px 10px 1px rgba(0, 0, 0, 0.14),
    0 3px 14px 2px rgba(0, 0, 0, 0.12);
}

.cdk-drag-placeholder {
    opacity: 0;
}

.cdk-drag-animating {
    transition: transform 250ms cubic-bezier(0, 0, 0.2, 1);
}

.example-list.cdk-drop-list-dragging .tree-node:not(.cdk-drag-placeholder) {
    transition: transform 250ms cubic-bezier(0, 0, 0.2, 1);
}
