Merge pull request #4497 from tsiegleauq/motionslides-linenumber-height

Fix motion slide line number alignment
This commit is contained in:
Emanuel Schütze 2019-03-11 14:25:01 +01:00 committed by GitHub
commit b30340b72f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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;