Skip to content

Commit

Permalink
Fix hide-low-quality-comments style (#4850)
Browse files Browse the repository at this point in the history
  • Loading branch information
kidonng committed Oct 4, 2021
1 parent 1d85867 commit 72b7e5e
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 5 deletions.
8 changes: 8 additions & 0 deletions source/features/hide-low-quality-comments.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,11 @@
.rgh-hidden-comment .timeline-comment {
border-color: var(--github-red);
}

.rgh-hidden-comment .timeline-comment--caret::before {
background-color: var(--github-red);
}

.rgh-hidden-comment .timeline-comment--caret::after {
left: -7px; /* make caret border 1px */
}
8 changes: 7 additions & 1 deletion source/options.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,13 @@
}

:root {
--github-red: #cb2431;
--github-red: #cf222e;
}

@media (prefers-color-scheme: dark) {
:root {
--github-red: #f85149;
}
}

p {
Expand Down
7 changes: 3 additions & 4 deletions source/refined-github.css
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
:root {
/* 2020-12-15: these variables only exist for GHE #3798 */
--github-green: var(--color-text-success, #28a745);
--github-red: var(--color-text-danger, #cb2431);
--github-border-color: var(--color-border-muted, #e1e4e8);
--github-green: var(--color-success-fg, #1a7f37);
--github-red: var(--color-danger-fg, #cf222e);
--github-border-color: var(--color-border-muted, #d8dee4);
}

/* Make tab indented code more readable on GitHub and Gist */
Expand Down

0 comments on commit 72b7e5e

Please sign in to comment.