|
1 |
| -.user-message { |
2 |
| - font-size: var(--vscode-editor-font-size); |
| 1 | +/* Sidebar sections */ |
| 2 | +.sidebar__section-container { |
| 3 | + transition: all 0.3s ease; |
| 4 | + overflow: auto; |
| 5 | + max-height: 70vh; |
| 6 | +} |
| 7 | + |
| 8 | +.sidebar__section-container.is-opening { |
| 9 | + max-height: 70vh; |
| 10 | +} |
| 11 | + |
| 12 | +.sidebar__section-container:not(.active) { |
| 13 | + max-height: 0; |
| 14 | + overflow: hidden; |
| 15 | +} |
| 16 | + |
| 17 | +/* ------------- Chat UI ------------- */ |
| 18 | +.sidebar__chat-assistant--dialogue-container { |
| 19 | + padding: 0 var(--spacing-md); |
| 20 | + margin: 0; |
| 21 | + display: flex; |
| 22 | + flex-direction: column; |
| 23 | +} |
| 24 | + |
| 25 | +.sidebar__chat-assistant--chat-bubble { |
| 26 | + display: inline-grid; |
| 27 | + align-items: flex-end; |
| 28 | + grid-gap: var(--spacing-md) var(--spacing-xs); |
| 29 | + margin-bottom: var(--spacing-md); |
| 30 | + word-break: break-word; |
| 31 | +} |
| 32 | + |
| 33 | +/* Change width of columns based on agent/user */ |
| 34 | +.sidebar__chat-assistant--chat-bubble-agent { |
| 35 | + grid-template-columns: 32px 1fr; |
| 36 | +} |
| 37 | + |
| 38 | +.sidebar__chat-assistant--chat-bubble-user { |
| 39 | + grid-template-columns: 1fr 32px; |
| 40 | +} |
| 41 | + |
| 42 | +/* Styles for avatars */ |
| 43 | +.sidebar__chat-assistant--chat-avatar-container { |
| 44 | + background: var(--vscode-foreground); |
| 45 | + padding: var(--spacing-xs); |
| 46 | + border-radius: 100%; |
| 47 | + width: 2rem; |
| 48 | + height: 2rem; |
| 49 | + display: flex; |
| 50 | + align-items: center; |
| 51 | + justify-content: center; |
| 52 | + flex: auto; |
| 53 | +} |
| 54 | + |
| 55 | +.sidebar__chat-assistant--agent-avatar-image { |
| 56 | + width: 100%; |
| 57 | + display: block; |
| 58 | +} |
| 59 | + |
| 60 | +/* Styles for content inside chat bubbles */ |
| 61 | +.sidebar__chat-assistant--chat-bubble-content-assistant, |
| 62 | +.sidebar__chat-assistant--code-block-container { |
| 63 | + background-color: var(--vscode-settings-textInputBackground); |
| 64 | + padding: var(--spacing-xs); |
| 65 | + border-radius: var(--spacing-xs); |
| 66 | +} |
| 67 | + |
| 68 | +.sidebar__chat-assistant--chat-bubble-content-user { |
| 69 | + background-color: var(--vscode-settings-textInputBackground); |
| 70 | + padding: var(--spacing-xs); |
| 71 | + border-radius: var(--spacing-xs); |
| 72 | +} |
| 73 | + |
| 74 | +.sidebar__chat-assistant--chat-bubble-text { |
| 75 | + margin: 0; |
| 76 | + color: var(--vscode-settings-textInputForeground); |
| 77 | +} |
| 78 | + |
| 79 | +.sidebar__chat-assistant--chat-bubble-inline-button { |
| 80 | + /* Override a few things that are coming from the main CSS file */ |
| 81 | + display: inline-block; |
| 82 | + width: auto; |
| 83 | + padding: 0; |
| 84 | + margin: 0; |
| 85 | + background: transparent; |
| 86 | +} |
| 87 | + |
| 88 | +.sidebar__chat-assistant--code-block-container { |
| 89 | + background-color: var(--vscode-editor-background); |
| 90 | + color: var(--vscode-sideBar-foreground); |
| 91 | +} |
| 92 | + |
| 93 | +.sidebar__chat-assistant--code-block { |
| 94 | + margin: 0; |
3 | 95 | font-family: var(--vscode-editor-font-family);
|
4 |
| - background-color: var(--vscode-input-background); |
| 96 | + white-space: pre-line; |
| 97 | +} |
| 98 | + |
| 99 | +.sidebar__chat-assistant--code-block code { |
| 100 | + font-size: var(--vscode-sidebar-font-size); |
5 | 101 | }
|
6 | 102 |
|
7 |
| -.assistant-message { |
8 |
| - font-size: var(--vscode-editor-font-size); |
| 103 | +.sidebar__chat-assistant--chat-text-inline-code { |
| 104 | + display: inline-block; |
9 | 105 | font-family: var(--vscode-editor-font-family);
|
| 106 | + font-size: var(--vscode-sidebar-font-size); |
| 107 | +} |
| 108 | + |
| 109 | +.sidebar__chat-assistant--chat-text-bold { |
| 110 | + font-weight: 600; |
| 111 | +} |
| 112 | + |
| 113 | +.sidebar__chat-assistant--chat-text-separator { |
| 114 | + display: block; |
| 115 | + margin: var(--spacing-xxs); |
| 116 | +} |
| 117 | + |
| 118 | +.sidebar__chat-assistant--chat-numbered-list { |
| 119 | + color: var(--vscode-editor-background); |
| 120 | +} |
| 121 | + |
| 122 | +/* Hover functionality for inline code references in sidebar */ |
| 123 | +.sidebar__chat-assistant--chat-bubble-inline-button |
| 124 | + .sidebar__chat-assistant--chat-text-inline-code { |
| 125 | + text-decoration: underline; |
| 126 | + text-underline-offset: var(--spacing-xxs); |
| 127 | +} |
| 128 | + |
| 129 | +.sidebar__chat-assistant--chat-bubble-inline-button:hover { |
| 130 | + background: transparent; |
| 131 | +} |
| 132 | + |
| 133 | +.sidebar__chat-assistant--chat-bubble-inline-button:hover |
| 134 | + .sidebar__chat-assistant--chat-text-inline-code { |
| 135 | + text-decoration: none; |
| 136 | +} |
| 137 | + |
| 138 | +/* Don't round the specific corner where the avatar is, to make it look more like a chat bubble */ |
| 139 | +.sidebar__chat-assistant--chat-bubble-agent |
| 140 | + .sidebar__chat-assistant--chat-bubble-content { |
| 141 | + border-bottom-left-radius: 0; |
| 142 | +} |
| 143 | + |
| 144 | +.sidebar__chat-assistant--chat-bubble-user |
| 145 | + .sidebar__chat-assistant--chat-bubble-content { |
| 146 | + border-bottom-right-radius: 0; |
| 147 | +} |
| 148 | + |
| 149 | +/* Make avatar bigger for user, since we're using an emoji for now */ |
| 150 | +.sidebar__chat-assistant--chat-bubble-user |
| 151 | + .sidebar__chat-assistant--agent-avatar-image { |
| 152 | + font-size: 1.25rem; |
| 153 | + text-align: center; |
| 154 | +} |
| 155 | + |
| 156 | +.sidebar__chat-assistant--cursor { |
| 157 | + display: inline-block; |
| 158 | + animation: cursor-blink 1.5s steps(2) infinite; |
| 159 | + width: 2px; |
| 160 | +} |
| 161 | + |
| 162 | +/* Style and animate typing dots */ |
| 163 | +.sidebar__chat-assistant--agent-typing-dot { |
| 164 | + display: inline-block; |
| 165 | + height: var(--spacing-xxs); |
| 166 | + width: var(--spacing-xxs); |
10 | 167 | background-color: var(--vscode-editor-background);
|
| 168 | + border-radius: 50%; |
| 169 | + animation-name: typing-dots; |
| 170 | + animation-duration: 0.8s; |
| 171 | + animation-timing-function: ease-in-out; |
| 172 | + animation-iteration-count: infinite; |
| 173 | +} |
| 174 | + |
| 175 | +.sidebar__chat-assistant--agent-typing-dot:nth-of-type(1) { |
| 176 | + animation-delay: 0s; |
| 177 | +} |
| 178 | + |
| 179 | +.sidebar__chat-assistant--agent-typing-dot:nth-of-type(2) { |
| 180 | + animation-delay: 0.2s; |
| 181 | +} |
| 182 | + |
| 183 | +.sidebar__chat-assistant--agent-typing-dot:nth-of-type(3) { |
| 184 | + animation-delay: 0.4s; |
| 185 | +} |
| 186 | + |
| 187 | +/* ------------- Text box container ------------- */ |
| 188 | +.sidebar__chat-assistant--footer { |
| 189 | + border-bottom: 1px solid var(--vscode-sideBar-border); |
| 190 | + padding: var(--spacing-md); |
| 191 | + background-color: var(--vscode-sideBar-background); |
| 192 | + position: sticky; |
| 193 | + bottom: -1px; |
| 194 | +} |
| 195 | + |
| 196 | +.sidebar__chat-assistant--textarea-container { |
| 197 | + position: relative; |
| 198 | +} |
| 199 | + |
| 200 | +.sidebar__chat-assistant--textarea { |
| 201 | + font-weight: var(--vscode-font-weight); |
| 202 | + font-size: var(--vscode-font-size); |
| 203 | + border-radius: var(--spacing-xxs); |
| 204 | + background-color: var(--vscode-sideBar-dropBackground); |
| 205 | + padding-right: 3rem; |
| 206 | + outline: 1px solid transparent; |
| 207 | + resize: none; |
| 208 | +} |
| 209 | + |
| 210 | +.sidebar__chat-assistant--textarea-send-button { |
| 211 | + position: absolute; |
| 212 | + right: 5px; |
| 213 | + bottom: 5px; |
| 214 | + outline: none; |
| 215 | + border-radius: var(--spacing-xxs); |
| 216 | + font-size: var(--vscode-sidebar-font-size); |
| 217 | + background-color: transparent; |
| 218 | + width: 2rem; |
| 219 | + height: 2rem; |
| 220 | + display: flex; |
| 221 | + align-items: center; |
| 222 | + justify-content: center; |
| 223 | + transition: background-color 0.3s ease-in-out; |
| 224 | +} |
| 225 | + |
| 226 | +.sidebar__chat-assistant--textarea-send-icon { |
| 227 | + fill: orange; |
| 228 | + width: var(--spacing-lg); |
| 229 | +} |
| 230 | + |
| 231 | +/* Disabled state for send button */ |
| 232 | +.sidebar__textarea-send-button--disabled { |
| 233 | + pointer-events: none; |
| 234 | + background-color: transparent; |
| 235 | +} |
| 236 | + |
| 237 | +.sidebar__textarea-send-button--disabled svg { |
| 238 | + opacity: 0.2; |
11 | 239 | }
|
0 commit comments