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.

6.7 KB
Raw Blame
// ============================================
// LINKED APPS SECTION
// ============================================

.linked-apps-section {
    margin-top: $space-4;
}

.linked-apps-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: $space-4;

    h3 {
        display: flex;
        align-items: center;
        gap: $space-2;
        margin: 0;
        font-size: $text-base;
        font-weight: $font-weight-semibold;
        color: $text-primary;
    }
}

.linked-apps-content {
    display: flex;
    flex-direction: column;
    gap: $space-4;
}

.current-environment {
    display: flex;
    align-items: center;
    gap: $space-3;
    padding: $space-3;
    background: $bg-hover;
    border-radius: $radius-control;

    .env-label {
        font-size: $text-xs;
        color: $text-secondary;
    }
}

.linked-apps-divider {
    display: flex;
    align-items: center;
    gap: $space-3;
    color: $text-tertiary;
    font-size: $text-xs;

    &::before,
    &::after {
        content: '';
        flex: 1;
        height: 1px;
        background: $border-subtle;
    }
}

.linked-apps-list {
    display: flex;
    flex-direction: column;
    gap: $space-3;
}

.linked-app-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: $space-3;
    background: $bg-card;
    border: 1px solid $border-subtle;
    border-radius: $radius-control;
    transition: border-color $transition-fast;

    &:hover {
        border-color: $border-default;
    }
}

.linked-app-info {
    display: flex;
    align-items: center;
    gap: $space-3;
}

.linked-app-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px; // geometry: icon tile
    background: $accent-glow;
    color: $accent-primary;
    border-radius: $radius-control;
}

.linked-app-details {
    display: flex;
    flex-direction: column;
    gap: $space-1;
}

.linked-app-name {
    font-weight: $font-weight-medium;
    color: $text-primary;
}

.linked-app-meta {
    display: flex;
    align-items: center;
    gap: $space-2;
    font-size: $text-xs;
}

.linked-app-port {
    color: $text-tertiary;
    font-family: $font-mono;
    font-size: $text-xs;
}

.linked-app-actions {
    display: flex;
    gap: $space-2;
}

.linked-apps-empty,
.linked-apps-info {
    padding: $space-4;
    text-align: center;
    background: $bg-hover;
    border-radius: $radius-control;

    p {
        margin: 0 0 $space-3;
        color: $text-secondary;
        font-size: $text-xs;
    }

    .btn {
        margin-top: $space-2;
    }
}

.linked-apps-info p {
    margin: 0;
}

// Shared config info
.shared-config-info {
    padding: $space-3;
    background: fade($accent-primary-raw, 10%);
    border: 1px solid fade($accent-primary-raw, 20%);
    border-radius: $radius-control;
}

.shared-config-badge {
    display: inline-flex;
    align-items: center;
    gap: $space-1;
    font-size: $text-xs;
    font-weight: $font-weight-medium;
    color: $accent-primary;
    margin-bottom: $space-2;
}

.shared-config-details {
    display: flex;
    flex-wrap: wrap;
    gap: $space-3;
    font-size: $text-xs;
    color: $text-secondary;

    span {
        background: $bg-card;
        padding: $space-1 $space-2;
        border-radius: $radius-badge;
    }
}

// ============================================
// LINK APP MODAL
// ============================================

.link-app-modal {
    max-width: 500px;

    .modal-header h2 {
        display: flex;
        align-items: center;
        gap: $space-2;
    }
}

.link-app-current {
    display: flex;
    align-items: center;
    gap: $space-2;
    padding: $space-3;
    background: $bg-hover;
    border-radius: $radius-control;
    margin-bottom: $space-4;

    .link-app-label {
        color: $text-tertiary;
        font-size: $text-xs;
    }

    .link-app-name {
        font-weight: $font-weight-medium;
        color: $text-primary;
    }
}

.link-app-empty {
    text-align: center;
    padding: $space-6;

    svg {
        color: $text-tertiary;
        margin-bottom: $space-3;
    }

    h3 {
        margin: 0 0 $space-2;
        font-size: $text-lg;
    }

    p {
        color: $text-secondary;
        font-size: $text-xs;
        margin-bottom: $space-4;
    }
}

.env-radio-group {
    display: flex;
    gap: $space-2;
}

.env-radio-option {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: $space-2;
    padding: $space-3;
    background: $bg-card;
    border: 2px solid $border-subtle;
    border-radius: $radius-control;
    cursor: pointer;
    transition: all $transition-fast;

    input {
        display: none;
    }

    &:hover {
        border-color: $border-default;
    }

    &.selected {
        border-color: $accent-primary;
        background: $accent-glow;
    }

    .env-radio-label {
        font-size: $text-xs;
        color: $text-secondary;
    }
}

.link-preview {
    margin: $space-4 0;
    padding: $space-4;
    background: $bg-hover;
    border-radius: $radius-control;
}

.link-preview-title {
    font-size: $text-xs;
    color: $text-tertiary;
    margin-bottom: $space-3;
}

.link-preview-diagram {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: $space-4;
}

.link-preview-app {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: $space-2;
    padding: $space-3;
    background: $bg-card;
    border: 1px solid $border-subtle;
    border-radius: $radius-control;
    min-width: 120px;
}

.link-preview-name {
    font-size: $text-xs;
    font-weight: $font-weight-medium;
    color: $text-primary;
}

.link-preview-connector {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px; // geometry: connector icon disc
    background: $accent-glow;
    color: $accent-primary;
    border-radius: 50%;
}

.modal-loading {
    padding: $space-6;
    text-align: center;
    color: $text-secondary;
}

// Small status badge variant
.status-badge-sm {
    display: inline-flex;
    align-items: center;
    gap: $space-1;
    padding: $space-hair $space-2;
    border-radius: $radius-full;
    font-size: $text-xs;
    font-weight: $font-weight-medium;

    .status-dot {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: currentColor;
    }

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

    &.status-stopped {
        background: fade($text-tertiary-raw, 10%);
        color: $text-tertiary;
    }

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

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