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
// ============================================
// DOCKER PAGE - NEW DESIGN
// ============================================
.faded {
opacity: 0.3;
}
// Empty & Loading States
.docker-empty {
text-align: center;
padding: $space-12;
color: $text-secondary;
h3 {
font-size: $text-lg;
font-weight: $font-weight-semibold;
color: $text-primary;
margin: 0 0 $space-2 0;
}
p {
margin: 0;
font-size: $text-xs;
}
}
.docker-loading {
text-align: center;
padding: $space-12;
color: $text-secondary;
}
// Container Exec Modal
.exec-modal-body {
display: flex;
flex-direction: column;
height: 400px;
}
.exec-output {
flex: 1;
background: $bg-card;
border: 1px solid $border-subtle;
border-radius: $radius-control;
padding: $space-4;
overflow-y: auto;
font-family: $font-mono;
font-size: $text-xs;
margin-bottom: $space-3;
}
.exec-welcome {
color: $text-secondary;
text-align: center;
padding: $space-8 0;
p {
margin-bottom: $space-2;
}
code {
background: $bg-hover;
padding: $space-1 $space-2;
border-radius: $radius-badge;
color: $accent-primary;
}
}
.exec-line {
margin-bottom: $space-2;
pre {
margin: 0;
white-space: pre-wrap;
word-break: break-all;
}
&.exec-command {
color: $accent-primary;
font-weight: $font-weight-medium;
}
&.exec-output {
color: $text-primary;
}
&.exec-error {
color: $danger;
}
&.exec-info {
color: $text-tertiary;
font-size: $text-xs;
}
&.exec-loading {
color: $text-secondary;
display: flex;
align-items: center;
gap: $space-2;
}
}
.exec-input-form {
display: flex;
align-items: center;
gap: $space-2;
background: $bg-card;
border: 1px solid $border-subtle;
border-radius: $radius-control;
padding: $space-2 $space-3;
&:focus-within {
border-color: $accent-primary;
}
}
.exec-prompt {
color: $accent-primary;
font-family: $font-mono;
font-weight: $font-weight-semibold;
}
.exec-input {
flex: 1;
border: none;
background: transparent;
color: $text-primary;
font-family: $font-mono;
font-size: $text-xs;
outline: none;
&::placeholder {
color: $text-tertiary;
}
&:disabled {
opacity: 0.5;
}
}
// Docker Unavailable State
.docker-unavailable {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
text-align: center;
padding: $space-12 $space-6;
background: $bg-card;
border: 1px solid $border-subtle;
border-radius: $radius-overlay;
max-width: 600px;
margin: 0 auto;
.docker-unavailable-icon {
width: 100px;
height: 100px;
display: flex;
align-items: center;
justify-content: center;
background: fade($color-docker, 10%);
border-radius: $radius-overlay;
margin-bottom: $space-6;
svg {
stroke: $color-docker;
opacity: 0.6;
}
}
h2 {
font-size: $text-lg;
font-weight: $font-weight-semibold;
margin: 0 0 $space-2 0;
color: $text-primary;
}
.docker-unavailable-message {
color: $text-secondary;
font-size: $text-base;
margin: 0 0 $space-4 0;
}
.docker-unavailable-details {
width: 100%;
margin-bottom: $space-6;
code {
display: block;
padding: $space-3 $space-4;
background: $bg-hover;
border: 1px solid $border-subtle;
border-radius: $radius-control;
font-family: $font-mono;
font-size: $text-xs;
color: $text-tertiary;
word-break: break-all;
text-align: left;
}
}
.docker-unavailable-help {
width: 100%;
padding: $space-5;
background: $bg-hover;
border-radius: $radius-card;
text-align: left;
margin-bottom: $space-6;
h4 {
font-size: $text-xs;
font-weight: $font-weight-semibold;
margin: 0 0 $space-3 0;
color: $text-primary;
}
ul {
margin: 0;
padding-left: $space-5;
li {
font-size: $text-xs;
color: $text-secondary;
margin-bottom: $space-2;
&:last-child {
margin-bottom: 0;
}
}
}
}
.btn {
display: inline-flex;
align-items: center;
gap: $space-2;
svg {
width: 16px;
height: 16px;
}
}
}
// ============================================
// DOCKER REDESIGN (dx-*)
// ============================================
// Fill body of the Docker PageLayout: the list and the container inspector
// scroll on their own, so the page itself is a fixed-height column.
.dx-page {
height: 100%;
display: flex;
flex-direction: column;
gap: $space-3;
padding: $space-5;
}
.dx-stat {
display: flex;
align-items: center;
gap: $space-3;
padding: $space-4;
background: $bg-card;
border: 1px solid $border-default;
border-radius: $radius-card;
@include transition(all);
&:hover {
border-color: $border-hover;
}
}
.dx-tab {
background: transparent;
border: none;
padding: $space-2 $space-4;
border-radius: $radius-control;
color: $text-secondary;
font-size: $text-xs;
font-weight: $font-weight-medium;
cursor: pointer;
white-space: nowrap;
@include transition(all);
&:hover { background: $bg-hover; color: $text-primary; }
&.active {
background: $accent-glow;
color: $accent-primary;
}
}
.dx-panel {
background: $bg-card;
border: 1px solid $border-default;
border-radius: $radius-card;
overflow: hidden;
min-height: 400px;
}
.dx-tab-pane {
padding: $space-3;
}
.dx-status-dot {
width: 8px;
height: 8px;
border-radius: 50%;
flex-shrink: 0;
&.running { background: $success; opacity: 1; }
&.stopped { background: $text-tertiary; opacity: 0.4; }
}
.dx-status-pill {
display: inline-flex;
align-items: center;
height: 20px; // geometry: badge height (20px badge spec)
padding: 0 $space-tight;
border-radius: $radius-badge;
font-size: $text-xs;
font-weight: $font-weight-medium;
background: $bg-tertiary;
color: $text-tertiary;
&.running { background: fade($success-raw, 14%); color: $success; }
&.stopped { background: $bg-tertiary; color: $text-tertiary; }
}
.dx-port-pill {
display: inline-flex;
align-items: center;
padding: 1px $space-tight;
background: $bg-tertiary;
border-radius: $radius-badge;
font-family: $font-mono;
font-size: $text-xs;
color: $text-secondary;
@include truncate();
max-width: 220px;
}
.dx-port-more {
display: inline-flex;
align-items: center;
padding: 1px $space-tight;
background: $bg-tertiary;
border-radius: $radius-badge;
font-size: $text-xs;
color: $text-tertiary;
}
.dx-res {
display: grid;
grid-template-columns: 50px 1fr 50px;
gap: $space-2;
align-items: center;
}
.dx-res-track {
height: 4px;
background: $border-default;
border-radius: $radius-badge;
overflow: hidden;
}
.dx-res-fill {
height: 100%;
@include transition(width);
&.cpu { background: $accent-primary; }
&.mem { background: $success; }
}
// Full-width manager shell
.dx-page > .sk-kpiband-wrap {
flex-shrink: 0;
}
.dx-panel {
flex: 1;
min-height: 0;
display: flex;
flex-direction: column;
}
.dx-panel > div {
min-height: 0;
overflow: auto;
}
.dx-panel > .dx-tab-pane {
overflow: hidden;
}
.dx-containers-pane {
flex: 1;
min-height: 0;
display: flex;
flex-direction: column;
}
// Images · Volumes · Networks · Compose. Same shape as the containers pane,
// minus the inspector column: the chrome row stays put and the table scrolls.
.dx-list-pane {
flex: 1;
min-height: 0;
display: flex;
flex-direction: column;
.dx-resource-list {
flex: 1;
min-height: 0;
margin-top: $space-3;
}
}
.dx-toggle {
display: inline-flex;
align-items: center;
gap: $space-2;
color: $text-secondary;
font-size: $text-xs;
cursor: pointer;
// Sits in the view row next to the search box now, where a flex parent will
// happily wrap "Include stopped" onto two lines and make the row taller
// than everything else on it.
white-space: nowrap;
input {
width: 14px;
height: 14px;
accent-color: $accent-primary;
}
}
.dx-manager-layout {
flex: 1;
min-height: 0;
display: grid;
grid-template-columns: minmax(0, 1fr) 380px;
gap: $space-3;
overflow: hidden;
}
.dx-resource-list,
.dx-inspector {
min-height: 0;
}
// The inspector is its own panel; the list carries no frame of its own,
// the DataTable wrap (.sk-dtable-wrap) is the frame.
.dx-inspector {
background: $bg-elevated;
border: 1px solid $border-default;
border-radius: $radius-card;
}
// The wrap fills the pane at most and scrolls inside it; the header pins
// through the shared .sk-dtable-wrap--sticky modifier.
.dx-table-wrap {
--dtable-max-height: 100%;
}
.dx-name-stack {
display: flex;
flex-direction: column;
gap: $space-1;
min-width: 0;
}
.dx-name-line {
display: flex;
align-items: center;
gap: $space-2;
min-width: 0;
color: $text-primary;
font-weight: $font-weight-semibold;
span:last-child {
@include truncate();
}
}
.dx-muted-line {
display: block;
color: $text-tertiary;
font-size: $text-xs;
@include truncate();
&.mono {
font-family: $font-mono;
}
}
.dx-code-pill {
display: inline-block;
height: 20px; // geometry: badge height (20px badge spec)
line-height: 20px; // block, not flex, so the truncate ellipsis still works
max-width: 100%;
padding: 0 $space-tight;
border-radius: $radius-badge;
background: $bg-tertiary;
color: $text-secondary;
font-family: $font-mono;
font-size: $text-xs;
@include truncate();
}
.dx-port-list {
display: flex;
align-items: center;
gap: $space-1;
flex-wrap: wrap;
min-width: 0;
.dx-port-pill {
max-width: 150px;
&.is-empty {
opacity: 0.55;
}
}
}
.dx-mini-resources {
display: flex;
flex-direction: column;
gap: $space-tight;
min-width: 150px;
&.is-muted {
opacity: 0.55;
}
}
.dx-mini-resource {
display: grid;
grid-template-columns: 34px minmax(48px, 1fr) 44px;
align-items: center;
gap: $space-2;
span {
color: $text-tertiary;
font-size: $text-xs;
font-weight: $font-weight-semibold;
}
strong {
color: $text-secondary;
font-size: $text-xs;
font-weight: $font-weight-medium;
text-align: right;
}
}
.dx-row-actions {
display: flex;
align-items: center;
justify-content: flex-end;
gap: $space-1;
}
.dx-row-action {
width: $control-sm;
height: $control-sm;
border: 1px solid $border-default;
border-radius: $radius-control;
background: transparent;
color: $text-tertiary;
display: inline-flex;
align-items: center;
justify-content: center;
cursor: pointer;
@include transition(all);
&:hover {
border-color: $border-hover;
background: $bg-hover;
color: $text-primary;
}
&.is-danger:hover {
border-color: fade($danger-raw, 35%);
color: $danger;
}
&.is-success:hover {
border-color: fade($success-raw, 35%);
color: $success;
}
}
.dx-action-btn {
min-height: $control-md;
border: 1px solid $border-default;
border-radius: $radius-control;
background: $bg-card;
color: $text-secondary;
display: inline-flex;
align-items: center;
justify-content: center;
gap: $space-2;
padding: 0 $space-3;
font-size: $text-xs;
cursor: pointer;
@include transition(all);
&:hover {
border-color: $border-hover;
background: $bg-hover;
color: $text-primary;
}
&.is-danger:hover {
border-color: fade($danger-raw, 35%);
color: $danger;
}
&.is-success:hover {
border-color: fade($success-raw, 35%);
color: $success;
}
}
// "System container" markers shown in place of lifecycle controls for
// ServerKit's own containers — read-only, never interactive.
.dx-row-protected {
display: inline-flex;
align-items: center;
gap: $space-1;
height: $control-sm;
padding: 0 $space-2;
border: 1px dashed $border-default;
border-radius: $radius-control;
color: $text-tertiary;
font-size: $text-xs;
white-space: nowrap;
cursor: default;
}
.dx-action-protected {
min-height: $control-md;
display: inline-flex;
align-items: center;
gap: $space-2;
padding: 0 $space-3;
border: 1px dashed $border-default;
border-radius: $radius-control;
color: $text-tertiary;
font-size: $text-xs;
white-space: nowrap;
cursor: default;
}
.dx-inspector {
display: flex;
flex-direction: column;
overflow: hidden;
}
.dx-inspector-header {
display: flex;
align-items: center;
gap: $space-3;
padding: $space-4;
border-bottom: 1px solid $border-subtle;
}
.dx-inspector-icon {
width: 38px;
height: 38px; // geometry: icon tile
border-radius: $radius-control;
background: fade($info-raw, 12%);
color: $info;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
}
.dx-inspector-title {
min-width: 0;
flex: 1;
h3 {
margin: 0;
color: $text-primary;
font-size: $text-base;
font-weight: $font-weight-semibold;
@include truncate();
}
span {
color: $text-tertiary;
font-family: $font-mono;
font-size: $text-xs;
}
}
.dx-inspector-status {
display: flex;
align-items: center;
justify-content: space-between;
gap: $space-3;
padding: $space-3 $space-4;
border-bottom: 1px solid $border-subtle;
color: $text-tertiary;
font-size: $text-xs;
}
.dx-inspector-actions {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: $space-2;
padding: $space-4;
border-bottom: 1px solid $border-subtle;
}
.dx-inspector-tabs {
display: flex;
gap: $space-1;
padding: $space-2 $space-4;
border-bottom: 1px solid $border-subtle;
overflow-x: auto;
button {
border: none;
border-radius: $radius-badge;
background: transparent;
color: $text-secondary;
font-size: $text-xs;
padding: $space-2 $space-3;
text-transform: capitalize;
cursor: pointer;
&:hover,
&.active {
background: $bg-hover;
color: $text-primary;
}
}
}
.dx-inspector-body {
flex: 1;
min-height: 0;
overflow: auto;
padding: $space-4;
display: flex;
flex-direction: column;
gap: $space-4;
}
.dx-inspector-loading {
color: $text-secondary;
font-size: $text-xs;
padding: $space-4 0;
}
.dx-detail-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: $space-2;
div {
min-width: 0;
border: 1px solid $border-subtle;
border-radius: $radius-badge;
padding: $space-3;
background: $bg-card;
}
span {
display: block;
color: $text-tertiary;
font-size: $text-xs;
margin-bottom: $space-1;
}
strong {
display: block;
color: $text-primary;
font-size: $text-xs;
font-weight: $font-weight-medium;
@include truncate();
}
}
.dx-section-title {
display: flex;
align-items: center;
gap: $space-2;
color: $text-secondary;
font-size: $text-xs;
font-weight: $font-weight-semibold;
}
.dx-details-list {
display: grid;
grid-template-columns: minmax(90px, 0.42fr) minmax(0, 1fr);
gap: $space-2 $space-3;
align-items: center;
span {
min-width: 0;
color: $text-tertiary;
font-size: $text-xs;
@include truncate();
}
code {
min-width: 0;
background: $bg-card;
border: 1px solid $border-subtle;
border-radius: $radius-badge;
color: $text-secondary;
font-family: $font-mono;
font-size: $text-xs;
padding: $space-1 $space-2;
@include truncate();
}
}
.dx-inspector-list {
display: flex;
flex-direction: column;
gap: $space-2;
code {
display: block;
background: $bg-card;
border: 1px solid $border-subtle;
border-radius: $radius-badge;
color: $text-secondary;
font-family: $font-mono;
font-size: $text-xs;
padding: $space-2;
white-space: pre-wrap;
word-break: break-word;
&.is-empty {
color: $text-tertiary;
}
}
}
@media (max-width: $breakpoint-xl) {
.dx-manager-layout {
grid-template-columns: 1fr;
overflow: auto;
}
.dx-resource-list {
min-height: 420px;
}
.dx-inspector {
min-height: 460px;
}
}
@media (max-width: $breakpoint-md) {
.dx-page {
height: auto;
padding: $space-4;
}
.dx-table-wrap .sk-dtable {
min-width: 960px; // scrolls inside the wrap
}
.dx-detail-grid,
.dx-inspector-actions {
grid-template-columns: 1fr;
}
}
// Docker panel: tables and the inspector sit on the page surface
.dx-panel {
flex: 1;
min-height: 0;
background: transparent;
border: none;
border-radius: 0;
box-shadow: none;
}
.dx-tab-pane {
padding: 0;
}
.dx-containers-pane {
gap: $space-2;
}
.dx-manager-layout {
grid-template-columns: minmax(0, 1fr);
gap: 0;
}
.dx-drawer-backdrop {
position: fixed;
inset: 0;
background: rgba(0, 0, 0, 0.08);
backdrop-filter: none;
z-index: $z-modal-backdrop;
animation: drawer-fade 0.18s ease;
}
.dx-inspector-drawer {
position: fixed;
top: 0;
right: 0;
bottom: 0;
width: min(540px, 100vw);
max-width: 100%;
box-sizing: border-box;
background: $bg-card;
border: none;
border-left: 1px solid $border-default;
border-radius: 0;
box-shadow: $shadow-overlay;
z-index: $z-modal;
animation: drawer-slide 0.24s cubic-bezier(0.32, 0.72, 0.24, 1);
}
@media (max-width: $breakpoint-xl) {
}
@media (max-width: $breakpoint-lg) {
}
@media (max-width: $breakpoint-md) {
.dx-inspector-drawer {
width: 100%;
}
}
// Semantic layouts and controls; declarations preserved from the legacy compatibility layer.
.docker-compose-log-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; }
.docker-compose-log-select.ui-select-trigger { width: auto; min-width: 8rem; }
// Semantic layouts and controls; declarations preserved from the legacy compatibility layer.
.docker-compose-actions-column { text-align: right; }
// Run Container modal: host → container port rows.
.dx-run-ports {
display: flex;
flex-direction: column;
gap: $space-2;
&__head,
&__row {
display: grid;
grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto;
gap: $space-2;
align-items: start;
}
&__head {
font-size: $text-xs;
color: $text-tertiary;
}
&__sep {
padding-top: $space-2;
color: $text-tertiary;
font-family: $font-mono;
}
&__add { align-self: flex-start; }
}