File size: 3,204 Bytes
a3689a2 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 |
:root {
--cody-chat-code-background: var(--code-background);
--cody-chat-code-header-background: var(--vscode-editorGroupHeader-tabsBackground);
--cody-chat-code-subtle-background: var(--vscode-titleBar-inactiveBackground);
--cody-chat-code-border-color: var(--vscode-widget-border);
--cody-chat-code-text-muted: var(--vscode-input-placeholderForeground);
--cody-chat-code-focus-border: var(--vscode-focusBorder);
--cody-chat-code-mark-background: #f8e688;
--cody-chat-code-text-highlighted: #566880;
}
.result-container {
contain: paint;
:global(.match-highlight) {
color: var(--cody-chat-code-text-highlighted);
background-color: var(--cody-chat-code-mark-background) !important;
}
:global(.sr-only) {
position: absolute;
width: 0.0625rem;
height: 0.0625rem;
padding: 0;
margin: -0.0625rem;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border: 0;
}
}
.header {
padding: 0.45rem 0.5rem;
display: flex;
align-items: center;
flex-wrap: wrap;
position: sticky;
top: 0;
/* Show on top of search result contents */
z-index: 1;
background-color: var(--cody-chat-code-header-background);
&-title {
flex: 1 1 auto;
display: flex;
flex-wrap: wrap;
}
}
.result {
border-radius: 4px;
border: solid 1px var(--cody-chat-code-border-color);
background-color: var(--cody-chat-code-background);
code {
padding: 0 !important;
}
}
.search-result-match {
/* Don't use cascading link style */
text-decoration: none;
display: flex;
align-items: flex-start;
overflow-x: auto;
overflow-y: hidden;
position: relative;
}
.horizontal-divider-between {
&:not(:last-child) {
border-bottom: 1px solid var(--cody-chat-code-border-color);
}
}
.focusable-block {
&:focus-visible {
box-shadow: inset 0 0 0 1px var(--cody-chat-code-focus-border);
}
}
.clickable {
cursor: pointer;
&:hover {
text-decoration: none;
}
}
.divider-between {
> *:not(:last-child)::after {
content: ' ';
height: 1rem;
margin: 0 0.75rem;
border-right: 1px solid var(--cody-chat-code-border-color);
display: block;
}
}
.divider-vertical {
border-bottom: 1px solid var(--cody-chat-code-border-color);
width: 100%;
margin: 0.5rem 0;
}
.divider {
border-right: 1px solid var(--cody-chat-code-border-color);
height: 1rem;
margin: 0 0.5rem;
}
.title {
display: flex;
align-items: center;
flex-grow: 1;
min-width: 0;
flex-wrap: wrap;
}
.title-inner {
overflow-wrap: anywhere;
}
.toggle-matches-button {
width: 100%;
text-align: left;
border: none;
padding: 0.25rem 0.5rem;
border-top: 1px solid var(--cody-chat-code-border-color);
background-color: var(--cody-chat-code-background);
color: var(--cody-chat-code-text-muted);
&:hover {
color: inherit;
}
&--expanded {
position: sticky;
bottom: 0;
}
&-text {
margin-left: 0.125rem;
}
}
|