Skip to content

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.

Add border-hover variable and update style aliases

Juan Denis965428d48b41
diff --git a/frontend/src/pages/WordPress.jsx b/frontend/src/pages/WordPress.jsx
index 22bd5311..6c1a51e6 100644
--- a/frontend/src/pages/WordPress.jsx
+++ b/frontend/src/pages/WordPress.jsx
@@ -220,7 +220,7 @@ const WordPress = () => {
/>
))}
</div>
- ))}
+ )}
</div>
</div>
diff --git a/frontend/src/styles/_theme-variables.less b/frontend/src/styles/_theme-variables.less
index 2610a2ba..a27a06e3 100644
--- a/frontend/src/styles/_theme-variables.less
+++ b/frontend/src/styles/_theme-variables.less
@@ -22,6 +22,7 @@
--border-default: #27272a;
--border-subtle: #27272a;
--border-active: #3f3f46;
+ --border-hover: #3f3f46;
// Text colors
--text-primary: #f4f4f5;
@@ -59,6 +60,7 @@
--border-default: #e2e8f0;
--border-subtle: #e2e8f0;
--border-active: #cbd5e1;
+ --border-hover: #cbd5e1;
// Text colors
--text-primary: #0f172a;
@@ -97,6 +99,7 @@
--border-default: #e2e8f0;
--border-subtle: #e2e8f0;
--border-active: #cbd5e1;
+ --border-hover: #cbd5e1;
// Text colors
--text-primary: #0f172a;
diff --git a/frontend/src/styles/_variables.less b/frontend/src/styles/_variables.less
index 678f536b..5aaf1a74 100644
--- a/frontend/src/styles/_variables.less
+++ b/frontend/src/styles/_variables.less
@@ -36,11 +36,13 @@
@border-default-raw: #27272a;
@border-subtle-raw: #27272a;
@border-active-raw: #3f3f46;
+@border-hover-raw: #3f3f46;
// Themed values using CSS custom properties
@border-default: var(--border-default);
@border-subtle: var(--border-subtle);
@border-active: var(--border-active);
+@border-hover: var(--border-hover);
// --------------------------------------------
// COLORS - Text (theme-sensitive)
@@ -183,3 +185,15 @@
@breakpoint-md: 768px;
@breakpoint-lg: 1024px;
@breakpoint-xl: 1280px;
+
+// --------------------------------------------
+// ALIASES (for consistency across files)
+// --------------------------------------------
+@font-family-mono: @font-mono;
+@color-success: @success;
+@color-warning: @warning;
+@color-danger: @danger;
+@color-info: @info;
+@color-primary: @accent-primary;
+@bg-code: @bg-tertiary;
+@bg-input: @bg-card;
diff --git a/frontend/src/styles/pages/_wordpress.less b/frontend/src/styles/pages/_wordpress.less
index a6f6c1e6..2d166f7c 100644
--- a/frontend/src/styles/pages/_wordpress.less
+++ b/frontend/src/styles/pages/_wordpress.less
@@ -108,7 +108,7 @@
}
&.stopped {
- background: fade(@text-tertiary, 12%);
+ background: fade(@text-tertiary-raw, 12%);
color: @text-tertiary;
.status-dot {
@@ -716,7 +716,7 @@
background: linear-gradient(
90deg,
@bg-tertiary 25%,
- fade(@border-subtle, 50%) 50%,
+ fade(@border-subtle-raw, 50%) 50%,
@bg-tertiary 75%
);
background-size: 200% 100%;