|
27 | 27 | position: sticky; |
28 | 28 | top: 0; |
29 | 29 | background-color: var(--query-editor-bg); |
| 30 | + z-index: 1; |
30 | 31 |
|
31 | 32 | .settings-btn { |
32 | | - background-color: transparent; |
33 | 33 | min-width: 0; |
| 34 | + width: 1.8rem; |
| 35 | + height: 1.8rem; |
34 | 36 | border: none; |
35 | | - border-radius: 4px; |
| 37 | + border-radius: 9999px; |
36 | 38 | cursor: pointer; |
37 | | - color: var(--text-dark); |
38 | | - transition: all 0.2s ease; |
39 | 39 | margin-left: auto; |
40 | 40 | margin-right: 0.3rem; |
41 | 41 | opacity: 0.7; |
42 | 42 | box-shadow: none; |
43 | | - padding-inline: 0.35rem; |
| 43 | + padding: 0; |
44 | 44 |
|
45 | 45 | &:hover { |
46 | 46 | opacity: 1; |
|
83 | 83 | flex-grow: 1; |
84 | 84 | } |
85 | 85 | } |
| 86 | + |
| 87 | + .scroll-container>.header .btn, .code-block .actions .btn { |
| 88 | + --btn-hover-bg-color: color-mix(in srgb, var(--theme-base) 10%, var(--query-editor-bg)); |
| 89 | + color: var(--text-dark); |
| 90 | + background-color: var(--query-editor-bg); |
| 91 | + |
| 92 | + &:hover { |
| 93 | + background-color: var(--btn-hover-bg-color); |
| 94 | + } |
| 95 | + } |
| 96 | + |
| 97 | + .scroll-down-btn { |
| 98 | + position: absolute; |
| 99 | + bottom: 7rem; |
| 100 | + left: 50%; |
| 101 | + transform: translateX(-50%); |
| 102 | + min-width: 0; |
| 103 | + width: 2rem; |
| 104 | + height: 2rem; |
| 105 | + padding: 0; |
| 106 | + border: 1px solid var(--border-color); |
| 107 | + border-radius: 9999px; |
| 108 | + color: var(--text-dark); |
| 109 | + background-color: var(--query-editor-bg); |
| 110 | + display: flex; |
| 111 | + align-items: center; |
| 112 | + justify-content: center; |
| 113 | + |
| 114 | + &:hover { |
| 115 | + background-color: color-mix(in srgb, var(--theme-base) 10%, var(--query-editor-bg)); |
| 116 | + } |
| 117 | + |
| 118 | + .material-symbols-outlined { |
| 119 | + margin-top: 0.2rem; |
| 120 | + font-size: 1.6rem; |
| 121 | + } |
| 122 | + } |
86 | 123 | } |
87 | 124 |
|
88 | 125 | .chat-messages { |
|
128 | 165 | display: inline-block; |
129 | 166 | background-color: var(--bks-text-editor-bg-color); |
130 | 167 | color: var(--bks-text-editor-fg-color); |
131 | | - padding: 0.2rem 0.5rem 0.5rem 0.5rem; |
| 168 | + padding: 0.5rem; |
132 | 169 | width: 100%; |
133 | 170 | line-height: 1.07rem; |
134 | 171 | font-size: 0.765rem; |
|
164 | 201 | border: 1px solid var(--border-color); |
165 | 202 | border-radius: 8px; |
166 | 203 | white-space: normal; |
| 204 | + --header-text-color: var(--text-dark); |
| 205 | + --header-bg-color: color-mix(in srgb, var(--theme-base) 3%, var(--query-editor-bg)); |
167 | 206 |
|
168 | | - .header { |
169 | | - padding: 0.2rem 0.5rem 0; |
| 207 | + .lang { |
| 208 | + padding-inline: 0.5rem; |
| 209 | + height: 1.75rem; |
170 | 210 | display: flex; |
171 | 211 | justify-content: space-between; |
| 212 | + font-size: 0.75rem; |
| 213 | + line-height: 1.75rem; |
| 214 | + color: var(--header-text-color); |
| 215 | + background-color: var(--header-bg-color); |
| 216 | + border-top-left-radius: 8px; |
| 217 | + border-top-right-radius: 8px; |
| 218 | + } |
172 | 219 |
|
173 | | - .lang { |
174 | | - font-size: 0.7rem; |
175 | | - opacity: 0.5; |
176 | | - line-height: 1.25rem; |
| 220 | + .actions { |
| 221 | + position: sticky; |
| 222 | + top: 4.3rem; |
| 223 | + margin-right: 0.3rem; |
| 224 | + |
| 225 | + .group { |
| 226 | + position: absolute; |
| 227 | + bottom: 0.1rem; |
| 228 | + right: 0; |
| 229 | + display: flex; |
| 230 | + justify-content: flex-end; |
| 231 | + gap: 0.25rem; |
177 | 232 | } |
178 | 233 |
|
179 | 234 | .btn { |
| 235 | + min-width: 0px; |
| 236 | + padding: 0 0; |
| 237 | + width: 1.75rem; |
| 238 | + height: 1.5rem; |
180 | 239 | box-shadow: none; |
181 | | - } |
| 240 | + color: var(--header-text-color); |
| 241 | + background-color: var(--header-bg-color); |
182 | 242 |
|
183 | | - .copy-btn { |
184 | | - font-size: 0.7rem; |
185 | | - color: var(--text-dark); |
| 243 | + &:disabled { |
| 244 | + opacity: 1; |
| 245 | + color: color-mix(in srgb, var(--theme-base) 50%, var(--query-editor-bg)); |
| 246 | + } |
186 | 247 |
|
187 | 248 | .material-symbols-outlined { |
188 | | - font-size: 0.9rem; |
| 249 | + font-size: 1rem; |
189 | 250 | } |
190 | 251 |
|
191 | 252 | &.copied .copy-label, |
192 | | - &:not(.copied) .copied-label { |
| 253 | + &.copied .copy-icon, |
| 254 | + &:not(.copied) .copied-label, |
| 255 | + &:not(.copied) .copied-icon { |
193 | 256 | display: none; |
194 | 257 | } |
| 258 | + } |
195 | 259 |
|
196 | | - .label { |
197 | | - content: "Copy"; |
198 | | - } |
| 260 | + [data-action=open-in-query-editor] .title-popup { |
| 261 | + max-width: 10rem; |
199 | 262 |
|
200 | | - padding: 0.3rem; |
201 | | - background-color: transparent; |
202 | | - gap: 0.2rem; |
203 | | - line-height: 1; |
204 | | - height: auto; |
205 | | - min-width: 0px; |
| 263 | + @media (min-width: 840px) { |
| 264 | + max-width: unset; |
| 265 | + } |
206 | 266 | } |
207 | 267 | } |
208 | 268 | } |
|
527 | 587 | .chat-container .scroll-container>.header { |
528 | 588 | background-color: transparent; |
529 | 589 | } |
| 590 | + |
| 591 | + .chat-messages { |
| 592 | + z-index: 1; |
| 593 | + } |
| 594 | + |
| 595 | + .message-content .code-block .actions { |
| 596 | + top: 1.9rem; |
| 597 | + } |
530 | 598 | } |
0 commit comments