GitHub Red Issues

Turns the issue color of closed issues from purple back to red - back reddish color icon for closed github issues.

当前为 2025-05-06 提交的版本,查看 最新版本

  1. /* ==UserStyle==
  2. @name GitHub Red Issues
  3. @namespace github.com/openstyles/stylus
  4. @version 9.5.0
  5. @description Turns the issue color of closed issues from purple back to red - back reddish color icon for closed github issues.
  6. @author Katsute, kidonng, krystian3w, iam-py-test, obfuscatedgenerated
  7. // @compatible firefox Firefox 121+
  8. // @compatible chrome Chrome 105+
  9. // @compatible edge Edge 105+
  10. // @compatible opera Opera 91+
  11. // @compatible safari Safari 15.4+
  12. @license CC BY-NC-SA 4.0 https://creativecommons.org/licenses/by-nc-sa/4.0/
  13. ==/UserStyle== */
  14. @-moz-document domain("github.com"), domain("github-com.translate.goog"), regexp("^https?:\\/\\/translated\\.turbopages\\.org\\/proxy_u\\/.*/https\\/github\\.com\\/.*"), regexp("^https:\\/\\/web\\.archive\\.org\\/web\\/[0-9]+\\/https?\\:\\/\\/github.com\\/.*"), regexp("^https:\\/\\/archive\\.[\\w]{2,10}\\/[0-9.-]+\\\\/https?\\:\\/\\/github.com\\/.*") {
  15. /* powered on https://raw.githubusercontent.com/Katsute/GitHub-Red-Issues/main/src/style.css */
  16. /* Copyright (C) 2025 Katsute <https://github.com/Katsute> */
  17.  
  18. :root {
  19. --rissue-issue-closed : var(--bgColor-closed-emphasis, #da3633);
  20. --rissue-issue-closed-fg : var(--fgColor-closed, #f85149);
  21. --rissue-issue-closed-bg : var(--bgColor-closed-muted, #f8514926);
  22. }
  23.  
  24. :not(
  25. react-app[app-name="repo-deployments"] div,
  26. react-app[app-name="blackbird-search"] li,
  27. button[data-testid="mark-as-action-menu-button"] *,
  28. ul[data-testid="mark-as-action-menu-list"] *
  29. ) > :not(
  30. span.State--merged,
  31. span[class^="StateLabel__StateLabelBase"],
  32. projects-v2 span[class^="StateLabel__StateLabelBase"],
  33. .TimelineItem-Badge,
  34. .TimelineItem-badge,
  35. div:is([class^="prc-Timeline-TimelineBadge-"],[class*=" prc-Timeline-TimelineBadge-"]),
  36. a[href*="/discussions"],
  37. .hx_anim-fade-out,
  38. a[href$="state=closed"] > span,
  39. h2:has(> a[href$="/deployments"]) + ul > li
  40. ) > :is(
  41. /* issue icon */
  42. svg.octicon-issue-closed,
  43. /* project icon */
  44. svg: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"]),
  45. /* search issue icon */
  46. svg: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"]),
  47. /* discussion icon */
  48. svg.octicon-discussion-closed,
  49. /* tasklist icon */
  50. .octicon-checklist.color-fg-done
  51. ):not(.color-fg-muted){
  52. color: var(--rissue-issue-closed-fg) !important;
  53. }
  54.  
  55. /* closed projects */
  56. projects-v2 div:has(> span ~ h1) span[data-variant="done"] {
  57. border-color: var(--rissue-issue-closed) !important;
  58. background-color: var(--rissue-issue-closed-fg) !important;
  59. }
  60.  
  61. svg: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{
  62. fill: unset !important;
  63. }
  64.  
  65. :is(
  66. span.State--merged, /* issue badge (legacy) */
  67. .TimelineItem-badge, /* timeline icon (legacy) */
  68. ):has(svg.octicon-issue-closed, svg.octicon-discussion-closed),
  69. :is(
  70. span[class^="StateLabel__StateLabelBase"], /* new issue badge & projects v2 */
  71. ):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"]),
  72. /* timeline icon (legacy) */
  73. .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"]),
  74. /* timeline icon */
  75. 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"]){
  76. border-color: var(--rissue-issue-closed) !important;
  77. box-shadow: var(--boxShadow-thin, inset 0 0 0 max(1px, 0.0625rem)) var(--rissue-issue-closed) !important;
  78. background-color: var(--rissue-issue-closed) !important;
  79. }
  80.  
  81. /* tasklist icon */
  82. tasklist-block-title > div.color-bg-done{
  83. background-color: var(--rissue-issue-closed-bg) !important;
  84. }
  85.  
  86. :is(
  87. /* tasklist circle */
  88. tracked-issues-progress svg,
  89. ) > circle[stroke^="var(--fgColor-done"]:last-child,
  90. /* sub issue circle */
  91. svg[class^="ProgressCircle-module__completedIcon"] > circle{
  92. stroke: var(--rissue-issue-closed) !important;
  93. }
  94.  
  95. /* tasklist fill */
  96. span > svg[data-target="tracked-issues-progress.progress"] > path{
  97. fill: var(--rissue-issue-closed-bg) !important;
  98. }
  99.  
  100. /* progress circle */
  101. :is(
  102. #issue-viewer-side-panel,
  103. react-app[app-name="issues-react"]
  104. ) :is(
  105. circle[class^="ProgressCircle-module__circleProgressShade"],
  106. circle[class^="ProgressCircle-module__circleProgress"]
  107. ),
  108. projects-v2 svg[data-target="tracked-issues-progress.progress"] circle[stroke-dashoffset]{
  109. stroke: var(--rissue-issue-closed) !important;
  110. }
  111.  
  112. /* progress check */
  113. :is(
  114. projects-v2,
  115. #issue-viewer-side-panel,
  116. react-app[app-name="issues-react"]
  117. ) :is(
  118. svg[class^="ProgressCircle-module__completedIcon"]
  119. ) > path{
  120. fill: var(--rissue-issue-closed) !important;
  121. }
  122.  
  123. /* print */
  124. @media print {
  125. :is(
  126. /* issue badge */
  127. span.State--merged,
  128. /* timeline icon */
  129. .TimelineItem-badge
  130. ):has(svg.octicon-issue-closed, svg.octicon-discussion-closed),
  131. /* projects issue badge */
  132. projects-v2 span[class^="StateLabel__StateLabelBase"]: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"]){
  133. background: none !important;
  134. color: var(--rissue-issue-closed-fg) !important;
  135. border-color: var(--rissue-issue-closed) !important;
  136. }
  137. }
  138. /* powered on https://raw.githubusercontent.com/Katsute/GitHub-Red-Issues/main/src/style.css */
  139. /* Copyright (C) 2025 Katsute <https://github.com/Katsute> */
  140. }