diff --git a/src/index.html b/src/index.html index 7d999c4..83246ed 100644 --- a/src/index.html +++ b/src/index.html @@ -32,25 +32,6 @@ /> - - - - - diff --git a/src/scss/_fonts.scss b/src/scss/_fonts.scss new file mode 100644 index 0000000..0cd4de1 --- /dev/null +++ b/src/scss/_fonts.scss @@ -0,0 +1,38 @@ +/* + * @source: https://codeberg.org/kytta/toot/src/branch/main/src/scss/_fonts.scss + * + * toot - Cross-instance share page for Mastodon + * Copyright (C) 2020-2022 Nikita Karamov + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published + * by the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * + * SPDX-License-Identifier: AGPL-3.0-or-later + */ + +@font-face { + font-family: "Roboto"; + font-style: normal; + font-weight: 400; + src: local("Roboto"), url("/fonts/Roboto-400.woff2?v=29") format("woff2"), + url("/fonts/Roboto-400.woff?v=29") format("woff"); +} + +@font-face { + font-family: "Roboto Medium"; + font-style: normal; + font-weight: 500; + src: local("Roboto Medium"), local("Roboto-Medium"), + url("/fonts/Roboto-500.woff2?v=29") format("woff2"), + url("/fonts/Roboto-500.woff?v=29") format("woff"); +} diff --git a/src/scss/style.scss b/src/scss/style.scss index a0f1de4..efa2aa3 100644 --- a/src/scss/style.scss +++ b/src/scss/style.scss @@ -21,6 +21,7 @@ */ @use "sass:color"; +@import "fonts"; @import "variables"; * { diff --git a/src/static/fonts/Roboto-400.woff b/src/static/fonts/Roboto-400.woff new file mode 100644 index 0000000..86b3863 Binary files /dev/null and b/src/static/fonts/Roboto-400.woff differ diff --git a/src/static/fonts/Roboto-400.woff2 b/src/static/fonts/Roboto-400.woff2 new file mode 100644 index 0000000..ebe1795 Binary files /dev/null and b/src/static/fonts/Roboto-400.woff2 differ diff --git a/src/static/fonts/Roboto-500.woff b/src/static/fonts/Roboto-500.woff new file mode 100644 index 0000000..c9eb5ca Binary files /dev/null and b/src/static/fonts/Roboto-500.woff differ diff --git a/src/static/fonts/Roboto-500.woff2 b/src/static/fonts/Roboto-500.woff2 new file mode 100644 index 0000000..ce795fa Binary files /dev/null and b/src/static/fonts/Roboto-500.woff2 differ