mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-28 12:33:35 +01:00
Update menu separator color and enhance backdrop-filter for context menus
This commit is contained in:
@@ -283,10 +283,19 @@
|
||||
|
||||
/* Context Menus */
|
||||
.monaco-workbench .monaco-menu .monaco-action-bar.vertical {
|
||||
box-shadow: var(--shadow-lg);
|
||||
border-radius: var(--radius-lg);
|
||||
}
|
||||
|
||||
/* Use ::before for backdrop-filter so it doesn't create a containing block
|
||||
for position:fixed submenu children (which would clip them via overflow:hidden). */
|
||||
.monaco-workbench .monaco-menu .monaco-action-bar.vertical::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
border-radius: inherit;
|
||||
backdrop-filter: var(--backdrop-blur-md);
|
||||
-webkit-backdrop-filter: var(--backdrop-blur-md);
|
||||
z-index: -1;
|
||||
}
|
||||
|
||||
.monaco-workbench .context-view .monaco-menu {
|
||||
@@ -295,6 +304,11 @@
|
||||
border-radius: var(--radius-lg);
|
||||
}
|
||||
|
||||
.monaco-workbench .monaco-menu-container > .monaco-scrollable-element {
|
||||
border-radius: var(--radius-lg) !important;
|
||||
box-shadow: var(--shadow-lg) !important;
|
||||
}
|
||||
|
||||
.monaco-workbench .action-widget {
|
||||
background: color-mix(in srgb, var(--vscode-menu-background) 60%, transparent) !important;
|
||||
backdrop-filter: var(--backdrop-blur-md);
|
||||
|
||||
Reference in New Issue
Block a user