Update markdown styling

main
TZGyn 2 years ago
parent 4b260730a6
commit bb51f9ab4a
Signed by: TZGyn
GPG Key ID: 122EAF77AE81FD4A

@ -6,7 +6,7 @@ const parsedMarkdown = computed(() => {
</script> </script>
<template> <template>
<div class="bg-secondary flex h-full min-h-screen w-full flex-col items-center overflow-y-scroll px-12 py-4"> <div class="flex h-full min-h-screen w-full flex-col items-center overflow-y-scroll bg-secondary px-12 py-4">
<div class="h-full max-h-full w-full" v-html="parsedMarkdown"> <div class="h-full max-h-full w-full" v-html="parsedMarkdown">
</div> </div>
</div> </div>
@ -17,21 +17,18 @@ const parsedMarkdown = computed(() => {
@apply my-4 text-[#E6EDF3]; @apply my-4 text-[#E6EDF3];
} }
:deep(h1) { /* Headers */
@apply mt-12;
}
:deep(h1), :deep(h1),
:deep(h2), :deep(h2),
:deep(h3), :deep(h3),
:deep(h4), :deep(h4),
:deep(h5), :deep(h5),
:deep(h6) { :deep(h6) {
@apply border-lightgray border-b pb-2; @apply border-b border-lightgray pb-2;
} }
:deep(h1) { :deep(h1) {
@apply text-4xl; @apply mt-12 text-4xl;
} }
:deep(h2) { :deep(h2) {
@ -54,23 +51,36 @@ const parsedMarkdown = computed(() => {
@apply text-xs; @apply text-xs;
} }
/* Lists */
:deep(ul li), :deep(ul li),
:deep(ol li) { :deep(ol li) {
@apply ml-8; @apply my-2 pl-8;
}
:deep(ul) {
@apply list-inside list-disc;
}
:deep(ol) {
counter-reset: list;
} }
:deep(li) { :deep(ol li::before) {
@apply my-0; counter-increment: list;
content: counters(list, '.') ' ';
} }
/* Checkbox */
:deep(input[type='checkbox']) { :deep(input[type='checkbox']) {
@apply mr-2; @apply mr-2;
} }
/* Code Block */
:deep(pre) { :deep(pre) {
@apply bg-lightgray p-2; @apply bg-lightgray p-2;
} }
/* Quotes */
:deep(blockquote) { :deep(blockquote) {
@apply border-l-4 border-l-[#E6EDF3] pl-4; @apply border-l-4 border-l-[#E6EDF3] pl-4;
} }

Loading…
Cancel
Save