add: outfit font to replace product sans

This commit is contained in:
RainyXeon
2024-08-12 12:40:36 +07:00
committed by ThePedroo
parent b59b4f4a72
commit f38e78bad7
9 changed files with 11 additions and 18 deletions

View File

@@ -204,11 +204,10 @@ androidComponents.onVariants { variant ->
set.add(Pair(root.file("webroot/css/index.css").asFile, null))
set.add(Pair(root.file("webroot/css/icons.css").asFile, null))
set.add(Pair(root.file("webroot/css/fonts.css").asFile, null))
set.add(Pair(root.file("webroot/css/error.css").asFile, null))
set.add(Pair(root.file("webroot/fonts/ProductSans-Italic.ttf").asFile, null))
set.add(Pair(root.file("webroot/fonts/ProductSans-Regular.ttf").asFile, null))
set.add(Pair(root.file("webroot/fonts/font.ttf").asFile, null))
set.add(Pair(root.file("webroot/fonts/outfit.ttf").asFile, null))
set.add(Pair(root.file("webroot/assets/mark.svg").asFile, null))
set.add(Pair(root.file("webroot/assets/tick.svg").asFile, null))

View File

@@ -145,12 +145,11 @@ extract "$ZIPFILE" 'webroot/js/smallPage/theme.js' "$MODPATH/webroot/js/smallPag
extract "$ZIPFILE" 'webroot/js/switcher/fontChanger.js' "$MODPATH/webroot/js/switcher" true
extract "$ZIPFILE" 'webroot/css/index.css' "$MODPATH/webroot/css" true
extract "$ZIPFILE" 'webroot/css/fonts.css' "$MODPATH/webroot/css" true
extract "$ZIPFILE" 'webroot/css/icons.css' "$MODPATH/webroot/css" true
extract "$ZIPFILE" 'webroot/css/error.css' "$MODPATH/webroot/css" true
extract "$ZIPFILE" 'webroot/fonts/ProductSans-Italic.ttf' "$MODPATH/webroot/fonts" true
extract "$ZIPFILE" 'webroot/fonts/ProductSans-Regular.ttf' "$MODPATH/webroot/fonts" true
extract "$ZIPFILE" 'webroot/fonts/font.ttf' "$MODPATH/webroot/fonts" true
extract "$ZIPFILE" 'webroot/fonts/outfit.css' "$MODPATH/webroot/fonts" true
for lang in en_US ja_JP pt_BR ro_RO ru_RU vi_VN zh_CN zh_TW; do
extract "$ZIPFILE" "webroot/lang/${lang}.json" "$MODPATH/webroot/lang" true

View File

@@ -1,9 +0,0 @@
@font-face {
font-family: "ProductSans Regular";
src: url("../fonts/ProductSans-Regular.ttf");
}
@font-face {
font-family: "ProductSans Italic";
src: url("../fonts/ProductSans-Regular.ttf");
}

View File

@@ -15,7 +15,7 @@
/* Locked Color */
--lock-desc: #c9c9c9;
--lock: #fff;
--font-family: 'ProductSans Regular', 'ProductSans Italic', sans-serif;
--font-family: 'Outfit', sans-serif;
}
* {
@@ -365,7 +365,7 @@ input:checked + .slider:before {
animation: openNav 0.15s;
}
@media only screen and (min-width: 600px) {
@media (min-width:961px) {
.navbar {
background-color: var(--desktop-navbar);
transform: scale(0.85);

Binary file not shown.

BIN
webroot/fonts/font.ttf Normal file

Binary file not shown.

4
webroot/fonts/outfit.css Normal file
View File

@@ -0,0 +1,4 @@
@font-face {
font-family: "Outfit";
src: url("./font.ttf");
}

View File

@@ -6,7 +6,7 @@
<meta name="viewport" content="viewport-fit=cover" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="css/fonts.css">
<link rel="stylesheet" href="fonts/outfit.css">
<link rel="stylesheet" href="css/index.css">
<link rel="stylesheet" href="css/error.css">
<link rel="stylesheet" href="css/icons.css">