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.

2.3 KB
Raw Blame
// ============================================
// FLEET PROXY (fleet-wide reverse-proxy dashboard)
// ============================================
//
// Aggregates every server's managed-proxy posture into one table. Lives inside
// the Servers tab group, so it renders within `.sk-tabgroup__inner` and uses
// the shared design-system primitives (DataTable, Pill). Tokens only — no
// hard-coded colors.

.fleet-proxy {
    display: flex;
    flex-direction: column;
    gap: $space-4;

    // No intro header and no KPI band: the tab strip names the page, and every
    // tile was a re-count of a column on the table. What the page is for is
    // explained where it's actually needed — the empty state.

    // "Apps" cell: count plus an optional amber mismatch pill.
    &__apps {
        display: inline-flex;
        align-items: center;
        gap: $space-2;
        flex-wrap: wrap;

        .sk-pill svg {
            margin-right: $space-hair;
        }
    }

    &__table {
        background: $bg-card;
        border: 1px solid $border-subtle;
        border-radius: $radius-card;
        overflow: hidden;
    }

    &__row:hover {
        background: $bg-elevated;
    }

    // Server name cell links through to the per-server Proxy tab.
    &__server {
        display: inline-flex;
        align-items: center;
        gap: $space-2;
        color: $text-primary;
        font-weight: $font-weight-medium;
        text-decoration: none;

        &:hover {
            color: var(--accent-bright);
        }
    }

    &__muted {
        color: $text-secondary;
        font-size: $text-xs;
    }

    // Per-row actionable recommendation pill. The text can be a full sentence,
    // so allow it to wrap and clamp its width rather than stretch the row.
    &__recommendation {
        max-width: 32ch;
        white-space: normal;
        text-align: left;
        line-height: 1.3;
    }

    &__col-actions {
        text-align: right;
        white-space: nowrap;
    }

    &__error {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: $space-3;
        padding: $space-4;
        background: $danger-bg;
        border: 1px solid $danger-border;
        border-radius: $radius-control;
        color: $danger;
        font-size: $text-xs;
    }
}