Skip to content

Commit

Permalink
Merge pull request #75 from SignorMercurio/main
Browse files Browse the repository at this point in the history
Add line number in code blocks
  • Loading branch information
urfreespace authored May 13, 2022
2 parents c003075 + 056b05d commit 8e9830b
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions site2/website-next/src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -981,4 +981,20 @@ footer .row.footer__links {
}
.theme-doc-version-badge {
display: none;
}

.prism-code {
counter-reset: line-number;
}

.prism-code .token-line::marker {
color: var(--ifm-color-gray-700);
content: counter(line-number);
}

.prism-code .token-line {
counter-increment: line-number;
display: list-item;
padding-left: var(--ifm-pre-padding);
margin-left: var(--ifm-global-spacing);
}

0 comments on commit 8e9830b

Please sign in to comment.