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
// Recipes console (walkthrough engine UI). Docked into the shared shell
// console above the status bar — geometry comes from .shell-panel; this file
// owns the recipe library grid and the running recipe's split layout.
.shell-recipes {
// Library — recipe cards (prototype rc-grid/rc-card).
&__grid {
display: grid;
flex: 1;
grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
gap: $space-3;
align-content: start;
overflow-y: auto;
padding: $space-3;
}
&__card {
display: flex;
flex-direction: column;
border: 1px solid var(--border-soft);
border-radius: $radius-card;
background: var(--surface-2);
transition: border-color 130ms ease;
&:hover { border-color: var(--accent-dim); }
&.is-active { border-color: var(--accent-dim); }
}
&__card-hit {
display: flex;
flex: 1;
flex-direction: column;
align-items: flex-start;
padding: $space-3 $space-3 0;
border: 0;
background: transparent;
color: inherit;
font: inherit;
text-align: start;
cursor: pointer;
@include focus-ring();
}
&__card-icon {
display: grid;
width: 28px;
height: 28px; // geometry: icon tile
margin-block-end: $space-3;
place-items: center;
border-radius: $radius-card;
@include status-variant(var(--accent-bright), var(--accent-bg));
&.is-cyan { color: var(--cyan); background: color-mix(in srgb, var(--cyan) 13%, transparent); }
&.is-amber { color: var(--amber); background: color-mix(in srgb, var(--amber) 13%, transparent); }
&.is-green { color: var(--green); background: color-mix(in srgb, var(--green) 13%, transparent); }
&.is-blue { color: var(--accent); background: color-mix(in srgb, var(--accent) 13%, transparent); }
&.is-violet { color: var(--violet); background: color-mix(in srgb, var(--violet) 13%, transparent); }
&.is-neutral { color: var(--text-dim); background: var(--surface-3); }
}
&__card-name {
font-size: $text-sm;
font-weight: $font-weight-semibold;
}
&__card-desc {
margin-block-start: $space-1;
color: var(--text-faint);
font-size: $text-xs;
line-height: 1.5;
}
&__card-meta {
display: flex;
align-items: center;
gap: $space-tight;
padding: $space-2 $space-3 $space-3;
color: var(--text-faint);
font-size: $text-xs;
svg { flex: 0 0 auto; }
}
&__card-stop {
display: inline-flex;
align-items: center;
gap: $space-1;
margin-inline-start: auto;
padding: $space-hair $space-2;
border: 0;
border-radius: $radius-control;
background: transparent;
color: var(--text-faint);
font: inherit;
cursor: pointer;
@include focus-ring();
&:hover { color: var(--red); background: var(--red-bg); }
}
&__more {
display: flex;
min-height: 78px;
align-items: center;
gap: $space-3;
padding: $space-3;
border: 1px dashed var(--border-soft);
border-radius: $radius-card;
background: transparent;
color: var(--text-dim);
font: inherit;
text-align: start;
cursor: pointer;
transition: border-color 130ms ease, background 130ms ease, color 130ms ease;
@include focus-ring();
&:hover {
border-color: var(--accent-dim);
background: var(--surface-2);
color: var(--text);
}
> svg { flex: 0 0 auto; color: var(--accent); }
> span {
display: flex;
min-width: 0;
flex-direction: column;
gap: $space-1;
}
strong { font-size: $text-sm; font-weight: $font-weight-semibold; }
small { color: var(--text-faint); font-size: $text-xs; }
}
// Running recipe — step rail left, story right (prototype cp-split).
&__split {
display: flex;
flex: 1;
min-height: 0;
}
&__rail {
display: flex;
width: 344px;
flex: 0 0 auto;
flex-direction: column;
min-height: 0;
border-inline-end: 1px solid var(--border-soft);
}
&__railhead {
display: flex;
flex: 0 0 auto;
align-items: center;
gap: $space-3;
padding: $space-2 $space-3 $space-2 $space-3;
border-block-end: 1px solid var(--border-soft);
}
&__railtitle {
display: flex;
min-width: 0;
flex: 1;
flex-direction: column;
strong {
overflow: hidden;
font-size: $text-sm;
font-weight: $font-weight-semibold;
text-overflow: ellipsis;
white-space: nowrap;
}
.mono {
margin-block-start: $space-hair;
color: var(--text-faint);
font-size: $text-xs;
}
}
&__steps {
flex: 1;
min-height: 0;
overflow-y: auto;
}
&__step {
display: flex;
width: 100%;
align-items: center;
gap: $space-3;
padding: $space-2 $space-3;
border: 0;
border-inline-start: 2px solid transparent;
background: transparent;
color: var(--text-dim);
font: inherit;
font-size: $text-sm;
text-align: start;
cursor: pointer;
@include focus-ring();
&:hover { background: var(--surface-2); }
&.is-viewing {
border-inline-start-color: var(--accent);
background: var(--surface-2);
color: var(--text);
}
&.is-done .shell-recipes__step-title {
color: var(--text-ghost);
text-decoration: line-through;
}
}
&__step-marker {
display: grid;
width: 20px;
height: 20px; // geometry: step marker disc
flex: 0 0 auto;
place-items: center;
border: 1px solid var(--border-strong);
border-radius: 50%;
color: var(--text-faint);
font-size: $text-xs;
.shell-recipes__step.is-done & {
@include status-variant(var(--green), var(--green-bg), var(--green));
}
}
&__step-title {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
&__detail {
display: flex;
flex: 1;
flex-direction: column;
min-height: 0;
min-width: 0;
padding: $space-3 $space-4;
}
&__eyebrow {
color: var(--text-ghost);
font-size: $text-xs;
}
&__step-heading {
margin: $space-hair 0 $space-3;
font-size: $text-base;
font-weight: $font-weight-semibold;
}
&__body {
flex: 1;
max-width: 62ch;
margin: 0;
overflow-y: auto;
color: var(--text-dim);
font-size: $text-sm;
line-height: 1.7;
text-wrap: pretty;
}
&__foot {
display: flex;
flex: 0 0 auto;
align-items: center;
gap: $space-2;
margin-block-start: $space-3;
padding-block-start: $space-3;
border-block-start: 1px solid var(--border-soft);
}
}
@media (max-width: $breakpoint-md) {
.shell-recipes {
&__grid { grid-template-columns: 1fr; }
&__split { flex-direction: column; }
&__rail {
width: auto;
max-height: 42%;
border-inline-end: 0;
border-block-end: 1px solid var(--border-soft);
}
}
}
// Step target highlight — applied by WalkthroughContext to the on-page
// element the current step points at.
.is-walkthrough-target {
position: relative;
z-index: 2;
outline: 2px solid var(--amber) !important;
outline-offset: 4px;
animation: walkthrough-target-pulse 1.8s ease-in-out infinite;
}
@keyframes walkthrough-target-pulse {
0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--amber) 0%, transparent); }
50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--amber) 14%, transparent); }
}
@media (prefers-reduced-motion: reduce) {
.is-walkthrough-target { animation: none; }
}