Skip to content

ServerKit is a lightweight, modern server control panel for managing web applications, databases, and services on your VPS or dedicated server. Built with Python/Flask backend and React frontend.

3.2 KB
Raw Blame
// ============================================
// DEPLOYMENTS PAGE  (/deployments)
// Deploy Activity — the runs table. Each row deep-links to the Deploy Console
// (/deployments/:jobId, _deploy-console.scss). The table, its chrome and its
// footer are the shared ds/DataTable + ds/grid components, so only the two cells
// with a shape of their own live here: the type chip and the pipeline ticks.
// ============================================

.deployments-page {
    // Full width like every list; the Deploy cell takes the spare
    // width, so a row's timing columns stay together at the right edge.

    // Target / Took / Started are short and fixed, but they sit beside a Deploy
    // cell that takes every spare pixel — left to wrap, "Local server" alone
    // doubles the height of every row.
    .sk-cell-dim { white-space: nowrap; }

    &__kind {
        padding: 1px $space-tight;
        border: 1px solid var(--border);
        border-radius: $radius-badge;
        color: var(--text-ghost);
        font-size: $text-xs;
    }

    &__error { color: var(--red); }

    &__pipe {
        display: flex;
        align-items: center;
        gap: $space-2;
    }

    &__ticks {
        display: flex;
        gap: $space-1;

        i {
            display: block;
            width: 7px;
            height: 15px;
            border-radius: $radius-badge;
            background: var(--surface-3);

            &.is-done { background: var(--green); }
            &.is-failed { background: var(--red); }
            &.is-running {
                background: var(--amber);
                animation: deploy-tick-pulse 1.2s ease-in-out infinite;
            }
        }
    }

    &__pipe-count {
        color: var(--text-ghost);
        font-size: $text-xs;
    }

    // ---- test-deployment (simulated) scenario picker ----
    &__sim-intro {
        margin: 0 0 $space-3;
        color: $text-secondary;
        font-size: $text-xs;
        line-height: 1.5;
    }

    &__sim-speed {
        display: flex;
        align-items: center;
        gap: $space-2;
        margin-bottom: $space-3;
        color: $text-tertiary;
        font-size: $text-xs;
        font-weight: $font-weight-semibold;
    }

    &__sim-list {
        display: grid;
        gap: $space-2;
    }

    &__sim-scenario {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: $space-3;
        width: 100%;
        padding: $space-3;
        background: $bg-elevated;
        border: 1px solid $border-subtle;
        border-radius: $radius-control;
        cursor: pointer;
        text-align: left;

        &:hover:not(:disabled) {
            background: $bg-hover;
            border-color: $accent-primary;
        }

        &:disabled {
            opacity: 0.6;
            cursor: default;
        }
    }

    &__sim-scenario-text {
        display: grid;
        gap: $space-hair;
        min-width: 0;

        strong { color: $text-primary; font-size: $text-xs; font-weight: $font-weight-semibold; }
        span { color: $text-tertiary; font-size: $text-xs; line-height: 1.4; }
    }
}

@keyframes deploy-tick-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}