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.4 KB
Raw Blame
// ============================================
// LIST COMPONENTS
// ============================================

// Base list
.list-base {
    @include flex-column-gap($space-2);
}

// Info list (key-value pairs)
.info-list {
@include flex-column-gap($space-3);

    .info-item {
        @include flex-between();
        padding: $space-2 0;
        border-bottom: 1px solid $border-subtle;

        &:last-child { border-bottom: none; }

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

        .info-value {
            font-size: $text-xs;
            font-weight: $font-weight-medium;
            color: $text-primary;
        }
    }
}

.info-item {
    @include flex-between();
    padding: $space-2 0;
    border-bottom: 1px solid $border-subtle;
    display: flex;
    justify-content: space-between;
    align-items: center;

    &:last-child {
        border-bottom: none;
    }

    &:last-child {
        border-bottom: none;
    }

    &:last-child {
        border-bottom: none;
    }

    .info-label {
        color: $text-secondary;
    }

    .info-value {
        font-weight: $font-weight-medium;
    }

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

    .info-value {
        font-size: $text-xs;
        color: $text-primary;

        &.mono {
            font-family: $font-mono;
            font-size: $text-xs;
        }
    }
}

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

.info-value {
    font-size: $text-xs;
    font-weight: $font-weight-medium;
    color: $text-primary;

    &.mono {
        @include mono-text();
    }

    &.mono {
        font-family: $font-mono;
    }
}

// Packages list
.packages-list {
    @include flex-column-gap($space-2);
}

.package-item {
    @include flex-between();
    padding: $space-3 $space-4;
    @include card-base();
}

.package-name {
    font-weight: $font-weight-medium;
}

.package-version {
    color: $text-tertiary;
    @include mono-text();
}

// Environment variables list

.env-key {
    font-weight: $font-weight-semibold;
    @include mono-text();
    color: $accent-primary;
    min-width: 150px;
}

.env-value {
    flex: 1;
    @include mono-text();
    color: $text-secondary;
    word-break: break-all;
}

// Plugins/Themes list
.plugins-list,
.themes-list {
    @include flex-column-gap($space-2);
}

.plugin-item,
.theme-item {
    @include flex-between();
    padding: $space-4;
    @include card-base();

    &.active {
        border-color: $success;
        background: fade($success-raw, 5%);
    }
}

.plugin-info,
.theme-info {
    @include flex-start();
    gap: $space-3;
}

.plugin-name,
.theme-name {
    font-weight: $font-weight-medium;
}

.plugin-version,
.theme-version {
    color: $text-tertiary;
    font-size: $text-xs;
}

.plugin-actions,
.theme-actions {
    @include flex-start();
    gap: $space-2;
}

.wp-update-badge {
    display: inline-flex;
    align-items: center;
    padding: $space-hair $space-2;
    margin-left: $space-2;
    border-radius: $radius-badge;
    font-size: $text-xs;
    font-weight: $font-weight-medium;
    color: $warning;
    background: fade($warning-raw, 12%);
    white-space: nowrap;
}

.bulk-update-bar {
    @include flex-between();
    padding: $space-3 $space-4;
    margin-bottom: $space-3;
    border-radius: $radius-control;
    background: fade($warning-raw, 8%);
    font-size: $text-xs;
}

// Backups list
.backups-list {
    @include flex-column-gap($space-2);
}

.backup-item {
    @include flex-between();
    padding: $space-4;
    @include card-base();
}

.backup-info {
    @include flex-start();
    gap: $space-5;
}

.backup-name {
    font-weight: $font-weight-medium;
    @include mono-text();
}

.backup-size,
.backup-date {
    color: $text-tertiary;
    font-size: $text-sm;
}

// Domains list
.domains-list {
    @include flex-column-gap($space-2);
}

.domain-item {
    @include flex-start();
    gap: $space-2;

    a {
        color: $accent-primary;
        @include transition(color);

        &:hover {
            text-decoration: underline;
        }
    }
}

// Tables list (for database tables)
.tables-list {
    display: flex;
    flex-wrap: wrap;
    gap: $space-2;
}

// Privileges list
.privileges-list {
    display: flex;
    flex-wrap: wrap;
    gap: $space-tight;
    margin-top: $space-2;
    padding-top: $space-2;
    border-top: 1px solid $border-subtle;
}