GitHub Red Issues

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

当前为 2025-03-09 提交的版本,查看 最新版本

  1. /* ==UserStyle==
  2. @name GitHub Red Issues
  3. @namespace github.com/openstyles/stylus
  4. @version 9.1.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
  8. // @compatible chrome Chrome
  9. // @compatible edge Edge
  10. // @compatible opera Opera
  11. // @compatible safari Safari
  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) 2024 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. button[data-testid="mark-as-action-menu-button"] *,
  27. ul[data-testid="mark-as-action-menu-list"] *
  28. ) > :not(
  29. span.State--merged,
  30. span[class^="StateLabel__StateLabelBase"],
  31. projects-v2 span[class^="StateLabel__StateLabelBase"],
  32. .TimelineItem-Badge,
  33. .TimelineItem-badge,
  34. a[href*="/discussions"],
  35. .hx_anim-fade-out
  36. ) > :is(
  37. /* issue icon */
  38. svg.octicon-issue-closed,
  39. /* project icon */
  40. 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"]),
  41. /* search issue icon */
  42. 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"]),
  43. /* discussion icon */
  44. svg.octicon-discussion-closed,
  45. /* tasklist icon */
  46. .octicon-checklist.color-fg-done
  47. ):not(.color-fg-muted){
  48. color: var(--rissue-issue-closed-fg) !important;
  49. }
  50.  
  51. :is(
  52. span.State--merged, /* issue badge (legacy) */
  53. .TimelineItem-badge, /* timeline icon (legacy) */
  54. ):has(svg.octicon-issue-closed, svg.octicon-discussion-closed),
  55. :is(
  56. span[class^="StateLabel__StateLabelBase"], /* new issue badge & projects v2 */
  57. ):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"]),
  58. /* timeline icon */
  59. .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"]){
  60. border-color: var(--rissue-issue-closed) !important;
  61. box-shadow: var(--boxShadow-thin, inset 0 0 0 max(1px, 0.0625rem)) var(--rissue-issue-closed) !important;
  62. background-color: var(--rissue-issue-closed) !important;
  63. }
  64.  
  65. /* tasklist icon */
  66. tasklist-block-title > div.color-bg-done{
  67. background-color: var(--rissue-issue-closed-bg) !important;
  68. }
  69.  
  70. :is(
  71. /* tasklist circle */
  72. tracked-issues-progress svg,
  73. ) > circle[stroke^="var(--fgColor-done"]:last-child,
  74. /* sub issue circle */
  75. svg[class^="ProgressCircle-module__completedIcon"] > circle {
  76. stroke: var(--rissue-issue-closed) !important;
  77. }
  78.  
  79. /* tasklist fill */
  80. span > svg[data-target="tracked-issues-progress.progress"] > path{
  81. fill: var(--rissue-issue-closed-bg) !important;
  82. }
  83.  
  84. /* progress circle */
  85. :is(
  86. #issue-viewer-side-panel,
  87. react-app[app-name="issues-react"]
  88. ) :is(
  89. circle[class^="ProgressCircle-module__circleProgressShade"],
  90. circle[class^="ProgressCircle-module__circleProgress"]
  91. ),
  92. projects-v2 svg[data-target="tracked-issues-progress.progress"] circle[stroke-dashoffset]{
  93. stroke: var(--rissue-issue-closed) !important;
  94. }
  95.  
  96. /* progress check */
  97. :is(
  98. projects-v2,
  99. #issue-viewer-side-panel,
  100. react-app[app-name="issues-react"]
  101. ) :is(
  102. svg[class^="ProgressCircle-module__completedIcon"]
  103. ) > path {
  104. fill: var(--rissue-issue-closed) !important;
  105. }
  106.  
  107. /* print */
  108. @media print {
  109. :is(
  110. /* issue badge */
  111. span.State--merged,
  112. /* timeline icon */
  113. .TimelineItem-badge
  114. ):has(svg.octicon-issue-closed, svg.octicon-discussion-closed),
  115. /* projects issue badge */
  116. 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"]){
  117. background: none !important;
  118. color: var(--rissue-issue-closed-fg) !important;
  119. border-color: var(--rissue-issue-closed) !important;
  120. }
  121. }
  122. /* powered on https://raw.githubusercontent.com/Katsute/GitHub-Red-Issues/main/src/style.css */
  123. /* Copyright (C) 2024 Katsute <https://github.com/Katsute> */
  124. }