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
style(tables): sticky headers, sort priority badge, table menus, footer, floating bulk bar
Juan Denis334226a86b01
diff --git a/frontend/src/styles/components/_design-system.scss b/frontend/src/styles/components/_design-system.scssindex 99753c30..3a92271c 100644--- a/frontend/src/styles/components/_design-system.scss+++ b/frontend/src/styles/components/_design-system.scss@@ -370,17 +370,367 @@ $sk-tones: ('accent', 'green', 'cyan', 'amber', 'red', 'violet');// Sortable column headers (used by the DataTable component)..is-sortable { cursor: pointer; user-select: none; }+ .is-sortable:hover { color: var(--text-dim); }+ .is-sorted { color: var(--accent-bright); }&__head-inner { display: inline-flex; align-items: center; gap: 5px; }- &__sort { display: inline-flex; color: var(--accent-bright); }+ &__sort { display: inline-flex; align-items: center; gap: 2px; color: var(--accent-bright); }&__sort-placeholder { color: var(--text-faint); opacity: 0.35; }+ // Priority number shown next to the direction chevron when more than one+ // sort level is active (shift+click stacking).+ &__sort-priority {+ font-family: var(--mono);+ font-size: 9px;+ font-weight: 600;+ line-height: 1;+ color: var(--accent-bright);+ opacity: 0.85;+ transform: translateY(-3px);+ }}.sk-dtable-wrap { overflow-x: auto; }+// Opt-in sticky header for tall tables: cap the wrap and pin the thead.+.sk-dtable-wrap--sticky {+ max-height: var(--dtable-max-height, 60vh);+ overflow-y: auto;++ .sk-dtable thead th {+ position: sticky;+ top: 0;+ z-index: 2;+ background: var(--surface);+ }+}.sk-dtable__loading {display: flex; align-items: center; justify-content: center;min-height: 180px; color: var(--text-faint);}+// ------------------------------------------------------------+// DataTableFooter — one standard "how much / show more" bar under tables.+// Replaces the ad-hoc pagers (Prev/Next labels, bare Load more, nothing).+// ------------------------------------------------------------+.sk-dtable-footer {+ display: flex;+ align-items: center;+ justify-content: space-between;+ gap: 12px;+ padding: 9px 16px;+ border-top: 1px solid var(--border-soft);++ &__count {+ font-family: var(--mono);+ font-size: 11.5px;+ color: var(--text-faint);+ white-space: nowrap;+ }++ &__controls { display: inline-flex; align-items: center; gap: 10px; }++ &__sizes .sk-seg__btn { padding: 3px 9px; font-size: 11.5px; }++ &__pager { display: inline-flex; align-items: center; gap: 8px; }+ &__page {+ font-family: var(--mono);+ font-size: 11.5px;+ color: var(--text-dim);+ min-width: 44px;+ text-align: center;+ }+}++// ------------------------------------------------------------+// SortMenu / ColumnsMenu — compact toolbar popovers (Frappe/Twenty style).+// Rendered inside the shared .ui-popover-panel surface.+// ------------------------------------------------------------+.sk-tablemenu {+ width: 15rem;+ padding: 10px;+ display: flex;+ flex-direction: column;+ gap: 4px;++ &__title {+ font-family: var(--mono);+ font-size: 10.5px;+ letter-spacing: 0.06em;+ text-transform: uppercase;+ color: var(--text-faint);+ font-weight: 600;+ padding: 2px 6px 6px;+ }++ &__section {+ font-family: var(--mono);+ font-size: 10px;+ letter-spacing: 0.06em;+ text-transform: uppercase;+ color: var(--text-ghost);+ padding: 8px 6px 3px;+ border-top: 1px solid var(--border-soft);+ margin-top: 4px;+ }++ &__empty {+ font-size: 12px;+ color: var(--text-faint);+ padding: 6px;+ }++ &__list { display: flex; flex-direction: column; gap: 1px; }++ &__item {+ display: flex;+ align-items: center;+ gap: 8px;+ width: 100%;+ padding: 6px 8px;+ border: none;+ border-radius: 7px;+ background: transparent;+ color: var(--text-dim);+ font-size: 12.5px;+ font-family: inherit;+ text-align: left;+ cursor: pointer;+ transition: 0.12s;++ &:hover { background: var(--surface-2); color: var(--text); }++ &--toggle svg { color: var(--text-faint); flex-shrink: 0; }+ &--toggle.is-off { color: var(--text-faint); }+ }++ // An active sort row: [priority] field [dir] [x]+ &__row {+ display: flex;+ align-items: center;+ gap: 6px;+ padding: 4px 6px;+ border-radius: 7px;+ background: var(--surface-2);+ }++ &__priority {+ font-family: var(--mono);+ font-size: 10px;+ font-weight: 600;+ color: var(--accent-bright);+ min-width: 12px;+ text-align: center;+ }++ &__field {+ flex: 1;+ min-width: 0;+ overflow: hidden;+ text-overflow: ellipsis;+ white-space: nowrap;+ font-size: 12.5px;+ color: var(--text);+ font-weight: 550;+ }++ &__dir,+ &__remove {+ display: inline-flex;+ align-items: center;+ justify-content: center;+ width: 24px;+ height: 24px;+ border: none;+ border-radius: 6px;+ background: transparent;+ color: var(--text-faint);+ cursor: pointer;+ transition: 0.12s;++ &:hover { background: var(--surface); color: var(--text); }+ }++ &__dir { color: var(--accent-bright); }++ &__footer {+ display: flex;+ justify-content: flex-end;+ gap: 8px;+ padding-top: 8px;+ margin-top: 4px;+ border-top: 1px solid var(--border-soft);+ }+}++// ------------------------------------------------------------+// Floating bulk-actions pill — appears only while rows are selected+// (Frappe ListSelectBanner style), instead of a permanent toolbar row.+// ------------------------------------------------------------+.sk-bulkbar {+ position: fixed;+ bottom: 22px;+ left: 50%;+ transform: translateX(-50%);+ z-index: 60;+ display: flex;+ align-items: center;+ gap: 12px;+ padding: 7px 9px 7px 16px;+ background: var(--surface);+ border: 1px solid var(--border);+ border-radius: 999px;+ box-shadow: 0 10px 32px rgba(0, 0, 0, 0.35);+ animation: sk-bulkbar-in 0.16s ease-out;++ &__count {+ font-family: var(--mono);+ font-size: 12px;+ font-weight: 600;+ color: var(--text);+ white-space: nowrap;+ }++ &__actions { display: inline-flex; align-items: center; gap: 6px; }++ &__clear {+ display: inline-flex;+ align-items: center;+ justify-content: center;+ width: 26px;+ height: 26px;+ border: none;+ border-radius: 999px;+ background: var(--surface-2);+ color: var(--text-faint);+ cursor: pointer;+ transition: 0.12s;++ &:hover { color: var(--text); }+ }+}++@keyframes sk-bulkbar-in {+ from { opacity: 0; transform: translateX(-50%) translateY(8px); }+ to { opacity: 1; transform: translateX(-50%) translateY(0); }+}++// ------------------------------------------------------------+// wp-list chrome — the ResourceListPage list scaffold (status seg + search+// toolbar, table card, optional card grid). Restores the canonical layout+// these hooks had before the WordPress styles moved into the extension, plus+// the new sort/columns menus slot.+// ------------------------------------------------------------+.wp-list {+ display: flex;+ flex-direction: column;+ padding: $space-4;++ &__toolbar {+ display: flex;+ align-items: center;+ gap: $space-3;+ flex-wrap: wrap;+ margin-bottom: $space-3;+ }++ // Client-side search (name / status / …): leading icon + borderless field+ // on a quiet surface. Claims the free space so trailing controls right-align.+ &__search {+ display: inline-flex;+ align-items: center;+ gap: $space-2;+ margin-left: auto;+ padding: 0 10px;+ width: 240px;+ max-width: 100%;+ height: 32px;+ background: var(--surface-2);+ border: 1px solid var(--border-soft);+ border-radius: 8px;+ color: var(--text-faint);+ transition: border-color 0.14s;++ &:focus-within { border-color: var(--accent-dim); }++ svg { flex-shrink: 0; }++ input {+ flex: 1;+ min-width: 0;+ border: none;+ background: none;+ color: var(--text);+ font-size: 13px;++ &::placeholder { color: var(--text-faint); }+ &:focus { outline: none; }+ }+ }++ // Sort / Columns menus, ahead of the layout switch.+ &__tabletools {+ display: inline-flex;+ align-items: center;+ gap: 8px;+ flex-shrink: 0;++ // Pages without a search field still right-align the table tools.+ &:first-child { margin-left: auto; }+ }++ // Table/cards switch — only rendered by pages that pass a card renderer.+ &__viewswitch {+ display: flex;+ gap: 2px;+ flex-shrink: 0;+ padding: 3px;+ background: var(--surface-2);+ border: 1px solid var(--border);+ border-radius: 9px;++ button {+ display: grid;+ place-items: center;+ padding: 6px 9px;+ background: none;+ border: none;+ border-radius: 6px;+ color: var(--text-faint);+ cursor: pointer;+ transition: background 0.14s, color 0.14s;++ &:hover { color: var(--text); }+ &.is-active { background: var(--surface-3); color: var(--text); }+ }+ }++ &__card {+ background: var(--surface);+ border: 1px solid var(--border-soft);+ border-radius: var(--radius);+ overflow: hidden;+ }++ // Card layout for the same rows the table shows.+ &__cards {+ display: grid;+ grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));+ gap: 14px;+ }++ &__cardtile {+ display: flex;+ flex-direction: column;+ padding: $space-4;+ background: var(--surface);+ border: 1px solid var(--border-soft);+ border-radius: var(--radius);+ cursor: pointer;+ transition: border-color 0.14s, transform 0.14s;++ &:hover { border-color: var(--border-strong); transform: translateY(-2px); }+ &.is-selected { border-color: var(--accent-dim); background: var(--accent-bg-soft); }+ }+}+// ------------------------------------------------------------// PageTopbar — the demo's per-page top bar (icon + title + routed sub-nav +// actions). Replaces sidebar sub-menus for infra pages.