/* Sourcegraph code intelligence styles */ .sourcegraph-hover { max-width: 600px; max-height: 400px; overflow: auto; } .sourcegraph-hover .sg-content { padding: 8px; font-size: 13px; } .sourcegraph-hover .sg-content pre { margin: 0; padding: 8px; background: var(--color-code-bg); border-radius: 4px; white-space: pre-wrap; word-wrap: break-word; font-family: var(--fonts-monospace); font-size: 12px; } .sourcegraph-hover .sg-actions { display: flex; gap: 8px; padding: 8px; border-top: 1px solid var(--color-secondary); } /* References panel */ .sg-refs-panel { position: fixed; right: 16px; top: 100px; width: 400px; max-height: 60vh; background: var(--color-body); border: 1px solid var(--color-secondary); border-radius: 6px; box-shadow: 0 4px 16px var(--color-shadow); z-index: 1000; display: flex; flex-direction: column; } .sg-refs-header { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--color-secondary); background: var(--color-box-header); } .sg-refs-title { font-weight: 600; font-size: 14px; } .sg-refs-close { background: none; border: none; font-size: 20px; cursor: pointer; color: var(--color-text-light); padding: 0; line-height: 1; } .sg-refs-close:hover { color: var(--color-text); } .sg-refs-list { overflow-y: auto; flex: 1; } .sg-refs-item { display: flex; align-items: center; padding: 8px 16px; border-bottom: 1px solid var(--color-secondary); color: var(--color-text); text-decoration: none; font-family: var(--fonts-monospace); font-size: 12px; } .sg-refs-item:hover { background: var(--color-hover); } .sg-refs-item:last-child { border-bottom: none; } .sg-refs-path { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .sg-refs-line { color: var(--color-text-light); margin-left: 8px; } /* Highlight hoverable tokens on hover */ .code-view .code-inner span:hover { background: var(--color-hover); cursor: pointer; border-radius: 2px; }