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.6 KB
Raw Blame
// ============================================
// RESET & BASE STYLES
// ============================================

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

// Focus visibility (app-wide baseline).
// Suppress the ring for pointer/mouse focus, but guarantee a consistent,
// visible accent ring for keyboard users on every focusable element.
// Components may override with a tuned ring (offset/radius) as needed.
:focus:not(:focus-visible) {
    outline: none;
}

:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

html {
    font-size: $text-md;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: $bg-body;
    color: $text-primary;
    font-family: $font-main;
    font-size: $text-base;
    line-height: $line-height-normal;
    // Tabular figures so numbers line up in tables and stats without
    // switching to monospace.
    font-variant-numeric: tabular-nums;
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

// Buttons, inputs and selects inherit the page font. Without this, every
// button without its own font-size rendered at the browser's 13.33px.
button,
input,
select,
textarea {
    font: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

ul, ol {
    list-style: none;
}

// Selection
::selection {
    background: $accent-primary;
    color: white;
}

// Scrollbar (global)
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--scrollbar-track, #0a0b0e);
}

::-webkit-scrollbar-thumb {
    background: $border-active;
    border-radius: $radius-badge;

    &:hover {
        background: $text-tertiary;
    }
}

// ============================================
// REDUCED MOTION
// ============================================
// Honor the OS "reduce motion" setting across the whole app: collapse
// transitions and decorative keyframe animations to effectively instant.
// Loading spinners are re-enabled below because the rotation IS the
// "working…" status cue, not decoration, so freezing it would hide state.
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        transition-delay: 0ms !important;
        scroll-behavior: auto !important;
    }

    // Keep loading indicators turning (higher specificity wins over `*`).
    .spinner-ring,
    [class*="spinner"] {
        animation-duration: 0.8s !important;
        animation-iteration-count: infinite !important;
    }
}