Skip to content

Commit

Permalink
styling fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mscolnick committed Nov 6, 2024
1 parent 7521d95 commit ca49754
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 deletions frontend/src/core/codemirror/prompt/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,13 @@
color: var(--slate-11);
}

.cm-line.cm-ai-selection {
background-color: var(--slate-3);
.cm-line.cm-ai-selection,
.cm-line.cm-ai-selection.cm-active-line {
background-color: color-mix(in srgb, var(--slate-3) 50%, transparent) !important;
}

.cm-line:has(.cm-new-code-line) {
background-color: var(--grass-3);
background-color: color-mix(in srgb, var(--grass-3) 50%, transparent) !important;
}

.cm-old-code-container {
Expand All @@ -60,7 +61,7 @@
z-index: 1;

&::before {
content: '';
content: "";
position: absolute;
top: 0;
left: -8px;
Expand All @@ -70,7 +71,7 @@
}

&::after {
content: '';
content: "";
position: absolute;
bottom: 0;
right: -8px;
Expand All @@ -81,7 +82,9 @@
}

.cm-new-code-line {
background-color: #e8f5e9;
background-color: color-mix(in srgb, var(--grass-3) 50%, transparent) !important;
padding-top: 4px;
padding-bottom: 2px;
}

.cm-code-button {
Expand Down Expand Up @@ -153,23 +156,23 @@
}

.cm-ai-loading-indicator::after {
content: '';
content: "";
display: inline-block;
animation: ellipsis-pulse 1.5s steps(4, end) infinite;
}

@keyframes ellipsis-pulse {
0% {
content: '.';
content: ".";
}
25% {
content: '..';
content: "..";
}
50% {
content: '...';
content: "...";
}
75% {
content: '';
content: "";
}
}

Expand Down

0 comments on commit ca49754

Please sign in to comment.