summaryrefslogtreecommitdiff
path: root/source/features/clean-repo-sidebar.css
blob: 707ecefe2813c9064e920776bbac79e9ba3758e6 (plain) (blame)
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
/* Hide "About" header */
[rgh-clean-repo-sidebar] .Layout-sidebar .BorderGrid-row:first-child h2 {
	display: none;
}

/* Align the top of the repo root sidebar with the main page content */
[rgh-clean-repo-sidebar] .Layout-sidebar .BorderGrid-row:first-child h2 + p.f4 {
	margin-top: 0 !important;
}

/* Hide "Readme" link made unnecessary by `toggle-files-button` #3580 */
[rgh-clean-repo-sidebar] .Layout-sidebar [href$='#readme'] {
	display: none;
}

@media (min-width: 768px) {
	/* Hide "Releases" header */
	[rgh-clean-repo-sidebar] .Layout-sidebar h2 [href$='/releases'] {
		display: none;
	}

	/* Align data section with latest tag/release link #5428 */
	[rgh-clean-repo-sidebar] .Layout-sidebar .Link--muted .octicon {
		margin-right: 4px !important;
	}
}

/*
 * Hide "+ 65 releases" link
 * Hide "Learn more about GitHub Sponsors" link
 * Hide "+ 123 contributors" link
 */
[rgh-clean-repo-sidebar] .Layout-sidebar .BorderGrid-cell > .mt-3 {
	display: none;
}

/* Hide Code of conduct links */
[rgh-clean-repo-sidebar]
	.Layout-sidebar
	.Link--muted:is(
		[href$='/code-of-conduct.md' i],
		[href$='/code_of_conduct.md' i]
	) {
	display: none;
}