aboutsummaryrefslogtreecommitdiffhomepage
path: root/frontend/app/shiki.css
blob: 746d63a17eaf3e598b9bc0b372578887321b1f9e (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;
}