1
0
Fork 1
mirror of https://example.com synced 2024-11-23 10:36:39 +09:00

style: don't use Atkinson Hyperlegible by default

This commit is contained in:
naskya 2023-10-10 23:53:57 +09:00
parent 93c89da846
commit 15ffe6b00f
Signed by: naskya
GPG key ID: 712D413B3A9FED5C
7 changed files with 7 additions and 54 deletions

View file

@ -37,6 +37,8 @@
## 細かい変更点 ## 細かい変更点
- 標準のフォントを Atkinson Hyperlegible にする変更を取り消し
- フォントを変更したい場合は[このカスタム CSS](https://gitlab.com/LunarEclipse363/lunar-misskey-tweaks#setting-a-different-font) を使ってください
- 簡体中文の翻訳が存在しない項目では繁体中文の翻訳を用いるように(本家では逆) - 簡体中文の翻訳が存在しない項目では繁体中文の翻訳を用いるように(本家では逆)
- @sup39 さんが独自機能に使われているラベルの繁体中文訳を提供してくださったため - @sup39 さんが独自機能に使われているラベルの繁体中文訳を提供してくださったため
- オンラインステータスが非公開のアカウントにはステータスを表す丸印を表示しないように - オンラインステータスが非公開のアカウントにはステータスを表す丸印を表示しないように

View file

@ -1,18 +1,7 @@
/* atkinson-hyperlegible-regular - latin_latin-ext */
@font-face {
font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
font-family: "Atkinson Hyperlegible";
font-style: normal;
font-weight: 400;
src: url("/static-assets/fonts/atkinson-hyperlegible-v11-latin_latin-ext-regular.woff2")
format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
html { html {
background-color: var(--bg); background-color: var(--bg);
color: var(--fg); color: var(--fg);
} }
@media (prefers-color-scheme: dark) { @media (prefers-color-scheme: dark) {
html { html {
--bg: rgb(17, 17, 27); --bg: rgb(17, 17, 27);
@ -133,5 +122,5 @@ html {
height: 0; height: 0;
text-align: center; text-align: center;
padding-top: 100px; padding-top: 100px;
font-family: "Atkinson Hyperlegible", sans-serif; font-family: sans-serif;
} }

View file

@ -25,43 +25,6 @@
//--ad: rgb(255 169 0 / 10%); //--ad: rgb(255 169 0 / 10%);
} }
/* atkinson-hyperlegible-regular - latin_latin-ext */
@font-face {
font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
font-family: "Atkinson Hyperlegible";
font-style: normal;
font-weight: 400;
src: url("/static-assets/fonts/atkinson-hyperlegible-v11-latin_latin-ext-regular.woff2")
format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* atkinson-hyperlegible-italic - latin_latin-ext */
@font-face {
font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
font-family: "Atkinson Hyperlegible";
font-style: italic;
font-weight: 400;
src: url("/static-assets/fonts/atkinson-hyperlegible-v11-latin_latin-ext-italic.woff2")
format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* atkinson-hyperlegible-700 - latin_latin-ext */
@font-face {
font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
font-family: "Atkinson Hyperlegible";
font-style: normal;
font-weight: 700;
src: url("/static-assets/fonts/atkinson-hyperlegible-v11-latin_latin-ext-700.woff2")
format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* atkinson-hyperlegible-700italic - latin_latin-ext */
@font-face {
font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
font-family: "Atkinson Hyperlegible";
font-style: italic;
font-weight: 700;
src: url("/static-assets/fonts/atkinson-hyperlegible-v11-latin_latin-ext-700italic.woff2")
format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
::selection { ::selection {
color: #fff; color: #fff;
background-color: var(--accent); background-color: var(--accent);
@ -76,8 +39,7 @@ html {
accent-color: var(--accent); accent-color: var(--accent);
overflow: auto; overflow: auto;
overflow-wrap: break-word; overflow-wrap: break-word;
font-family: "Atkinson Hyperlegible", Roboto, HelveticaNeue, Arial, font-family: Roboto, HelveticaNeue, Arial, sans-serif;
sans-serif;
font-size: 14px; font-size: 14px;
line-height: 1.6; line-height: 1.6;
text-size-adjust: 100%; text-size-adjust: 100%;
@ -88,8 +50,8 @@ html {
-webkit-text-size-adjust: none; -webkit-text-size-adjust: none;
&.useCJKFont { &.useCJKFont {
font-family: "Hiragino Maru Gothic Pro", "BIZ UDGothic", font-family: "Hiragino Maru Gothic Pro", "BIZ UDGothic", Roboto,
"Atkinson Hyperlegible", Roboto, HelveticaNeue, Arial, sans-serif; HelveticaNeue, Arial, sans-serif;
} }
&.useSystemFont { &.useSystemFont {