Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

birger/self host fonts #871

Merged
merged 2 commits into from
Jun 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ terms of Creative Commons Attribution-ShareAlike 4.0 International License. To
view a copy of this license, visit
http://creativecommons.org/licenses/by-sa/4.0/

APIS contains the ["Material Symbols" font](https://fonts.google.com/icons)(commit ace1af0), which
is licenced under the [Apache Licence Version 2.0](https://www.apache.org/licenses/LICENSE-2.0.html).


Installation
------------
Expand Down
18 changes: 18 additions & 0 deletions apis_core/core/static/css/material-symbols.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
@font-face {
font-family: 'Material Symbols Outlined';
font-style: normal;
src: url(/static/fonts/material-symbols.woff) format('woff');
}
.material-symbols-outlined {
font-family: 'Material Symbols Outlined';
font-weight: normal;
font-style: normal;
font-size: 24px; /* Preferred icon size */
display: inline-block;
line-height: 1;
text-transform: none;
letter-spacing: normal;
word-wrap: normal;
white-space: nowrap;
direction: ltr;
}
Binary file added apis_core/core/static/fonts/material-symbols.woff
Binary file not shown.
5 changes: 1 addition & 4 deletions apis_core/core/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@
<link rel="mask-icon"
href="{% shared_url %}favicon/safari-pinned-tab.svg"
color="#00aba9" />
<link href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined"
rel="stylesheet" />
<link href="{% static 'css/material-symbols.css' %}" rel="stylesheet" />

{% block styles %}
{% include "partials/bootstrap4_css.html" %}
Expand All @@ -55,8 +54,6 @@
<!-- End favicons -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
{% include "apis_entities/apis_templatetag.html" %}
<link href="https://fonts.googleapis.com/css?family=Libre+Franklin:400,500"
rel="stylesheet" />

{% block scriptHeader %}{% endblock %}

Expand Down
Loading