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
Refactor stat card and page styles for consistency
Juan Denis30fde845b0a8
diff --git a/frontend/src/styles/components/_cards.less b/frontend/src/styles/components/_cards.lessindex bb78aa41..a10559bd 100644--- a/frontend/src/styles/components/_cards.less+++ b/frontend/src/styles/components/_cards.less@@ -66,27 +66,103 @@.mono-text();}+// Stats grid layout+.stats-grid {+ display: grid;+ grid-template-columns: repeat(4, 1fr);+ gap: @space-4;+ margin-bottom: @space-6;++ @media (max-width: @breakpoint-xl) {+ grid-template-columns: repeat(2, 1fr);+ }++ @media (max-width: @breakpoint-sm) {+ grid-template-columns: 1fr;+ }+}+// Stat cards (dashboard).stat-card {background: @bg-card;padding: @space-5;border-radius: @radius-xl;border: 1px solid @border-subtle;- .flex-column();- gap: @space-2;+ display: flex;+ align-items: center;+ gap: @space-4;+}++.stat-icon {+ width: 48px;+ height: 48px;+ display: flex;+ align-items: center;+ justify-content: center;+ border-radius: @radius-lg;+ flex-shrink: 0;++ svg {+ width: 24px;+ height: 24px;+ stroke: currentColor;+ stroke-width: 2;+ fill: none;+ }++ // Default colors+ background: fade(@accent-primary, 10%);+ color: @accent-primary;++ &.backups {+ background: fade(@accent-primary, 10%);+ color: @accent-primary;+ }++ &.apps {+ background: fade(@success, 10%);+ color: @success;+ }++ &.databases {+ background: fade(@color-postgresql, 10%);+ color: @color-postgresql;+ }++ &.size {+ background: fade(@warning, 10%);+ color: @warning;+ }++ &.alerts {+ background: fade(@danger, 10%);+ color: @danger;+ }++ &.schedules {+ background: fade(@color-docker, 10%);+ color: @color-docker;+ }+}++.stat-content {+ display: flex;+ flex-direction: column;+ gap: @space-1;+ min-width: 0;}.stat-label {font-size: @font-size-sm;color: @text-tertiary;- text-transform: uppercase;- font-weight: @font-weight-semibold;+ font-weight: @font-weight-medium;}.stat-value {font-size: @font-size-xl;font-weight: @font-weight-bold;color: @text-primary;+ line-height: 1.2;}.stat-suffix {diff --git a/frontend/src/styles/pages/_backups.less b/frontend/src/styles/pages/_backups.lessindex 6cc56da8..5aad1976 100644--- a/frontend/src/styles/pages/_backups.less+++ b/frontend/src/styles/pages/_backups.less@@ -1,48 +1,43 @@-// Backups Page Styles+// ============================================+// BACKUPS PAGE+// ============================================.backups-page {+ // Stat icon variants for backups.stat-icon {- width: 48px;- height: 48px;- border-radius: @radius-lg;- display: flex;- align-items: center;- justify-content: center;-- svg {- stroke: currentColor;- fill: none;- stroke-width: 2;- }-&.backups {- background: rgba(34, 197, 94, 0.1);+ background: fade(@success, 10%);color: @success;}&.apps {- background: rgba(59, 130, 246, 0.1);+ background: fade(@accent-primary, 10%);color: @accent-primary;}&.databases {- background: rgba(168, 85, 247, 0.1);+ background: fade(#a855f7, 10%);color: #a855f7;}&.size {- background: rgba(249, 115, 22, 0.1);+ background: fade(@warning, 10%);color: @warning;}}.filter-select {- padding: @space-1 @space-2;- border: 1px solid var(--border-color);- border-radius: @radius-sm;- background: var(--bg-secondary);- color: var(--text-primary);+ padding: @space-2 @space-3;+ border: 1px solid @border-subtle;+ border-radius: @radius-md;+ background: @bg-hover;+ color: @text-primary;font-size: @font-size-sm;++ &:focus {+ outline: none;+ border-color: @accent-primary;+ }}.backup-name {@@ -85,7 +80,7 @@span {font-size: @font-size-sm;- color: var(--text-primary);+ color: @text-primary;}}@@ -99,13 +94,13 @@display: block;margin-top: @space-1;font-size: @font-size-xs;- color: var(--text-tertiary);+ color: @text-tertiary;}.restore-warning {text-align: center;padding: @space-6;- background: rgba(239, 68, 68, 0.1);+ background: @danger-bg;border-radius: @radius-md;margin-bottom: @space-6;@@ -122,34 +117,35 @@}p {- color: var(--text-secondary);+ color: @text-secondary;font-size: @font-size-sm;}}.restore-details {- background: var(--bg-secondary);+ background: @bg-hover;border-radius: @radius-md;padding: @space-4;.detail-row {display: flex;justify-content: space-between;- padding: @space-1 0;+ padding: @space-2 0;&:not(:last-child) {- border-bottom: 1px solid var(--border-color);+ border-bottom: 1px solid @border-subtle;}}.detail-label {- color: var(--text-tertiary);+ color: @text-tertiary;font-size: @font-size-sm;}.detail-value {- font-weight: 500;+ font-weight: @font-weight-medium;font-size: @font-size-sm;+ color: @text-primary;}}}diff --git a/frontend/src/styles/pages/_monitoring.less b/frontend/src/styles/pages/_monitoring.lessindex 91768be9..1d458f64 100644--- a/frontend/src/styles/pages/_monitoring.less+++ b/frontend/src/styles/pages/_monitoring.less@@ -1,4 +1,6 @@-// Monitoring Page Styles+// ============================================+// MONITORING PAGE+// ============================================.monitoring-page {.monitoring-overview {@@ -10,7 +12,7 @@.threshold-grid {display: grid;grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));- gap: @space-6;+ gap: @space-4;}.threshold-item {@@ -18,19 +20,19 @@justify-content: space-between;align-items: center;padding: @space-4;- background: var(--bg-secondary);+ background: @bg-hover;border-radius: @radius-md;}.threshold-label {- color: var(--text-secondary);+ color: @text-secondary;font-size: @font-size-sm;}.threshold-value {font-size: @font-size-lg;- font-weight: 600;- color: var(--primary);+ font-weight: @font-weight-semibold;+ color: @accent-primary;}.threshold-form-grid {@@ -49,8 +51,8 @@display: flex;align-items: center;gap: @space-4;- padding: @space-2 @space-4;- background: var(--bg-secondary);+ padding: @space-3 @space-4;+ background: @bg-hover;border-radius: @radius-md;.badge {@@ -60,46 +62,35 @@.alert-message {flex: 1;font-size: @font-size-sm;+ color: @text-primary;}.alert-time {- color: var(--text-tertiary);+ color: @text-tertiary;font-size: @font-size-xs;white-space: nowrap;}}+ // Stat icon variants for monitoring.stat-icon {- width: 48px;- height: 48px;- border-radius: @radius-lg;- display: flex;- align-items: center;- justify-content: center;-- svg {- stroke: currentColor;- fill: none;- stroke-width: 2;- }-&.status {- background: rgba(34, 197, 94, 0.1);+ background: fade(@success, 10%);color: @success;}&.alerts {- background: rgba(239, 68, 68, 0.1);+ background: fade(@danger, 10%);color: @danger;}&.interval {- background: rgba(59, 130, 246, 0.1);+ background: fade(@accent-primary, 10%);color: @accent-primary;}&.notifications {- background: rgba(168, 85, 247, 0.1);+ background: fade(#a855f7, 10%);color: #a855f7;}}@@ -109,7 +100,7 @@}.text-muted {- color: var(--text-tertiary);+ color: @text-tertiary;}.input-group {@@ -139,7 +130,7 @@span {font-size: @font-size-sm;- color: var(--text-primary);+ color: @text-primary;}}@@ -147,6 +138,6 @@display: block;margin-top: @space-1;font-size: @font-size-xs;- color: var(--text-tertiary);+ color: @text-tertiary;}}