дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-11-30 06:12:33 +02:00
125 рядки
2.5 KiB
CSS
125 рядки
2.5 KiB
CSS
/* PopupMenu: 6px vertical insets, 24px items with inset rounded selection, shortcuts right-aligned in secondary text. */
|
||
.popup {
|
||
padding: 6px 0;
|
||
min-width: 180px;
|
||
overflow-x: hidden;
|
||
}
|
||
.popup .menu {
|
||
max-width: 420px;
|
||
}
|
||
.titledPopup {
|
||
scroll-padding-block-start: calc(var(--h-list-row) + var(--space-1));
|
||
}
|
||
.menuHeading {
|
||
position: sticky;
|
||
top: 0;
|
||
z-index: 1;
|
||
display: flex;
|
||
align-items: center;
|
||
height: calc(var(--h-list-row) + var(--space-1));
|
||
padding-inline: var(--space-3);
|
||
background: var(--bg-popup);
|
||
color: var(--fg-strong);
|
||
font-size: var(--fs-ui);
|
||
font-weight: 600;
|
||
}
|
||
.menu {
|
||
display: flex;
|
||
flex-direction: column;
|
||
font-size: var(--fs-ui);
|
||
outline: none;
|
||
}
|
||
.item {
|
||
position: relative;
|
||
display: flex;
|
||
align-items: center;
|
||
gap: var(--space-1-5);
|
||
height: var(--h-list-row);
|
||
margin: 0 6px;
|
||
padding: 0 8px 0 6px;
|
||
border-radius: var(--radius-selection, 5px);
|
||
color: var(--fg-strong);
|
||
text-align: left;
|
||
white-space: nowrap;
|
||
outline: none;
|
||
}
|
||
.item:focus-visible {
|
||
outline: none;
|
||
}
|
||
.active {
|
||
background: var(--bg-tree-selected);
|
||
}
|
||
.disabled {
|
||
color: var(--fg-faint);
|
||
cursor: default;
|
||
}
|
||
.danger {
|
||
color: var(--danger);
|
||
}
|
||
.icon {
|
||
width: 16px;
|
||
flex: none;
|
||
display: inline-flex;
|
||
justify-content: center;
|
||
color: var(--fg-muted);
|
||
}
|
||
/* Numeric mnemonics (IDEA Select In): a fixed column left of the icon. */
|
||
.mnemonic {
|
||
width: 10px;
|
||
flex: none;
|
||
font-family: var(--font-keys);
|
||
font-size: var(--fs-ui);
|
||
color: var(--fg-subtle);
|
||
text-align: right;
|
||
}
|
||
.label {
|
||
flex: 1;
|
||
min-width: 0;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
}
|
||
.shortcut {
|
||
min-width: 0;
|
||
max-width: 50%;
|
||
margin-inline-start: var(--space-3);
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
font-family: var(--font-keys);
|
||
font-size: var(--fs-ui);
|
||
color: var(--fg-muted);
|
||
}
|
||
.subArrow {
|
||
flex: none;
|
||
width: 14px;
|
||
display: flex;
|
||
color: var(--fg-muted);
|
||
margin-inline-start: var(--space-1);
|
||
}
|
||
.separator {
|
||
height: 1px;
|
||
margin: 4px 14px;
|
||
background: var(--border-popup);
|
||
}
|
||
.header {
|
||
height: var(--h-list-row);
|
||
display: flex;
|
||
align-items: center;
|
||
padding: 0 14px;
|
||
color: var(--fg-muted);
|
||
font-size: var(--fs-small);
|
||
}
|
||
.title {
|
||
display: flex;
|
||
align-items: center;
|
||
min-height: var(--h-list-row);
|
||
margin-bottom: var(--space-1);
|
||
padding-inline: var(--space-3);
|
||
color: var(--fg-strong);
|
||
font-weight: 600;
|
||
}
|
||
|
||
/* Settings › Appearance › "Display icons in menu items" off: keep the column, drop the icon. */
|
||
:global(:root[data-menu-icons="off"]) .icon[data-menu-icon] > * {
|
||
display: none;
|
||
}
|