summaryrefslogtreecommitdiff
path: root/source/features/hide-readme-header.css
blob: 45302368ba0fbb61434bfe2b0a1d0e7a6e3bb01e (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
/* Hide the header in README section */
.repository-content #readme:not(.blob) {
	position: relative;
}

.repository-content #readme:not(.blob) .Box-header {
	position: absolute;
	top: 0;
	right: 0;
	background-color: transparent !important;
	padding: 0 !important;
	border: none;
}

.repository-content #readme:not(.blob) .Box-header .Box-title {
	display: none;
}

.repository-content #readme:not(.blob) .Box-header .btn-octicon {
	margin: 0;
	padding: 12px;
	right: 0;
	top: 0;
	opacity: 20%;
	transition: opacity 0.25s;
}

.repository-content #readme:not(.blob) .Box-header .btn-octicon:hover,
.repository-content #readme:not(.blob) .Box-header .btn-octicon:focus {
	opacity: 100%;
}

/* Restore spacing #3495 */
.repository-content #readme:not(.blob) .Box-body {
	padding-top: 32px;
}