diff --git a/package.json b/package.json
index 5325d14..9b03586 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "logseq-hypothesis",
- "version": "0.1.4",
+ "version": "0.1.5",
"main": "dist/index.html",
"author": "c6p",
"scripts": {
diff --git a/src/icomoon.woff b/src/icomoon.woff
new file mode 100644
index 0000000..934de85
Binary files /dev/null and b/src/icomoon.woff differ
diff --git a/src/main.js b/src/main.js
index 0a5d5ef..9bb1ea8 100644
--- a/src/main.js
+++ b/src/main.js
@@ -3,6 +3,7 @@ import Vue from 'vue'
import vSelect from 'vue-select'
import App from './App.vue'
import "./index.css"
+import Font from "./icomoon.woff"
function main() {
const pluginId = logseq.baseInfo.id;
@@ -28,29 +29,39 @@ function main() {
});
logseq.provideStyle(String.raw`
- .icon-hypothesis {
- background-image: url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 384 448' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Ctitle%3EGroup%3C/title%3E%3Cg id='Page-1' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cg id='Group'%3E%3Cpath d='M240.941176,384 L352.003017,384 C369.64758,384 384,369.674463 384,352.003017 L384,31.9969832 C384,14.3524196 369.674463,0 352.003017,0 L31.9969832,0 C14.3524196,0 0,14.3255373 0,31.9969832 L0,352.003017 C0,369.64758 14.3255373,384 31.9969832,384 L143.058824,384 L192,448 L240.941176,384 L240.941176,384 Z' id='Rectangle-2-Copy-19' fill='%23BD1C2B'%3E%3C/path%3E%3Cpath d='M304,319.790403 C321.673112,319.790403 336,305.510435 336,287.895201 C336,270.279968 321.673112,256 304,256 C286.326888,256 272,270.279968 272,287.895201 C272,305.510435 286.326888,319.790403 304,319.790403 Z' id='Path' fill='%23FFFFFF'%3E%3C/path%3E%3Cpath d='M112.129807,64 L112.129807,176.030906 C112.129807,176.030907 128.173076,144.049455 160,144.04945 C192,144.049446 224.432693,160 224.43269,209.740579 L224.43269,320 L176.302883,320 L176.302883,224.055632 C176.302883,198 160,188 144,192 C128,196 112.129807,213 112.129807,248.04636 L112.129807,320 L64,320 L64,64' id='Path' fill='%23FFFFFF'%3E%3C/path%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
- background-repeat: no-repeat;
- background-position: 50% 50%;
- width: 1em;
- height: 1em;
- display: inline-block;
- padding: 0.25rem;
- margin: 0 0.25rem;
+ @font-face {
+ font-family: 'icomoon';
+ src: url(${Font}) format('woff');
+ font-weight: normal;
+ font-style: normal;
+ font-display: block;
}
- div[id^="hypothesis__/"] .block-properties:not(.page-properties) { display: none;
+ [class^="icon-"], [class*=" icon-"] {
+ font-family: 'icomoon' !important;
+ speak: never;
+ font-style: normal;
+ font-weight: normal;
+ font-variant: normal;
+ text-transform: none;
+ line-height: 1;
+ -webkit-font-smoothing: antialiased;
+ }
+ .icon-hypothesis:before {
+ content: "\e900";
+ }
+ div[id^="hypothesis__/"] .block-properties:not(.page-properties) { display: none; }
`);
logseq.App.registerUIItem('toolbar', {
key: 'hypothesis',
- template: `
+ template: `
`,
});
logseq.App.registerUIItem('pagebar', {
key: 'hypothesis-page',
- template: `
+ template: `
`,
});