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.

1.4 KB
Raw Blame
.status-badge {
    @include badge-geometry(); // components/_badges.scss: the 20px badge spec
    justify-content: center;
    border: 1px solid transparent;
    gap: $space-1;
    text-transform: capitalize;

    &__dot {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        flex-shrink: 0;
    }

    &--success {
        background: rgba($success-raw, 0.15);
        color: $success;
        .status-badge__dot { background: $success; }
    }

    &--danger {
        background: rgba($danger-raw, 0.15);
        color: $danger;
        .status-badge__dot { background: $danger; }
    }

    &--warning {
        background: rgba($warning-raw, 0.15);
        color: $warning;
        .status-badge__dot { background: $warning; }
    }

    &--info {
        background: rgba($accent-primary-raw, 0.15);
        color: $accent-primary;
        .status-badge__dot { background: $accent-primary; }
    }

    &--muted {
        background: $bg-hover;
        color: $text-tertiary;
        .status-badge__dot { background: $text-tertiary; }
    }

    &.online {
        @include status-variant($success, $success-bg);
    }

    &.offline {
        @include status-variant($danger, $danger-bg);
    }

    &.connecting {
        @include status-variant($warning, $warning-bg);
    }

    &.pending {
        background: $bg-secondary;
        color: $text-tertiary;
    }
}