From 3b37c3e90d5f749143cd5502bebeb285d51945b0 Mon Sep 17 00:00:00 2001 From: fly_mc Date: Wed, 27 Nov 2024 21:13:33 +0800 Subject: [PATCH] fix typo --- .../frontend/src/styles-font/chongxiseal.scss | 18 ++++++++++++++++++ ...er-gothic.scss => lxgw-marker-gothic.scss} | 0 .../{lgtw-wenkai.scss => lxgw-wenkai.scss} | 0 packages/frontend/src/styles-font/usual.scss | 19 ------------------- .../{zhuanti.scss => yishanbeizhuan.scss} | 5 +---- 5 files changed, 19 insertions(+), 23 deletions(-) create mode 100644 packages/frontend/src/styles-font/chongxiseal.scss rename packages/frontend/src/styles-font/{lgtw-marker-gothic.scss => lxgw-marker-gothic.scss} (100%) rename packages/frontend/src/styles-font/{lgtw-wenkai.scss => lxgw-wenkai.scss} (100%) delete mode 100644 packages/frontend/src/styles-font/usual.scss rename packages/frontend/src/styles-font/{zhuanti.scss => yishanbeizhuan.scss} (65%) diff --git a/packages/frontend/src/styles-font/chongxiseal.scss b/packages/frontend/src/styles-font/chongxiseal.scss new file mode 100644 index 000000000..95b4e5ec3 --- /dev/null +++ b/packages/frontend/src/styles-font/chongxiseal.scss @@ -0,0 +1,18 @@ +@font-face { + font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */ + font-family: 'YiShanBeiZhuanTi'; + font-style: normal; + font-weight: 400; + src: url('/static-assets/fonts/YiShanBeiZhuanTi.ttf') format('opentype'); +} +@font-face { + font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */ + font-family: "Chong Xi Small Seal"; + font-style: normal; + font-weight: 400; + src: url('/static-assets/fonts/chongxi_seal.woff2') format('woff2'); +} + +html.default-font-chongxiseal { + font-family: 'sharkey-theme-font-face', "Chong Xi Small Seal", 'YiShanBeiZhuanTi','Hiragino Maru Gothic Pro', "BIZ UDGothic", Roboto, HelveticaNeue, Arial, sans-serif; +} diff --git a/packages/frontend/src/styles-font/lgtw-marker-gothic.scss b/packages/frontend/src/styles-font/lxgw-marker-gothic.scss similarity index 100% rename from packages/frontend/src/styles-font/lgtw-marker-gothic.scss rename to packages/frontend/src/styles-font/lxgw-marker-gothic.scss diff --git a/packages/frontend/src/styles-font/lgtw-wenkai.scss b/packages/frontend/src/styles-font/lxgw-wenkai.scss similarity index 100% rename from packages/frontend/src/styles-font/lgtw-wenkai.scss rename to packages/frontend/src/styles-font/lxgw-wenkai.scss diff --git a/packages/frontend/src/styles-font/usual.scss b/packages/frontend/src/styles-font/usual.scss deleted file mode 100644 index edf6c311f..000000000 --- a/packages/frontend/src/styles-font/usual.scss +++ /dev/null @@ -1,19 +0,0 @@ -html.default-font-system-ui { - font-family: system-ui; -} - -html.default-font-misskey-biz { - font-family: "BIZ UDGothic", Roboto, HelveticaNeue, Arial, sans-serif; -} - -html.default-font-roboto { - font-family: Roboto, Arial, sans-serif; -} - -html.default-font-arial { - font-family: Arial, sans-serif; -} - -html.default-font-times { - font-family: 'Times New Roman', Times, serif; -} diff --git a/packages/frontend/src/styles-font/zhuanti.scss b/packages/frontend/src/styles-font/yishanbeizhuan.scss similarity index 65% rename from packages/frontend/src/styles-font/zhuanti.scss rename to packages/frontend/src/styles-font/yishanbeizhuan.scss index e14ae407a..dcb1481c5 100644 --- a/packages/frontend/src/styles-font/zhuanti.scss +++ b/packages/frontend/src/styles-font/yishanbeizhuan.scss @@ -14,8 +14,5 @@ } html.default-font-yishanbeizhuan { - font-family: 'YiShanBeiZhuanTi', "Chong Xi Small Seal",'Hiragino Maru Gothic Pro', "BIZ UDGothic", Roboto, HelveticaNeue, Arial, sans-serif; -} -html.default-font-chongxiseal { - font-family: "Chong Xi Small Seal", 'YiShanBeiZhuanTi','Hiragino Maru Gothic Pro', "BIZ UDGothic", Roboto, HelveticaNeue, Arial, sans-serif; + font-family: 'sharkey-theme-font-face', 'YiShanBeiZhuanTi', "Chong Xi Small Seal",'Hiragino Maru Gothic Pro', "BIZ UDGothic", Roboto, HelveticaNeue, Arial, sans-serif; }