hack nunito italics for now with CSS skew

fixes https://github.com/google/fonts/issues/1726
pull/21833/head
Matthew Hodgson 2019-01-16 12:53:46 +00:00
parent 0229453482
commit 1082f548d3
2 changed files with 12 additions and 0 deletions

View File

@ -79,6 +79,11 @@
.mx_Markdown_ITALIC {
font-style: italic;
// compensate for Nunito italics being terrible
// https://github.com/google/fonts/issues/1726
transform: skewX(-14deg);
display: inline-block;
}
.mx_Markdown_CODE {

View File

@ -453,6 +453,13 @@ limitations under the License.
display: inline ! important;
}
// compensate for Nunito italics being terrible
// https://github.com/google/fonts/issues/1726
.mx_EventTile_content .markdown-body em {
transform: skewX(-14deg);
display: inline-block;
}
/* end of overrides */
.mx_MatrixChat_useCompactLayout {