From d96811ce1be83d8ace30cc5223b2d09790acd8ce Mon Sep 17 00:00:00 2001 From: Cano1997 <1978141412@qq.com> Date: Fri, 21 Mar 2025 20:59:51 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=E6=A0=B7=E5=BC=8F=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E8=BF=81=E7=A7=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/design-base/src/style/index.scss | 26 ------------------- .../src/theme/studio-dark/app.scss | 26 +++++++++++++++++++ 2 files changed, 26 insertions(+), 26 deletions(-) diff --git a/packages/design-base/src/style/index.scss b/packages/design-base/src/style/index.scss index e14115b8..c619f8a2 100644 --- a/packages/design-base/src/style/index.scss +++ b/packages/design-base/src/style/index.scss @@ -530,30 +530,4 @@ .#{bem('design-view-operate')} { border-right: 1px solid getCssVar(color, border); border-left: 1px solid getCssVar(color, border); -} - -@include b(x6-design-context-menu) { - &.mx-context-menu { - padding: getCssVar(spacing, tight) 0; - border-radius: getCssVar(border-radius, large); - - .mx-context-menu-item { - position: relative; - width: calc(100% - getCssVar(spacing, tight) * 2); - height: 26px; - padding: 0 26px; - margin: 0 getCssVar(spacing, tight); - cursor: pointer; - border-radius: getCssVar(border-radius, large); - - .mx-icon-placeholder.preserve-width { - position: absolute; - left: getCssVar(spacing, base); - width: getCssVar(font-size, regular); - height: getCssVar(font-size, regular); - margin-right: getCssVar(spacing, extra, tight); - font-size: getCssVar(font-size, regular);; - } - } - } } \ No newline at end of file diff --git a/packages/studio-theme/src/theme/studio-dark/app.scss b/packages/studio-theme/src/theme/studio-dark/app.scss index 29062dcf..7d56ee23 100644 --- a/packages/studio-theme/src/theme/studio-dark/app.scss +++ b/packages/studio-theme/src/theme/studio-dark/app.scss @@ -141,4 +141,30 @@ margin: 5px 0; } } + + @include b(x6-design-context-menu) { + &.mx-context-menu { + padding: getCssVar(spacing, tight) 0; + border-radius: getCssVar(border-radius, large); + + .mx-context-menu-item { + position: relative; + width: calc(100% - getCssVar(spacing, tight) * 2); + height: 26px; + padding: 0 26px; + margin: 0 getCssVar(spacing, tight); + cursor: pointer; + border-radius: getCssVar(border-radius, large); + + .mx-icon-placeholder.preserve-width { + position: absolute; + left: getCssVar(spacing, base); + width: getCssVar(font-size, regular); + height: getCssVar(font-size, regular); + margin-right: getCssVar(spacing, extra, tight); + font-size: getCssVar(font-size, regular);; + } + } + } + } } \ No newline at end of file -- Gitee