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.

3.5 KB
Raw Blame
// ============================================
// MODAL COMPONENTS
// ============================================

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    @include flex-center();
    z-index: $z-modal-backdrop;
    padding: $space-5;
    backdrop-filter: blur(4px);
}

.modal {
    background: $bg-card;
    border: 1px solid $border-subtle;
    border-radius: $radius-overlay;
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    @include custom-scrollbar();
}

.modal-lg {
    max-width: 900px;
    width: 90%;
}

.modal-header {
    @include flex-between();
    padding: $space-6;
    border-bottom: 1px solid $border-subtle;

    h2 {
        font-size: $text-lg;
        font-weight: $font-weight-semibold;
    }
}

.modal-close {
    background: none;
    border: none;
    color: $text-tertiary;
    font-size: $text-xl;
    cursor: pointer;
    line-height: 1;
    padding: $space-1;
    @include transition(color);

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

.modal-body {
    padding: $space-6;
    max-height: 60vh;
    overflow-y: auto;
    @include custom-scrollbar();
}

.modal form {
    padding: $space-6;
}

.modal-actions {
    display: flex;
    gap: $space-3;
    justify-content: flex-end;
    margin-top: $space-6;
    padding-top: $space-6;
    border-top: 1px solid $border-subtle;
}

.modal-footer {
    display: flex;
    gap: $space-3;
    justify-content: flex-end;
    padding: $space-4 $space-6;
    border-top: 1px solid $border-subtle;
}

// Type selection grid (used in create app modal)
.app-type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: $space-4;
    padding: $space-6;
}

.app-type-card {
    background: $bg-body;
    border: 1px solid $border-subtle;
    border-radius: $radius-overlay;
    padding: $space-6;
    text-align: center;
    cursor: pointer;
    @include transition();

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

.app-type-icon {
    @include icon-box(48px);
    border-radius: $radius-overlay;
    font-size: $text-lg;
    font-weight: $font-weight-semibold;
    color: white;
    margin: 0 auto $space-4;
}

.app-type-card h3 {
    font-size: $text-base;
    font-weight: $font-weight-semibold;
    margin-bottom: $space-1;
    color: $text-primary;
}

.app-type-card p {
    font-size: $text-xs;
    color: $text-tertiary;
    line-height: $line-height-normal;
}

// Confirmation Dialog
.confirm-dialog {
    max-width: 400px;
    text-align: center;
}

.confirm-dialog-content {
    padding: $space-8 $space-6 $space-6;
}

.confirm-dialog-icon {
    @include icon-box(64px);
    border-radius: 50%;
    margin: 0 auto $space-4;

    svg {
        width: 32px;
        height: 32px; // geometry: icon size
    }

    &-danger {
        background: fade($danger-raw, 15%);
        color: $danger;
    }

    &-warning {
        background: fade($warning-raw, 15%);
        color: $warning;
    }

    &-info {
        background: fade($accent-primary-raw, 15%);
        color: $accent-primary;
    }
}

.confirm-dialog-title {
    font-size: $text-lg;
    font-weight: $font-weight-semibold;
    margin-bottom: $space-2;
}

.confirm-dialog-message {
    font-size: $text-xs;
    color: $text-secondary;
    line-height: $line-height-relaxed;
}

.confirm-dialog-actions {
    display: flex;
    gap: $space-3;
    justify-content: center;
    padding: $space-4 $space-6 $space-6;
}