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
// ============================================
// CARD COMPONENTS
// ============================================
.card {
@include card-base();
// Card spec: $radius-card, 1px border, $space-4 padding, flat.
border-radius: $radius-card;
box-shadow: none;
padding: $space-4;
position: relative;
overflow: hidden;
}
.card-header {
@include flex-between();
margin-bottom: $space-4;
}
.card h3 {
font-size: $text-md;
font-weight: $font-weight-semibold;
color: $text-primary;
margin-bottom: $space-1;
}
.card-link {
color: $text-secondary;
text-decoration: none;
font-size: $text-sm;
@include transition(color);
&:hover {
color: $accent-primary;
}
}
// Application/Service icon
.app-icon {
@include icon-box(48px);
border-radius: $radius-card;
font-size: $text-lg;
font-weight: $font-weight-semibold;
color: white;
}
// Metrics row at bottom of cards
.metric-row {
margin-top: $space-6;
padding-top: $space-5;
border-top: 1px solid $border-subtle;
@include flex-between();
font-size: $text-xs;
color: $text-secondary;
}
.metric-item {
@include flex-column();
gap: $space-1;
}
.metric-value {
font-weight: $font-weight-semibold;
color: $text-primary;
font-size: $text-xs;
}
// ============================================
// STAT STRIP — compact instrument-panel readout bar
// ============================================
// The page-level summary row that sits above a page's tabs. One bordered
// container divided into segments; replaces the old hero-metric stat cards.
// Dividers are drawn by a 1px grid gap revealing the border-coloured backdrop,
// so they stay crisp on wrap (no per-cell side borders).
.stat-strip {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
gap: 1px;
background: $border-subtle;
border: 1px solid $border-subtle;
border-radius: $radius-card;
overflow: hidden;
margin-bottom: $space-6;
}
.stat-strip__item {
display: flex;
flex-direction: column;
gap: $space-tight;
min-width: 0;
padding: $space-4 $space-5;
background: $bg-card;
}
.stat-strip__label {
font-size: $text-xs;
font-weight: $font-weight-semibold;
color: $text-secondary;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.stat-strip__value {
display: inline-flex;
align-items: center;
gap: $space-2;
font-size: $text-lg;
font-weight: $font-weight-semibold;
color: $text-primary;
line-height: 1.2;
font-variant-numeric: tabular-nums;
min-width: 0;
// long string values (URLs, versions) shouldn't blow out the segment
> :not(.stat-strip__dot):not(.stat-strip__suffix) {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
}
.stat-strip__suffix {
font-size: $text-xs;
font-weight: $font-weight-medium;
color: $text-tertiary;
}
.stat-strip__detail {
font-size: $text-xs;
color: $text-tertiary;
}
// Status dot — reinforces the (already text-stated) value; never the sole signal.
.stat-strip__dot {
width: 8px;
height: 8px;
border-radius: 50%;
flex-shrink: 0;
background: $text-tertiary;
}
@each $state, $color in (success: $success, warning: $warning, danger: $danger, info: $info) {
.stat-strip__item.is-#{$state} {
.stat-strip__dot { background: $color; }
.stat-strip__value { color: $color; }
}
}
// Clickable segment (acts as a filter toggle)
.stat-strip__item--clickable {
appearance: none;
font: inherit;
text-align: left;
color: inherit;
cursor: pointer;
transition: background $transition-base;
&:hover { background: $bg-hover; }
&.is-active {
background: $bg-hover;
box-shadow: inset 3px 0 0 $accent-primary; // geometry: inset edge marker drawn as a border
}
&:focus-visible {
outline: 2px solid $accent-primary;
outline-offset: -2px;
}
}
@media (max-width: $breakpoint-sm) {
.stat-strip {
grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}
.stat-strip__value { font-size: $text-md; }
}
// Legacy `.stats-grid` / `.stat-card` KPI tile system removed —
// pages use the shared KpiBand primitive (`.sk-kpiband`). `.stat-icon` below is
// kept: it is a standalone icon chip still used by StyleGuide demos.
.stat-icon {
width: 48px;
height: 48px; // geometry: icon tile
display: flex;
align-items: center;
justify-content: center;
border-radius: $radius-card;
flex-shrink: 0;
svg {
width: 24px;
height: 24px; // geometry: icon size
stroke: currentColor;
stroke-width: 2;
fill: none;
}
// Default colors
background: fade($accent-primary-raw, 10%);
color: $accent-primary;
&.backups {
background: fade($accent-primary-raw, 10%);
color: $accent-primary;
}
&.apps {
background: fade($success-raw, 10%);
color: $success;
}
&.databases {
background: fade($color-postgresql, 10%);
color: $color-postgresql;
}
&.size {
background: fade($warning-raw, 10%);
color: $warning;
}
&.alerts {
background: fade($danger-raw, 10%);
color: $danger;
}
&.schedules {
background: fade($color-docker, 10%);
color: $color-docker;
}
}
// Legacy `.stat-content` / `.stat-label` / `.stat-value` / `.stat-suffix` /
// `.stat-detail` / `.stat-card--clickable` removed — superseded by
// the MetricCard tile (`.sk-kpi`) inside KpiBand.
// Progress bar
.progress-bar {
height: 4px;
background: $bg-hover;
border-radius: $radius-badge;
overflow: hidden;
margin-top: $space-1;
}
.progress-fill {
height: 100%;
border-radius: $radius-badge;
background: $accent-primary;
@include transition(width);
}
// ProgressBar size, tone and indeterminate variants (components/ProgressBar.jsx).
.progress-bar--md { height: 8px; } // geometry: bar thickness
.progress-bar--accent .progress-fill { background: $accent-primary; }
.progress-bar--success .progress-fill { background: $success; }
.progress-bar--warning .progress-fill { background: $warning; }
.progress-bar--danger .progress-fill { background: $danger; }
.progress-bar--info .progress-fill { background: $info; }
.progress-bar--indeterminate .progress-fill {
width: 35%;
animation: sk-progress-indeterminate 1.4s $ease-out-quart infinite;
}
@keyframes sk-progress-indeterminate {
from { transform: translateX(-100%); }
to { transform: translateX(300%); }
}
@media (prefers-reduced-motion: reduce) {
.progress-bar--indeterminate .progress-fill {
width: 100%;
animation: none;
opacity: 0.5;
}
}
// Empty state card
// Card body (content area below card-header)
.card-body {
padding: 0;
}
// Card actions (button row inside card-header)
.card-actions {
display: flex;
gap: $space-2;
}
// Section header
.section-header {
@include flex-between();
margin-bottom: $space-5;
h3 {
font-size: $text-md;
font-weight: $font-weight-semibold;
}
}
// Danger zone card
.danger-zone {
@include flex-between();
padding: $space-4;
border: 1px solid fade($danger-raw, 30%);
background: fade($danger-raw, 5%);
border-radius: $radius-card;
h3, h4 {
color: $danger;
margin-bottom: $space-2;
}
p {
color: $text-secondary;
margin: 0;
}
}