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.
Python astracloudflarecontrol-panelcyberpaneldnsfablehosting-control-panelhosting-panelkimi-k3server-managementserverkitubuntu-web-panelwebserver
// ============================================
// ENVIRONMENT VARIABLES COMPONENT
// ============================================
.env-vars-container {
.hint {
color: $text-secondary;
font-size: $text-xs;
margin-bottom: $space-5;
}
}
// ── Table cells ─────────────────────────────────────────────────────────
// The variables list is a shared DataTable now, so the only thing left to say
// is that keys and values are code: everything else (surface, borders, header
// menus, footer) comes from the table itself.
.env-cell-key {
font-family: $font-mono;
}
.env-cell-value {
font-family: $font-mono;
font-size: $text-xs;
color: $text-secondary;
word-break: break-all;
}
// A cell answering "nothing here" — the same dash the Undocumented view
// filters on, dimmed so it reads as absence rather than as content.
.env-muted {
color: $text-tertiary;
}
// Key input — mono, uppercase (used inside the Add Variable modal)
.env-key-input {
width: 100%;
font-family: $font-mono;
}
// Small "(optional)" tag + reassurance hint inside the Add Variable modal
.env-optional {
color: $text-tertiary;
font-weight: $font-weight-normal;
}
.env-modal-hint {
margin: $space-1 0 $space-4;
}
// Inline value editor — lives inside the Value cell, so it has to stay on one
// line next to a Save/Cancel pair rather than spanning a row of its own.
.env-edit-row {
display: flex;
align-items: center;
gap: $space-2;
flex-wrap: wrap;
input {
flex: 1;
min-width: 160px;
font-family: $font-mono;
}
}
// Key/value row pattern — no longer the app's env-var surface (that is a
// DataTable now), but still the documented "list of pairs" block in the style
// guide, so it keeps its own styling.
.env-list {
@include flex-column-gap($space-2);
}
.env-item {
display: flex;
align-items: center;
gap: $space-4;
@include card-base();
background: var(--surface-2);
border: 1px solid var(--border-soft);
border-radius: $radius-control;
padding: $space-3 $space-4;
transition: border-color 0.15s, background 0.15s;
// One tier brighter than the surface it sits on, so rows have depth
// (body < panel --surface < row --surface-2) instead of blending together.
&:hover {
border-color: var(--border-strong);
background: var(--surface-3);
}
.env-key {
font-family: $font-mono;
font-weight: $font-weight-semibold;
color: $text-primary;
display: flex;
align-items: center;
gap: $space-1;
}
.env-value {
font-family: $font-mono;
font-size: $text-xs;
color: $text-secondary;
word-break: break-all;
padding: $space-1 0;
}
}
// Subtle chip showing the compose service a variable is scoped to.
// Standalone so it can be reused in the shared-variables table too.
.env-target-chip {
display: inline-flex;
align-items: center;
gap: $space-1;
padding: 1px $space-2;
border-radius: $radius-badge;
font-family: $font-mono;
font-size: $text-xs;
font-weight: $font-weight-semibold;
line-height: 1.5;
color: $accent-primary;
background: rgba($accent-primary-raw, 0.12);
border: 1px solid rgba($accent-primary-raw, 0.22);
white-space: nowrap;
}
// The shared EmptyState allows a single action node; an app with no variables
// yet can start from scratch or from a file, so it gets both side by side.
.env-empty-actions {
display: flex;
gap: $space-2;
justify-content: center;
}
// Clear-all: quiet by default, danger only on hover (no alarming red slab)
.env-clear-btn.ui-button {
color: var(--text-dim);
&:hover {
color: var(--red);
border-color: rgba(251, 111, 111, 0.4);
background: var(--red-bg);
}
}
// Import modal specific
.import-file-upload {
margin-bottom: $space-4;
}
.import-textarea {
width: 100%;
font-family: $font-mono;
font-size: $text-xs;
background: $bg-body;
border: 1px solid $border-subtle;
border-radius: $radius-badge;
padding: $space-4;
resize: vertical;
min-height: 200px;
&::placeholder {
color: $text-tertiary;
}
}
// Modal large variant