Файли
openidea/src/features/agents/SessionAssets.module.css
T

164 рядки
2.8 KiB
CSS

/* Session Pull Requests, Issues, References, and Artifacts pills above the composer.
Flat like Chip / statusChip: no frame at rest, toolbar hover when interactive. */
.bar {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: var(--space-0-5);
min-width: 0;
padding: 0;
}
.pill {
display: inline-flex;
align-items: center;
gap: var(--space-1);
height: 22px;
max-width: 100%;
min-width: 0;
padding: 0 4px 0 6px;
border: 0;
border-radius: var(--radius-toolbar-button);
background: transparent;
color: var(--fg-secondary);
font: inherit;
font-size: var(--fs-small);
font-variant-numeric: tabular-nums;
white-space: nowrap;
transition:
background var(--dur-fast) var(--ease),
color var(--dur-fast) var(--ease);
}
.pill:hover,
.pill[aria-expanded="true"] {
background: var(--bg-toolbar-hover);
color: var(--fg-strong);
}
.pill:focus-visible {
outline: 2px solid var(--focus-ring);
outline-offset: -2px;
}
.pillIcon {
flex: none;
color: var(--fg-muted);
}
.pill:hover .pillIcon,
.pill[aria-expanded="true"] .pillIcon {
color: inherit;
}
.pillLabel {
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.chevron {
flex: none;
color: var(--fg-muted);
}
.popup {
width: min(440px, calc(100vw - 24px));
max-height: 300px;
overflow-y: auto;
padding: 6px 0;
}
.section + .section {
margin-top: 4px;
padding-top: 4px;
border-top: 1px solid var(--border);
}
.sectionHeader {
padding: 4px 14px;
color: var(--fg-muted);
font-size: var(--fs-small);
font-weight: 600;
-webkit-user-select: none;
user-select: none;
}
.row {
display: flex;
align-items: center;
gap: var(--space-1);
min-height: 26px;
margin: 0 6px;
padding: 1px 4px 1px 8px;
border-radius: var(--radius-selection, 5px);
}
.row:hover,
.row:focus-within {
background: var(--bg-tree-hover, var(--bg-hover));
}
.rowMain {
flex: 1;
min-width: 0;
display: flex;
align-items: center;
gap: var(--space-2);
padding: 3px 2px;
border: 0;
border-radius: var(--radius-small);
background: transparent;
color: var(--fg);
font: inherit;
font-size: var(--fs-ui);
text-align: left;
}
.rowMain:focus-visible {
outline: 2px solid var(--focus-ring);
outline-offset: -1px;
}
.rowIcon {
flex: none;
}
.rowId {
flex: none;
color: var(--fg-secondary);
font-variant-numeric: tabular-nums;
}
.rowTitle {
flex: 1;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
color: var(--fg-strong);
}
.rowActions {
display: flex;
flex: none;
align-items: center;
gap: var(--space-0-5);
opacity: 0;
pointer-events: none;
}
.row:hover .rowActions,
.row:focus-within .rowActions {
opacity: 1;
pointer-events: auto;
}
@media (hover: none) {
.rowActions {
opacity: 1;
pointer-events: auto;
}
}