Repository navigation
Expand file tree
/
Copy pathclean-conversation-headers.css
More file actions
80 lines (71 loc) · 1.74 KB
/
Copy pathclean-conversation-headers.css
File metadata and controls
80 lines (71 loc) · 1.74 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
/* TODO [2025-04-01]: Revert https://github.com/refined-github/refined-github/pull/8111 */
:root .rgh-non-default-branch {
background-color: var(
--control-checked-bgColor-hover,
var(--color-state-hover-primary-bg, var(--color-accent-emphasis, fuchsia))
);
&,
a {
color: var(
--control-checked-fgColor-rest,
var(
--color-state-hover-primary-text,
var(--color-fg-on-emphasis, fuchsia)
)
);
}
}
.rgh-clean-conversation-headers {
/* On merged PRs: merged [by ]user */
&:not(.rgh-hide-author)::before {
content: 'by ';
order: -3;
}
/* On merged PRs: merged [by user] */
a[data-hovercard-type='user'] {
order: -2;
}
/* On merged PRs: merged by user [on date] */
relative-time {
order: -1;
}
/* Removes on PRs: [octocat] merged 1 commit into master from feature */
&.rgh-hide-author {
.author,
a[data-hovercard-type='user'] {
display: none;
}
}
/* Hide the default base branch in sticky headers */
&.rgh-sticky-pr-header .rgh-base-branch:not(.rgh-non-default-branch) {
&,
& ~ .rgh-arrow {
display: none;
}
}
/* TODO [2027-01-01]: Drop after legacy PR files view is removed */
/* Fixes vertical alignment of base branch dropdown #5598 */
.commit-ref-dropdown {
margin-top: -2px !important;
}
}
/* Hide the state labels on small screens */
@media (max-width: 500px) {
[data-testid='issue-metadata-sticky'],
[class*='StickyPullRequestHeader'] {
/* Open/Closed/Merged */
span[class^='prc-StateLabel'],
/* `locked-issue` */
.State {
/* Enforce border-radius on .State since it's set in em */
/* Value copied from StateLabel */
border-radius: var(--borderRadius-full, 0);
/* Turn them into circles */
font-size: 0;
height: 40px;
svg {
margin: 0 !important;
}
}
}
}