mirror of
https://github.com/l0ng-ai/openidea.git
synced 2026-11-24 08:03:19 +00:00
- Give Search Everywhere's Text results a separate column for the line number. Long filenames truncate within the existing metadata width, leaving the same amount of space for the highlighted code snippet. - Use tabular digits at the trailing edge and show the full relative path on hover.
442 lines
8.1 KiB
CSS
442 lines
8.1 KiB
CSS
.dialog {
|
|
--se-bg-header: var(--bg-frame, var(--bg-app));
|
|
--se-max-height: 600px;
|
|
container-type: inline-size;
|
|
max-height: min(var(--se-max-height), 80vh);
|
|
margin-top: 9vh;
|
|
background: var(--bg-popup, var(--bg-elev));
|
|
font-family: var(--font-ui);
|
|
font-size: var(--fs-ui);
|
|
}
|
|
/* The list shrinks to fit (the footer stays visible) instead of the dialog body scrolling. */
|
|
.dialog > :global([data-dialog-body]) {
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow: hidden;
|
|
}
|
|
.header {
|
|
flex: none;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-2);
|
|
height: 44px;
|
|
padding: 0 8px 0 8px;
|
|
background: var(--se-bg-header);
|
|
border-bottom: 1px solid var(--border-popup);
|
|
}
|
|
.tabs {
|
|
position: relative;
|
|
overflow-x: auto;
|
|
scrollbar-width: none;
|
|
flex: 1;
|
|
min-width: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-0-5);
|
|
}
|
|
.tab {
|
|
flex: none;
|
|
height: 26px;
|
|
padding: 0 9px;
|
|
border: 1px solid transparent;
|
|
border-radius: var(--radius-small);
|
|
background: none;
|
|
color: var(--fg);
|
|
font: inherit;
|
|
white-space: nowrap;
|
|
}
|
|
.tab:hover {
|
|
background: var(--bg-toolbar-hover, var(--bg-hover));
|
|
}
|
|
.tab:focus-visible {
|
|
outline: 2px solid var(--focus-ring, var(--accent));
|
|
outline-offset: -1px;
|
|
}
|
|
.tabActive,
|
|
.tabActive:hover {
|
|
background: var(--bg-tab-selected, var(--accent-soft));
|
|
border-color: var(--border-tab-selected, var(--accent));
|
|
color: var(--fg-strong);
|
|
}
|
|
.tools {
|
|
flex: none;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-2);
|
|
}
|
|
.include {
|
|
flex: none;
|
|
color: var(--fg);
|
|
}
|
|
.scope {
|
|
color: var(--fg);
|
|
}
|
|
.headerButton {
|
|
flex: none;
|
|
}
|
|
.queryRow {
|
|
flex: none;
|
|
margin-inline: var(--space-3);
|
|
}
|
|
.field {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-1-5);
|
|
height: 30px;
|
|
padding-inline: var(--space-0-5);
|
|
border-bottom: 1px solid var(--border-popup);
|
|
}
|
|
.field:focus-within {
|
|
border-bottom-color: var(--focus-ring, var(--accent));
|
|
}
|
|
.magnifier {
|
|
flex: none;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 1px;
|
|
height: 22px;
|
|
padding: 0 2px;
|
|
border: none;
|
|
border-radius: var(--radius-small);
|
|
background: none;
|
|
color: var(--fg-subtle);
|
|
}
|
|
.magnifier:hover {
|
|
background: var(--bg-hover);
|
|
color: var(--fg);
|
|
}
|
|
.magnifier:focus-visible {
|
|
outline: 2px solid var(--focus-ring, var(--accent));
|
|
}
|
|
.query {
|
|
flex: 1;
|
|
min-width: 0;
|
|
height: 100%;
|
|
background: none;
|
|
border: 0;
|
|
outline: none;
|
|
color: var(--fg-strong);
|
|
font-family: var(--font-ui);
|
|
font-size: var(--fs-ui);
|
|
caret-color: var(--fg-strong);
|
|
}
|
|
.spinner {
|
|
flex: none;
|
|
color: var(--fg-subtle);
|
|
}
|
|
.hint {
|
|
flex: none;
|
|
color: var(--fg-faint);
|
|
white-space: nowrap;
|
|
}
|
|
.content {
|
|
min-height: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
.withPreview {
|
|
height: var(--se-max-height);
|
|
}
|
|
.results {
|
|
/* `auto`, not `1`: without the preview `.content` has no definite height, and a 0% basis there
|
|
collapses the list in the system WebKit of macOS 15 instead of using its inline height. */
|
|
flex: 1 1 auto;
|
|
min-height: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
padding: 0 0 8px;
|
|
}
|
|
.list {
|
|
flex: 1;
|
|
min-height: 0;
|
|
}
|
|
.preview {
|
|
overflow: hidden;
|
|
}
|
|
.section {
|
|
font-family: var(--font-ui);
|
|
}
|
|
.empty {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
height: 64px;
|
|
color: var(--fg-faint);
|
|
}
|
|
.icon {
|
|
flex: none;
|
|
width: 16px;
|
|
height: 16px;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: var(--fg-subtle);
|
|
}
|
|
.main {
|
|
flex: 1;
|
|
min-width: 0;
|
|
display: flex;
|
|
align-items: baseline;
|
|
gap: var(--space-1-5);
|
|
overflow: hidden;
|
|
}
|
|
.name {
|
|
flex: 0 1 auto;
|
|
min-width: 0;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: pre;
|
|
color: var(--fg-strong);
|
|
}
|
|
.fileName {
|
|
flex-shrink: 0;
|
|
max-width: 100%;
|
|
}
|
|
.code {
|
|
font-family: var(--font-ui);
|
|
color: var(--fg);
|
|
tab-size: 2;
|
|
}
|
|
.repeat {
|
|
color: var(--fg-faint);
|
|
}
|
|
.lineSuffix {
|
|
color: var(--fg-muted);
|
|
}
|
|
.location {
|
|
flex: 0 1000 auto;
|
|
min-width: 0;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
color: var(--fg-subtle);
|
|
}
|
|
.path {
|
|
display: inline-flex;
|
|
}
|
|
.pathPart {
|
|
flex: none;
|
|
min-width: 0;
|
|
max-width: 100%;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
.pathPrefix {
|
|
flex-shrink: 1;
|
|
}
|
|
.shortcut {
|
|
flex: none;
|
|
max-width: 55%;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
color: var(--fg-subtle);
|
|
font-family: var(--font-keys);
|
|
font-size: var(--fs-small);
|
|
font-weight: 600;
|
|
}
|
|
.right {
|
|
flex: none;
|
|
max-width: 45%;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
color: var(--fg-subtle);
|
|
text-align: right;
|
|
}
|
|
.rightActive {
|
|
color: var(--fg-muted);
|
|
}
|
|
.textLocation {
|
|
display: inline-flex;
|
|
align-items: baseline;
|
|
gap: var(--space-1);
|
|
}
|
|
.textFile {
|
|
min-width: 0;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
.textLine {
|
|
flex: none;
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
.actionRow {
|
|
flex: 1;
|
|
min-width: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-1-5);
|
|
}
|
|
.actionRow > .right {
|
|
max-width: 30%;
|
|
}
|
|
.disabled .name,
|
|
.disabled .location,
|
|
.disabled .shortcut,
|
|
.disabled .right {
|
|
color: var(--fg-faint);
|
|
}
|
|
.more {
|
|
padding-left: 26px;
|
|
color: var(--fg-subtle);
|
|
}
|
|
.footer {
|
|
flex: none;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 14px;
|
|
height: 30px;
|
|
padding: 0 12px;
|
|
background: var(--se-bg-header);
|
|
border-top: 1px solid var(--border-popup);
|
|
color: var(--fg-subtle);
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
}
|
|
.footerInfo {
|
|
flex: 1;
|
|
min-width: 0;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
.footerLink {
|
|
flex: none;
|
|
padding: 0;
|
|
border: 0;
|
|
background: none;
|
|
color: var(--link);
|
|
font: inherit;
|
|
cursor: pointer;
|
|
}
|
|
.footerLink:hover {
|
|
color: var(--link-hover);
|
|
text-decoration: underline;
|
|
}
|
|
.footerLink:focus-visible {
|
|
outline: 2px solid var(--focus-ring, var(--accent));
|
|
}
|
|
|
|
.toggle {
|
|
flex: none;
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
.filterPopup {
|
|
min-width: 220px;
|
|
max-height: 60vh;
|
|
overflow: auto;
|
|
padding: 6px 0;
|
|
}
|
|
.filterGroup {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-1);
|
|
padding: 4px 12px 8px;
|
|
}
|
|
.filterTitle {
|
|
color: var(--fg-secondary);
|
|
font-size: var(--fs-small);
|
|
}
|
|
.checklistPopup {
|
|
display: flex;
|
|
flex-direction: column;
|
|
width: min(280px, calc(100vw - 12px));
|
|
max-height: min(460px, 70vh);
|
|
overflow: hidden;
|
|
font-size: var(--fs-ui);
|
|
}
|
|
.checklistGroup {
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-height: 0;
|
|
}
|
|
.checklistGroup + .checklistGroup {
|
|
border-block-start: 1px solid var(--border-popup);
|
|
}
|
|
.checklistTitle {
|
|
flex: none;
|
|
padding: var(--space-2) var(--space-3) var(--space-1);
|
|
color: var(--fg-strong);
|
|
font-weight: 600;
|
|
}
|
|
.checklistRows {
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-height: 0;
|
|
overflow: auto;
|
|
overscroll-behavior: contain;
|
|
scrollbar-width: thin;
|
|
padding: 0 var(--space-1) var(--space-1);
|
|
}
|
|
.checklistRow {
|
|
flex: none;
|
|
min-height: var(--h-row);
|
|
padding-inline: var(--space-2);
|
|
border-radius: var(--radius-selection);
|
|
}
|
|
.checklistRow:hover {
|
|
background: var(--bg-tree-hover);
|
|
}
|
|
.checklistRow:focus-within {
|
|
background: var(--bg-tree-selected);
|
|
}
|
|
.checklistLabel {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-1-5);
|
|
}
|
|
.checklistName {
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
.checklistActions {
|
|
display: flex;
|
|
flex: none;
|
|
justify-content: center;
|
|
flex-wrap: wrap;
|
|
gap: var(--space-1-5);
|
|
padding: var(--space-1-5) var(--space-2);
|
|
border-block-start: 1px solid var(--border-popup);
|
|
}
|
|
.filterMasks {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: var(--space-1);
|
|
}
|
|
.filterMask {
|
|
padding: 1px 6px;
|
|
border: 1px solid var(--border-strong);
|
|
border-radius: var(--radius-small);
|
|
background: none;
|
|
color: var(--fg);
|
|
font: inherit;
|
|
font-family: var(--font-mono);
|
|
}
|
|
.filterMask:hover {
|
|
background: var(--bg-hover);
|
|
}
|
|
|
|
@container (max-width: 680px) {
|
|
.header {
|
|
flex-wrap: wrap;
|
|
height: auto;
|
|
gap: var(--space-1-5);
|
|
padding: 6px 8px;
|
|
}
|
|
.tabs {
|
|
flex-basis: 100%;
|
|
}
|
|
.tools {
|
|
width: 100%;
|
|
}
|
|
.include {
|
|
margin-right: auto;
|
|
}
|
|
.hint {
|
|
display: none;
|
|
}
|
|
}
|