diff --git a/packages/design-base/src/style/index.scss b/packages/design-base/src/style/index.scss index e14115b8704409c91c2620ac8aa6c322501b30ac..c619f8a24c6fdf927b8bdbc4e635d49a440184ad 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 29062dcf017c92df278550560625eb11941bca5d..7d56ee231b39a659735d38d9e0fe57cbf3b5bd37 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