feature: added fonts

This commit is contained in:
NoriDev 2022-09-02 21:19:41 +09:00
parent f74c72d6de
commit c260e411c5
4 changed files with 22 additions and 6 deletions

View file

@ -1,5 +1,8 @@
@import url("https://cdn.jsdelivr.net/npm/jetbrains-mono/css/jetbrains-mono.css");
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard-jp.css");
* {
font-family: Fira code, Fira Mono, Consolas, Menlo, Courier, monospace;
font-family: "JetBrains Mono", "Pretendard JP", Fira code, Fira Mono, Consolas, Menlo, Courier, monospace;
}
html {

View file

@ -171,8 +171,11 @@
<code>${JSON.stringify(details)}</code>`;
errorsElement.appendChild(detailsElement);
addStyle(`
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard-jp.css");
@import url("https://cdn.jsdelivr.net/npm/jetbrains-mono/css/jetbrains-mono.css");
* {
font-family: BIZ UDGothic, Roboto, HelveticaNeue, Arial, sans-serif;
font-family: "Pretendard JP", BIZ UDGothic, Roboto, HelveticaNeue, Arial, sans-serif;
}
#misskey_app,
@ -255,7 +258,7 @@
}
code {
font-family: Fira, FiraCode, monospace;
font-family: "JetBrains Mono", Fira, FiraCode, monospace;
}
details {

View file

@ -1,5 +1,8 @@
@import url("https://cdn.jsdelivr.net/npm/jetbrains-mono/css/jetbrains-mono.css");
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard-jp.css");
* {
font-family: Fira code, Fira Mono, Consolas, Menlo, Courier, monospace;
font-family: "Pretendard JP", "JetBrains Mono", Fira code, Fira Mono, Consolas, Menlo, Courier, monospace;
}
html {

View file

@ -1,4 +1,6 @@
@charset "utf-8";
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard-jp.css");
@import url("https://cdn.jsdelivr.net/npm/jetbrains-mono/css/jetbrains-mono.css");
:root {
--radius: 12px;
@ -29,7 +31,7 @@ html {
accent-color: var(--accent);
overflow: auto;
overflow-wrap: break-word;
font-family: "BIZ UDGothic", Roboto, HelveticaNeue, Arial, sans-serif;
font-family: "Pretendard JP", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, "Helvetica Neue", "Segoe UI", "Hiragino Sans", "Apple SD Gothic Neo", Meiryo, "Noto Sans JP", "Noto Sans KR", "Malgun Gothic", Osaka, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif, "JetBrains Mono";
font-size: 14px;
line-height: 1.35;
text-size-adjust: 100%;
@ -467,7 +469,7 @@ hr {
}
._monospace {
font-family: Fira code, Fira Mono, Consolas, Menlo, Courier, monospace !important;
font-family: "JetBrains Mono", "Pretendard JP", Fira code, Fira Mono, Consolas, Menlo, Courier, monospace !important;
}
._code {
@ -479,6 +481,11 @@ hr {
padding: 5px;
}
code[class*="language-"],
pre[class*="language-"] {
font-family: "JetBrains Mono", "Pretendard JP", Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace !important;
}
.prism-editor__textarea:focus {
outline: none;
}