Skip to content

Commit 0a6b50b

Browse files
authored
fix(code-viewer): restore previous css (#175)
1 parent dac7ad2 commit 0a6b50b

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

src/styles/components/Code/_base.scss

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,17 +33,19 @@
3333
}
3434

3535
.line-number {
36+
padding-left: 45px;
3637
position: relative;
37-
width: 35px;
38-
display: inline-block;
39-
left: 5px;
40-
opacity: 0.4;
41-
user-select: none;
38+
width: calc(100% - 45px);
39+
display: block;
4240

4341
&::before {
44-
content: '';
4542
counter-increment: line;
4643
content: counter(line);
44+
display: inline-block;
45+
position: absolute;
46+
left: 5px;
47+
opacity: 0.4;
48+
user-select: none;
4749
}
4850
}
4951

0 commit comments

Comments
 (0)