Load Inter CSS directly (#1444)
Move the load of the Inter font CSS from _variables_project.scss to head-end.html. Empirically, this seems to fix #965
This commit is contained in:
parent
427f472331
commit
a9e9202e89
3 changed files with 17 additions and 6 deletions
|
@ -41,12 +41,12 @@ $table-row-default: $secondary-lighter-background;
|
|||
$td-enable-google-fonts: false;
|
||||
|
||||
/*
|
||||
* Replace the default font with Inter - we load it from a local copy, which is downloaded from
|
||||
* Google Fonts manually via a script:
|
||||
* https://github.com/matrix-org/matrix-spec/tree/main/static/css/fonts
|
||||
* Replace the default font with Inter.
|
||||
*
|
||||
* The $font-family-sans-serif definition here overrides the default value set by docsy:
|
||||
* https://github.com/matrix-org/docsy/blob/66a4e61d2d34edc7196b9df83a7d09cd4af14b47/assets/scss/_variables.scss#L68
|
||||
* and adds "Inter" to the front. */
|
||||
@import url("../css/fonts/Inter.css");
|
||||
$font-family-sans-serif: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
|
||||
* and adds "Inter" to the front.
|
||||
*
|
||||
* The font itself is loaded via stylesheet link layouts/partials/hooks/head-end.html.
|
||||
*/
|
||||
$font-family-sans-serif: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue