summaryrefslogtreecommitdiff
path: root/source/features/indented-code-wrapping.css
blob: 076731aaca83cdfc4763a36d2aec7c7d556ca4f2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* GitHub adds negative text indentation, reset it */
.rgh-code-wrapping-enabled .soft-wrap .blob-code {
	text-indent: 0;
	padding-left: 10px;
}

.rgh-code-wrapping-enabled .blob-code-inner {
	white-space: pre-wrap;
}

.rgh-code-wrapping-enabled span.blob-code-inner {
	display: block;
	line-height: 21px; /* `display: block` reduces the line height; this undoes the change */
}

.rgh-code-wrapping-enabled .tooltipped::after {
	text-indent: initial;
}