ui/src/app/components/rollout/rollout.scss
@import "node_modules/argo-ui/v2/styles/colors";

.revision {
    padding: 15px;
    margin-bottom: 1em;
    background: none;

    background: $argo-color-gray-1;
    border-radius: 5px;

    &__header {
        display: flex;
        align-items: center;
        margin-bottom: 1em;
        font-size: 18px;
        font-weight: 500;
        &__button {
            cursor: pointer;
            &:hover {
                color: $sea;
            }
            &--dark:hover {
                color: $sky;
            }
        }
    }
}

.steps {
    width: 300px;
    flex-shrink: 0;
    overflow-y: auto;

    &__step {
        padding: 15px 18px;

        border-radius: 10px;
        border: 1px solid $argo-color-gray-4;
        &--dark {
            border: 1px solid $silver-lining;
        }

        &:hover {
            border: 1px solid $sherbert;
        }

        &--complete {
            border: 2px solid $argo-success-color;
        }

        &--complete:hover {
            border: 2px solid $argo-success-color;
        }

        &--current {
            border: 2px solid $argo-running-color;
        }

        &--current:hover {
            border: 2px solid $argo-running-color;
        }

        &-title {
            padding-left: 16px;
            padding-right: 16px;
            margin: 0 -16px;
            display: flex;
            align-items: center;
            &--experiment {
                padding-bottom: 8px;
                border-bottom: 1px solid $argo-color-gray-6;
            }
            & > i:first-child {
                margin-right: 5px;
            }
        }

        &__content {
            margin-left: -16px;
            margin-right: -16px;
            max-height: 160px;
            overflow-y: auto;

            &-body {
                padding: 8px 16px;
            }

            &-header {
                display: flex;
                align-items: center;
                justify-content: space-between;
                font-weight: 600;
            }

            &-title {
                padding-top: 8px;
                padding-bottom: 4px;
                font-size: 14px;
            }

            &-value {
                white-space: pre-wrap;
            }
        }
    }

    &__connector {
        height: 1em;
        width: 2px;
        background-color: $argo-color-gray-4;
        margin: 0 auto;
        &--dark {
            background-color: $silver-lining;
        }
    }
}

.image {
    &--red {
        color: $clay;
    }
    &--blue {
        color: $sea;
    }
    &--orange {
        color: $spray-tan;
    }

    &--red#{&}--dark {
        color: $coral;
    }
    &--blue#{&}--dark {
        color: $sky;
    }
    &--orange#{&}--dark {
        color: $sherbert;
    }
}

.info {
    border-radius: 5px;
    padding: 15px;
    background-color: white;
    height: max-content;
    box-sizing: border-box;

    &__section {
        margin-bottom: 0.5em;
        padding-bottom: 0.5em;
        border-bottom: 1px solid $argo-color-gray-4;

        &--dark {
            border-bottom: 1px solid $silver-lining;
        }
    }

    &__title {
        font-size: 18px;
        font-weight: 600;
        margin-bottom: 0.5em;
    }

    &--dark {
        background-color: $space;
        border-color: $silver-lining;
    }
}

.analysis {
    padding-top: 1em;
    border-top: 1px solid $argo-color-gray-4;
    &__runs {
        margin: 12px 0px;
        display: flex;
        flex-wrap: wrap;

        &-action {
            &.analysis--pending .action-button__background {
                background-color: $argo-color-gray-4;
                border-color: $argo-color-gray-4;
            }

            &.analysis--success .action-button__background {
                background-color: $argo-success-color;
                border-color: $argo-success-color;
            }

            &.analysis--failure .action-button__background {
                background-color: rgb(238, 111, 111);
                border-color: rgb(238, 111, 111);
            }

            .action-button {
                font-size: "10px";
                line-height: 1;
                border: "1px solid";
                padding: "8px 8px 8px 10px";
                border-radius: "12px";
                color: "white";
                margin-top: 4px;
            }

            &.analysis--success .action-button:hover {
                background-color: seagreen;
                border-color: seagreen;
            }

            &.analysis--failure .action-button:hover {
                background-color: red;
                border-color: red;
            }
        }
    }
    &--dark {
        border-top: 1px solid $silver-lining;
    }
    &-header {
        font-size: 16px;
        font-weight: 500;
        display: flex;
        align-items: center;
        & i {
            margin-left: 4px;
        }
    }
    &__run {
        width: 40px;
        cursor: pointer;
        margin-right: 5px;
        margin-bottom: 12px;
        height: 10px;
        border-radius: 5px;
        background-color: $argo-color-gray-4;

        &--successful {
            background-color: $argo-success-color;
        }
        &--failed {
            background-color: $coral;
        }

        &__jobs {
            margin-top: 8px;
            margin-bottom: 12px;
            background-color: $argo-color-gray-3;
            border-radius: 3px;
            display: flex;
            align-items: center;
            padding: 7px;

            &-info {
                font-size: 20px;
                margin-left: 4px;
            }

            &-list {
                flex: 1 1 0;
                display: flex;
                align-items: center;
                flex-wrap: wrap;
            }
        }
    }
    &--success {
        color: $argo-success-color;
        margin-left: 4px;
    }

    &--failure {
        color: $clay;
        margin-left: 4px;
    }
}

.containers {
    &__few {
        box-sizing: border-box;
        font-size: 18px;
        text-align: center;
        color: $argo-color-gray-5;
        margin-top: 2em;
        i {
            margin-right: 5px;
        }
        &--dark {
            color: $dull-shine;
        }
    }
}

.rollout {
    padding-bottom: 5em;
    &__row {
        display: flex;
        width: 100%;
        margin-bottom: 1.5em;
        justify-content: center;

        .info {
            height: auto;
        }

        &--bottom {
            .info {
                height: max-content;
            }
        }
    }

    &__info {
        width: 400px;
        margin-right: 15px;

        &:last-child {
            margin-right: 0;
        }
    }

    &__header {
        color: $argo-color-gray-8;
        font-size: 22px;
        margin-left: 12px;
        margin-right: auto;
        flex-shrink: 0;
        height: 2em;
        display: flex;
        align-items: center;
        &--dark {
            color: $shine;
        }
    }
    &__toolbar {
        box-sizing: border-box;
        font-size: 14px;
        font-weight: 600;
        display: flex;
        align-items: center;
        padding: 0 10px;
        padding-bottom: 1em;
        margin-bottom: 1.5em;
        border-bottom: 1px solid $argo-color-gray-4;
        background-color: white;
        padding-top: 1em;
        flex-wrap: wrap;
        &--dark {
            background-color: $space;
            border-bottom: 1px solid $silver-lining;
        }

        &__actions {
            @media screen and (max-width: 750px) {
                width: 100%;
                margin-top: 1em;
                margin-left: 7px;
            }
        }
    }

    &__revisions {
        width: 100%;
    }

    &__body {
        padding: 0 20px;
        color: $argo-color-gray-8;
        display: flex;
        flex-wrap: wrap;
        h3 {
            margin-bottom: 0px;
            font-size: 12px;
            font-weight: 500;
            color: $argo-color-gray-6;
        }

        &--dark {
            color: $shine;
            h3 {
                color: $dull-shine;
            }
        }
    }
}
