Skip to content

Commit

Permalink
Substitute Open Sans by Inter (as sans serif font)
Browse files Browse the repository at this point in the history
  • Loading branch information
gizmecano committed Jul 29, 2021
1 parent 1f24c94 commit e5e8250
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 2 deletions.
16 changes: 16 additions & 0 deletions assets/inter.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
@font-face {
font-family: 'Inter var';
font-weight: 100 900;
font-display: swap;
font-style: normal;
font-named-instance: 'Regular';
src: url("inter/Inter-roman.var.woff2?v=3.19") format("woff2");
}
@font-face {
font-family: 'Inter var';
font-weight: 100 900;
font-display: swap;
font-style: italic;
font-named-instance: 'Italic';
src: url("inter/Inter-italic.var.woff2?v=3.19") format("woff2");
}
2 changes: 1 addition & 1 deletion css/hereditor-outline.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
========================================================================== */

:root {
--font-sns: Open Sans, MundoSans, "Helvetica Neue", Arial, Helvetica, sans-serif; /* Sans-serif font family */
--font-sns: 'Inter var', sans-serif; /* Sans-serif font family */
--font-srf: Linux Libertine; /* Serif font family */
}

Expand Down
3 changes: 2 additions & 1 deletion templates/partials/base.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@
<link rel="stylesheet" href="{{ theme_url }}/css/main.css">

{% block stylesheets %}
{% do assets.addCss('http://brick.a.ssl.fastly.net/Linux+Libertine:400,400i,700,700i/Open+Sans:400,400i,700,700i') %}
{% do assets.addCss('http://brick.a.ssl.fastly.net/Linux+Libertine:400,400i,700,700i') %}
{% do assets.addCss('theme://assets/inter.css') %}
{# {% do assets.addCss('theme://css/print.css') %} #}
{% endblock %}

Expand Down

0 comments on commit e5e8250

Please sign in to comment.