aboutsummaryrefslogtreecommitdiffhomepage
path: root/frontend/app/shiki.css
blob: 9e456fe713f10e61e7e81593880e818d557b0d6e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
.shiki {
	white-space: pre-wrap;
}

/* https://github.com/shikijs/shiki/issues/3 */
.shiki code {
	counter-reset: line-number;
	counter-increment: line-number 0;
}

.shiki code .line::before {
	content: counter(line-number);
	counter-increment: line-number;
	width: 2rem;
	margin-right: 1.5rem;
	display: inline-block;
	text-align: right;
	color: #aaa;
}