mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-20 16:40:13 +01:00
This commit is contained in:
parent
8ebb27d695
commit
4a343c127e
4 changed files with 7 additions and 6 deletions
|
|
@ -8,6 +8,7 @@
|
||||||
@import "switch";
|
@import "switch";
|
||||||
@import "slider";
|
@import "slider";
|
||||||
@import "dialog";
|
@import "dialog";
|
||||||
|
@import "keyframes";
|
||||||
|
|
||||||
.protyle-wysiwyg a {
|
.protyle-wysiwyg a {
|
||||||
color: var(--b3-protyle-inline-link-color);
|
color: var(--b3-protyle-inline-link-color);
|
||||||
|
|
|
||||||
|
|
@ -408,11 +408,12 @@ const renderPDF = (id: string) => {
|
||||||
<meta name="mobile-web-app-capable" content="yes"/>
|
<meta name="mobile-web-app-capable" content="yes"/>
|
||||||
<meta name="apple-mobile-web-app-status-bar-style" content="black">
|
<meta name="apple-mobile-web-app-status-bar-style" content="black">
|
||||||
<link rel="stylesheet" type="text/css" id="themeDefaultStyle" href="${servePath}/stage/build/export/base.css?${Constants.SIYUAN_VERSION}"/>
|
<link rel="stylesheet" type="text/css" id="themeDefaultStyle" href="${servePath}/stage/build/export/base.css?${Constants.SIYUAN_VERSION}"/>
|
||||||
|
<link rel="stylesheet" type="text/css" id="themeStyle" href="${servePath}/appearance/themes/${window.siyuan.config.appearance.themeLight}/${window.siyuan.config.appearance.customCSS ? "custom" : "theme"}.css?${Constants.SIYUAN_VERSION}"/>
|
||||||
</head>
|
</head>
|
||||||
<body
|
<body>
|
||||||
<div id="loading" class="b3-dialog b3-dialog--open">
|
<div class="b3-dialog__scrim" style="opacity: 1"></div>
|
||||||
<div class="b3-dialog__scrim" style="background-color: #212224"></div>
|
<div style="position: fixed;top: 45vh;width: 70vw;left: 15vw;color:#fff;z-index:400;">
|
||||||
<img style="position: absolute;width: 36vh;" src="${servePath}/stage/icon.png">
|
<div style="margin: 8px 0;height: 8px;border-radius: 4px;overflow: hidden;background-color:#fff;"><div style="background-color: var(--b3-theme-primary);height: 8px;background-image: linear-gradient(-45deg, rgba(255, 255, 255, 0.2) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0.2) 75%, transparent 75%, transparent);animation: stripMove 450ms linear infinite;background-size: 50px 50px;"></div></div>
|
||||||
</div>
|
</div>
|
||||||
</body></html>`));
|
</body></html>`));
|
||||||
fetchPost("/api/export/exportPreviewHTML", {
|
fetchPost("/api/export/exportPreviewHTML", {
|
||||||
|
|
|
||||||
|
|
@ -124,7 +124,7 @@ export class Toolbar {
|
||||||
});
|
});
|
||||||
const types = this.getCurrentType();
|
const types = this.getCurrentType();
|
||||||
types.forEach(item => {
|
types.forEach(item => {
|
||||||
if (["a", "block-ref", "text", "file-annotation-ref", "inline-math"].includes(item)) {
|
if (["a", "block-ref", "text", "file-annotation-ref", "inline-math", ""].includes(item)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
this.element.querySelector(`[data-type="${item}"]`).classList.add("protyle-toolbar__item--current");
|
this.element.querySelector(`[data-type="${item}"]`).classList.add("protyle-toolbar__item--current");
|
||||||
|
|
|
||||||
|
|
@ -148,7 +148,6 @@ export const onGetConfig = (isStart: boolean) => {
|
||||||
resizeDrag();
|
resizeDrag();
|
||||||
}, 200);
|
}, 200);
|
||||||
});
|
});
|
||||||
|
|
||||||
if (window.siyuan.config.newbie) {
|
if (window.siyuan.config.newbie) {
|
||||||
mountHelp();
|
mountHelp();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue