remove italics CSS skew
This commit is contained in:
parent
bc83a79ac6
commit
2fc6f89953
3 changed files with 11 additions and 1 deletions
|
@ -79,11 +79,15 @@
|
||||||
|
|
||||||
.mx_Markdown_ITALIC {
|
.mx_Markdown_ITALIC {
|
||||||
font-style: italic;
|
font-style: italic;
|
||||||
|
/*
|
||||||
|
// interestingly, *not* using the explicit italic font
|
||||||
|
// variant seems yield better results.
|
||||||
|
|
||||||
// compensate for Nunito italics being terrible
|
// compensate for Nunito italics being terrible
|
||||||
// https://github.com/google/fonts/issues/1726
|
// https://github.com/google/fonts/issues/1726
|
||||||
transform: skewX(-14deg);
|
transform: skewX(-14deg);
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
|
|
||||||
.mx_Markdown_CODE {
|
.mx_Markdown_CODE {
|
||||||
|
|
|
@ -453,12 +453,17 @@ limitations under the License.
|
||||||
display: inline ! important;
|
display: inline ! important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
// actually, removing the Italic TTF provides
|
||||||
|
// better results seemingly
|
||||||
|
|
||||||
// compensate for Nunito italics being terrible
|
// compensate for Nunito italics being terrible
|
||||||
// https://github.com/google/fonts/issues/1726
|
// https://github.com/google/fonts/issues/1726
|
||||||
.mx_EventTile_content .markdown-body em {
|
.mx_EventTile_content .markdown-body em {
|
||||||
transform: skewX(-14deg);
|
transform: skewX(-14deg);
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
/* end of overrides */
|
/* end of overrides */
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,8 @@
|
||||||
* Previously, they were
|
* Previously, they were
|
||||||
* https://fonts.googleapis.com/css?family=Nunito:400,400i,600,600i,700,700i&subset=latin-ext,vietnamese
|
* https://fonts.googleapis.com/css?family=Nunito:400,400i,600,600i,700,700i&subset=latin-ext,vietnamese
|
||||||
*
|
*
|
||||||
* Nunito's italic isn't very italic so we currently fudge italic by shearing in CSS.
|
* We explicitly do not include Nunito's italic variants, as they are not italic enough
|
||||||
|
* and it's better to rely on the browser's built-in obliquing behaviour.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* the 'src' links are relative to the bundle.css, which is in a subdirectory.
|
/* the 'src' links are relative to the bundle.css, which is in a subdirectory.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue