feat: styling
This commit is contained in:
parent
8424b7b98b
commit
4adab40932
17 changed files with 330 additions and 36 deletions
29
components/PostBody.vue
Normal file
29
components/PostBody.vue
Normal file
|
@ -0,0 +1,29 @@
|
|||
<script setup lang="ts">
|
||||
import type { Post } from '~/api-client/types'
|
||||
|
||||
const props = defineProps<{
|
||||
post: Post
|
||||
}>()
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div class="post-body" v-html="sanitize(post.content)" />
|
||||
</template>
|
||||
|
||||
<style>
|
||||
.post-body a {
|
||||
--at-apply: text-primary hover:underline;
|
||||
}
|
||||
.post-body b {
|
||||
--at-apply: font-bold;
|
||||
}
|
||||
.post-body p {
|
||||
--at-apply: my-1;
|
||||
}
|
||||
.post-body a .invisible {
|
||||
--at-apply: hidden;
|
||||
}
|
||||
.post-body a .ellipsis {
|
||||
--at-apply: truncate overflow-hidden ws-nowrap;
|
||||
}
|
||||
</style>
|
Loading…
Add table
Add a link
Reference in a new issue