feat: support PDFs outside assets

For example, ![Book Title](file:///Users/tiensonqin/Desktop/1.pdf)
should be opened by the pdf viewer and allows highlights.
This commit is contained in:
Tienson Qin
2021-08-07 22:27:00 +08:00
parent 86f26065bc
commit 40eba4dade
4 changed files with 118 additions and 174 deletions

View File

@@ -14,36 +14,6 @@
.extensions__pdf {
&-assets-uploader {
margin-top: -15px;
padding-bottom: 15px;
.ui__button {
font-size: 12px;
margin-right: 5px;
padding: 2px 8px;
&.is-link {
background-color: transparent;
padding: 2px 8px;
position: relative;
top: 2px;
color: var(--ls-primary-text-color);
&:hover {
svg {
opacity: 1;
}
}
}
svg {
transform: scale(.75);
opacity: .7;
}
}
}
&-container {
display: flex;
}
@@ -548,7 +518,7 @@
cursor: alias;
&:before {
content: "📔📌 ";
content: "📌 ";
}
}