Skip to content

Commit

Permalink
Fix list formatting in news body
Browse files Browse the repository at this point in the history
  • Loading branch information
arildm committed Apr 24, 2024
1 parent bf1b290 commit 4acdb86
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 10 deletions.
9 changes: 0 additions & 9 deletions src/corpus/config/CorpusConfiguration.vue
Original file line number Diff line number Diff line change
Expand Up @@ -265,12 +265,3 @@ async function submit(fields: Form) {
</div>
</PendingContent>
</template>

<style scoped>
.prose :deep(ul) {
padding-left: 2em;
}
.prose :deep(ul li) {
list-style-type: bullet;
}
</style>
2 changes: 1 addition & 1 deletion src/home/HomeNews.vue
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ function getDate(date: Date) {
</time>

<!-- eslint-disable-next-line vue/no-v-html -->
<div v-html="th(item.body)"></div>
<div v-html="th(item.body)" class="prose"></div>
</article>
</div>
</LayoutSection>
Expand Down
7 changes: 7 additions & 0 deletions src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,13 @@ select {
@apply font-normal;
}

.prose ul {
padding-left: 2em;
}
.prose ul li {
list-style-type: disc;
}

@layer components {
.mink-button {
@apply p-1 px-2 rounded shadow bg-zinc-100 text-gray-700 cursor-pointer hover:drop-shadow-md hover:brightness-110 transition-all;
Expand Down

0 comments on commit 4acdb86

Please sign in to comment.