mirror of
https://github.com/ClovertaTheTrilobita/SanYeCao-blog.git
synced 2026-07-03 15:41:26 +00:00
Merge pull request #14 from ClovertaTheTrilobita/dev
Added mermaid support
This commit is contained in:
commit
0ae9e746a8
3 changed files with 17 additions and 7 deletions
|
|
@ -20,6 +20,10 @@ export default defineConfig({
|
|||
},
|
||||
integrations: [sitemap(), svelte()],
|
||||
markdown: {
|
||||
syntaxHighlight: {
|
||||
type: 'shiki',
|
||||
excludeLangs: ['mermaid', 'math'],
|
||||
},
|
||||
rehypePlugins: [rehypeMermaid],
|
||||
},
|
||||
})
|
||||
|
|
|
|||
|
|
@ -36,18 +36,17 @@
|
|||
height: 2rem;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
opacity: 0;
|
||||
transform: scale(1.3);
|
||||
transform:
|
||||
scale(1.3)
|
||||
translateY(-70px);
|
||||
pointer-events: none;
|
||||
/* transition:
|
||||
opacity 160ms ease,
|
||||
transform 160ms ease; */
|
||||
transition:
|
||||
transform 160ms linear;
|
||||
z-index: 9999;
|
||||
}
|
||||
|
||||
#page-loading-indicator.is-active {
|
||||
opacity: 1;
|
||||
transform: scale(1);
|
||||
transform: scale(1) translateY(0px);
|
||||
}
|
||||
|
||||
.page-loading-spinner {
|
||||
|
|
|
|||
|
|
@ -49,6 +49,13 @@ td code {
|
|||
background: rgba(127, 127, 127, 0.12);
|
||||
}
|
||||
|
||||
article svg.flowchart,
|
||||
article svg[class*="flowchart"],
|
||||
article svg[id^="mermaid-"] {
|
||||
display: block;
|
||||
margin: 1.5rem auto;
|
||||
}
|
||||
|
||||
html {
|
||||
font-family: "Maple Mono", "Maple Mono CN", monospace;
|
||||
background-color: #ffffff;
|
||||
|
|
|
|||
Loading…
Reference in a new issue