Файли
openidea/src/ui/Popup.module.css
T
l0ng-ai f1bfd5db52 fix(workbench): center and label Quick Switch Scheme (#4897)
Quick Switch Scheme now opens in the center of the window and stays there when the window is resized. A title identifies the popup, and a numeric column shows shortcuts 1–4 for opening its categories. Theme previews and editor focus still restore when the popup closes.
2026-11-21 07:23:50 +08:00

82 рядки
1.6 KiB
CSS

.popup {
z-index: var(--z-popup);
overflow: auto;
opacity: 0;
}
.popup:focus-visible {
outline: none;
}
.popup[data-positioned] {
opacity: 1;
animation: popIn var(--dur-fast) var(--ease);
}
.centered {
position: fixed;
inset: 50% auto auto 50%;
translate: -50% -50%;
max-width: calc(100vw - 12px);
max-height: calc(100vh - 12px);
}
.popup::-webkit-scrollbar {
width: 10px;
height: 10px;
}
.popup::-webkit-scrollbar-thumb {
background-color: var(--scrollbar-thumb);
border: 2px solid transparent;
border-radius: 5px;
background-clip: content-box;
}
.popup::-webkit-scrollbar-track,
.popup::-webkit-scrollbar-corner {
background: transparent;
}
/* Islands popups: container-popup-bg, 1px popup border, large arc, soft shadow. */
.surface {
background: var(--bg-popup);
border: 1px solid var(--border-popup);
border-radius: var(--radius-popup-large, 10px);
box-shadow: var(--shadow-popup);
color: var(--fg-strong);
}
@keyframes popIn {
from {
opacity: 0;
transform: translateY(-2px);
}
}
@media (prefers-reduced-motion: reduce) {
.popup[data-positioned] {
animation: none;
}
}
/* `resizable`: the right and bottom edges and their corner, inside the border like IDEA's resize border. */
.resizeRight,
.resizeBottom,
.resizeCorner {
position: absolute;
z-index: 1;
touch-action: none;
}
.resizeRight {
top: 0;
right: 0;
bottom: 8px;
width: 4px;
cursor: ew-resize;
}
.resizeBottom {
left: 0;
right: 8px;
bottom: 0;
height: 4px;
cursor: ns-resize;
}
.resizeCorner {
right: 0;
bottom: 0;
width: 8px;
height: 8px;
cursor: nwse-resize;
}