@import '~assets/styles/drag.scss';

.projector-detail-wrapper {
    #projector {
        border: 1px solid lightgrey;
    }
}

.column-left {
    color: black;

    /* Do not let the a tag ruin the projector */
    a {
        color: inherit;
        text-decoration: inherit;
    }
}

.control-group {
    color: rgba(0, 0, 0, 0.5);

    .button-size {
        padding-left: 5px;
        display: inline-block;
    }
}

.slide-controls {
    text-align: center;
}

.projector-controls {
    text-align: right;
}

.current-element {
    margin-bottom: 20px;
    box-shadow: 0px 3px 10px 0px rgba(0, 0, 0, 0.25);

    .emelent-grid {
        display: grid;
        width: 100%;
        grid-gap: 5px;
        grid-template-columns: min-content 1fr min-content;
        .mat-icon-button {
            display: inherit;
        }
        .current-element-text {
            margin-top: auto;
            margin-bottom: auto;
        }
    }
}

.queue {
    box-shadow: none !important;
    background: none !important;
    margin-bottom: 20px;
    .queue-element {
        margin-bottom: 5px;
    }

    .mat-expansion-panel-header {
        padding: 0 5px 0 0 !important;
        height: 36px !important;
    }

    .mat-action-row {
        border-top-style: none;
        padding: 0;
    }
}

.drop-list {
    width: 100%;
    display: block;
    overflow: hidden;
}

.drop-list-entry {
    display: table;
    min-height: 50px;
    width: 100%;

    .drag-handle {
        display: table-cell;
        padding: 0 10px;
        line-height: 0px;
        vertical-align: middle;
        width: 25px;
        color: slategrey;
        cursor: move;

        &.no-drag {
            cursor: default;
        }
    }

    .button-right {
        display: table-cell;
        padding-right: 10px;
        vertical-align: middle;
        width: auto;
        white-space: nowrap;

        div {
            float: right;
        }
    }

    .name {
        display: table-cell;
        vertical-align: middle;
    }
}

.drop-list-entry:last-child {
    border: none;
}

// move away from preview.
.drop-list.cdk-drop-list-dragging .drop-list-entry:not(.cdk-drag-placeholder) {
    transition: transform 250ms cubic-bezier(0, 0, 0.2, 1);
}

.larger-mat-list-item {
    height: auto;
}

.larger-mat-list-item + .larger-mat-list-item {
    margin-top: 15px;
}

.dynamic-list-entry {
    width: 100%;
}
