We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dac7ad2 commit 0a6b50bCopy full SHA for 0a6b50b
1 file changed
src/styles/components/Code/_base.scss
@@ -33,17 +33,19 @@
33
}
34
35
.line-number {
36
+ padding-left: 45px;
37
position: relative;
- width: 35px;
38
- display: inline-block;
39
- left: 5px;
40
- opacity: 0.4;
41
- user-select: none;
+ width: calc(100% - 45px);
+ display: block;
42
43
&::before {
44
- content: '';
45
counter-increment: line;
46
content: counter(line);
+ display: inline-block;
+ position: absolute;
+ left: 5px;
47
+ opacity: 0.4;
48
+ user-select: none;
49
50
51
0 commit comments