From a654c7c19923a4f0c2984431cc0ed0936ff6fd46 Mon Sep 17 00:00:00 2001 From: MHSanaei Date: Mon, 25 May 2026 13:22:35 +0200 Subject: [PATCH] refactor(xray): collapse RoutingTab dark forks into AntD CSS variables MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - .criterion-more bg light/dark fork → var(--ant-color-fill-tertiary) - .xray-page.is-dark .rule-card and .criterion-chip overrides removed; the rules already use --bg-card and --ant-color-fill-tertiary that adapt to the theme on their own. --- frontend/src/pages/xray/RoutingTab.css | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/frontend/src/pages/xray/RoutingTab.css b/frontend/src/pages/xray/RoutingTab.css index cdcb5f9a..8ef6ad85 100644 --- a/frontend/src/pages/xray/RoutingTab.css +++ b/frontend/src/pages/xray/RoutingTab.css @@ -78,11 +78,7 @@ font-size: 11px; padding: 0 5px; border-radius: 8px; - background: rgba(0, 0, 0, 0.06); -} - -.xray-page.is-dark .criterion-more { - background: rgba(255, 255, 255, 0.1); + background: var(--ant-color-fill-tertiary); } .criterion-empty { @@ -222,11 +218,3 @@ opacity: 0.4; } -.xray-page.is-dark .rule-card { - background: rgba(255, 255, 255, 0.04); - border-color: rgba(255, 255, 255, 0.08); -} - -.xray-page.is-dark .criterion-chip { - background: rgba(255, 255, 255, 0.06); -}