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.

2.7 KB
Raw Blame
// ============================================
// PRIVATE URL COMPONENT
// ============================================

.private-url-section {
    background: $bg-card;
    border: 1px solid $border-subtle;
    border-radius: $radius-control;
    padding: $space-5;
    margin-bottom: $space-5;

    .section-header {
        margin-bottom: $space-4;

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

            svg {
                color: $accent-primary;
            }
        }
    }
}

.private-url-disabled {
    .hint {
        color: $text-secondary;
        font-size: $text-xs;
        margin-bottom: $space-4;
        line-height: 1.5;
    }

    .slug-hint {
        color: $text-tertiary;
        font-size: $text-xs;
        margin-top: $space-2;
    }
}

.private-url-form,
.slug-edit-form {
    display: flex;
    gap: $space-3;
    align-items: center;
    flex-wrap: wrap;

    .input-group {
        display: flex;
        align-items: center;
        flex: 1;
        min-width: 200px;
    }

    .input-prefix {
        background: $bg-tertiary;
        border: 1px solid $border-subtle;
        border-right: none;
        border-radius: $radius-control 0 0 $radius-control;
        padding: 0 $space-3;
        color: $text-tertiary;
        font-family: $font-mono;
        font-size: $text-xs;
        height: $control-md; // matches the 32px slug input it prefixes
        display: flex;
        align-items: center;
    }

    .slug-input {
        flex: 1;
        border-radius: 0 $radius-control $radius-control 0;
        font-family: $font-mono;
        min-width: 150px;
    }
}

.private-url-enabled {
    .private-url-display {
        background: fade($success-raw, 10%);
        border: 1px solid fade($success-raw, 30%);
        border-radius: $radius-control;
        padding: $space-4;
        margin-bottom: $space-4;
    }

    .url-box {
        display: flex;
        flex-direction: column;
        gap: $space-2;
        margin-bottom: $space-3;
    }

    .url-actions {
        display: flex;
        gap: $space-2;
        flex-wrap: wrap;
    }
}

.slug-edit-form {
    margin-top: $space-4;
    padding-top: $space-4;
    border-top: 1px solid $border-subtle;
}

.private-url-footer {
    margin-top: $space-4;
    padding-top: $space-4;
    border-top: 1px solid $border-subtle;
}

// Private URL indicator in app list
.private-url-indicator {
    display: inline-flex;
    align-items: center;
    gap: $space-1;
    color: $success;
    font-size: $text-xs;

    svg {
        width: 14px;
        height: 14px;
    }
}