Skip to content

Commit 48379f1

Browse files
committed
remove some outdated selectors, restore on label (still used)
1 parent ee2ab86 commit 48379f1

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

src/style.css

Lines changed: 7 additions & 8 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,15 +41,16 @@ 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;

0 commit comments

Comments
 (0)