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.2 KB
Raw Blame
// ============================================
// MONITORING PAGE (redesign — infra console look)
// ============================================

// Shared page surfaces live in _monitors.scss; this partial owns the
// group topbar scope picker and its portalled menu.

// ── server scope picker ──────────────────────────────────────
// Lives in the group top bar and its menu portals to <body>, so neither can be
// nested under .monitoring-page. Names which host every section below is
// describing — the reason Fleet Monitor no longer needs a page of its own.
.mon-scope {
    display: inline-flex;
    align-items: center;
    gap: $space-2;
    height: $control-md;
    padding: 0 $space-3;
    max-width: 210px;
    border: 1px solid var(--border);
    border-radius: $radius-control;
    background: var(--surface-2);
    color: var(--text-dim);
    font-size: $text-sm;
    cursor: pointer;
    transition: border-color 0.14s, color 0.14s;

    &:hover { border-color: var(--border-strong); color: var(--text); }

    &__ico { display: inline-flex; color: var(--accent-bright); flex-shrink: 0; }
    &__label { @include truncate(); }
    &__chev { flex-shrink: 0; opacity: 0.6; }

    &__menu { width: 260px; padding: 5px; }

    &__sep {
        height: 1px;
        margin: $space-tight $space-hair;
        background: var(--border-soft);
    }

    &__item {
        display: flex;
        align-items: center;
        gap: $space-2;
        width: 100%;
        padding: $space-2 $space-2;
        border: 0;
        border-radius: $radius-control;
        background: none;
        color: var(--text-dim);
        text-align: left;
        cursor: pointer;

        &:hover { background: var(--surface-3); color: var(--text); }
        &.is-on { color: var(--accent-bright); }

        > span {
            flex: 1;
            min-width: 0;
            font-size: $text-sm;
            @include truncate();
        }

        small {
            display: block;
            font-size: $text-xs;
            color: var(--text-faint);
            @include truncate();
        }

        svg { flex-shrink: 0; }
    }
}