mirror of
https://github.com/sourcegraph/sourcegraph.git
synced 2026-02-06 16:51:55 +00:00
- Remove support for toggling native tooltips from the browser extension. This let users choose to keep the browser extension installed and partially active on GitHub but not show Sourcegraph's hovers. This functionality is less important now that GitHub's new code nav no longer uses hovers. For old GitHub Enterprise server instances (and GitHub.com users who have not enabled the new code view), users can disable the browser extension if they want to disable Sourcegraph's hover functionality. - Remove hover alerts, which were used to warn users that the results are imprecise. We still show this in a hover badge, which is a much nicer UI for this than a dismissible warning (which felt more "CYA"). - Remove command palette because it was inextricable from notifications and it was only used by the Sourcegraph extension API (which is deprecated and will be removed). - Remove the old notifications UI, which showed notification messages in Sourcegraph and code host UIs. This is no longer necessary with the removal of the command palette, because it is no longer possible to invoke long-running actions whose errors must be shown in a separate, global UI. ## Test plan Existing tests suffice to test the existing code intelligence functionality. This PR just removes functionality.
127 lines
2.3 KiB
SCSS
127 lines
2.3 KiB
SCSS
:root {
|
|
--gray-10: #fafafa; // override value to avoid style conflics: https://github.com/sourcegraph/sourcegraph/pull/32548
|
|
}
|
|
|
|
.btn-icon {
|
|
img {
|
|
// Gitlab applies this to svgs,
|
|
// need to apply it to imgs for consistency too
|
|
position: relative;
|
|
top: 2px;
|
|
vertical-align: baseline;
|
|
|
|
// Replicate svg color hover effect
|
|
opacity: 0.6;
|
|
&:hover {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
}
|
|
|
|
.hover-overlay {
|
|
border-color: #e5e5e5;
|
|
|
|
// Override Gitlab's default styles
|
|
pre,
|
|
code {
|
|
padding: 0;
|
|
border: none;
|
|
background: none;
|
|
color: inherit;
|
|
}
|
|
|
|
margin-bottom: 0;
|
|
|
|
// highlight.js styles
|
|
|
|
:global(.hljs) {
|
|
display: block;
|
|
overflow-x: auto;
|
|
padding: 0.5em;
|
|
color: #333333;
|
|
}
|
|
|
|
:global(.hljs-comment),
|
|
:global(.hljs-quote) {
|
|
color: #999988;
|
|
}
|
|
|
|
:global(.hljs-keyword),
|
|
:global(.hljs-selector-tag),
|
|
:global(.hljs-subst) {
|
|
color: inherit;
|
|
font-weight: 600;
|
|
}
|
|
|
|
:global(.hljs-number),
|
|
:global(.hljs-literal),
|
|
:global(.hljs-variable),
|
|
:global(.hljs-template-variable),
|
|
:global(.hljs-tag) :global(.hljs-attr) {
|
|
color: #008080;
|
|
}
|
|
|
|
:global(.hljs-string),
|
|
:global(.hljs-doctag) {
|
|
color: #dd1144;
|
|
}
|
|
|
|
:global(.hljs-title),
|
|
:global(.hljs-section),
|
|
:global(.hljs-selector-id) {
|
|
color: #333333;
|
|
}
|
|
|
|
:global(.hljs-subst) {
|
|
font-weight: normal;
|
|
}
|
|
|
|
:global(.hljs-type),
|
|
:global(.hljs-class) :global(.hljs-title) {
|
|
color: #445588;
|
|
}
|
|
|
|
:global(.hljs-tag),
|
|
:global(.hljs-name),
|
|
:global(.hljs-attribute) {
|
|
color: #000080;
|
|
font-weight: normal;
|
|
}
|
|
|
|
:global(.hljs-regexp),
|
|
:global(.hljs-link) {
|
|
color: #009926;
|
|
}
|
|
|
|
:global(.hljs-symbol),
|
|
:global(.hljs-bullet) {
|
|
color: #990073;
|
|
}
|
|
|
|
:global(.hljs-built_in),
|
|
:global(.hljs-builtin-name) {
|
|
color: #0086b3;
|
|
}
|
|
|
|
:global(.hljs-meta) {
|
|
color: #999999;
|
|
font-weight: bold;
|
|
}
|
|
|
|
:global(.hljs-deletion) {
|
|
background: #ffdddd;
|
|
}
|
|
|
|
:global(.hljs-addition) {
|
|
background: #ddffdd;
|
|
}
|
|
|
|
:global(.hljs-emphasis) {
|
|
font-style: italic;
|
|
}
|
|
|
|
:global(.hljs-strong) {
|
|
font-weight: bold;
|
|
}
|
|
}
|