Skip to content

Commit 2ef1a87

Browse files
authored
Remove box-shadow override on timeline icons (#194)
1 parent 28c7778 commit 2ef1a87

File tree

2 files changed

+8
-10
lines changed

2 files changed

+8
-10
lines changed

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": "10.3",
7+
"version": "10.4",
88
"homepage_url": "https://github.com/KatsuteDev/GitHub-Red-Issues",
99
"icons": {
1010
"16": "icon16.png",

src/style.css

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@
1515
span.State--merged,
1616
span[class^="StateLabel__StateLabelBase"],
1717
span[class^="prc-StateLabel-StateLabel"],
18-
.TimelineItem-Badge,
19-
.TimelineItem-badge,
2018
div:is([class^="prc-Timeline-TimelineBadge-"],[class*=" prc-Timeline-TimelineBadge-"]),
2119
a[href*="/discussions"],
2220
.hx_anim-fade-out,
@@ -43,19 +41,19 @@ projects-v2 div:has(> span ~ h1) span[data-variant="done"] {
4341
}
4442

4543
:is(
46-
span.State--merged, /* issue badge (legacy) */
47-
.TimelineItem-badge, /* timeline icon (legacy) */
48-
):has(svg.octicon-issue-closed, svg.octicon-discussion-closed),
44+
span[class^="StateLabel__StateLabelBase"],
45+
span[class^="prc-StateLabel-StateLabel"],
46+
):has(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"] + 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"]){
47+
box-shadow: var(--boxShadow-thin, inset 0 0 0 max(1px, 0.0625rem)) var(--rissue-issue-closed) !important;
48+
}
49+
4950
:is(
50-
span[class^="StateLabel__StateLabelBase"], /* new issue badge & projects v2 */
51+
span[class^="StateLabel__StateLabelBase"],
5152
span[class^="prc-StateLabel-StateLabel"],
5253
):has(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"] + 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"]),
53-
/* timeline icon (legacy) */
54-
.TimelineItem-Badge:has(path[d="M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm1.5 0a6.5 6.5 0 1 0 13 0 6.5 6.5 0 0 0-13 0Zm10.28-1.72-4.5 4.5a.75.75 0 0 1-1.06 0l-2-2a.751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018l1.47 1.47 3.97-3.97a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042Z"]),
5554
/* timeline icon */
5655
div:is([class^="prc-Timeline-TimelineBadge-"],[class*=" prc-Timeline-TimelineBadge-"]):has(path[d="M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm1.5 0a6.5 6.5 0 1 0 13 0 6.5 6.5 0 0 0-13 0Zm10.28-1.72-4.5 4.5a.75.75 0 0 1-1.06 0l-2-2a.751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018l1.47 1.47 3.97-3.97a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042Z"]){
5756
border-color: var(--rissue-issue-closed) !important;
58-
box-shadow: var(--boxShadow-thin, inset 0 0 0 max(1px, 0.0625rem)) var(--rissue-issue-closed) !important;
5957
background-color: var(--rissue-issue-closed) !important;
6058
}
6159

0 commit comments

Comments
 (0)