Skip to content

Commit dfd82a2

Browse files
authored
Fix closed discussions (#94)
1 parent 15262c3 commit dfd82a2

File tree

3 files changed

+24
-18
lines changed

3 files changed

+24
-18
lines changed

package-lock.json

Lines changed: 12 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"name": "GitHub Red Issues",
55
"author": "Katsute",
66
"description": "Revert closed GitHub issues from purple back to red.",
7-
"version": "4.3",
7+
"version": "5.0",
88
"homepage_url": "https://github.com/KatsuteDev/GitHub-Red-Issues",
99
"icons": {
1010
"16": "icon16.png",

src/style.css

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@
1212
:not(.State.State--merged):not(.TimelineItem-badge) > svg.octicon-issue-closed,
1313
/* projects beta icon */
1414
div[data-hovercard-subject-tag^="issue:"] path[d="M11.28 6.78a.75.75 0 0 0-1.06-1.06L7.25 8.69 5.78 7.22a.75.75 0 0 0-1.06 1.06l2 2a.75.75 0 0 0 1.06 0l3.5-3.5Z"],
15-
div[data-hovercard-subject-tag^="issue:"] path[d="M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0Zm-1.5 0a6.5 6.5 0 1 0-13 0 6.5 6.5 0 0 0 13 0Z"]
15+
div[data-hovercard-subject-tag^="issue:"] path[d="M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0Zm-1.5 0a6.5 6.5 0 1 0-13 0 6.5 6.5 0 0 0 13 0Z"],
16+
/* discussion icon */
17+
:not(.State.State--merged) > svg.octicon-discussion-closed
1618
{
1719
color: var(--rissue-issue-closed-fg) !important;
1820
}
@@ -23,9 +25,11 @@ div[data-hovercard-subject-tag^="issue:"] path[d="M16 8A8 8 0 1 1 0 8a8 8 0 0 1
2325
/* issue timeline icon */
2426
#show_issue .TimelineItem > .TimelineItem-badge.color-bg-done-emphasis,
2527
/* timeline mention closed issue label */
26-
.TimelineItem > .TimelineItem-body div[id^="ref-issue-"] ~ div > span.State.State--merged,
28+
.TimelineItem > .TimelineItem-body div[id^="ref-issue-"] ~ div > span.State--merged,
2729
/* pull timeline closed label */
28-
.pull-discussion-timeline .TimelineItem > .TimelineItem-body div span.State.State--merged
30+
.pull-discussion-timeline .TimelineItem > .TimelineItem-body div span.State--merged,
31+
/* discussion badge */
32+
#discussion_bucket span.State--merged
2933
{
3034
background-color: var(--rissue-issue-closed) !important;
3135
}
@@ -50,9 +54,11 @@ div[data-hovercard-subject-tag^="issue:"] path[d="M16 8A8 8 0 1 1 0 8a8 8 0 0 1
5054
#show_issue .gh-header-meta .State.State--merged,
5155
#show_issue .gh-header-sticky .State.State--merged,
5256
/* timeline mention closed issue label */
53-
.TimelineItem > .TimelineItem-body div[id^="ref-issue-"] ~ div > span.State.State--merged,
57+
.TimelineItem > .TimelineItem-body div[id^="ref-issue-"] ~ div > span.State--merged,
5458
/* pull timeline closed label */
55-
.pull-discussion-timeline .TimelineItem > .TimelineItem-body div span.State.State--merged {
59+
.pull-discussion-timeline .TimelineItem > .TimelineItem-body div span.State--merged,
60+
/* discussion badge */
61+
#discussion_bucket span.State.State--merged {
5662
background: none !important;
5763
color: var(--rissue-issue-closed-fg) !important;
5864
border-color: var(--rissue-issue-closed) !important;

0 commit comments

Comments
 (0)