Skip to content

Commit

Permalink
Package font files
Browse files Browse the repository at this point in the history
  • Loading branch information
Stuart Morris committed Jul 26, 2020
1 parent e23e21a commit 23ecb9c
Show file tree
Hide file tree
Showing 15 changed files with 104 additions and 43 deletions.
21 changes: 21 additions & 0 deletions LICENSE-3RD-PARTY
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

This license applies to files in dist/font.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Binary file added dist/font/woff/VictorMono-Bold.woff
Binary file not shown.
Binary file added dist/font/woff/VictorMono-BoldItalic.woff
Binary file not shown.
Binary file added dist/font/woff/VictorMono-Italic.woff
Binary file not shown.
Binary file added dist/font/woff/VictorMono-Regular.woff
Binary file not shown.
Binary file added dist/font/woff2/VictorMono-Bold.woff2
Binary file not shown.
Binary file added dist/font/woff2/VictorMono-BoldItalic.woff2
Binary file not shown.
Binary file added dist/font/woff2/VictorMono-Italic.woff2
Binary file not shown.
Binary file added dist/font/woff2/VictorMono-Regular.woff2
Binary file not shown.
70 changes: 70 additions & 0 deletions dist/theme.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
@font-face {
font-family: "Victor Mono";
src: url("font/woff2/VictorMono-Regular.font/woff2") format("font/woff2"),
url("font/woff/VictorMono-Regular.font/woff") format("font/woff");
font-weight: 400;
font-style: normal;
font-display: swap;
}

@font-face {
font-family: "Victor Mono";
src: url("font/woff2/VictorMono-Italic.font/woff2") format("font/woff2"),
url("font/woff/VictorMono-Italic.font/woff") format("font/woff");
font-weight: 400;
font-style: italic;
font-display: swap;
}

@font-face {
font-family: "Victor Mono";
src: url("font/woff2/VictorMono-Bold.font/woff2") format("font/woff2"),
url("font/woff/VictorMono-Bold.font/woff") format("font/woff");
font-weight: 700;
font-style: normal;
font-display: swap;
}

@font-face {
font-family: "Victor Mono";
src: url("font/woff2/VictorMono-BoldItalic.font/woff2") format("font/woff2"),
url("font/woff/VictorMono-BoldItalic.font/woff") format("font/woff");
font-weight: 700;
font-style: italic;
font-display: swap;
}

:root {
--sn-stylekit-monospace-font: 'Victor Mono', monospace;
--sn-stylekit-sans-serif-font: 'Victor Mono', sans-serif;
}

/* Plain Editor */
#note-text-editor {
font-family: 'Victor Mono', monospace !important;
}

/* Bold Editor */
#editor {
font-family: 'Victor Mono', monospace !important;
}

/* Markdown Minimalist, Markdown Pro (Edit) */
.CodeMirror {
font-family: 'Victor Mono', monospace !important;
}

/* Markdown Pro (Preview) */
.editor-preview-side {
font-family: 'Victor Mono', monospace !important;
}

/* Plus Editor */
.note-editable {
font-family: 'Victor Mono', monospace !important;
}

/* Task Editor */
div.task>textarea {
font-family: 'Victor Mono', monospace !important;
}
1 change: 1 addition & 0 deletions dist/theme.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 9 additions & 4 deletions ext.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,22 @@
---
metatype: json
---

{
"identifier": "org.stuartmorrisau.sn-victor-mono",
"name": "SN Victor Mono",
"content_type": "SN|Theme",
"area": "themes",
"version": "1.0.1",
"version": "1.0.2",
"description": "Replace all monospace and sans-serif fonts with Victor Mono.",
"url": "https://cdn.jsdelivr.net/gh/StuartMorrisAU/[email protected].1/theme.css",
"download_url": "https://github.com/StuartMorrisAU/sn-victor-mono/archive/v1.0.1.zip",
"url": "https://cdn.jsdelivr.net/gh/StuartMorrisAU/[email protected].2/dist/theme.min.css",
"download_url": "https://github.com/StuartMorrisAU/sn-victor-mono/archive/v1.0.2.zip",
"latest_url": "https://listed.to/p/vj6LKR3tus",
"marketing_url": "https://github.com/StuartMorrisAU/sn-victor-mono",
"thumbnail_url": "https://cdn.jsdelivr.net/gh/StuartMorrisAU/sn-victor-mono@latest/preview.png",
"layerable": true,
"sn": {
"main": "theme.css"
"main": "dist/theme.min.css"
},
"repository": {
"type": "git",
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"name": "sn-victor-mono",
"version": "1.0.1",
"main": "theme.css",
"version": "1.0.2",
"main": "dist/theme.css",
"sn": {
"main": "theme.css"
"main": "dist/theme.css"
},
"repository": {
"type": "git",
Expand Down
Binary file added preview.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
36 changes: 0 additions & 36 deletions theme.css

This file was deleted.

0 comments on commit 23ecb9c

Please sign in to comment.