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
// In-app notification bell + dropdown (sk-notif namespace). Lives in the
// sidebar footer (opens upward) and the mobile top bar (opens downward).
.sk-notif {
position: relative;
display: flex;
&__bell {
position: relative;
display: inline-flex;
align-items: center;
justify-content: center;
width: $control-md;
height: $control-md;
border: 1px solid $border-subtle;
border-radius: $radius-control;
background: $bg-card;
color: $text-secondary;
cursor: pointer;
transition: background 0.15s, color 0.15s, border-color 0.15s;
&:hover {
background: $bg-hover;
color: $text-primary;
border-color: $border-default;
}
}
&__badge {
position: absolute;
top: -5px;
right: -5px;
// Counter bubble: 16px round.
min-width: 16px;
height: 16px;
padding: 0 $space-1;
border-radius: $radius-full;
background: $danger;
color: #fff;
font-size: $text-xs;
font-weight: $font-weight-semibold;
line-height: 16px;
text-align: center;
box-shadow: 0 0 0 2px $bg-card; // geometry: cutout ring separating the counter from the bell
}
&__panel {
position: absolute;
bottom: calc(100% + 10px); // open upward (sidebar footer)
left: 0;
right: auto;
width: 340px;
max-width: calc(100vw - 32px);
background: $bg-elevated;
border: 1px solid $border-default;
border-radius: $radius-overlay;
box-shadow: $shadow-raised;
z-index: 1000;
overflow: hidden;
display: flex;
flex-direction: column;
animation: skNotifPanelIn 0.18s ease-out;
transform-origin: bottom left;
}
&__head {
display: flex;
align-items: center;
justify-content: space-between;
padding: $space-3 $space-4;
border-bottom: 1px solid $border-subtle;
}
&__heading {
font-weight: $font-weight-semibold;
font-size: $text-base;
color: $text-primary;
}
&__markall {
display: inline-flex;
align-items: center;
gap: $space-1;
border: none;
background: none;
cursor: pointer;
color: $accent-primary;
font-size: $text-xs;
font-weight: $font-weight-medium;
&:hover { text-decoration: underline; }
}
&__list {
max-height: 380px;
overflow-y: auto;
}
&__empty {
padding: $space-8 $space-4;
text-align: center;
color: $text-secondary;
font-size: $text-sm;
}
&__item {
display: flex;
gap: $space-3;
width: 100%;
padding: $space-3 $space-4;
border: none;
background: none;
cursor: pointer;
text-align: left;
border-bottom: 1px solid $border-subtle;
&:hover { background: $bg-hover; }
&.is-unread { background: $accent-bg; }
&:last-child { border-bottom: none; }
}
&__dot {
flex: 0 0 auto;
width: 8px;
height: 8px;
margin-top: $space-tight;
border-radius: 50%;
}
&__content {
display: flex;
flex-direction: column;
gap: $space-hair;
min-width: 0;
}
&__title {
font-size: $text-sm;
font-weight: $font-weight-semibold;
color: $text-primary;
}
&__text {
font-size: $text-xs;
color: $text-secondary;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
}
&__time {
font-size: $text-xs;
color: $text-secondary;
opacity: 0.8;
}
// System-notice rows are a div (clickable hit area + a dismiss button) rather
// than a single button, so they can carry a "Fix" action and an X to dismiss.
&__item.is-notice { cursor: default; }
&__hit {
display: flex;
gap: $space-3;
flex: 1;
min-width: 0;
padding: 0;
border: none;
background: none;
cursor: pointer;
text-align: left;
color: inherit;
}
&__dismiss {
flex: 0 0 auto;
align-self: flex-start;
margin-top: $space-hair;
padding: $space-hair;
border: none;
background: none;
border-radius: $radius-control;
cursor: pointer;
color: $text-secondary;
line-height: 0;
&:hover { background: $bg-hover; color: $text-primary; }
}
&__seeall {
padding: $space-3 $space-4;
border: none;
background: none;
cursor: pointer;
color: $accent-primary;
font-size: $text-sm;
font-weight: $font-weight-medium;
border-top: 1px solid $border-subtle;
&:hover { background: $bg-hover; }
}
}
// In the sidebar footer, keep the user menu and notification bell on one row
// so the footer feels like a single control strip instead of a floating icon.
.sidebar-footer__row {
display: flex;
align-items: stretch;
gap: $space-2;
.user-mini {
flex: 1;
min-width: 0;
}
.sk-notif {
display: flex;
align-items: stretch;
}
.sk-notif__bell {
width: 38px;
height: auto;
min-height: $control-md;
align-self: stretch;
}
}
// Global quick-create ("+") base button — compact square used in the mobile
// top bar. The sidebar uses the circular FAB variant (see layout/_sidebar.scss).
.quick-create {
display: inline-flex;
align-items: center;
justify-content: center;
width: $control-md;
height: $control-md;
border: 1px solid $border-subtle;
border-radius: $radius-control;
background: $bg-card;
color: $text-secondary;
cursor: pointer;
transition: background 0.15s, color 0.15s, border-color 0.15s;
&:hover {
background: $bg-hover;
color: $text-primary;
border-color: $border-default;
}
}
// Favorite pin on detail pages — quiet ghost star, amber when pinned.
.fav-star {
display: inline-flex;
align-items: center;
justify-content: center;
width: $control-sm;
height: $control-sm;
border: none;
border-radius: $radius-control;
background: transparent;
color: var(--text-faint);
cursor: pointer;
transition: background 0.14s, color 0.14s;
&:hover { background: var(--surface-2); color: var(--text); }
&.is-on {
color: var(--amber);
&:hover { color: var(--amber); }
}
}
// In the mobile top bar the bell sits at the top, so the panel opens downward.
.mobile-topbar__actions {
margin-left: auto;
display: flex;
align-items: center;
}
.mobile-topbar .sk-notif__panel {
top: calc(100% + 10px);
bottom: auto;
left: auto;
right: 8px;
transform-origin: top right;
}
@keyframes skNotifPanelIn {
from {
opacity: 0;
transform: translateY(6px) scale(0.96);
}
to {
opacity: 1;
transform: translateY(0) scale(1);
}
}
// Top bar layout: the bell sits at the far right, so the panel opens downward
// and extends to the left so it stays inside the viewport.
@media (min-width: ($breakpoint-md + 1)) {
[data-layout="topbar"] .sk-notif__panel {
top: calc(100% + 10px);
bottom: auto;
left: auto;
right: 0;
transform-origin: top right;
}
}
// Compact rail layout: when collapsed there isn't room for the bell beside the
// avatar, so stack them vertically.
@media (min-width: ($breakpoint-md + 1)) {
[data-layout="rail"] .sidebar:not(:hover):not(:focus-within) .sidebar-footer__row {
flex-direction: column;
align-items: center;
gap: $space-tight;
.user-mini {
flex: 0 0 auto;
width: auto;
}
.sk-notif__bell {
width: $control-md;
min-height: $control-md;
align-self: center;
}
}
}