Compare commits

...

2 Commits

@ -1,15 +1,16 @@
---
printWidth: 80 printWidth: 80
tabWidth: 4 tabWidth: 4
useTabs: true useTabs: true
semi: false semi: false
singleQuote: true singleQuote: true
quoteProps: 'consistent' quoteProps: consistent
jsxSingleQuote: true jsxSingleQuote: true
trailingComma: 'es5' trailingComma: es5
bracketSpacing: true bracketSpacing: true
bracketSameLine: true bracketSameLine: true
arrowParens: 'always' arrowParens: always
htmlWhitespaceSensitivity: 'strict' htmlWhitespaceSensitivity: strict
vueIndentScriptAndStyle: true vueIndentScriptAndStyle: false
singleAttributePerLine: true singleAttributePerLine: true
plugins: ['prettier-plugin-tailwindcss'] plugins: [prettier-plugin-tailwindcss]

@ -16,9 +16,20 @@ body::-webkit-scrollbar,
} }
input { input {
@apply bg-primary border-none p-2; @apply border-none bg-primary p-2;
} }
input:focus { input:focus {
@apply bg-secondary border-none outline-none; @apply border-none bg-secondary outline-none;
}
/* Hide scrollbar for Chrome, Safari and Opera */
.scrollbar-hidden::-webkit-scrollbar {
display: none;
}
/* Hide scrollbar for IE, Edge and Firefox */
.scrollbar-hidden {
-ms-overflow-style: none; /* IE and Edge */
scrollbar-width: none; /* Firefox */
} }

@ -1,20 +1,23 @@
<script setup lang="ts"> <script setup lang="ts">
const note = useNote() const note = useNote()
const parsedMarkdown = computed(() => { const parsedMarkdown = computed(() => {
return stringToMarkdown(note.value.description) return stringToMarkdown(note.value.description)
}) })
</script> </script>
<template> <template>
<div class="flex h-full min-h-screen w-full flex-col items-center overflow-y-scroll bg-secondary px-12 py-4"> <div
<div class="h-full max-h-full w-full" v-html="parsedMarkdown"> class="scrollbar-hidden flex h-full min-h-screen w-full flex-col items-center overflow-y-scroll bg-secondary px-12 py-4">
</div> <div
</div> class="scrollbar-hidden h-full max-h-full w-full"
v-html="parsedMarkdown">
</div>
</div>
</template> </template>
<style scoped> <style scoped>
:deep(*) { :deep(*) {
@apply my-4 text-[#E6EDF3]; @apply my-4 text-[#E6EDF3];
} }
/* Headers */ /* Headers */
@ -24,64 +27,64 @@ const parsedMarkdown = computed(() => {
:deep(h4), :deep(h4),
:deep(h5), :deep(h5),
:deep(h6) { :deep(h6) {
@apply border-b border-lightgray pb-2; @apply border-b border-lightgray pb-2;
} }
:deep(h1) { :deep(h1) {
@apply mt-12 text-4xl; @apply mt-12 text-4xl;
} }
:deep(h2) { :deep(h2) {
@apply text-2xl; @apply text-2xl;
} }
:deep(h3) { :deep(h3) {
@apply text-lg; @apply text-lg;
} }
:deep(h4) { :deep(h4) {
@apply text-base; @apply text-base;
} }
:deep(h5) { :deep(h5) {
@apply text-sm; @apply text-sm;
} }
:deep(h6) { :deep(h6) {
@apply text-xs; @apply text-xs;
} }
/* Lists */ /* Lists */
:deep(ul li), :deep(ul li),
:deep(ol li) { :deep(ol li) {
@apply my-2 pl-8; @apply my-2 pl-8;
} }
:deep(ul) { :deep(ul) {
@apply list-inside list-disc; @apply list-inside list-disc;
} }
:deep(ol) { :deep(ol) {
counter-reset: list; counter-reset: list;
} }
:deep(ol li::before) { :deep(ol li::before) {
counter-increment: list; counter-increment: list;
content: counters(list, '.') ' '; content: counters(list, '.') ' ';
} }
/* Checkbox */ /* Checkbox */
:deep(input[type='checkbox']) { :deep(input[type='checkbox']) {
@apply mr-2; @apply mr-2;
} }
/* Code Block */ /* Code Block */
:deep(pre) { :deep(pre) {
@apply bg-lightgray p-2; @apply bg-lightgray p-2;
} }
/* Quotes */ /* Quotes */
:deep(blockquote) { :deep(blockquote) {
@apply border-l-4 border-l-[#E6EDF3] pl-4; @apply border-l-4 border-l-[#E6EDF3] pl-4;
} }
</style> </style>

Loading…
Cancel
Save