From 702bcd41824b1bb94bfe8670c9a4d80f2df4abf1 Mon Sep 17 00:00:00 2001 From: Cano1997 <1978141412@qq.com> Date: Mon, 17 Mar 2025 22:14:56 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=E4=BF=AE=E5=A4=8D=E9=80=BB=E8=BE=91?= =?UTF-8?q?=E8=AE=BE=E8=AE=A1=E4=B8=8A=E4=B8=8B=E6=96=87=E8=8F=9C=E5=8D=95?= =?UTF-8?q?=E6=A0=B7=E5=BC=8F=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/theme/studio-dark/app.scss | 30 ------------------- .../src/theme/studio-dark/ctrl.scss | 29 ++++++++++++++++++ 2 files changed, 29 insertions(+), 30 deletions(-) diff --git a/packages/studio-theme/src/theme/studio-dark/app.scss b/packages/studio-theme/src/theme/studio-dark/app.scss index de0a7e12..29062dcf 100644 --- a/packages/studio-theme/src/theme/studio-dark/app.scss +++ b/packages/studio-theme/src/theme/studio-dark/app.scss @@ -110,36 +110,6 @@ } } - // 树视图右键上下文 - .mx-context-menu { - border-radius: getCssVar(border-radius, large); - outline: 1px solid getCssVar(color, border); - box-shadow: 0 2px 8px #0000005c; - - .mx-context-menu-item { - position: relative; - margin: 0 getCssVar(spacing, tight); - border-radius: getCssVar(border-radius, large); - - .label { - padding: 0; - font-size: getCssVar(font-size, regular); - line-height: getCssVar(width, icon, medium); - } - - &:hover { - color: getCssVar(color, primary, active, text); - } - } - - .mx-context-menu-item .mx-icon-placeholder.preserve-width { - position: absolute; - left: getCssVar(spacing, base); - width: auto; - font-size: getCssVar(font-size, regular); - } - } - // 树上下文菜单 .#{bem('context-menu', 'popover')} { border-radius: getCssVar(border-radius, large); diff --git a/packages/studio-theme/src/theme/studio-dark/ctrl.scss b/packages/studio-theme/src/theme/studio-dark/ctrl.scss index 8cedf0b5..ad84f2fa 100644 --- a/packages/studio-theme/src/theme/studio-dark/ctrl.scss +++ b/packages/studio-theme/src/theme/studio-dark/ctrl.scss @@ -35,6 +35,35 @@ --mx-menu-backgroud: #{getCssVar(color, bg, 1)}; --mx-menu-divider: #{getCssVar(color, border)}; + + &.mx-context-menu { + border-radius: getCssVar(border-radius, large); + outline: 1px solid getCssVar(color, border); + box-shadow: 0 2px 8px #0000005c; + + .mx-context-menu-item { + position: relative; + margin: 0 getCssVar(spacing, tight); + border-radius: getCssVar(border-radius, large); + + .label { + padding: 0; + font-size: getCssVar(font-size, regular); + line-height: getCssVar(width, icon, medium); + } + + &:hover { + color: getCssVar(color, primary, active, text); + } + } + + .mx-context-menu-item .mx-icon-placeholder.preserve-width { + position: absolute; + left: getCssVar(spacing, base); + width: auto; + font-size: getCssVar(font-size, regular); + } + } } // 搜索栏 -- Gitee