mirror of
https://github.com/streetwriters/notesnook.git
synced 2026-02-23 19:49:56 +01:00
chore: use ttf fonts on mobile
This commit is contained in:
@@ -7,7 +7,8 @@
|
||||
@font-face {
|
||||
font-family: "Hack";
|
||||
src: url("fonts/hack-regular.woff2") format("woff2"),
|
||||
url("fonts/hack-regular.woff") format("woff");
|
||||
url("fonts/hack-regular.woff") format("woff"),
|
||||
url("fonts/hack-regular.ttf") format("truetype");
|
||||
font-weight: 400;
|
||||
font-style: normal;
|
||||
}
|
||||
@@ -15,7 +16,8 @@
|
||||
@font-face {
|
||||
font-family: "Hack";
|
||||
src: url("fonts/hack-bold.woff2") format("woff2"),
|
||||
url("fonts/hack-bold.woff") format("woff");
|
||||
url("fonts/hack-bold.woff") format("woff"),
|
||||
url("fonts/hack-bold.ttf") format("truetype");
|
||||
font-weight: 700;
|
||||
font-style: normal;
|
||||
}
|
||||
@@ -23,7 +25,8 @@
|
||||
@font-face {
|
||||
font-family: "Hack";
|
||||
src: url("fonts/hack-italic.woff2") format("woff2"),
|
||||
url("fonts/hack-italic.woff") format("woff");
|
||||
url("fonts/hack-italic.woff") format("woff"),
|
||||
url("fonts/hack-italic.ttf") format("truetype");
|
||||
font-weight: 400;
|
||||
font-style: italic;
|
||||
}
|
||||
@@ -31,7 +34,8 @@
|
||||
@font-face {
|
||||
font-family: "Hack";
|
||||
src: url("fonts/hack-bolditalic.woff2") format("woff2"),
|
||||
url("fonts/hack-bolditalic.woff") format("woff");
|
||||
url("fonts/hack-bolditalic.woff") format("woff"),
|
||||
url("fonts/hack-bolditalic.ttf") format("truetype");
|
||||
font-weight: 700;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
33
packages/editor/styles/fonts.mobile.css
Normal file
33
packages/editor/styles/fonts.mobile.css
Normal file
@@ -0,0 +1,33 @@
|
||||
/*!
|
||||
* Hack typeface https://github.com/source-foundry/Hack
|
||||
* License: https://github.com/source-foundry/Hack/blob/master/LICENSE.md
|
||||
*/
|
||||
/* FONT PATHS
|
||||
* -------------------------- */
|
||||
@font-face {
|
||||
font-family: "Hack";
|
||||
src: url("fonts/hack-regular.ttf") format("truetype");
|
||||
font-weight: 400;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: "Hack";
|
||||
src: url("fonts/hack-bold.ttf") format("truetype");
|
||||
font-weight: 700;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: "Hack";
|
||||
src: url("fonts/hack-italic.ttf") format("truetype");
|
||||
font-weight: 400;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: "Hack";
|
||||
src: url("fonts/hack-bolditalic.ttf") format("truetype");
|
||||
font-weight: 700;
|
||||
font-style: italic;
|
||||
}
|
||||
BIN
packages/editor/styles/fonts/hack-bold.ttf
Normal file
BIN
packages/editor/styles/fonts/hack-bold.ttf
Normal file
Binary file not shown.
BIN
packages/editor/styles/fonts/hack-bolditalic.ttf
Normal file
BIN
packages/editor/styles/fonts/hack-bolditalic.ttf
Normal file
Binary file not shown.
BIN
packages/editor/styles/fonts/hack-italic.ttf
Normal file
BIN
packages/editor/styles/fonts/hack-italic.ttf
Normal file
Binary file not shown.
BIN
packages/editor/styles/fonts/hack-regular.ttf
Normal file
BIN
packages/editor/styles/fonts/hack-regular.ttf
Normal file
Binary file not shown.
160
packages/editor/styles/katex-fonts.css
Normal file
160
packages/editor/styles/katex-fonts.css
Normal file
@@ -0,0 +1,160 @@
|
||||
@font-face {
|
||||
font-family: KaTeX_AMS;
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
src: url(fonts/KaTeX_AMS-Regular.woff2) format("woff2"),
|
||||
url(fonts/KaTeX_AMS-Regular.woff) format("woff"),
|
||||
url(fonts/KaTeX_AMS-Regular.ttf) format("truetype");
|
||||
}
|
||||
@font-face {
|
||||
font-family: KaTeX_Caligraphic;
|
||||
font-style: normal;
|
||||
font-weight: 700;
|
||||
src: url(fonts/KaTeX_Caligraphic-Bold.woff2) format("woff2"),
|
||||
url(fonts/KaTeX_Caligraphic-Bold.woff) format("woff"),
|
||||
url(fonts/KaTeX_Caligraphic-Bold.ttf) format("truetype");
|
||||
}
|
||||
@font-face {
|
||||
font-family: KaTeX_Caligraphic;
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
src: url(fonts/KaTeX_Caligraphic-Regular.woff2) format("woff2"),
|
||||
url(fonts/KaTeX_Caligraphic-Regular.woff) format("woff"),
|
||||
url(fonts/KaTeX_Caligraphic-Regular.ttf) format("truetype");
|
||||
}
|
||||
@font-face {
|
||||
font-family: KaTeX_Fraktur;
|
||||
font-style: normal;
|
||||
font-weight: 700;
|
||||
src: url(fonts/KaTeX_Fraktur-Bold.woff2) format("woff2"),
|
||||
url(fonts/KaTeX_Fraktur-Bold.woff) format("woff"),
|
||||
url(fonts/KaTeX_Fraktur-Bold.ttf) format("truetype");
|
||||
}
|
||||
@font-face {
|
||||
font-family: KaTeX_Fraktur;
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
src: url(fonts/KaTeX_Fraktur-Regular.woff2) format("woff2"),
|
||||
url(fonts/KaTeX_Fraktur-Regular.woff) format("woff"),
|
||||
url(fonts/KaTeX_Fraktur-Regular.ttf) format("truetype");
|
||||
}
|
||||
@font-face {
|
||||
font-family: KaTeX_Main;
|
||||
font-style: normal;
|
||||
font-weight: 700;
|
||||
src: url(fonts/KaTeX_Main-Bold.woff2) format("woff2"),
|
||||
url(fonts/KaTeX_Main-Bold.woff) format("woff"),
|
||||
url(fonts/KaTeX_Main-Bold.ttf) format("truetype");
|
||||
}
|
||||
@font-face {
|
||||
font-family: KaTeX_Main;
|
||||
font-style: italic;
|
||||
font-weight: 700;
|
||||
src: url(fonts/KaTeX_Main-BoldItalic.woff2) format("woff2"),
|
||||
url(fonts/KaTeX_Main-BoldItalic.woff) format("woff"),
|
||||
url(fonts/KaTeX_Main-BoldItalic.ttf) format("truetype");
|
||||
}
|
||||
@font-face {
|
||||
font-family: KaTeX_Main;
|
||||
font-style: italic;
|
||||
font-weight: 400;
|
||||
src: url(fonts/KaTeX_Main-Italic.woff2) format("woff2"),
|
||||
url(fonts/KaTeX_Main-Italic.woff) format("woff"),
|
||||
url(fonts/KaTeX_Main-Italic.ttf) format("truetype");
|
||||
}
|
||||
@font-face {
|
||||
font-family: KaTeX_Main;
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
src: url(fonts/KaTeX_Main-Regular.woff2) format("woff2"),
|
||||
url(fonts/KaTeX_Main-Regular.woff) format("woff"),
|
||||
url(fonts/KaTeX_Main-Regular.ttf) format("truetype");
|
||||
}
|
||||
@font-face {
|
||||
font-family: KaTeX_Math;
|
||||
font-style: italic;
|
||||
font-weight: 700;
|
||||
src: url(fonts/KaTeX_Math-BoldItalic.woff2) format("woff2"),
|
||||
url(fonts/KaTeX_Math-BoldItalic.woff) format("woff"),
|
||||
url(fonts/KaTeX_Math-BoldItalic.ttf) format("truetype");
|
||||
}
|
||||
@font-face {
|
||||
font-family: KaTeX_Math;
|
||||
font-style: italic;
|
||||
font-weight: 400;
|
||||
src: url(fonts/KaTeX_Math-Italic.woff2) format("woff2"),
|
||||
url(fonts/KaTeX_Math-Italic.woff) format("woff"),
|
||||
url(fonts/KaTeX_Math-Italic.ttf) format("truetype");
|
||||
}
|
||||
@font-face {
|
||||
font-family: "KaTeX_SansSerif";
|
||||
font-style: normal;
|
||||
font-weight: 700;
|
||||
src: url(fonts/KaTeX_SansSerif-Bold.woff2) format("woff2"),
|
||||
url(fonts/KaTeX_SansSerif-Bold.woff) format("woff"),
|
||||
url(fonts/KaTeX_SansSerif-Bold.ttf) format("truetype");
|
||||
}
|
||||
@font-face {
|
||||
font-family: "KaTeX_SansSerif";
|
||||
font-style: italic;
|
||||
font-weight: 400;
|
||||
src: url(fonts/KaTeX_SansSerif-Italic.woff2) format("woff2"),
|
||||
url(fonts/KaTeX_SansSerif-Italic.woff) format("woff"),
|
||||
url(fonts/KaTeX_SansSerif-Italic.ttf) format("truetype");
|
||||
}
|
||||
@font-face {
|
||||
font-family: "KaTeX_SansSerif";
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
src: url(fonts/KaTeX_SansSerif-Regular.woff2) format("woff2"),
|
||||
url(fonts/KaTeX_SansSerif-Regular.woff) format("woff"),
|
||||
url(fonts/KaTeX_SansSerif-Regular.ttf) format("truetype");
|
||||
}
|
||||
@font-face {
|
||||
font-family: KaTeX_Script;
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
src: url(fonts/KaTeX_Script-Regular.woff2) format("woff2"),
|
||||
url(fonts/KaTeX_Script-Regular.woff) format("woff"),
|
||||
url(fonts/KaTeX_Script-Regular.ttf) format("truetype");
|
||||
}
|
||||
@font-face {
|
||||
font-family: KaTeX_Size1;
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
src: url(fonts/KaTeX_Size1-Regular.woff2) format("woff2"),
|
||||
url(fonts/KaTeX_Size1-Regular.woff) format("woff"),
|
||||
url(fonts/KaTeX_Size1-Regular.ttf) format("truetype");
|
||||
}
|
||||
@font-face {
|
||||
font-family: KaTeX_Size2;
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
src: url(fonts/KaTeX_Size2-Regular.woff2) format("woff2"),
|
||||
url(fonts/KaTeX_Size2-Regular.woff) format("woff"),
|
||||
url(fonts/KaTeX_Size2-Regular.ttf) format("truetype");
|
||||
}
|
||||
@font-face {
|
||||
font-family: KaTeX_Size3;
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
src: url(fonts/KaTeX_Size3-Regular.woff2) format("woff2"),
|
||||
url(fonts/KaTeX_Size3-Regular.woff) format("woff"),
|
||||
url(fonts/KaTeX_Size3-Regular.ttf) format("truetype");
|
||||
}
|
||||
@font-face {
|
||||
font-family: KaTeX_Size4;
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
src: url(fonts/KaTeX_Size4-Regular.woff2) format("woff2"),
|
||||
url(fonts/KaTeX_Size4-Regular.woff) format("woff"),
|
||||
url(fonts/KaTeX_Size4-Regular.ttf) format("truetype");
|
||||
}
|
||||
@font-face {
|
||||
font-family: KaTeX_Typewriter;
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
src: url(fonts/KaTeX_Typewriter-Regular.woff2) format("woff2"),
|
||||
url(fonts/KaTeX_Typewriter-Regular.woff) format("woff"),
|
||||
url(fonts/KaTeX_Typewriter-Regular.ttf) format("truetype");
|
||||
}
|
||||
120
packages/editor/styles/katex-fonts.mobile.css
Normal file
120
packages/editor/styles/katex-fonts.mobile.css
Normal file
@@ -0,0 +1,120 @@
|
||||
@font-face {
|
||||
font-family: KaTeX_AMS;
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
src: url(fonts/KaTeX_AMS-Regular.ttf) format("truetype");
|
||||
}
|
||||
@font-face {
|
||||
font-family: KaTeX_Caligraphic;
|
||||
font-style: normal;
|
||||
font-weight: 700;
|
||||
src: url(fonts/KaTeX_Caligraphic-Bold.ttf) format("truetype");
|
||||
}
|
||||
@font-face {
|
||||
font-family: KaTeX_Caligraphic;
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
src: url(fonts/KaTeX_Caligraphic-Regular.ttf) format("truetype");
|
||||
}
|
||||
@font-face {
|
||||
font-family: KaTeX_Fraktur;
|
||||
font-style: normal;
|
||||
font-weight: 700;
|
||||
src: url(fonts/KaTeX_Fraktur-Bold.ttf) format("truetype");
|
||||
}
|
||||
@font-face {
|
||||
font-family: KaTeX_Fraktur;
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
src: url(fonts/KaTeX_Fraktur-Regular.ttf) format("truetype");
|
||||
}
|
||||
@font-face {
|
||||
font-family: KaTeX_Main;
|
||||
font-style: normal;
|
||||
font-weight: 700;
|
||||
src: url(fonts/KaTeX_Main-Bold.ttf) format("truetype");
|
||||
}
|
||||
@font-face {
|
||||
font-family: KaTeX_Main;
|
||||
font-style: italic;
|
||||
font-weight: 700;
|
||||
src: url(fonts/KaTeX_Main-BoldItalic.ttf) format("truetype");
|
||||
}
|
||||
@font-face {
|
||||
font-family: KaTeX_Main;
|
||||
font-style: italic;
|
||||
font-weight: 400;
|
||||
src: url(fonts/KaTeX_Main-Italic.ttf) format("truetype");
|
||||
}
|
||||
@font-face {
|
||||
font-family: KaTeX_Main;
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
src: url(fonts/KaTeX_Main-Regular.ttf) format("truetype");
|
||||
}
|
||||
@font-face {
|
||||
font-family: KaTeX_Math;
|
||||
font-style: italic;
|
||||
font-weight: 700;
|
||||
src: url(fonts/KaTeX_Math-BoldItalic.ttf) format("truetype");
|
||||
}
|
||||
@font-face {
|
||||
font-family: KaTeX_Math;
|
||||
font-style: italic;
|
||||
font-weight: 400;
|
||||
src: url(fonts/KaTeX_Math-Italic.ttf) format("truetype");
|
||||
}
|
||||
@font-face {
|
||||
font-family: "KaTeX_SansSerif";
|
||||
font-style: normal;
|
||||
font-weight: 700;
|
||||
src: url(fonts/KaTeX_SansSerif-Bold.ttf) format("truetype");
|
||||
}
|
||||
@font-face {
|
||||
font-family: "KaTeX_SansSerif";
|
||||
font-style: italic;
|
||||
font-weight: 400;
|
||||
src: url(fonts/KaTeX_SansSerif-Italic.ttf) format("truetype");
|
||||
}
|
||||
@font-face {
|
||||
font-family: "KaTeX_SansSerif";
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
src: url(fonts/KaTeX_SansSerif-Regular.ttf) format("truetype");
|
||||
}
|
||||
@font-face {
|
||||
font-family: KaTeX_Script;
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
src: url(fonts/KaTeX_Script-Regular.ttf) format("truetype");
|
||||
}
|
||||
@font-face {
|
||||
font-family: KaTeX_Size1;
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
src: url(fonts/KaTeX_Size1-Regular.ttf) format("truetype");
|
||||
}
|
||||
@font-face {
|
||||
font-family: KaTeX_Size2;
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
src: url(fonts/KaTeX_Size2-Regular.ttf) format("truetype");
|
||||
}
|
||||
@font-face {
|
||||
font-family: KaTeX_Size3;
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
src: url(fonts/KaTeX_Size3-Regular.ttf) format("truetype");
|
||||
}
|
||||
@font-face {
|
||||
font-family: KaTeX_Size4;
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
src: url(fonts/KaTeX_Size4-Regular.ttf) format("truetype");
|
||||
}
|
||||
@font-face {
|
||||
font-family: KaTeX_Typewriter;
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
src: url(fonts/KaTeX_Typewriter-Regular.ttf) format("truetype");
|
||||
}
|
||||
946
packages/editor/styles/katex.min.css
vendored
946
packages/editor/styles/katex.min.css
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user