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.

4.6 KB
Raw Blame
.app-map {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;

    .sk-topbar {
        flex: 0 0 auto;
    }

    &__viewmeta {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        margin: 0.75rem 0 0.5rem;
        font-size: $text-sm;
        color: $text-secondary;

        span {
            flex: 1;
        }
    }

    &__legend-toggle {
        background: transparent;
        border: 1px solid $border-subtle;
        color: $text-secondary;
        font-size: $text-xs;
        padding: $space-1 $space-3;
        border-radius: $radius-badge;
        cursor: pointer;

        &:hover {
            background: $bg-hover;
            color: $text-primary;
        }
    }

    &__legend {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem 1rem;
        padding: 0.5rem 0.75rem;
        margin-bottom: 0.5rem;
        background: $bg-card;
        border: 1px solid $border-subtle;
        border-radius: $radius-control;
        font-size: $text-xs;
        color: $text-secondary;
    }

    &__legend-item {
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
    }

    &__legend-swatch {
        display: inline-block;
        width: 12px;
        height: 12px;
        border: 1px solid;
        border-radius: $radius-badge;
    }

    &__canvas {
        flex: 1 1 auto;
        min-height: 480px;
        border: 1px solid $border-subtle;
        border-radius: $radius-card;
        background: $bg-card;
        overflow: hidden;
        position: relative;

        .react-flow__attribution {
            display: none;
        }

        .react-flow__minimap {
            background: var(--bg-elevated);
        }
    }

    // Node label + subtitle rendered inside ReactFlow's default node body.
    .react-flow__node .app-map__node-name {
        font-weight: $font-weight-semibold;
    }

    .react-flow__node .app-map__node-sub {
        margin-top: $space-hair;
        font-size: $text-xs;
        opacity: 0.7;
    }
}

.documentation {
    &__search {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        min-width: 240px;
        color: $text-secondary;

        input {
            min-width: 220px;
        }
    }

    &__group {
        margin-top: 1.25rem;
    }

    &__group-title {
        font-size: $text-xs;
        font-weight: $font-weight-semibold;
        color: $text-secondary;
        margin: 0 0 0.6rem;
    }

    &__list {
        list-style: none;
        margin: 0;
        padding: 0;
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 0.5rem;

        li {
            display: flex;
            flex-direction: column;
            gap: $space-1;
            padding: 0.7rem 0.85rem;
            border: 1px solid $border-subtle;
            border-radius: $radius-control;
            background: $bg-card;
            transition: border-color 0.15s ease, background-color 0.15s ease;

            &:hover {
                background: $bg-hover;
                border-color: $border-hover;
            }
        }
    }

    &__link {
        display: flex;
        align-items: center;
        gap: 0.6rem;
        text-decoration: none;
        color: $text-primary;
        font-size: $text-base;
        line-height: 1.3;
    }

    &__icon {
        display: inline-flex;
        color: $text-secondary;
    }

    &__label {
        flex: 1;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    &__path {
        font-family: $font-mono, monospace;
        font-size: $text-xs;
        color: $text-tertiary;
        background: $bg-elevated;
        padding: 1px $space-tight;
        border-radius: $radius-badge;
    }

    &__ext {
        color: $text-tertiary;
    }

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

    &__empty {
        color: $text-secondary;
        font-style: italic;
        padding: 1rem;
    }
}

// Dev Tools sidebar section: visually distinct.
.sidebar .nav-category--dev {
    margin-top: 1.75rem;
    padding-top: 0.75rem;
    border-top: 1px dashed $border-subtle;
    color: $primary-color;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 0.4rem;

    &::before {
        content: '';
        display: inline-block;
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: $primary-color;
    }
}

.sidebar .nav-item--dev {
    border: 1px dashed transparent;

    &.active,
    &:hover {
        border-color: rgba($accent-primary-raw, 0.35);
    }
}