Skip to content

Commit

Permalink
refactor: focused highlight
Browse files Browse the repository at this point in the history
  • Loading branch information
shaokeyibb committed Oct 5, 2024
1 parent c71f2d8 commit 4664602
Showing 1 changed file with 19 additions and 4 deletions.
23 changes: 19 additions & 4 deletions frontend/lib/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -63,18 +63,33 @@

:--review {
&[data-review-has-comments] {
text-decoration: underline;
text-decoration-color: var(--review-secondary-color);
&::before {
content: "";
position: absolute;
top: 0;
left: -1em;
width: 3px;
height: 100%;
background-color: var(--review-primary-color);
}
}

&[data-review-focused] {
background-color: var(--review-variant-color);
}

&[data-review-selected] {
text-decoration: underline;
text-decoration-color: var(--review-secondary-color);
background-color: var(--review-variant-color);

&::before {
content: "";
position: absolute;
top: 0;
left: -1em;
width: 3px;
height: 100%;
background-color: var(--review-primary-color);
}
}
}

Expand Down

0 comments on commit 4664602

Please sign in to comment.