A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
chore: use ttf font on mobile
ammarahm-ed5ffb774f436d
diff --git a/packages/editor-mobile/public/index.html b/packages/editor-mobile/public/index.htmlindex ab949fe9f..4e8eea3df 100644--- a/packages/editor-mobile/public/index.html+++ b/packages/editor-mobile/public/index.html@@ -1,59 +1,61 @@<!DOCTYPE html><html style="height: 100%" lang="en">+ <head>+ <meta charset="utf-8" />+ <link rel="icon" href="favicon.ico" />+ <meta+ name="viewport"+ content="width=device-width, initial-scale=1, maximum-scale=1"+ />+ <meta name="theme-color" content="#000000" />+ <link href="fonts.css" rel="stylesheet" />+ <style>+ body {+ height: 100%;+ font-family: "Open Sans";+ }-<head>- <meta charset="utf-8" />- <link rel="icon" href="favicon.ico" />- <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />- <meta name="theme-color" content="#000000" />- <link href="fonts.css" rel="stylesheet" />- <style>- body {- height: 100%;- font-family: "Open Sans";- }+ p {+ font-family: "Open Sans";+ /* color: var(--nn_pri) ## TODO: use fixed color */+ }- p {- font-family: "Open Sans";- /* color: var(--nn_pri) ## TODO: use fixed color */- }+ ::selection {+ color: white;+ background-color: var(--nn_accent);+ }- ::selection {- color: white;- background-color: var(--nn_accent);- }+ ::placeholder {+ color: var(--nn_placeholder);+ }- ::placeholder {- color: var(--nn_placeholder);- }+ p.is-editor-empty:first-child::before {+ color: var(--nn_placeholder) !important;+ }- p.is-editor-empty:first-child::before {- color: var(--nn_placeholder) !important;- }+ h1,+ h2,+ h3,+ h4,+ h5,+ h6 {+ font-family: "Open Sans";+ color: var(--nn_heading);+ }- h1,- h2,- h3,- h4,- h5,- h6 {- font-family: "Open Sans";- color: var(--nn_heading);- }-- #root {- height: 100%;- caret-color: var(--nn_accent);- display: flex;- }- </style>- <meta name="description" content="Notesnook editor for mobile" />- <!--+ #root {+ height: 100%;+ caret-color: var(--nn_accent);+ display: flex;+ }+ </style>+ <meta name="description" content="Notesnook editor for mobile" />+ <!--manifest.json provides metadata used when your web app is installed on auser's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/-->- <link rel="manifest" href="manifest.json" />- <!--+ <link rel="manifest" href="manifest.json" />+ <!--Notice the use of %PUBLIC_URL% in the tags above.It will be replaced with the URL of the `public` folder during the build.Only files inside the `public` folder can be referenced from the HTML.@@ -62,13 +64,13 @@work correctly both with client-side routing and a non-root public URL.Learn how to configure a non-root public URL by running `npm run build`.-->- <title>Notesnook editor</title>-</head>+ <title>Notesnook editor</title>+ </head>-<body>- <noscript>You need to enable JavaScript to run this app.</noscript>- <div id="root"></div>- <!--+ <body>+ <noscript>You need to enable JavaScript to run this app.</noscript>+ <div id="root"></div>+ <!--This HTML file is a template.If you open it directly in the browser, you will see an empty page.@@ -78,6 +80,5 @@To begin the development, run `npm start` or `yarn start`.To create a production bundle, use `npm run build` or `yarn build`.-->-</body>--</html>\ No newline at end of file+ </body>+</html>diff --git a/packages/editor-mobile/src/index.tsx b/packages/editor-mobile/src/index.tsxindex d6ce45eb5..53e10f64a 100644--- a/packages/editor-mobile/src/index.tsx+++ b/packages/editor-mobile/src/index.tsx@@ -5,7 +5,8 @@ import App from "./App";import reportWebVitals from "./reportWebVitals";import "notesnook-editor/styles/katex.min.css";import "notesnook-editor/styles/prism-theme.css";-import "notesnook-editor/styles/fonts.css";+import "notesnook-editor/styles/fonts.mobile.css";+import "notesnook-editor/styles/katexfonts.mobile.css";import "notesnook-editor/styles/styles.css";ReactDOM.render(