feat: add dpdk post and code component and footnotes
This commit is contained in:
parent
aa8b9cd303
commit
20a6223eaf
11 changed files with 590 additions and 7 deletions
|
|
@ -58,4 +58,10 @@
|
|||
:global([data-nu-scheme-is='dark'] body code) {
|
||||
color: var(--bg-color);
|
||||
}
|
||||
:global(pre[class*='language-']) {
|
||||
margin: 0.5em 1rem !important;
|
||||
}
|
||||
:global(code[class*='language-'], pre[class*='language-']) {
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
</style>
|
||||
|
|
|
|||
|
|
@ -23,15 +23,16 @@
|
|||
}
|
||||
</script>
|
||||
|
||||
<a
|
||||
<a
|
||||
{...$$props}
|
||||
{...props}
|
||||
{href}
|
||||
on:mouseover={() => (spin = true)}
|
||||
on:focus={() => (spin = true)}
|
||||
on:mouseleave={() => (spin = false)}
|
||||
>
|
||||
{#if !disableIcon}
|
||||
<Icon path={internal ? mdiChevronRight : mdiLinkVariant} size="1rem" {spin} />
|
||||
{#if !disableIcon && !internal}
|
||||
<Icon path={internal ? mdiChevronRight : mdiLinkVariant} size="1rem" />
|
||||
{/if}
|
||||
<span class="text"><slot /></span>
|
||||
</a><style>
|
||||
|
|
|
|||
|
|
@ -1,4 +1,8 @@
|
|||
<li><slot /></li>
|
||||
<script lang="ts">
|
||||
export let id: string | undefined = undefined;
|
||||
</script>
|
||||
|
||||
<li {id}><slot /></li>
|
||||
|
||||
<style>
|
||||
li {
|
||||
|
|
|
|||
14
src/components/sup.svelte
Normal file
14
src/components/sup.svelte
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
<script lang="ts">
|
||||
export let id: string | undefined;
|
||||
</script>
|
||||
|
||||
<sup {id}><slot /></sup>
|
||||
|
||||
<style>
|
||||
sup {
|
||||
vertical-align: top;
|
||||
position: relative;
|
||||
top: -0.3em;
|
||||
left: -0.2em;
|
||||
}
|
||||
</style>
|
||||
Loading…
Add table
Add a link
Reference in a new issue