diff --git a/REUSE.toml b/REUSE.toml index 0e9662a24f74..da09260de856 100644 --- a/REUSE.toml +++ b/REUSE.toml @@ -64,7 +64,7 @@ precedence = "aggregate" [[annotations]] SPDX-FileCopyrightText = "Paul D. Hunt" SPDX-License-Identifier = "OFL-1.1" -path = "weblate/static/vendor/font-source/**" +path = "weblate/static/js/vendor/fonts/**" precedence = "aggregate" [[annotations]] diff --git a/client/package.json b/client/package.json index 5415a672c65b..509c86247a6b 100644 --- a/client/package.json +++ b/client/package.json @@ -19,6 +19,8 @@ "multi.js": "0.5.3", "prismjs": "1.29.0", "slugify": "1.6.6", + "source-code-pro": "2.38.0", + "source-sans": "3.46.0", "tributejs": "5.1.3" }, "devDependencies": { diff --git a/client/src/fonts.js b/client/src/fonts.js new file mode 100644 index 000000000000..5001b6cbd8e8 --- /dev/null +++ b/client/src/fonts.js @@ -0,0 +1,23 @@ +// Copyright © Michal Čihař +// +// SPDX-License-Identifier: GPL-3.0-or-later + +// Importing font styles, when built will include also +// the font assets they depend on, automatically +import "source-code-pro/source-code-pro.css"; +import "source-sans/source-sans-3.css"; + +// Importing .ttf font assets manually +import "source-code-pro/TTF/SourceCodePro-Bold.ttf"; +import "source-code-pro/TTF/SourceCodePro-Medium.ttf"; +import "source-code-pro/TTF/SourceCodePro-Regular.ttf"; +import "source-code-pro/TTF/SourceCodePro-Semibold.ttf"; + +import "source-sans/TTF/SourceSans3-Black.ttf"; +import "source-sans/TTF/SourceSans3-Bold.ttf"; +import "source-sans/TTF/SourceSans3-BoldIt.ttf"; +import "source-sans/TTF/SourceSans3-ExtraLight.ttf"; +import "source-sans/TTF/SourceSans3-It.ttf"; +import "source-sans/TTF/SourceSans3-Light.ttf"; +import "source-sans/TTF/SourceSans3-Regular.ttf"; +import "source-sans/TTF/SourceSans3-Semibold.ttf"; diff --git a/client/webpack.config.js b/client/webpack.config.js index defc0dc1e96e..3ac25ce28f33 100644 --- a/client/webpack.config.js +++ b/client/webpack.config.js @@ -131,6 +131,7 @@ module.exports = { mousetrap: "./src/mousetrap.js", prismjs: "./src/prismjs.js", altcha: "./src/altcha.js", + "fonts/fonts": "./src/fonts.js", }, mode: "production", optimization: { @@ -152,6 +153,20 @@ module.exports = { test: /\.css$/, use: [MiniCssExtractPlugin.loader, "css-loader"], }, + { + test: /\.(woff|woff2|eot|otf)$/i, + type: "asset/resource", + generator: { + filename: "fonts/font-source/[name][ext]", + }, + }, + { + test: /\.(ttf)$/i, + type: "asset/resource", + generator: { + filename: "fonts/font-source/TTF/[name][ext]", + }, + }, ], }, plugins: [ diff --git a/client/yarn.lock b/client/yarn.lock index f0f63916b46f..e3b47c75778e 100644 --- a/client/yarn.lock +++ b/client/yarn.lock @@ -949,6 +949,11 @@ slugify@1.6.6: resolved "https://registry.yarnpkg.com/slugify/-/slugify-1.6.6.tgz#2d4ac0eacb47add6af9e04d3be79319cbcc7924b" integrity sha512-h+z7HKHYXj6wJU+AnS/+IH8Uh9fdcX1Lrhg1/VMdf9PwoBQXFcXiAdsy2tSK0P6gKwJLXp02r90ahUCqHk9rrw== +source-code-pro@2.38.0: + version "2.38.0" + resolved "https://registry.yarnpkg.com/source-code-pro/-/source-code-pro-2.38.0.tgz#85c57689f7386bb9d0515fb00ba4845bfb7b485b" + integrity sha512-JMXu7l3XrLREG17eEwY66ANG9716WTu6OeNvZfRKQKANEvbSERDZjk5AYTHeV6owQNPQTeiiW3ri2Ou93XFGvg== + source-map-js@^1.2.1: version "1.2.1" resolved "https://registry.yarnpkg.com/source-map-js/-/source-map-js-1.2.1.tgz#1ce5650fddd87abc099eda37dcff024c2667ae46" @@ -967,6 +972,11 @@ source-map@^0.6.0: resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.6.1.tgz#74722af32e9614e9c287a8d0bbde48b5e2f1a263" integrity sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g== +source-sans@3.46.0: + version "3.46.0" + resolved "https://registry.yarnpkg.com/source-sans/-/source-sans-3.46.0.tgz#6af0a47ead682fa8971f0c83e9692e75ef3cbb86" + integrity sha512-bVC2YX4VNiv5vMcy77dL0XKsNp794ThfynNsr+FqSAwk8TGG0pZsg7eUQi6yHwaRBMVmZ3Aaf4FY46dxIIGgsg== + spdx-exceptions@^2.1.0: version "2.5.0" resolved "https://registry.yarnpkg.com/spdx-exceptions/-/spdx-exceptions-2.5.0.tgz#5d607d27fc806f66d7b64a766650fa890f04ed66" diff --git a/docs/conf.py b/docs/conf.py index 48ef02c4582e..22adc95d617a 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -24,7 +24,7 @@ file_dir = Path(__file__).parent.resolve() font_locations = ( - "weblate/static/vendor/font-source/TTF/", + "weblate/static/js/vendor/fonts/font-source/", "weblate/static/vendor/font-kurinto/", ) @@ -152,10 +152,7 @@ def setup(app) -> None: }, } -html_css_files = [ - "https://weblate.org/static/vendor/font-source/source-sans-3.css", - "https://weblate.org/static/vendor/font-source/source-code-pro.css", -] +html_css_files = ["https://s.weblate.org/cdn/js/vendor/fonts/fonts.css"] # -- Options for HTMLHelp output --------------------------------------------- diff --git a/scripts/yarn-update b/scripts/yarn-update deleted file mode 100755 index ace10997f6e2..000000000000 --- a/scripts/yarn-update +++ /dev/null @@ -1,40 +0,0 @@ -#!/bin/sh - -# Copyright © Michal Čihař -# -# SPDX-License-Identifier: GPL-3.0-or-later - -# Wrapper around yarn to update our javascript dependencies -set -e - -cd scripts/yarn/ - -yarn install --check-files - -# Source Sans/Code Pro fonts -sed '/font-family/ a font-display: swap;' < node_modules/source-sans/source-sans-3.css > ../../weblate/static/vendor/font-source/source-sans-3.css -sed '/font-family/ a font-display: swap;' < node_modules/source-code-pro/source-code-pro.css > ../../weblate/static/vendor/font-source/source-code-pro.css -find node_modules/source-sans/WOFF node_modules/source-sans/WOFF2 node_modules/source-sans/TTF node_modules/source-code-pro/ \ - -name 'SourceSans3-ExtraLight.*' \ - -o -name 'SourceSans3-Light.*' \ - -o -name 'SourceSans3-Semibold.*' \ - -o -name 'SourceSans3-Black.*' \ - -o -name 'SourceSans3-Bold.*' \ - -o -name 'SourceSans3-Regular.*' \ - -o -name 'SourceSans3-It.*' \ - -o -name 'SourceSans3-BoldIt.*' \ - -o -name 'SourceCodePro-Medium.*' \ - -o -name 'SourceCodePro-Regular.*' \ - -o -name 'SourceCodePro-Bold.*' \ - -o -name 'SourceCodePro-Semibold.*' | while read -r name; do - target=$(echo "$name" | sed 's@node_modules/source-\(sans\|code-pro\)/@../../weblate/static/vendor/font-source/@') - dir=$(dirname "$target") - if [ ! -d "$dir" ]; then - mkdir -p "$dir" - fi - cp "$name" "$target" -done - -# Not updated: -# Bootstrap, use online customizer -# bootstrap-rtl as the version in yarn is outdated diff --git a/scripts/yarn/.gitignore b/scripts/yarn/.gitignore deleted file mode 100644 index 2ccbe4656c60..000000000000 --- a/scripts/yarn/.gitignore +++ /dev/null @@ -1 +0,0 @@ -/node_modules/ diff --git a/scripts/yarn/package.json b/scripts/yarn/package.json deleted file mode 100644 index ea4ccacb683b..000000000000 --- a/scripts/yarn/package.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "name": "Weblate", - "description": "Mock to install javascript deps", - "main": "index.js", - "license": "GPL-3.0+", - "dependencies": { - "source-code-pro": "2.38.0", - "source-sans": "3.46.0" - } -} diff --git a/scripts/yarn/yarn.lock b/scripts/yarn/yarn.lock deleted file mode 100644 index 2a21a0812388..000000000000 --- a/scripts/yarn/yarn.lock +++ /dev/null @@ -1,13 +0,0 @@ -# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. -# yarn lockfile v1 - - -source-code-pro@2.38.0: - version "2.38.0" - resolved "https://registry.yarnpkg.com/source-code-pro/-/source-code-pro-2.38.0.tgz#85c57689f7386bb9d0515fb00ba4845bfb7b485b" - integrity sha512-JMXu7l3XrLREG17eEwY66ANG9716WTu6OeNvZfRKQKANEvbSERDZjk5AYTHeV6owQNPQTeiiW3ri2Ou93XFGvg== - -source-sans@3.46.0: - version "3.46.0" - resolved "https://registry.yarnpkg.com/source-sans/-/source-sans-3.46.0.tgz#6af0a47ead682fa8971f0c83e9692e75ef3cbb86" - integrity sha512-bVC2YX4VNiv5vMcy77dL0XKsNp794ThfynNsr+FqSAwk8TGG0pZsg7eUQi6yHwaRBMVmZ3Aaf4FY46dxIIGgsg== diff --git a/weblate/fonts/utils.py b/weblate/fonts/utils.py index 6dc425dfe99f..5f899548b1d9 100644 --- a/weblate/fonts/utils.py +++ b/weblate/fonts/utils.py @@ -108,7 +108,9 @@ def configure_fontconfig() -> None: FONTCONFIG_CONFIG.format( data_dir("cache", "fonts"), fonts_dir, - os.path.join(settings.STATIC_ROOT, "vendor", "font-source", "TTF"), + os.path.join( + settings.STATIC_ROOT, "js", "vendor", "fonts", "font-source", "TTF" + ), os.path.join(settings.STATIC_ROOT, "vendor", "font-kurinto"), ) ) diff --git a/weblate/static/js/vendor/fonts/font-source/SourceCodePro-Black.otf b/weblate/static/js/vendor/fonts/font-source/SourceCodePro-Black.otf new file mode 100644 index 000000000000..97f047b49d21 Binary files /dev/null and b/weblate/static/js/vendor/fonts/font-source/SourceCodePro-Black.otf differ diff --git a/weblate/static/js/vendor/fonts/font-source/SourceCodePro-Black.otf.woff b/weblate/static/js/vendor/fonts/font-source/SourceCodePro-Black.otf.woff new file mode 100644 index 000000000000..aef6c22f961c Binary files /dev/null and b/weblate/static/js/vendor/fonts/font-source/SourceCodePro-Black.otf.woff differ diff --git a/weblate/static/js/vendor/fonts/font-source/SourceCodePro-Black.ttf.woff2 b/weblate/static/js/vendor/fonts/font-source/SourceCodePro-Black.ttf.woff2 new file mode 100644 index 000000000000..a0f08daf0f67 Binary files /dev/null and b/weblate/static/js/vendor/fonts/font-source/SourceCodePro-Black.ttf.woff2 differ diff --git a/weblate/static/js/vendor/fonts/font-source/SourceCodePro-BlackIt.otf b/weblate/static/js/vendor/fonts/font-source/SourceCodePro-BlackIt.otf new file mode 100644 index 000000000000..cbdc51b21d2d Binary files /dev/null and b/weblate/static/js/vendor/fonts/font-source/SourceCodePro-BlackIt.otf differ diff --git a/weblate/static/js/vendor/fonts/font-source/SourceCodePro-BlackIt.otf.woff b/weblate/static/js/vendor/fonts/font-source/SourceCodePro-BlackIt.otf.woff new file mode 100644 index 000000000000..19ea5faeddf9 Binary files /dev/null and b/weblate/static/js/vendor/fonts/font-source/SourceCodePro-BlackIt.otf.woff differ diff --git a/weblate/static/js/vendor/fonts/font-source/SourceCodePro-BlackIt.ttf.woff2 b/weblate/static/js/vendor/fonts/font-source/SourceCodePro-BlackIt.ttf.woff2 new file mode 100644 index 000000000000..2e5300d7866c Binary files /dev/null and b/weblate/static/js/vendor/fonts/font-source/SourceCodePro-BlackIt.ttf.woff2 differ diff --git a/weblate/static/vendor/font-source/OTF/SourceCodePro-Bold.otf b/weblate/static/js/vendor/fonts/font-source/SourceCodePro-Bold.otf similarity index 100% rename from weblate/static/vendor/font-source/OTF/SourceCodePro-Bold.otf rename to weblate/static/js/vendor/fonts/font-source/SourceCodePro-Bold.otf diff --git a/weblate/static/vendor/font-source/WOFF/OTF/SourceCodePro-Bold.otf.woff b/weblate/static/js/vendor/fonts/font-source/SourceCodePro-Bold.otf.woff similarity index 100% rename from weblate/static/vendor/font-source/WOFF/OTF/SourceCodePro-Bold.otf.woff rename to weblate/static/js/vendor/fonts/font-source/SourceCodePro-Bold.otf.woff diff --git a/weblate/static/vendor/font-source/WOFF2/TTF/SourceCodePro-Bold.ttf.woff2 b/weblate/static/js/vendor/fonts/font-source/SourceCodePro-Bold.ttf.woff2 similarity index 100% rename from weblate/static/vendor/font-source/WOFF2/TTF/SourceCodePro-Bold.ttf.woff2 rename to weblate/static/js/vendor/fonts/font-source/SourceCodePro-Bold.ttf.woff2 diff --git a/weblate/static/js/vendor/fonts/font-source/SourceCodePro-BoldIt.otf b/weblate/static/js/vendor/fonts/font-source/SourceCodePro-BoldIt.otf new file mode 100644 index 000000000000..5d2187258d8d Binary files /dev/null and b/weblate/static/js/vendor/fonts/font-source/SourceCodePro-BoldIt.otf differ diff --git a/weblate/static/js/vendor/fonts/font-source/SourceCodePro-BoldIt.otf.woff b/weblate/static/js/vendor/fonts/font-source/SourceCodePro-BoldIt.otf.woff new file mode 100644 index 000000000000..9a93e24b13c9 Binary files /dev/null and b/weblate/static/js/vendor/fonts/font-source/SourceCodePro-BoldIt.otf.woff differ diff --git a/weblate/static/js/vendor/fonts/font-source/SourceCodePro-BoldIt.ttf.woff2 b/weblate/static/js/vendor/fonts/font-source/SourceCodePro-BoldIt.ttf.woff2 new file mode 100644 index 000000000000..87de5df93965 Binary files /dev/null and b/weblate/static/js/vendor/fonts/font-source/SourceCodePro-BoldIt.ttf.woff2 differ diff --git a/weblate/static/js/vendor/fonts/font-source/SourceCodePro-ExtraLight.otf b/weblate/static/js/vendor/fonts/font-source/SourceCodePro-ExtraLight.otf new file mode 100644 index 000000000000..d2c818d13436 Binary files /dev/null and b/weblate/static/js/vendor/fonts/font-source/SourceCodePro-ExtraLight.otf differ diff --git a/weblate/static/js/vendor/fonts/font-source/SourceCodePro-ExtraLight.otf.woff b/weblate/static/js/vendor/fonts/font-source/SourceCodePro-ExtraLight.otf.woff new file mode 100644 index 000000000000..22ee4a1b1037 Binary files /dev/null and b/weblate/static/js/vendor/fonts/font-source/SourceCodePro-ExtraLight.otf.woff differ diff --git a/weblate/static/js/vendor/fonts/font-source/SourceCodePro-ExtraLight.ttf.woff2 b/weblate/static/js/vendor/fonts/font-source/SourceCodePro-ExtraLight.ttf.woff2 new file mode 100644 index 000000000000..667a5bf425a0 Binary files /dev/null and b/weblate/static/js/vendor/fonts/font-source/SourceCodePro-ExtraLight.ttf.woff2 differ diff --git a/weblate/static/js/vendor/fonts/font-source/SourceCodePro-ExtraLightIt.otf b/weblate/static/js/vendor/fonts/font-source/SourceCodePro-ExtraLightIt.otf new file mode 100644 index 000000000000..4d6387e9b8b2 Binary files /dev/null and b/weblate/static/js/vendor/fonts/font-source/SourceCodePro-ExtraLightIt.otf differ diff --git a/weblate/static/js/vendor/fonts/font-source/SourceCodePro-ExtraLightIt.otf.woff b/weblate/static/js/vendor/fonts/font-source/SourceCodePro-ExtraLightIt.otf.woff new file mode 100644 index 000000000000..37bb5e4e80e2 Binary files /dev/null and b/weblate/static/js/vendor/fonts/font-source/SourceCodePro-ExtraLightIt.otf.woff differ diff --git a/weblate/static/js/vendor/fonts/font-source/SourceCodePro-ExtraLightIt.ttf.woff2 b/weblate/static/js/vendor/fonts/font-source/SourceCodePro-ExtraLightIt.ttf.woff2 new file mode 100644 index 000000000000..65e502970f63 Binary files /dev/null and b/weblate/static/js/vendor/fonts/font-source/SourceCodePro-ExtraLightIt.ttf.woff2 differ diff --git a/weblate/static/js/vendor/fonts/font-source/SourceCodePro-It.otf b/weblate/static/js/vendor/fonts/font-source/SourceCodePro-It.otf new file mode 100644 index 000000000000..155647b6507b Binary files /dev/null and b/weblate/static/js/vendor/fonts/font-source/SourceCodePro-It.otf differ diff --git a/weblate/static/js/vendor/fonts/font-source/SourceCodePro-It.otf.woff b/weblate/static/js/vendor/fonts/font-source/SourceCodePro-It.otf.woff new file mode 100644 index 000000000000..40ab0ae8a5ab Binary files /dev/null and b/weblate/static/js/vendor/fonts/font-source/SourceCodePro-It.otf.woff differ diff --git a/weblate/static/js/vendor/fonts/font-source/SourceCodePro-It.ttf.woff2 b/weblate/static/js/vendor/fonts/font-source/SourceCodePro-It.ttf.woff2 new file mode 100644 index 000000000000..462c34efcd9d Binary files /dev/null and b/weblate/static/js/vendor/fonts/font-source/SourceCodePro-It.ttf.woff2 differ diff --git a/weblate/static/js/vendor/fonts/font-source/SourceCodePro-Light.otf b/weblate/static/js/vendor/fonts/font-source/SourceCodePro-Light.otf new file mode 100644 index 000000000000..d78c9d90564b Binary files /dev/null and b/weblate/static/js/vendor/fonts/font-source/SourceCodePro-Light.otf differ diff --git a/weblate/static/js/vendor/fonts/font-source/SourceCodePro-Light.otf.woff b/weblate/static/js/vendor/fonts/font-source/SourceCodePro-Light.otf.woff new file mode 100644 index 000000000000..28c796cafe2a Binary files /dev/null and b/weblate/static/js/vendor/fonts/font-source/SourceCodePro-Light.otf.woff differ diff --git a/weblate/static/js/vendor/fonts/font-source/SourceCodePro-Light.ttf.woff2 b/weblate/static/js/vendor/fonts/font-source/SourceCodePro-Light.ttf.woff2 new file mode 100644 index 000000000000..b8f920d2a1c4 Binary files /dev/null and b/weblate/static/js/vendor/fonts/font-source/SourceCodePro-Light.ttf.woff2 differ diff --git a/weblate/static/js/vendor/fonts/font-source/SourceCodePro-LightIt.otf b/weblate/static/js/vendor/fonts/font-source/SourceCodePro-LightIt.otf new file mode 100644 index 000000000000..93b25346734f Binary files /dev/null and b/weblate/static/js/vendor/fonts/font-source/SourceCodePro-LightIt.otf differ diff --git a/weblate/static/js/vendor/fonts/font-source/SourceCodePro-LightIt.otf.woff b/weblate/static/js/vendor/fonts/font-source/SourceCodePro-LightIt.otf.woff new file mode 100644 index 000000000000..a9185a9cb944 Binary files /dev/null and b/weblate/static/js/vendor/fonts/font-source/SourceCodePro-LightIt.otf.woff differ diff --git a/weblate/static/js/vendor/fonts/font-source/SourceCodePro-LightIt.ttf.woff2 b/weblate/static/js/vendor/fonts/font-source/SourceCodePro-LightIt.ttf.woff2 new file mode 100644 index 000000000000..8fab890c10fa Binary files /dev/null and b/weblate/static/js/vendor/fonts/font-source/SourceCodePro-LightIt.ttf.woff2 differ diff --git a/weblate/static/vendor/font-source/OTF/SourceCodePro-Medium.otf b/weblate/static/js/vendor/fonts/font-source/SourceCodePro-Medium.otf similarity index 100% rename from weblate/static/vendor/font-source/OTF/SourceCodePro-Medium.otf rename to weblate/static/js/vendor/fonts/font-source/SourceCodePro-Medium.otf diff --git a/weblate/static/vendor/font-source/WOFF/OTF/SourceCodePro-Medium.otf.woff b/weblate/static/js/vendor/fonts/font-source/SourceCodePro-Medium.otf.woff similarity index 100% rename from weblate/static/vendor/font-source/WOFF/OTF/SourceCodePro-Medium.otf.woff rename to weblate/static/js/vendor/fonts/font-source/SourceCodePro-Medium.otf.woff diff --git a/weblate/static/vendor/font-source/WOFF2/TTF/SourceCodePro-Medium.ttf.woff2 b/weblate/static/js/vendor/fonts/font-source/SourceCodePro-Medium.ttf.woff2 similarity index 100% rename from weblate/static/vendor/font-source/WOFF2/TTF/SourceCodePro-Medium.ttf.woff2 rename to weblate/static/js/vendor/fonts/font-source/SourceCodePro-Medium.ttf.woff2 diff --git a/weblate/static/js/vendor/fonts/font-source/SourceCodePro-MediumIt.otf b/weblate/static/js/vendor/fonts/font-source/SourceCodePro-MediumIt.otf new file mode 100644 index 000000000000..06237d4f19dc Binary files /dev/null and b/weblate/static/js/vendor/fonts/font-source/SourceCodePro-MediumIt.otf differ diff --git a/weblate/static/js/vendor/fonts/font-source/SourceCodePro-MediumIt.otf.woff b/weblate/static/js/vendor/fonts/font-source/SourceCodePro-MediumIt.otf.woff new file mode 100644 index 000000000000..a9924c3147a2 Binary files /dev/null and b/weblate/static/js/vendor/fonts/font-source/SourceCodePro-MediumIt.otf.woff differ diff --git a/weblate/static/js/vendor/fonts/font-source/SourceCodePro-MediumIt.ttf.woff2 b/weblate/static/js/vendor/fonts/font-source/SourceCodePro-MediumIt.ttf.woff2 new file mode 100644 index 000000000000..023469607ca7 Binary files /dev/null and b/weblate/static/js/vendor/fonts/font-source/SourceCodePro-MediumIt.ttf.woff2 differ diff --git a/weblate/static/vendor/font-source/OTF/SourceCodePro-Regular.otf b/weblate/static/js/vendor/fonts/font-source/SourceCodePro-Regular.otf similarity index 100% rename from weblate/static/vendor/font-source/OTF/SourceCodePro-Regular.otf rename to weblate/static/js/vendor/fonts/font-source/SourceCodePro-Regular.otf diff --git a/weblate/static/vendor/font-source/WOFF/OTF/SourceCodePro-Regular.otf.woff b/weblate/static/js/vendor/fonts/font-source/SourceCodePro-Regular.otf.woff similarity index 100% rename from weblate/static/vendor/font-source/WOFF/OTF/SourceCodePro-Regular.otf.woff rename to weblate/static/js/vendor/fonts/font-source/SourceCodePro-Regular.otf.woff diff --git a/weblate/static/vendor/font-source/WOFF2/TTF/SourceCodePro-Regular.ttf.woff2 b/weblate/static/js/vendor/fonts/font-source/SourceCodePro-Regular.ttf.woff2 similarity index 100% rename from weblate/static/vendor/font-source/WOFF2/TTF/SourceCodePro-Regular.ttf.woff2 rename to weblate/static/js/vendor/fonts/font-source/SourceCodePro-Regular.ttf.woff2 diff --git a/weblate/static/vendor/font-source/OTF/SourceCodePro-Semibold.otf b/weblate/static/js/vendor/fonts/font-source/SourceCodePro-Semibold.otf similarity index 100% rename from weblate/static/vendor/font-source/OTF/SourceCodePro-Semibold.otf rename to weblate/static/js/vendor/fonts/font-source/SourceCodePro-Semibold.otf diff --git a/weblate/static/vendor/font-source/WOFF/OTF/SourceCodePro-Semibold.otf.woff b/weblate/static/js/vendor/fonts/font-source/SourceCodePro-Semibold.otf.woff similarity index 100% rename from weblate/static/vendor/font-source/WOFF/OTF/SourceCodePro-Semibold.otf.woff rename to weblate/static/js/vendor/fonts/font-source/SourceCodePro-Semibold.otf.woff diff --git a/weblate/static/vendor/font-source/WOFF2/TTF/SourceCodePro-Semibold.ttf.woff2 b/weblate/static/js/vendor/fonts/font-source/SourceCodePro-Semibold.ttf.woff2 similarity index 100% rename from weblate/static/vendor/font-source/WOFF2/TTF/SourceCodePro-Semibold.ttf.woff2 rename to weblate/static/js/vendor/fonts/font-source/SourceCodePro-Semibold.ttf.woff2 diff --git a/weblate/static/js/vendor/fonts/font-source/SourceCodePro-SemiboldIt.otf b/weblate/static/js/vendor/fonts/font-source/SourceCodePro-SemiboldIt.otf new file mode 100644 index 000000000000..7bff3d79f06e Binary files /dev/null and b/weblate/static/js/vendor/fonts/font-source/SourceCodePro-SemiboldIt.otf differ diff --git a/weblate/static/js/vendor/fonts/font-source/SourceCodePro-SemiboldIt.otf.woff b/weblate/static/js/vendor/fonts/font-source/SourceCodePro-SemiboldIt.otf.woff new file mode 100644 index 000000000000..f3fee7452fb6 Binary files /dev/null and b/weblate/static/js/vendor/fonts/font-source/SourceCodePro-SemiboldIt.otf.woff differ diff --git a/weblate/static/js/vendor/fonts/font-source/SourceCodePro-SemiboldIt.ttf.woff2 b/weblate/static/js/vendor/fonts/font-source/SourceCodePro-SemiboldIt.ttf.woff2 new file mode 100644 index 000000000000..95b296d7f97a Binary files /dev/null and b/weblate/static/js/vendor/fonts/font-source/SourceCodePro-SemiboldIt.ttf.woff2 differ diff --git a/weblate/static/vendor/font-source/WOFF/OTF/SourceSans3-Black.otf.woff b/weblate/static/js/vendor/fonts/font-source/SourceSans3-Black.otf.woff similarity index 100% rename from weblate/static/vendor/font-source/WOFF/OTF/SourceSans3-Black.otf.woff rename to weblate/static/js/vendor/fonts/font-source/SourceSans3-Black.otf.woff diff --git a/weblate/static/vendor/font-source/WOFF2/TTF/SourceSans3-Black.ttf.woff2 b/weblate/static/js/vendor/fonts/font-source/SourceSans3-Black.ttf.woff2 similarity index 100% rename from weblate/static/vendor/font-source/WOFF2/TTF/SourceSans3-Black.ttf.woff2 rename to weblate/static/js/vendor/fonts/font-source/SourceSans3-Black.ttf.woff2 diff --git a/weblate/static/js/vendor/fonts/font-source/SourceSans3-BlackIt.otf.woff b/weblate/static/js/vendor/fonts/font-source/SourceSans3-BlackIt.otf.woff new file mode 100644 index 000000000000..a01a68398719 Binary files /dev/null and b/weblate/static/js/vendor/fonts/font-source/SourceSans3-BlackIt.otf.woff differ diff --git a/weblate/static/js/vendor/fonts/font-source/SourceSans3-BlackIt.ttf.woff2 b/weblate/static/js/vendor/fonts/font-source/SourceSans3-BlackIt.ttf.woff2 new file mode 100644 index 000000000000..f0407ee6f392 Binary files /dev/null and b/weblate/static/js/vendor/fonts/font-source/SourceSans3-BlackIt.ttf.woff2 differ diff --git a/weblate/static/vendor/font-source/WOFF/OTF/SourceSans3-Bold.otf.woff b/weblate/static/js/vendor/fonts/font-source/SourceSans3-Bold.otf.woff similarity index 100% rename from weblate/static/vendor/font-source/WOFF/OTF/SourceSans3-Bold.otf.woff rename to weblate/static/js/vendor/fonts/font-source/SourceSans3-Bold.otf.woff diff --git a/weblate/static/vendor/font-source/WOFF2/TTF/SourceSans3-Bold.ttf.woff2 b/weblate/static/js/vendor/fonts/font-source/SourceSans3-Bold.ttf.woff2 similarity index 100% rename from weblate/static/vendor/font-source/WOFF2/TTF/SourceSans3-Bold.ttf.woff2 rename to weblate/static/js/vendor/fonts/font-source/SourceSans3-Bold.ttf.woff2 diff --git a/weblate/static/vendor/font-source/WOFF/OTF/SourceSans3-BoldIt.otf.woff b/weblate/static/js/vendor/fonts/font-source/SourceSans3-BoldIt.otf.woff similarity index 100% rename from weblate/static/vendor/font-source/WOFF/OTF/SourceSans3-BoldIt.otf.woff rename to weblate/static/js/vendor/fonts/font-source/SourceSans3-BoldIt.otf.woff diff --git a/weblate/static/vendor/font-source/WOFF2/TTF/SourceSans3-BoldIt.ttf.woff2 b/weblate/static/js/vendor/fonts/font-source/SourceSans3-BoldIt.ttf.woff2 similarity index 100% rename from weblate/static/vendor/font-source/WOFF2/TTF/SourceSans3-BoldIt.ttf.woff2 rename to weblate/static/js/vendor/fonts/font-source/SourceSans3-BoldIt.ttf.woff2 diff --git a/weblate/static/vendor/font-source/WOFF/OTF/SourceSans3-ExtraLight.otf.woff b/weblate/static/js/vendor/fonts/font-source/SourceSans3-ExtraLight.otf.woff similarity index 100% rename from weblate/static/vendor/font-source/WOFF/OTF/SourceSans3-ExtraLight.otf.woff rename to weblate/static/js/vendor/fonts/font-source/SourceSans3-ExtraLight.otf.woff diff --git a/weblate/static/vendor/font-source/WOFF2/TTF/SourceSans3-ExtraLight.ttf.woff2 b/weblate/static/js/vendor/fonts/font-source/SourceSans3-ExtraLight.ttf.woff2 similarity index 100% rename from weblate/static/vendor/font-source/WOFF2/TTF/SourceSans3-ExtraLight.ttf.woff2 rename to weblate/static/js/vendor/fonts/font-source/SourceSans3-ExtraLight.ttf.woff2 diff --git a/weblate/static/js/vendor/fonts/font-source/SourceSans3-ExtraLightIt.otf.woff b/weblate/static/js/vendor/fonts/font-source/SourceSans3-ExtraLightIt.otf.woff new file mode 100644 index 000000000000..ae7e4498c378 Binary files /dev/null and b/weblate/static/js/vendor/fonts/font-source/SourceSans3-ExtraLightIt.otf.woff differ diff --git a/weblate/static/js/vendor/fonts/font-source/SourceSans3-ExtraLightIt.ttf.woff2 b/weblate/static/js/vendor/fonts/font-source/SourceSans3-ExtraLightIt.ttf.woff2 new file mode 100644 index 000000000000..a1df08a0b758 Binary files /dev/null and b/weblate/static/js/vendor/fonts/font-source/SourceSans3-ExtraLightIt.ttf.woff2 differ diff --git a/weblate/static/vendor/font-source/WOFF/OTF/SourceSans3-It.otf.woff b/weblate/static/js/vendor/fonts/font-source/SourceSans3-It.otf.woff similarity index 100% rename from weblate/static/vendor/font-source/WOFF/OTF/SourceSans3-It.otf.woff rename to weblate/static/js/vendor/fonts/font-source/SourceSans3-It.otf.woff diff --git a/weblate/static/vendor/font-source/WOFF2/TTF/SourceSans3-It.ttf.woff2 b/weblate/static/js/vendor/fonts/font-source/SourceSans3-It.ttf.woff2 similarity index 100% rename from weblate/static/vendor/font-source/WOFF2/TTF/SourceSans3-It.ttf.woff2 rename to weblate/static/js/vendor/fonts/font-source/SourceSans3-It.ttf.woff2 diff --git a/weblate/static/vendor/font-source/WOFF/OTF/SourceSans3-Light.otf.woff b/weblate/static/js/vendor/fonts/font-source/SourceSans3-Light.otf.woff similarity index 100% rename from weblate/static/vendor/font-source/WOFF/OTF/SourceSans3-Light.otf.woff rename to weblate/static/js/vendor/fonts/font-source/SourceSans3-Light.otf.woff diff --git a/weblate/static/vendor/font-source/WOFF2/TTF/SourceSans3-Light.ttf.woff2 b/weblate/static/js/vendor/fonts/font-source/SourceSans3-Light.ttf.woff2 similarity index 100% rename from weblate/static/vendor/font-source/WOFF2/TTF/SourceSans3-Light.ttf.woff2 rename to weblate/static/js/vendor/fonts/font-source/SourceSans3-Light.ttf.woff2 diff --git a/weblate/static/js/vendor/fonts/font-source/SourceSans3-LightIt.otf.woff b/weblate/static/js/vendor/fonts/font-source/SourceSans3-LightIt.otf.woff new file mode 100644 index 000000000000..3ce70b9a585a Binary files /dev/null and b/weblate/static/js/vendor/fonts/font-source/SourceSans3-LightIt.otf.woff differ diff --git a/weblate/static/js/vendor/fonts/font-source/SourceSans3-LightIt.ttf.woff2 b/weblate/static/js/vendor/fonts/font-source/SourceSans3-LightIt.ttf.woff2 new file mode 100644 index 000000000000..60f05e17e973 Binary files /dev/null and b/weblate/static/js/vendor/fonts/font-source/SourceSans3-LightIt.ttf.woff2 differ diff --git a/weblate/static/vendor/font-source/WOFF/OTF/SourceSans3-Regular.otf.woff b/weblate/static/js/vendor/fonts/font-source/SourceSans3-Regular.otf.woff similarity index 100% rename from weblate/static/vendor/font-source/WOFF/OTF/SourceSans3-Regular.otf.woff rename to weblate/static/js/vendor/fonts/font-source/SourceSans3-Regular.otf.woff diff --git a/weblate/static/vendor/font-source/WOFF2/TTF/SourceSans3-Regular.ttf.woff2 b/weblate/static/js/vendor/fonts/font-source/SourceSans3-Regular.ttf.woff2 similarity index 100% rename from weblate/static/vendor/font-source/WOFF2/TTF/SourceSans3-Regular.ttf.woff2 rename to weblate/static/js/vendor/fonts/font-source/SourceSans3-Regular.ttf.woff2 diff --git a/weblate/static/vendor/font-source/WOFF/OTF/SourceSans3-Semibold.otf.woff b/weblate/static/js/vendor/fonts/font-source/SourceSans3-Semibold.otf.woff similarity index 100% rename from weblate/static/vendor/font-source/WOFF/OTF/SourceSans3-Semibold.otf.woff rename to weblate/static/js/vendor/fonts/font-source/SourceSans3-Semibold.otf.woff diff --git a/weblate/static/vendor/font-source/WOFF2/TTF/SourceSans3-Semibold.ttf.woff2 b/weblate/static/js/vendor/fonts/font-source/SourceSans3-Semibold.ttf.woff2 similarity index 100% rename from weblate/static/vendor/font-source/WOFF2/TTF/SourceSans3-Semibold.ttf.woff2 rename to weblate/static/js/vendor/fonts/font-source/SourceSans3-Semibold.ttf.woff2 diff --git a/weblate/static/js/vendor/fonts/font-source/SourceSans3-SemiboldIt.otf.woff b/weblate/static/js/vendor/fonts/font-source/SourceSans3-SemiboldIt.otf.woff new file mode 100644 index 000000000000..1a8a49378299 Binary files /dev/null and b/weblate/static/js/vendor/fonts/font-source/SourceSans3-SemiboldIt.otf.woff differ diff --git a/weblate/static/js/vendor/fonts/font-source/SourceSans3-SemiboldIt.ttf.woff2 b/weblate/static/js/vendor/fonts/font-source/SourceSans3-SemiboldIt.ttf.woff2 new file mode 100644 index 000000000000..29b7f8d10100 Binary files /dev/null and b/weblate/static/js/vendor/fonts/font-source/SourceSans3-SemiboldIt.ttf.woff2 differ diff --git a/weblate/static/js/vendor/fonts/font-source/TTF/SourceCodePro-Black.ttf b/weblate/static/js/vendor/fonts/font-source/TTF/SourceCodePro-Black.ttf new file mode 100644 index 000000000000..1cba216c1a35 Binary files /dev/null and b/weblate/static/js/vendor/fonts/font-source/TTF/SourceCodePro-Black.ttf differ diff --git a/weblate/static/js/vendor/fonts/font-source/TTF/SourceCodePro-BlackIt.ttf b/weblate/static/js/vendor/fonts/font-source/TTF/SourceCodePro-BlackIt.ttf new file mode 100644 index 000000000000..498d9af26075 Binary files /dev/null and b/weblate/static/js/vendor/fonts/font-source/TTF/SourceCodePro-BlackIt.ttf differ diff --git a/weblate/static/vendor/font-source/TTF/SourceCodePro-Bold.ttf b/weblate/static/js/vendor/fonts/font-source/TTF/SourceCodePro-Bold.ttf similarity index 100% rename from weblate/static/vendor/font-source/TTF/SourceCodePro-Bold.ttf rename to weblate/static/js/vendor/fonts/font-source/TTF/SourceCodePro-Bold.ttf diff --git a/weblate/static/js/vendor/fonts/font-source/TTF/SourceCodePro-BoldIt.ttf b/weblate/static/js/vendor/fonts/font-source/TTF/SourceCodePro-BoldIt.ttf new file mode 100644 index 000000000000..0734c6af1a32 Binary files /dev/null and b/weblate/static/js/vendor/fonts/font-source/TTF/SourceCodePro-BoldIt.ttf differ diff --git a/weblate/static/js/vendor/fonts/font-source/TTF/SourceCodePro-ExtraLight.ttf b/weblate/static/js/vendor/fonts/font-source/TTF/SourceCodePro-ExtraLight.ttf new file mode 100644 index 000000000000..e7d364ee12cd Binary files /dev/null and b/weblate/static/js/vendor/fonts/font-source/TTF/SourceCodePro-ExtraLight.ttf differ diff --git a/weblate/static/js/vendor/fonts/font-source/TTF/SourceCodePro-ExtraLightIt.ttf b/weblate/static/js/vendor/fonts/font-source/TTF/SourceCodePro-ExtraLightIt.ttf new file mode 100644 index 000000000000..dca439b5c137 Binary files /dev/null and b/weblate/static/js/vendor/fonts/font-source/TTF/SourceCodePro-ExtraLightIt.ttf differ diff --git a/weblate/static/js/vendor/fonts/font-source/TTF/SourceCodePro-It.ttf b/weblate/static/js/vendor/fonts/font-source/TTF/SourceCodePro-It.ttf new file mode 100644 index 000000000000..efc777e2a5e8 Binary files /dev/null and b/weblate/static/js/vendor/fonts/font-source/TTF/SourceCodePro-It.ttf differ diff --git a/weblate/static/js/vendor/fonts/font-source/TTF/SourceCodePro-Light.ttf b/weblate/static/js/vendor/fonts/font-source/TTF/SourceCodePro-Light.ttf new file mode 100644 index 000000000000..1ad6fa2dd09b Binary files /dev/null and b/weblate/static/js/vendor/fonts/font-source/TTF/SourceCodePro-Light.ttf differ diff --git a/weblate/static/js/vendor/fonts/font-source/TTF/SourceCodePro-LightIt.ttf b/weblate/static/js/vendor/fonts/font-source/TTF/SourceCodePro-LightIt.ttf new file mode 100644 index 000000000000..68c29136dec1 Binary files /dev/null and b/weblate/static/js/vendor/fonts/font-source/TTF/SourceCodePro-LightIt.ttf differ diff --git a/weblate/static/vendor/font-source/TTF/SourceCodePro-Medium.ttf b/weblate/static/js/vendor/fonts/font-source/TTF/SourceCodePro-Medium.ttf similarity index 100% rename from weblate/static/vendor/font-source/TTF/SourceCodePro-Medium.ttf rename to weblate/static/js/vendor/fonts/font-source/TTF/SourceCodePro-Medium.ttf diff --git a/weblate/static/js/vendor/fonts/font-source/TTF/SourceCodePro-MediumIt.ttf b/weblate/static/js/vendor/fonts/font-source/TTF/SourceCodePro-MediumIt.ttf new file mode 100644 index 000000000000..68c30366f850 Binary files /dev/null and b/weblate/static/js/vendor/fonts/font-source/TTF/SourceCodePro-MediumIt.ttf differ diff --git a/weblate/static/vendor/font-source/TTF/SourceCodePro-Regular.ttf b/weblate/static/js/vendor/fonts/font-source/TTF/SourceCodePro-Regular.ttf similarity index 100% rename from weblate/static/vendor/font-source/TTF/SourceCodePro-Regular.ttf rename to weblate/static/js/vendor/fonts/font-source/TTF/SourceCodePro-Regular.ttf diff --git a/weblate/static/vendor/font-source/TTF/SourceCodePro-Semibold.ttf b/weblate/static/js/vendor/fonts/font-source/TTF/SourceCodePro-Semibold.ttf similarity index 100% rename from weblate/static/vendor/font-source/TTF/SourceCodePro-Semibold.ttf rename to weblate/static/js/vendor/fonts/font-source/TTF/SourceCodePro-Semibold.ttf diff --git a/weblate/static/js/vendor/fonts/font-source/TTF/SourceCodePro-SemiboldIt.ttf b/weblate/static/js/vendor/fonts/font-source/TTF/SourceCodePro-SemiboldIt.ttf new file mode 100644 index 000000000000..4f83c4d8fa55 Binary files /dev/null and b/weblate/static/js/vendor/fonts/font-source/TTF/SourceCodePro-SemiboldIt.ttf differ diff --git a/weblate/static/vendor/font-source/TTF/SourceSans3-Black.ttf b/weblate/static/js/vendor/fonts/font-source/TTF/SourceSans3-Black.ttf similarity index 100% rename from weblate/static/vendor/font-source/TTF/SourceSans3-Black.ttf rename to weblate/static/js/vendor/fonts/font-source/TTF/SourceSans3-Black.ttf diff --git a/weblate/static/vendor/font-source/TTF/SourceSans3-Bold.ttf b/weblate/static/js/vendor/fonts/font-source/TTF/SourceSans3-Bold.ttf similarity index 100% rename from weblate/static/vendor/font-source/TTF/SourceSans3-Bold.ttf rename to weblate/static/js/vendor/fonts/font-source/TTF/SourceSans3-Bold.ttf diff --git a/weblate/static/vendor/font-source/TTF/SourceSans3-BoldIt.ttf b/weblate/static/js/vendor/fonts/font-source/TTF/SourceSans3-BoldIt.ttf similarity index 100% rename from weblate/static/vendor/font-source/TTF/SourceSans3-BoldIt.ttf rename to weblate/static/js/vendor/fonts/font-source/TTF/SourceSans3-BoldIt.ttf diff --git a/weblate/static/vendor/font-source/TTF/SourceSans3-ExtraLight.ttf b/weblate/static/js/vendor/fonts/font-source/TTF/SourceSans3-ExtraLight.ttf similarity index 100% rename from weblate/static/vendor/font-source/TTF/SourceSans3-ExtraLight.ttf rename to weblate/static/js/vendor/fonts/font-source/TTF/SourceSans3-ExtraLight.ttf diff --git a/weblate/static/vendor/font-source/TTF/SourceSans3-It.ttf b/weblate/static/js/vendor/fonts/font-source/TTF/SourceSans3-It.ttf similarity index 100% rename from weblate/static/vendor/font-source/TTF/SourceSans3-It.ttf rename to weblate/static/js/vendor/fonts/font-source/TTF/SourceSans3-It.ttf diff --git a/weblate/static/vendor/font-source/TTF/SourceSans3-Light.ttf b/weblate/static/js/vendor/fonts/font-source/TTF/SourceSans3-Light.ttf similarity index 100% rename from weblate/static/vendor/font-source/TTF/SourceSans3-Light.ttf rename to weblate/static/js/vendor/fonts/font-source/TTF/SourceSans3-Light.ttf diff --git a/weblate/static/vendor/font-source/TTF/SourceSans3-Regular.ttf b/weblate/static/js/vendor/fonts/font-source/TTF/SourceSans3-Regular.ttf similarity index 100% rename from weblate/static/vendor/font-source/TTF/SourceSans3-Regular.ttf rename to weblate/static/js/vendor/fonts/font-source/TTF/SourceSans3-Regular.ttf diff --git a/weblate/static/vendor/font-source/TTF/SourceSans3-Semibold.ttf b/weblate/static/js/vendor/fonts/font-source/TTF/SourceSans3-Semibold.ttf similarity index 100% rename from weblate/static/vendor/font-source/TTF/SourceSans3-Semibold.ttf rename to weblate/static/js/vendor/fonts/font-source/TTF/SourceSans3-Semibold.ttf diff --git a/weblate/static/js/vendor/fonts/fonts.css b/weblate/static/js/vendor/fonts/fonts.css new file mode 100644 index 000000000000..6f8806d94123 --- /dev/null +++ b/weblate/static/js/vendor/fonts/fonts.css @@ -0,0 +1,262 @@ +@font-face{ + font-family: 'Source Code Pro'; + font-weight: 200; + font-style: normal; + font-stretch: normal; + src: url(../fonts/font-source/SourceCodePro-ExtraLight.ttf.woff2) format('woff2'), + url(../fonts/font-source/SourceCodePro-ExtraLight.otf.woff) format('woff'), + url(../fonts/font-source/SourceCodePro-ExtraLight.otf) format('opentype'), + url(../fonts/font-source/TTF/SourceCodePro-ExtraLight.ttf) format('truetype'); +} + +@font-face{ + font-family: 'Source Code Pro'; + font-weight: 200; + font-style: italic; + font-stretch: normal; + src: url(../fonts/font-source/SourceCodePro-ExtraLightIt.ttf.woff2) format('woff2'), + url(../fonts/font-source/SourceCodePro-ExtraLightIt.otf.woff) format('woff'), + url(../fonts/font-source/SourceCodePro-ExtraLightIt.otf) format('opentype'), + url(../fonts/font-source/TTF/SourceCodePro-ExtraLightIt.ttf) format('truetype'); +} + +@font-face{ + font-family: 'Source Code Pro'; + font-weight: 300; + font-style: normal; + font-stretch: normal; + src: url(../fonts/font-source/SourceCodePro-Light.ttf.woff2) format('woff2'), + url(../fonts/font-source/SourceCodePro-Light.otf.woff) format('woff'), + url(../fonts/font-source/SourceCodePro-Light.otf) format('opentype'), + url(../fonts/font-source/TTF/SourceCodePro-Light.ttf) format('truetype'); +} + +@font-face{ + font-family: 'Source Code Pro'; + font-weight: 300; + font-style: italic; + font-stretch: normal; + src: url(../fonts/font-source/SourceCodePro-LightIt.ttf.woff2) format('woff2'), + url(../fonts/font-source/SourceCodePro-LightIt.otf.woff) format('woff'), + url(../fonts/font-source/SourceCodePro-LightIt.otf) format('opentype'), + url(../fonts/font-source/TTF/SourceCodePro-LightIt.ttf) format('truetype'); +} + +@font-face{ + font-family: 'Source Code Pro'; + font-weight: 400; + font-style: normal; + font-stretch: normal; + src: url(../fonts/font-source/SourceCodePro-Regular.ttf.woff2) format('woff2'), + url(../fonts/font-source/SourceCodePro-Regular.otf.woff) format('woff'), + url(../fonts/font-source/SourceCodePro-Regular.otf) format('opentype'), + url(../fonts/font-source/TTF/SourceCodePro-Regular.ttf) format('truetype'); +} + +@font-face{ + font-family: 'Source Code Pro'; + font-weight: 400; + font-style: italic; + font-stretch: normal; + src: url(../fonts/font-source/SourceCodePro-It.ttf.woff2) format('woff2'), + url(../fonts/font-source/SourceCodePro-It.otf.woff) format('woff'), + url(../fonts/font-source/SourceCodePro-It.otf) format('opentype'), + url(../fonts/font-source/TTF/SourceCodePro-It.ttf) format('truetype'); +} + +@font-face{ + font-family: 'Source Code Pro'; + font-weight: 500; + font-style: normal; + font-stretch: normal; + src: url(../fonts/font-source/SourceCodePro-Medium.ttf.woff2) format('woff2'), + url(../fonts/font-source/SourceCodePro-Medium.otf.woff) format('woff'), + url(../fonts/font-source/SourceCodePro-Medium.otf) format('opentype'), + url(../fonts/font-source/TTF/SourceCodePro-Medium.ttf) format('truetype'); +} + +@font-face{ + font-family: 'Source Code Pro'; + font-weight: 500; + font-style: italic; + font-stretch: normal; + src: url(../fonts/font-source/SourceCodePro-MediumIt.ttf.woff2) format('woff2'), + url(../fonts/font-source/SourceCodePro-MediumIt.otf.woff) format('woff'), + url(../fonts/font-source/SourceCodePro-MediumIt.otf) format('opentype'), + url(../fonts/font-source/TTF/SourceCodePro-MediumIt.ttf) format('truetype'); +} + +@font-face{ + font-family: 'Source Code Pro'; + font-weight: 600; + font-style: normal; + font-stretch: normal; + src: url(../fonts/font-source/SourceCodePro-Semibold.ttf.woff2) format('woff2'), + url(../fonts/font-source/SourceCodePro-Semibold.otf.woff) format('woff'), + url(../fonts/font-source/SourceCodePro-Semibold.otf) format('opentype'), + url(../fonts/font-source/TTF/SourceCodePro-Semibold.ttf) format('truetype'); +} + +@font-face{ + font-family: 'Source Code Pro'; + font-weight: 600; + font-style: italic; + font-stretch: normal; + src: url(../fonts/font-source/SourceCodePro-SemiboldIt.ttf.woff2) format('woff2'), + url(../fonts/font-source/SourceCodePro-SemiboldIt.otf.woff) format('woff'), + url(../fonts/font-source/SourceCodePro-SemiboldIt.otf) format('opentype'), + url(../fonts/font-source/TTF/SourceCodePro-SemiboldIt.ttf) format('truetype'); +} + +@font-face{ + font-family: 'Source Code Pro'; + font-weight: 700; + font-style: normal; + font-stretch: normal; + src: url(../fonts/font-source/SourceCodePro-Bold.ttf.woff2) format('woff2'), + url(../fonts/font-source/SourceCodePro-Bold.otf.woff) format('woff'), + url(../fonts/font-source/SourceCodePro-Bold.otf) format('opentype'), + url(../fonts/font-source/TTF/SourceCodePro-Bold.ttf) format('truetype'); +} + +@font-face{ + font-family: 'Source Code Pro'; + font-weight: 700; + font-style: italic; + font-stretch: normal; + src: url(../fonts/font-source/SourceCodePro-BoldIt.ttf.woff2) format('woff2'), + url(../fonts/font-source/SourceCodePro-BoldIt.otf.woff) format('woff'), + url(../fonts/font-source/SourceCodePro-BoldIt.otf) format('opentype'), + url(../fonts/font-source/TTF/SourceCodePro-BoldIt.ttf) format('truetype'); +} + +@font-face{ + font-family: 'Source Code Pro'; + font-weight: 900; + font-style: normal; + font-stretch: normal; + src: url(../fonts/font-source/SourceCodePro-Black.ttf.woff2) format('woff2'), + url(../fonts/font-source/SourceCodePro-Black.otf.woff) format('woff'), + url(../fonts/font-source/SourceCodePro-Black.otf) format('opentype'), + url(../fonts/font-source/TTF/SourceCodePro-Black.ttf) format('truetype'); +} + +@font-face{ + font-family: 'Source Code Pro'; + font-weight: 900; + font-style: italic; + font-stretch: normal; + src: url(../fonts/font-source/SourceCodePro-BlackIt.ttf.woff2) format('woff2'), + url(../fonts/font-source/SourceCodePro-BlackIt.otf.woff) format('woff'), + url(../fonts/font-source/SourceCodePro-BlackIt.otf) format('opentype'), + url(../fonts/font-source/TTF/SourceCodePro-BlackIt.ttf) format('truetype'); +} + +@font-face{ + font-family: 'Source Sans 3'; + font-weight: 200; + font-style: normal; + font-stretch: normal; + src: url(../fonts/font-source/SourceSans3-ExtraLight.ttf.woff2) format('woff2'), + url(../fonts/font-source/SourceSans3-ExtraLight.otf.woff) format('woff'); +} + +@font-face{ + font-family: 'Source Sans 3'; + font-weight: 200; + font-style: italic; + font-stretch: normal; + src: url(../fonts/font-source/SourceSans3-ExtraLightIt.ttf.woff2) format('woff2'), + url(../fonts/font-source/SourceSans3-ExtraLightIt.otf.woff) format('woff'); +} + +@font-face{ + font-family: 'Source Sans 3'; + font-weight: 300; + font-style: normal; + font-stretch: normal; + src: url(../fonts/font-source/SourceSans3-Light.ttf.woff2) format('woff2'), + url(../fonts/font-source/SourceSans3-Light.otf.woff) format('woff'); +} + +@font-face{ + font-family: 'Source Sans 3'; + font-weight: 300; + font-style: italic; + font-stretch: normal; + src: url(../fonts/font-source/SourceSans3-LightIt.ttf.woff2) format('woff2'), + url(../fonts/font-source/SourceSans3-LightIt.otf.woff) format('woff'); +} + +@font-face{ + font-family: 'Source Sans 3'; + font-weight: 400; + font-style: normal; + font-stretch: normal; + src: url(../fonts/font-source/SourceSans3-Regular.ttf.woff2) format('woff2'), + url(../fonts/font-source/SourceSans3-Regular.otf.woff) format('woff'); +} + +@font-face{ + font-family: 'Source Sans 3'; + font-weight: 400; + font-style: italic; + font-stretch: normal; + src: url(../fonts/font-source/SourceSans3-It.ttf.woff2) format('woff2'), + url(../fonts/font-source/SourceSans3-It.otf.woff) format('woff'); +} + +@font-face{ + font-family: 'Source Sans 3'; + font-weight: 600; + font-style: normal; + font-stretch: normal; + src: url(../fonts/font-source/SourceSans3-Semibold.ttf.woff2) format('woff2'), + url(../fonts/font-source/SourceSans3-Semibold.otf.woff) format('woff'); +} + +@font-face{ + font-family: 'Source Sans 3'; + font-weight: 600; + font-style: italic; + font-stretch: normal; + src: url(../fonts/font-source/SourceSans3-SemiboldIt.ttf.woff2) format('woff2'), + url(../fonts/font-source/SourceSans3-SemiboldIt.otf.woff) format('woff'); +} + +@font-face{ + font-family: 'Source Sans 3'; + font-weight: 700; + font-style: normal; + font-stretch: normal; + src: url(../fonts/font-source/SourceSans3-Bold.ttf.woff2) format('woff2'), + url(../fonts/font-source/SourceSans3-Bold.otf.woff) format('woff'); +} + +@font-face{ + font-family: 'Source Sans 3'; + font-weight: 700; + font-style: italic; + font-stretch: normal; + src: url(../fonts/font-source/SourceSans3-BoldIt.ttf.woff2) format('woff2'), + url(../fonts/font-source/SourceSans3-BoldIt.otf.woff) format('woff'); +} + +@font-face{ + font-family: 'Source Sans 3'; + font-weight: 900; + font-style: normal; + font-stretch: normal; + src: url(../fonts/font-source/SourceSans3-Black.ttf.woff2) format('woff2'), + url(../fonts/font-source/SourceSans3-Black.otf.woff) format('woff'); +} + +@font-face{ + font-family: 'Source Sans 3'; + font-weight: 900; + font-style: italic; + font-stretch: normal; + src: url(../fonts/font-source/SourceSans3-BlackIt.ttf.woff2) format('woff2'), + url(../fonts/font-source/SourceSans3-BlackIt.otf.woff) format('woff'); +} + diff --git a/weblate/static/js/vendor/fonts/fonts.js b/weblate/static/js/vendor/fonts/fonts.js new file mode 100644 index 000000000000..2a9e49fca9ce --- /dev/null +++ b/weblate/static/js/vendor/fonts/fonts.js @@ -0,0 +1 @@ +(()=>{"use strict";var t={};t.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),(()=>{var r;t.g.importScripts&&(r=t.g.location+"");var e=t.g.document;if(!r&&e&&(e.currentScript&&"SCRIPT"===e.currentScript.tagName.toUpperCase()&&(r=e.currentScript.src),!r)){var p=e.getElementsByTagName("script");if(p.length)for(var i=p.length-1;i>-1&&(!r||!/^http(s?):/.test(r));)r=p[i--].src}if(!r)throw new Error("Automatic publicPath is not supported in this browser");r=r.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),t.p=r+"../"})();t.p,t.p,t.p,t.p,t.p,t.p,t.p,t.p,t.p,t.p,t.p,t.p})(); \ No newline at end of file diff --git a/weblate/static/js/vendor/main.js.license b/weblate/static/js/vendor/main.js.license index dec45d5304c8..d4fdcc13ca65 100644 --- a/weblate/static/js/vendor/main.js.license +++ b/weblate/static/js/vendor/main.js.license @@ -1,6 +1,8 @@ Copyright (c) JS Foundation and other contributors Copyright (c) Simeon Velichkov +Copyright 2010-2019 Adobe (http://www.adobe.com/), with Reserved Font Name 'Source'. All Rights Reserved. Source is a trademark of Adobe in the United States and/or other countries. +Copyright 2010-2020 Adobe (http://www.adobe.com/), with Reserved Font Name 'Source'. All Rights Reserved. Source is a trademark of Adobe in the United States and/or other countries. Copyright Dan Grossman (http://www.dangrossman.info) Copyright OpenJS Foundation and other contributors, https://openjsf.org/ -SPDX-License-Identifier: MIT +SPDX-License-Identifier: MIT AND OFL-1.1 diff --git a/weblate/static/vendor/font-source/WOFF/TTF/SourceCodePro-Bold.ttf.woff b/weblate/static/vendor/font-source/WOFF/TTF/SourceCodePro-Bold.ttf.woff deleted file mode 100644 index 02ebc73f3b96..000000000000 Binary files a/weblate/static/vendor/font-source/WOFF/TTF/SourceCodePro-Bold.ttf.woff and /dev/null differ diff --git a/weblate/static/vendor/font-source/WOFF/TTF/SourceCodePro-Medium.ttf.woff b/weblate/static/vendor/font-source/WOFF/TTF/SourceCodePro-Medium.ttf.woff deleted file mode 100644 index 34a3e677be31..000000000000 Binary files a/weblate/static/vendor/font-source/WOFF/TTF/SourceCodePro-Medium.ttf.woff and /dev/null differ diff --git a/weblate/static/vendor/font-source/WOFF/TTF/SourceCodePro-Regular.ttf.woff b/weblate/static/vendor/font-source/WOFF/TTF/SourceCodePro-Regular.ttf.woff deleted file mode 100644 index 7be076e1fca9..000000000000 Binary files a/weblate/static/vendor/font-source/WOFF/TTF/SourceCodePro-Regular.ttf.woff and /dev/null differ diff --git a/weblate/static/vendor/font-source/WOFF/TTF/SourceCodePro-Semibold.ttf.woff b/weblate/static/vendor/font-source/WOFF/TTF/SourceCodePro-Semibold.ttf.woff deleted file mode 100644 index 61bc67b80252..000000000000 Binary files a/weblate/static/vendor/font-source/WOFF/TTF/SourceCodePro-Semibold.ttf.woff and /dev/null differ diff --git a/weblate/static/vendor/font-source/WOFF/TTF/SourceSans3-Black.ttf.woff b/weblate/static/vendor/font-source/WOFF/TTF/SourceSans3-Black.ttf.woff deleted file mode 100644 index ff5ba80523c3..000000000000 Binary files a/weblate/static/vendor/font-source/WOFF/TTF/SourceSans3-Black.ttf.woff and /dev/null differ diff --git a/weblate/static/vendor/font-source/WOFF/TTF/SourceSans3-Bold.ttf.woff b/weblate/static/vendor/font-source/WOFF/TTF/SourceSans3-Bold.ttf.woff deleted file mode 100644 index 62d3c73727e4..000000000000 Binary files a/weblate/static/vendor/font-source/WOFF/TTF/SourceSans3-Bold.ttf.woff and /dev/null differ diff --git a/weblate/static/vendor/font-source/WOFF/TTF/SourceSans3-BoldIt.ttf.woff b/weblate/static/vendor/font-source/WOFF/TTF/SourceSans3-BoldIt.ttf.woff deleted file mode 100644 index a9b1333cc301..000000000000 Binary files a/weblate/static/vendor/font-source/WOFF/TTF/SourceSans3-BoldIt.ttf.woff and /dev/null differ diff --git a/weblate/static/vendor/font-source/WOFF/TTF/SourceSans3-ExtraLight.ttf.woff b/weblate/static/vendor/font-source/WOFF/TTF/SourceSans3-ExtraLight.ttf.woff deleted file mode 100644 index ec6ef2f560dc..000000000000 Binary files a/weblate/static/vendor/font-source/WOFF/TTF/SourceSans3-ExtraLight.ttf.woff and /dev/null differ diff --git a/weblate/static/vendor/font-source/WOFF/TTF/SourceSans3-It.ttf.woff b/weblate/static/vendor/font-source/WOFF/TTF/SourceSans3-It.ttf.woff deleted file mode 100644 index c381a8c0f839..000000000000 Binary files a/weblate/static/vendor/font-source/WOFF/TTF/SourceSans3-It.ttf.woff and /dev/null differ diff --git a/weblate/static/vendor/font-source/WOFF/TTF/SourceSans3-Light.ttf.woff b/weblate/static/vendor/font-source/WOFF/TTF/SourceSans3-Light.ttf.woff deleted file mode 100644 index 22a587a36ad6..000000000000 Binary files a/weblate/static/vendor/font-source/WOFF/TTF/SourceSans3-Light.ttf.woff and /dev/null differ diff --git a/weblate/static/vendor/font-source/WOFF/TTF/SourceSans3-Regular.ttf.woff b/weblate/static/vendor/font-source/WOFF/TTF/SourceSans3-Regular.ttf.woff deleted file mode 100644 index 1fae4dc9824e..000000000000 Binary files a/weblate/static/vendor/font-source/WOFF/TTF/SourceSans3-Regular.ttf.woff and /dev/null differ diff --git a/weblate/static/vendor/font-source/WOFF/TTF/SourceSans3-Semibold.ttf.woff b/weblate/static/vendor/font-source/WOFF/TTF/SourceSans3-Semibold.ttf.woff deleted file mode 100644 index 04710cda269a..000000000000 Binary files a/weblate/static/vendor/font-source/WOFF/TTF/SourceSans3-Semibold.ttf.woff and /dev/null differ diff --git a/weblate/static/vendor/font-source/WOFF2/OTF/SourceCodePro-Bold.otf.woff2 b/weblate/static/vendor/font-source/WOFF2/OTF/SourceCodePro-Bold.otf.woff2 deleted file mode 100644 index 4efbf2991d99..000000000000 Binary files a/weblate/static/vendor/font-source/WOFF2/OTF/SourceCodePro-Bold.otf.woff2 and /dev/null differ diff --git a/weblate/static/vendor/font-source/WOFF2/OTF/SourceCodePro-Medium.otf.woff2 b/weblate/static/vendor/font-source/WOFF2/OTF/SourceCodePro-Medium.otf.woff2 deleted file mode 100644 index 0cce5e955e26..000000000000 Binary files a/weblate/static/vendor/font-source/WOFF2/OTF/SourceCodePro-Medium.otf.woff2 and /dev/null differ diff --git a/weblate/static/vendor/font-source/WOFF2/OTF/SourceCodePro-Regular.otf.woff2 b/weblate/static/vendor/font-source/WOFF2/OTF/SourceCodePro-Regular.otf.woff2 deleted file mode 100644 index aae63a9460e2..000000000000 Binary files a/weblate/static/vendor/font-source/WOFF2/OTF/SourceCodePro-Regular.otf.woff2 and /dev/null differ diff --git a/weblate/static/vendor/font-source/WOFF2/OTF/SourceCodePro-Semibold.otf.woff2 b/weblate/static/vendor/font-source/WOFF2/OTF/SourceCodePro-Semibold.otf.woff2 deleted file mode 100644 index 3a24fb6ecf7a..000000000000 Binary files a/weblate/static/vendor/font-source/WOFF2/OTF/SourceCodePro-Semibold.otf.woff2 and /dev/null differ diff --git a/weblate/static/vendor/font-source/WOFF2/OTF/SourceSans3-Black.otf.woff2 b/weblate/static/vendor/font-source/WOFF2/OTF/SourceSans3-Black.otf.woff2 deleted file mode 100644 index e2b2f15e129f..000000000000 Binary files a/weblate/static/vendor/font-source/WOFF2/OTF/SourceSans3-Black.otf.woff2 and /dev/null differ diff --git a/weblate/static/vendor/font-source/WOFF2/OTF/SourceSans3-Bold.otf.woff2 b/weblate/static/vendor/font-source/WOFF2/OTF/SourceSans3-Bold.otf.woff2 deleted file mode 100644 index 815b88e0636e..000000000000 Binary files a/weblate/static/vendor/font-source/WOFF2/OTF/SourceSans3-Bold.otf.woff2 and /dev/null differ diff --git a/weblate/static/vendor/font-source/WOFF2/OTF/SourceSans3-BoldIt.otf.woff2 b/weblate/static/vendor/font-source/WOFF2/OTF/SourceSans3-BoldIt.otf.woff2 deleted file mode 100644 index 89db47581631..000000000000 Binary files a/weblate/static/vendor/font-source/WOFF2/OTF/SourceSans3-BoldIt.otf.woff2 and /dev/null differ diff --git a/weblate/static/vendor/font-source/WOFF2/OTF/SourceSans3-ExtraLight.otf.woff2 b/weblate/static/vendor/font-source/WOFF2/OTF/SourceSans3-ExtraLight.otf.woff2 deleted file mode 100644 index 287712862a9c..000000000000 Binary files a/weblate/static/vendor/font-source/WOFF2/OTF/SourceSans3-ExtraLight.otf.woff2 and /dev/null differ diff --git a/weblate/static/vendor/font-source/WOFF2/OTF/SourceSans3-It.otf.woff2 b/weblate/static/vendor/font-source/WOFF2/OTF/SourceSans3-It.otf.woff2 deleted file mode 100644 index 351d44c5088b..000000000000 Binary files a/weblate/static/vendor/font-source/WOFF2/OTF/SourceSans3-It.otf.woff2 and /dev/null differ diff --git a/weblate/static/vendor/font-source/WOFF2/OTF/SourceSans3-Light.otf.woff2 b/weblate/static/vendor/font-source/WOFF2/OTF/SourceSans3-Light.otf.woff2 deleted file mode 100644 index 3a105af0156d..000000000000 Binary files a/weblate/static/vendor/font-source/WOFF2/OTF/SourceSans3-Light.otf.woff2 and /dev/null differ diff --git a/weblate/static/vendor/font-source/WOFF2/OTF/SourceSans3-Regular.otf.woff2 b/weblate/static/vendor/font-source/WOFF2/OTF/SourceSans3-Regular.otf.woff2 deleted file mode 100644 index 2326558a6cf4..000000000000 Binary files a/weblate/static/vendor/font-source/WOFF2/OTF/SourceSans3-Regular.otf.woff2 and /dev/null differ diff --git a/weblate/static/vendor/font-source/WOFF2/OTF/SourceSans3-Semibold.otf.woff2 b/weblate/static/vendor/font-source/WOFF2/OTF/SourceSans3-Semibold.otf.woff2 deleted file mode 100644 index 503c7c516fe3..000000000000 Binary files a/weblate/static/vendor/font-source/WOFF2/OTF/SourceSans3-Semibold.otf.woff2 and /dev/null differ diff --git a/weblate/static/vendor/font-source/source-code-pro.css b/weblate/static/vendor/font-source/source-code-pro.css deleted file mode 100644 index 0d9c6d38c085..000000000000 --- a/weblate/static/vendor/font-source/source-code-pro.css +++ /dev/null @@ -1,167 +0,0 @@ -@font-face{ - font-family: 'Source Code Pro'; -font-display: swap; - font-weight: 200; - font-style: normal; - font-stretch: normal; - src: url('./WOFF2/TTF/SourceCodePro-ExtraLight.ttf.woff2') format('woff2'), - url('./WOFF/OTF/SourceCodePro-ExtraLight.otf.woff') format('woff'), - url('./OTF/SourceCodePro-ExtraLight.otf') format('opentype'), - url('./TTF/SourceCodePro-ExtraLight.ttf') format('truetype'); -} - -@font-face{ - font-family: 'Source Code Pro'; -font-display: swap; - font-weight: 200; - font-style: italic; - font-stretch: normal; - src: url('./WOFF2/TTF/SourceCodePro-ExtraLightIt.ttf.woff2') format('woff2'), - url('./WOFF/OTF/SourceCodePro-ExtraLightIt.otf.woff') format('woff'), - url('./OTF/SourceCodePro-ExtraLightIt.otf') format('opentype'), - url('./TTF/SourceCodePro-ExtraLightIt.ttf') format('truetype'); -} - -@font-face{ - font-family: 'Source Code Pro'; -font-display: swap; - font-weight: 300; - font-style: normal; - font-stretch: normal; - src: url('./WOFF2/TTF/SourceCodePro-Light.ttf.woff2') format('woff2'), - url('./WOFF/OTF/SourceCodePro-Light.otf.woff') format('woff'), - url('./OTF/SourceCodePro-Light.otf') format('opentype'), - url('./TTF/SourceCodePro-Light.ttf') format('truetype'); -} - -@font-face{ - font-family: 'Source Code Pro'; -font-display: swap; - font-weight: 300; - font-style: italic; - font-stretch: normal; - src: url('./WOFF2/TTF/SourceCodePro-LightIt.ttf.woff2') format('woff2'), - url('./WOFF/OTF/SourceCodePro-LightIt.otf.woff') format('woff'), - url('./OTF/SourceCodePro-LightIt.otf') format('opentype'), - url('./TTF/SourceCodePro-LightIt.ttf') format('truetype'); -} - -@font-face{ - font-family: 'Source Code Pro'; -font-display: swap; - font-weight: 400; - font-style: normal; - font-stretch: normal; - src: url('./WOFF2/TTF/SourceCodePro-Regular.ttf.woff2') format('woff2'), - url('./WOFF/OTF/SourceCodePro-Regular.otf.woff') format('woff'), - url('./OTF/SourceCodePro-Regular.otf') format('opentype'), - url('./TTF/SourceCodePro-Regular.ttf') format('truetype'); -} - -@font-face{ - font-family: 'Source Code Pro'; -font-display: swap; - font-weight: 400; - font-style: italic; - font-stretch: normal; - src: url('./WOFF2/TTF/SourceCodePro-It.ttf.woff2') format('woff2'), - url('./WOFF/OTF/SourceCodePro-It.otf.woff') format('woff'), - url('./OTF/SourceCodePro-It.otf') format('opentype'), - url('./TTF/SourceCodePro-It.ttf') format('truetype'); -} - -@font-face{ - font-family: 'Source Code Pro'; -font-display: swap; - font-weight: 500; - font-style: normal; - font-stretch: normal; - src: url('./WOFF2/TTF/SourceCodePro-Medium.ttf.woff2') format('woff2'), - url('./WOFF/OTF/SourceCodePro-Medium.otf.woff') format('woff'), - url('./OTF/SourceCodePro-Medium.otf') format('opentype'), - url('./TTF/SourceCodePro-Medium.ttf') format('truetype'); -} - -@font-face{ - font-family: 'Source Code Pro'; -font-display: swap; - font-weight: 500; - font-style: italic; - font-stretch: normal; - src: url('./WOFF2/TTF/SourceCodePro-MediumIt.ttf.woff2') format('woff2'), - url('./WOFF/OTF/SourceCodePro-MediumIt.otf.woff') format('woff'), - url('./OTF/SourceCodePro-MediumIt.otf') format('opentype'), - url('./TTF/SourceCodePro-MediumIt.ttf') format('truetype'); -} - -@font-face{ - font-family: 'Source Code Pro'; -font-display: swap; - font-weight: 600; - font-style: normal; - font-stretch: normal; - src: url('./WOFF2/TTF/SourceCodePro-Semibold.ttf.woff2') format('woff2'), - url('./WOFF/OTF/SourceCodePro-Semibold.otf.woff') format('woff'), - url('./OTF/SourceCodePro-Semibold.otf') format('opentype'), - url('./TTF/SourceCodePro-Semibold.ttf') format('truetype'); -} - -@font-face{ - font-family: 'Source Code Pro'; -font-display: swap; - font-weight: 600; - font-style: italic; - font-stretch: normal; - src: url('./WOFF2/TTF/SourceCodePro-SemiboldIt.ttf.woff2') format('woff2'), - url('./WOFF/OTF/SourceCodePro-SemiboldIt.otf.woff') format('woff'), - url('./OTF/SourceCodePro-SemiboldIt.otf') format('opentype'), - url('./TTF/SourceCodePro-SemiboldIt.ttf') format('truetype'); -} - -@font-face{ - font-family: 'Source Code Pro'; -font-display: swap; - font-weight: 700; - font-style: normal; - font-stretch: normal; - src: url('./WOFF2/TTF/SourceCodePro-Bold.ttf.woff2') format('woff2'), - url('./WOFF/OTF/SourceCodePro-Bold.otf.woff') format('woff'), - url('./OTF/SourceCodePro-Bold.otf') format('opentype'), - url('./TTF/SourceCodePro-Bold.ttf') format('truetype'); -} - -@font-face{ - font-family: 'Source Code Pro'; -font-display: swap; - font-weight: 700; - font-style: italic; - font-stretch: normal; - src: url('./WOFF2/TTF/SourceCodePro-BoldIt.ttf.woff2') format('woff2'), - url('./WOFF/OTF/SourceCodePro-BoldIt.otf.woff') format('woff'), - url('./OTF/SourceCodePro-BoldIt.otf') format('opentype'), - url('./TTF/SourceCodePro-BoldIt.ttf') format('truetype'); -} - -@font-face{ - font-family: 'Source Code Pro'; -font-display: swap; - font-weight: 900; - font-style: normal; - font-stretch: normal; - src: url('./WOFF2/TTF/SourceCodePro-Black.ttf.woff2') format('woff2'), - url('./WOFF/OTF/SourceCodePro-Black.otf.woff') format('woff'), - url('./OTF/SourceCodePro-Black.otf') format('opentype'), - url('./TTF/SourceCodePro-Black.ttf') format('truetype'); -} - -@font-face{ - font-family: 'Source Code Pro'; -font-display: swap; - font-weight: 900; - font-style: italic; - font-stretch: normal; - src: url('./WOFF2/TTF/SourceCodePro-BlackIt.ttf.woff2') format('woff2'), - url('./WOFF/OTF/SourceCodePro-BlackIt.otf.woff') format('woff'), - url('./OTF/SourceCodePro-BlackIt.otf') format('opentype'), - url('./TTF/SourceCodePro-BlackIt.ttf') format('truetype'); -} diff --git a/weblate/static/vendor/font-source/source-sans-3.css b/weblate/static/vendor/font-source/source-sans-3.css deleted file mode 100644 index 8ef0249454ff..000000000000 --- a/weblate/static/vendor/font-source/source-sans-3.css +++ /dev/null @@ -1,119 +0,0 @@ -@font-face{ - font-family: 'Source Sans 3'; -font-display: swap; - font-weight: 200; - font-style: normal; - font-stretch: normal; - src: url('WOFF2/TTF/SourceSans3-ExtraLight.ttf.woff2') format('woff2'), - url('WOFF/OTF/SourceSans3-ExtraLight.otf.woff') format('woff'); -} - -@font-face{ - font-family: 'Source Sans 3'; -font-display: swap; - font-weight: 200; - font-style: italic; - font-stretch: normal; - src: url('WOFF2/TTF/SourceSans3-ExtraLightIt.ttf.woff2') format('woff2'), - url('WOFF/OTF/SourceSans3-ExtraLightIt.otf.woff') format('woff'); -} - -@font-face{ - font-family: 'Source Sans 3'; -font-display: swap; - font-weight: 300; - font-style: normal; - font-stretch: normal; - src: url('WOFF2/TTF/SourceSans3-Light.ttf.woff2') format('woff2'), - url('WOFF/OTF/SourceSans3-Light.otf.woff') format('woff'); -} - -@font-face{ - font-family: 'Source Sans 3'; -font-display: swap; - font-weight: 300; - font-style: italic; - font-stretch: normal; - src: url('WOFF2/TTF/SourceSans3-LightIt.ttf.woff2') format('woff2'), - url('WOFF/OTF/SourceSans3-LightIt.otf.woff') format('woff'); -} - -@font-face{ - font-family: 'Source Sans 3'; -font-display: swap; - font-weight: 400; - font-style: normal; - font-stretch: normal; - src: url('WOFF2/TTF/SourceSans3-Regular.ttf.woff2') format('woff2'), - url('WOFF/OTF/SourceSans3-Regular.otf.woff') format('woff'); -} - -@font-face{ - font-family: 'Source Sans 3'; -font-display: swap; - font-weight: 400; - font-style: italic; - font-stretch: normal; - src: url('WOFF2/TTF/SourceSans3-It.ttf.woff2') format('woff2'), - url('WOFF/OTF/SourceSans3-It.otf.woff') format('woff'); -} - -@font-face{ - font-family: 'Source Sans 3'; -font-display: swap; - font-weight: 600; - font-style: normal; - font-stretch: normal; - src: url('WOFF2/TTF/SourceSans3-Semibold.ttf.woff2') format('woff2'), - url('WOFF/OTF/SourceSans3-Semibold.otf.woff') format('woff'); -} - -@font-face{ - font-family: 'Source Sans 3'; -font-display: swap; - font-weight: 600; - font-style: italic; - font-stretch: normal; - src: url('WOFF2/TTF/SourceSans3-SemiboldIt.ttf.woff2') format('woff2'), - url('WOFF/OTF/SourceSans3-SemiboldIt.otf.woff') format('woff'); -} - -@font-face{ - font-family: 'Source Sans 3'; -font-display: swap; - font-weight: 700; - font-style: normal; - font-stretch: normal; - src: url('WOFF2/TTF/SourceSans3-Bold.ttf.woff2') format('woff2'), - url('WOFF/OTF/SourceSans3-Bold.otf.woff') format('woff'); -} - -@font-face{ - font-family: 'Source Sans 3'; -font-display: swap; - font-weight: 700; - font-style: italic; - font-stretch: normal; - src: url('WOFF2/TTF/SourceSans3-BoldIt.ttf.woff2') format('woff2'), - url('WOFF/OTF/SourceSans3-BoldIt.otf.woff') format('woff'); -} - -@font-face{ - font-family: 'Source Sans 3'; -font-display: swap; - font-weight: 900; - font-style: normal; - font-stretch: normal; - src: url('WOFF2/TTF/SourceSans3-Black.ttf.woff2') format('woff2'), - url('WOFF/OTF/SourceSans3-Black.otf.woff') format('woff'); -} - -@font-face{ - font-family: 'Source Sans 3'; -font-display: swap; - font-weight: 900; - font-style: italic; - font-stretch: normal; - src: url('WOFF2/TTF/SourceSans3-BlackIt.ttf.woff2') format('woff2'), - url('WOFF/OTF/SourceSans3-BlackIt.otf.woff') format('woff'); -} diff --git a/weblate/templates/drf_spectacular/redoc.html b/weblate/templates/drf_spectacular/redoc.html index f0fcff9f5fee..2dbe0fa3affb 100644 --- a/weblate/templates/drf_spectacular/redoc.html +++ b/weblate/templates/drf_spectacular/redoc.html @@ -12,15 +12,8 @@ - {% if fonts_cdn_url %} - - - {% else %} - - - {% endif %} + -{% else %} - -{% endif %} + diff --git a/weblate/trans/tests/test_selenium.py b/weblate/trans/tests/test_selenium.py index e53e1bb6159c..d93eef122aa8 100644 --- a/weblate/trans/tests/test_selenium.py +++ b/weblate/trans/tests/test_selenium.py @@ -63,7 +63,9 @@ SOURCE_FONT = os.path.join( os.path.dirname(os.path.dirname(os.path.dirname(__file__))), "static", + "js", "vendor", + "fonts", "font-source", "TTF", "SourceSans3-Bold.ttf",