Skip to content

Commit

Permalink
improve rich text (#229)
Browse files Browse the repository at this point in the history
  • Loading branch information
wraeth-eth authored Nov 22, 2023
1 parent a64a01f commit 5a4e389
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
1 change: 1 addition & 0 deletions src/styles/quill-js-overrides.css
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
h1,
h2 {
@apply font-heading;
@apply mb-2;
}
p,
li {
Expand Down
15 changes: 11 additions & 4 deletions src/styles/rich-text.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,15 @@
@apply text-primary;
@apply hover:text-primary-hover;
}
h1 {
h1,
h2 {
@apply font-heading;
@apply mb-2;
}
h1 {
@apply text-2xl;
}
h2 {
@apply font-heading;
@apply text-xl;
}
blockquote {
Expand All @@ -24,8 +27,12 @@
@apply list-inside list-decimal;
}
ul {
@apply ml-2;
@apply list-inside list-disc;
@apply list-outside list-disc;
@apply ml-8;
@apply space-y-4;
li {
@apply pl-2;
}
}
pre {
@apply my-2;
Expand Down

1 comment on commit 5a4e389

@vercel
Copy link

@vercel vercel bot commented on 5a4e389 Nov 22, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.