Skip to content

Commit f8fc980

Browse files
beamcodeo-az
authored andcommitted
Improved sizing for line numbers and add 4 digit support (#237)
1 parent 4ed27d9 commit f8fc980

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

docs/src/content/docs/index.mdx

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -495,18 +495,22 @@ code > [data-line]::before {
495495

496496
/* Other styling */
497497
display: inline-block;
498-
width: 1rem;
498+
width: 0.75rem;
499499
margin-right: 2rem;
500500
text-align: right;
501501
color: gray;
502502
}
503503

504504
code[data-line-numbers-max-digits="2"] > [data-line]::before {
505-
width: 2rem;
505+
width: 1.25rem;
506506
}
507507

508508
code[data-line-numbers-max-digits="3"] > [data-line]::before {
509-
width: 3rem;
509+
width: 1.75rem;
510+
}
511+
512+
code[data-line-numbers-max-digits="4"] > [data-line]::before {
513+
width: 2.25rem;
510514
}
511515
```
512516

0 commit comments

Comments
 (0)