Fix motion line number alignment

This commit is contained in:
Sean 2019-03-11 12:22:54 +01:00 committed by Emanuel Schütze
parent d10dfb0915
commit 35b27b967f
3 changed files with 14 additions and 2 deletions

View File

@ -65,7 +65,7 @@
&:after { &:after {
content: attr(data-line-number); content: attr(data-line-number);
position: absolute; position: absolute;
top: 10px; top: 13px;
vertical-align: top; vertical-align: top;
color: gray; color: gray;
font-size: 12px; font-size: 12px;

View File

@ -19,3 +19,15 @@
margin-bottom: 0px; margin-bottom: 0px;
} }
} }
/* override the absolute position of outside linenumbers on motion slide */
:host ::ng-deep .motion-text {
&.line-numbers-outside {
.os-line-number {
&:after {
top: 19px;
font-size: 13px;
}
}
}
}

View File

@ -45,7 +45,7 @@
&:after { &:after {
content: attr(data-line-number); content: attr(data-line-number);
position: absolute; position: absolute;
top: 10px; top: 13px;
vertical-align: top; vertical-align: top;
color: gray; color: gray;
font-size: 12px; font-size: 12px;