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.8 KB
Raw Blame
// ============================================
// BUILD TAB STYLES
// ============================================

// Build Tab Container
.build-tab {
    display: flex;
    flex-direction: column;
    gap: $space-6;
}

// Detection Results
.detection-results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: $space-4;
    margin-top: $space-4;
}

.detection-item {
    display: flex;
    flex-direction: column;
    gap: $space-1;
}

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

.detection-value {
    font-size: $text-md;
    font-weight: $font-weight-medium;
    color: $text-primary;
    text-transform: capitalize;

    &.text-success {
        color: $success;
    }
}

// Build Actions
.build-actions {
    display: flex;
    gap: $space-3;
    margin-top: $space-4;
    padding-top: $space-4;
    border-top: 1px solid $border-subtle;
}

// Info List

// Current Deployment Card
.current-deployment {
    background: linear-gradient(135deg, fade($success-raw, 5%), fade($accent-primary-raw, 5%));
    border-color: fade($success-raw, 30%);

    .deployment-current-info {
        display: flex;
        flex-direction: column;
        gap: $space-3;
        margin-top: $space-4;
    }

    .deployment-version {
        display: flex;
        align-items: center;
        gap: $space-3;
    }

    .version-number {
        font-size: $text-xl;
        font-weight: $font-weight-semibold;
        color: $text-primary;
    }

    .deployment-commit {
        display: flex;
        align-items: center;
        gap: $space-2;
    }

    .commit-hash {
        font-family: $font-mono;
        font-size: $text-xs;
        padding: $space-1 $space-2;
        background: $bg-hover;
        border-radius: $radius-badge;
    }

    .commit-message {
        font-size: $text-xs;
        color: $text-secondary;
        max-width: 400px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .deployment-meta {
        display: flex;
        gap: $space-4;
        font-size: $text-xs;
        color: $text-tertiary;
    }

    .deployment-actions {
        margin-top: $space-4;
        padding-top: $space-4;
        border-top: 1px solid $border-subtle;
    }
}

// Deployment History Table
.version-tag {
    font-family: $font-mono;
    font-size: $text-xs;
    font-weight: $font-weight-medium;
}

// Build Logs List
.build-logs-list {
    display: flex;
    flex-direction: column;
    gap: $space-2;
}

.build-log-item {
    display: flex;
    align-items: center;
    gap: $space-3;
    padding: $space-3;
    background: $bg-hover;
    border-radius: $radius-control;
    cursor: pointer;
    transition: all $transition-fast;

    &:hover {
        background: $bg-card;
        box-shadow: none;
    }

    .build-log-method {
        font-size: $text-xs;
        font-weight: $font-weight-medium;
        color: $text-primary;
        text-transform: capitalize;
    }

    .build-log-time {
        font-size: $text-xs;
        color: $text-secondary;
    }

    .build-log-lines {
        font-size: $text-xs;
        color: $text-tertiary;
        margin-left: auto;
    }
}

// Build Log Modal
.build-log-meta {
    display: flex;
    align-items: center;
    gap: $space-4;
    margin-bottom: $space-4;
    padding-bottom: $space-4;
    border-bottom: 1px solid $border-subtle;
    flex-wrap: wrap;

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

.build-log-output {
    margin: 0;
    padding: $space-4;
    background: $bg-body;
    border-radius: $radius-control;
    font-family: $font-mono;
    font-size: $text-xs;
    line-height: $line-height-relaxed;
    color: $text-primary;
    max-height: 500px;
    overflow: auto;
    white-space: pre-wrap;
    word-break: break-all;
}

// Modal Large

// Button extra small

// Utility classes