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
// Marketplace page styles
.marketplace-page {
.marketplace-hero {
position: relative;
display: grid;
grid-template-columns: minmax(0, 1fr) auto;
align-items: center;
gap: $space-6;
margin-bottom: $space-5;
padding: $space-6;
overflow: hidden;
border: 1px solid $border-subtle;
border-radius: $radius-card;
background: $bg-card;
}
.marketplace-hero__content {
min-width: 0;
}
.marketplace-hero__actions {
display: flex;
justify-content: flex-end;
}
.marketplace-eyebrow {
display: inline-flex;
align-items: center;
gap: $space-2;
margin-bottom: $space-3;
color: $accent-primary;
font-size: $text-xs;
font-weight: $font-weight-medium;
svg {
width: 15px;
height: 15px;
}
}
.marketplace-tabs__list {
margin-bottom: $space-5;
svg {
width: 16px;
height: 16px;
}
}
// Slim bar above the grid — only shown while filtering, to offer a reset.
// Search + filters live in the page top bar; there is no result count.
.marketplace-resultbar {
display: flex;
align-items: center;
gap: $space-3;
margin-bottom: $space-3;
}
.marketplace-section {
min-width: 0;
}
.marketplace-section__header {
display: flex;
justify-content: space-between;
align-items: flex-end;
gap: $space-4;
margin-bottom: $space-4;
h2 {
margin: 0;
color: $text-primary;
font-size: $text-lg;
font-weight: $font-weight-semibold;
letter-spacing: 0;
}
}
// ExtensionCover in compact form: the CatalogCard's 36px icon slot. It
// keeps the cover's fallback chain (light tile for image art, per-slug
// gradient for the white brand mark / glyph), just at icon size.
.sk-catalog-card__art {
display: grid;
place-items: center;
width: 100%;
height: 100%;
&--icon {
background: #fff;
}
.extension-card__brand,
.extension-card__glyph {
color: rgba(255, 255, 255, 0.92);
}
.extension-card__glyph {
width: 20px;
height: 20px; // geometry: icon
}
}
.marketplace-installed-label {
color: $text-tertiary;
font-size: $text-xs;
}
.installed-list {
display: flex;
flex-direction: column;
gap: $space-3;
}
.installed-item {
display: flex;
align-items: center;
justify-content: space-between;
gap: $space-3;
padding: $space-3;
}
.installed-item__main {
display: flex;
align-items: center;
gap: $space-3;
min-width: 0;
flex: 1;
}
.installed-item__icon {
display: inline-flex;
align-items: center;
justify-content: center;
width: 34px;
height: 34px; // geometry: icon tile
flex: 0 0 34px;
border-radius: $radius-card;
svg {
width: 17px;
height: 17px;
}
}
.installed-item__icon--extension {
color: $success;
background: fade($success-raw, 12%);
}
.installed-item__icon--local {
color: $warning;
background: fade($warning-raw, 12%);
}
.installed-item__icon--plugin {
color: $accent-primary;
background: fade($accent-primary-raw, 12%);
}
.installed-item__content {
display: flex;
flex-direction: column;
gap: $space-1;
min-width: 0;
strong {
color: $text-primary;
font-size: $text-base;
}
}
.installed-item__title-line,
.installed-item__actions {
display: flex;
align-items: center;
gap: $space-2;
flex-wrap: wrap;
}
.installed-item__description,
.installed-item__error {
margin: $space-1 0 0;
color: $text-secondary;
font-size: $text-xs;
line-height: $line-height-normal;
}
.installed-item__error {
color: $danger;
}
.installed-item--error {
border-color: fade($danger-raw, 30%);
}
// "Update available" pill on plugin rows. Uses the info badge variant for
// color; this just tightens the icon/text rhythm and weight.
.plugin-update-badge {
gap: $space-1;
font-weight: $font-weight-semibold;
}
.marketplace-empty {
border-radius: $radius-card;
svg {
width: 30px;
height: 30px; // geometry: icon
}
}
@media (max-width: $breakpoint-md) {
.marketplace-hero {
grid-template-columns: 1fr;
padding: $space-5;
}
.marketplace-hero__actions {
justify-content: stretch;
.btn {
width: 100%;
}
}
.installed-item {
align-items: flex-start;
flex-direction: column;
}
.installed-item__actions {
width: 100%;
.btn {
flex: 1;
}
}
}
@media (max-width: $breakpoint-sm) {
.marketplace-section__header {
align-items: flex-start;
flex-direction: column;
}
}
}
// First-party "by ServerKit" badge, rendered in the detail Modal (a Radix
// portal outside the page tree), so it lives at the root. Matches the
// `secondary` variant selector specificity and wins on source order to apply
// the accent tint.
[data-slot='badge'].extension-firstparty {
gap: $space-1;
border-color: var(--accent-dim);
@include status-variant(var(--accent-bright), var(--accent-bg));
font-weight: $font-weight-semibold;
}
// Extension detail modal (rendered in a Radix Dialog portal).
.extension-detail {
display: flex;
flex-direction: column;
gap: $space-4;
&__header {
display: flex;
align-items: flex-start;
gap: $space-4;
}
// Cover banner in the detail modal. Gradient variant holds the brand mark /
// glyph; the --icon variant is a clean light tile for illustrated art.
&__cover {
display: grid;
place-items: center;
height: 128px;
border-radius: $radius-control;
overflow: hidden;
&--icon {
background: #fff;
}
.extension-card__brand,
.extension-card__glyph {
color: rgba(255, 255, 255, 0.92);
}
.extension-card__glyph {
width: 46px;
height: 46px; // geometry: icon
}
.extension-card__icon {
width: 108px;
height: 108px;
max-width: 60%;
object-fit: contain;
}
}
&__heading {
display: flex;
flex-direction: column;
gap: $space-2;
min-width: 0;
}
&__badges {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: $space-2;
}
&__meta {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: $space-3;
color: $text-tertiary;
font-size: $text-xs;
}
&__repo-link {
display: inline-flex;
align-items: center;
gap: $space-1;
color: $accent-primary;
text-decoration: none;
svg {
width: 14px;
height: 14px;
}
&:hover {
text-decoration: underline;
}
}
&__desc {
margin: 0;
color: $text-secondary;
font-size: $text-base;
line-height: $line-height-normal;
}
&__gallery {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
gap: $space-3;
}
&__shot {
width: 100%;
height: auto;
border: 1px solid $border-subtle;
border-radius: $radius-control;
background: $bg-elevated;
object-fit: cover;
}
&__actions {
display: flex;
justify-content: flex-end;
padding-top: $space-4;
border-top: 1px solid $border-subtle;
}
&__section-label {
margin: 0 0 $space-2;
color: $text-tertiary;
font-size: $text-xs;
font-weight: $font-weight-medium;
}
&__consent,
&__config {
display: flex;
flex-direction: column;
gap: $space-2;
}
&__chips {
display: flex;
flex-wrap: wrap;
gap: $space-2;
}
&__config-list {
display: flex;
flex-wrap: wrap;
gap: $space-2;
margin: 0;
padding: 0;
list-style: none;
code {
font-size: $text-xs;
color: $text-secondary;
}
}
}
// Manual extension installer (URL / folder / zip). Rendered inside the
// Install-manually Modal — a Radix Dialog portal outside .marketplace-page —
// so these live at the root.
.plugin-install-form__heading {
display: flex;
align-items: flex-start;
gap: $space-3;
margin-bottom: $space-4;
.plugin-install-form__docs {
margin-left: auto;
}
h3 {
margin: 0 0 $space-1;
color: $text-primary;
font-size: $text-md;
font-weight: $font-weight-semibold;
}
p {
margin: 0;
}
}
.plugin-install-form__icon {
display: inline-flex;
align-items: center;
justify-content: center;
width: 38px;
height: 38px; // geometry: icon tile
flex: 0 0 38px;
border-radius: $radius-card;
color: $accent-primary;
background: fade($accent-primary-raw, 12%);
svg {
width: 19px;
height: 19px;
}
}
.plugin-install-tabs {
display: inline-flex;
gap: $space-1;
margin-bottom: $space-4;
padding: $space-1;
border: 1px solid $border-subtle;
border-radius: $radius-card;
background: $bg-body;
}
.plugin-install-tab {
display: inline-flex;
align-items: center;
gap: $space-2;
height: $control-sm;
padding: 0 $space-3;
border: 1px solid transparent;
border-radius: $radius-control;
background: transparent;
color: $text-secondary;
font-family: inherit;
font-size: $text-sm;
font-weight: $font-weight-semibold;
cursor: pointer;
transition:
background $transition-base,
color $transition-base,
border-color $transition-base;
svg {
width: 14px;
height: 14px;
}
&:hover {
color: $text-primary;
}
&--active {
border-color: $accent-primary;
background: fade($accent-primary-raw, 12%);
color: $text-primary;
}
}
.plugin-install-source {
p {
margin: 0 0 $space-3;
font-size: $text-xs;
}
}
.plugin-install-row {
display: flex;
align-items: center;
gap: $space-3;
.ui-input,
input[type='text'] {
flex: 1;
min-width: 0;
}
@media (max-width: $breakpoint-md) {
align-items: stretch;
flex-direction: column;
.btn {
width: 100%;
}
}
}
.marketplace-file-input {
flex: 1;
min-width: 0;
}
.plugin-file-note {
margin-top: $space-2;
color: $text-tertiary;
font-size: $text-xs;
}
// Two-step GitHub install: consent card shown after resolve, before install.
.plugin-install-consent {
display: flex;
flex-direction: column;
gap: $space-4;
padding: $space-4;
border: 1px solid $border-color;
border-radius: $radius-card;
background: $bg-elevated;
&__head {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: $space-3;
h4 {
margin: 0 0 $space-1;
font-size: $text-lg;
}
}
&__meta {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: $space-3;
color: $text-tertiary;
font-size: $text-xs;
code {
font-family: $font-mono;
}
}
&__badge {
display: inline-flex;
align-items: center;
gap: $space-1;
white-space: nowrap;
svg {
width: 13px;
height: 13px;
}
}
&__desc {
margin: 0;
color: $text-secondary;
font-size: $text-xs;
line-height: $line-height-normal;
}
// Signature verdict explainer under the description: plain for
// unsigned / unknown-publisher, red when the signature failed to verify.
&__sig-note {
margin: 0;
font-size: $text-xs;
line-height: $line-height-normal;
color: $text-tertiary;
&--danger {
color: $danger;
}
}
&__label {
margin: 0 0 $space-2;
font-size: $text-xs;
font-weight: $font-weight-medium;
color: $text-secondary;
}
&__chips {
display: flex;
flex-wrap: wrap;
gap: $space-2;
}
&__warnings {
margin: 0;
padding: 0;
list-style: none;
display: flex;
flex-direction: column;
gap: $space-2;
li {
display: flex;
align-items: flex-start;
gap: $space-2;
font-size: $text-xs;
color: $warning;
svg {
flex-shrink: 0;
width: 15px;
height: 15px;
margin-top: $space-hair;
}
}
}
&__actions {
display: flex;
justify-content: flex-end;
gap: $space-3;
}
}
// Keep-vs-purge data policy dialog on plugin uninstall.
.plugin-uninstall-dialog {
display: flex;
flex-direction: column;
gap: $space-3;
p {
margin: 0;
line-height: $line-height-normal;
}
}
// Risk-acknowledgment dialog shown before installing an unreviewed
// community extension from the registry.
.extension-risk-dialog {
display: flex;
flex-direction: column;
gap: $space-3;
p {
margin: 0;
line-height: $line-height-normal;
}
}
// Per-plugin config editor (#49) — fields generated from config_schema.
.plugin-config-form {
display: flex;
flex-direction: column;
gap: $space-4;
&__field {
display: flex;
flex-direction: column;
gap: $space-1;
}
&__label {
font-size: $text-xs;
font-weight: $font-weight-semibold;
}
&__hint {
font-size: $text-xs;
line-height: $line-height-normal;
}
}
// Read-only permissions + pending-dependencies dialog for an installed
// extension (tasks 6+7). Rows are prose-first on purpose: the
// distinction between "the gate saw nothing" and "there is no gate" only
// survives if each row can say it in a sentence, so nothing here compresses
// a permission down to a bare chip.
.extension-permissions {
display: flex;
flex-direction: column;
gap: $space-6;
&__section {
display: flex;
flex-direction: column;
gap: $space-3;
}
&__section-head {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: space-between;
gap: $space-2;
h4 {
margin: 0;
font-size: $text-base;
font-weight: $font-weight-semibold;
}
}
&__count {
color: $text-tertiary;
font-size: $text-xs;
}
// The observation-window caveat under a section heading.
&__scope {
margin: 0;
color: $text-tertiary;
font-size: $text-xs;
line-height: $line-height-normal;
}
&__list {
margin: 0;
padding: 0;
list-style: none;
display: flex;
flex-direction: column;
gap: $space-3;
}
&__row {
display: flex;
flex-direction: column;
gap: $space-2;
padding: $space-3;
border: 1px solid $border-subtle;
border-left: 2px solid $border-active;
border-radius: $radius-control;
background: $bg-elevated;
// Left edge carries the verdict so a scan down the list reads the
// three states apart before any text is read.
&--used { border-left-color: $success; }
&--unused { border-left-color: $warning; }
&--opaque { border-left-color: $border-active; }
&--blocked { border-left-color: $danger; }
}
&__row-head {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: space-between;
gap: $space-2;
code {
font-family: $font-mono;
font-size: $text-xs;
color: $text-primary;
overflow-wrap: anywhere;
}
}
&__note {
margin: 0;
color: $text-secondary;
font-size: $text-xs;
line-height: $line-height-normal;
code {
font-family: $font-mono;
font-size: $text-xs;
padding: 1px $space-1;
border-radius: $radius-badge;
background: $bg-code;
color: $text-primary;
overflow-wrap: anywhere;
}
}
&__blocked {
display: flex;
flex-direction: column;
gap: $space-3;
margin-top: $space-2;
}
&__footnote {
margin: 0;
padding-top: $space-2;
border-top: 1px solid $border-subtle;
color: $text-tertiary;
font-size: $text-xs;
line-height: $line-height-normal;
}
// Verbatim requirements.txt — scrolls on its own rather than widening
// the dialog.
&__file {
margin: 0;
max-height: 220px;
overflow: auto;
padding: $space-3;
border: 1px solid $border-subtle;
border-radius: $radius-control;
background: $bg-code;
color: $text-secondary;
font-family: $font-mono;
font-size: $text-xs;
line-height: $line-height-normal;
white-space: pre;
}
&__error {
display: flex;
flex-direction: column;
align-items: flex-start;
gap: $space-3;
p {
margin: 0;
color: $danger;
font-size: $text-xs;
line-height: $line-height-normal;
}
}
.sk-pill svg {
width: 12px;
height: 12px;
flex-shrink: 0;
}
}