Files
gpx.studio/website/src/lib/components/docs/DocsContainer.svelte

84 lines
1.5 KiB
Svelte
Raw Normal View History

2024-09-20 13:22:05 +02:00
<script lang="ts">
import { _ } from 'svelte-i18n';
2024-09-20 13:22:05 +02:00
export let module;
2024-09-20 13:22:05 +02:00
</script>
<div class="markdown flex flex-col gap-3">
<svelte:component this={module} />
2024-09-20 13:22:05 +02:00
</div>
<style lang="postcss">
:global(.markdown) {
@apply text-muted-foreground;
}
2024-09-20 13:22:05 +02:00
:global(.markdown h1) {
@apply text-foreground;
@apply text-3xl;
@apply font-semibold;
@apply mb-3 pt-6;
}
2024-09-20 13:22:05 +02:00
:global(.markdown h2) {
@apply text-foreground;
@apply text-2xl;
@apply font-semibold;
@apply pt-3;
}
2024-09-20 13:22:05 +02:00
:global(.markdown h3) {
@apply text-foreground;
@apply text-lg;
@apply font-semibold;
@apply pt-1.5;
}
2024-09-20 13:22:05 +02:00
:global(.markdown p > button, .markdown li > button) {
@apply border;
@apply rounded-md;
@apply px-1;
}
2024-09-20 13:22:05 +02:00
:global(.markdown > a) {
@apply text-link;
@apply hover:underline;
2025-05-08 14:54:48 +02:00
@apply contents;
}
2024-09-20 13:22:05 +02:00
:global(.markdown p > a) {
@apply text-link;
@apply hover:underline;
}
2024-09-20 13:22:05 +02:00
:global(.markdown li > a) {
@apply text-link;
@apply hover:underline;
}
2024-09-20 13:22:05 +02:00
:global(.markdown kbd) {
@apply p-1;
@apply rounded-md;
@apply border;
}
2024-09-20 13:22:05 +02:00
:global(.markdown ul) {
@apply list-disc;
@apply pl-4;
}
2024-09-20 13:22:05 +02:00
:global(.markdown ol) {
@apply list-decimal;
@apply pl-4;
}
2024-09-20 13:22:05 +02:00
:global(.markdown li) {
@apply mt-1;
@apply first:mt-0;
}
2024-09-20 13:22:05 +02:00
:global(.markdown hr) {
@apply my-5;
}
2024-09-20 13:22:05 +02:00
</style>