Skip to content

Commit

Permalink
fix post design
Browse files Browse the repository at this point in the history
  • Loading branch information
yukikurage committed Jan 7, 2023
1 parent 0a3e710 commit 40bfb9d
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 13 deletions.
2 changes: 1 addition & 1 deletion src/Pages/PostInfo.purs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ postInfoPageComponent postIdSig = el "div" do
ch $ text $ pure $ "#" <> tag

ch $ el "div" do
useClass $ pure "w-full p-6 rounded shadow"
useClass $ pure "w-full pt-5 pb-12 px-10 rounded shadow"

useColor Primary Background
ch $ markdownComponent $ pure $ post.content
Expand Down
30 changes: 18 additions & 12 deletions src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,41 +5,40 @@
.markdown h1 {
@apply text-3xl;
@apply font-bold;
@apply my-5;
@apply my-7;
}

.markdown h2 {
@apply text-2xl;
@apply font-medium;
@apply my-4;
@apply ml-1;
@apply mt-6;
@apply mb-4;
}

.markdown h3 {
@apply text-xl;
@apply font-medium;
@apply my-3;
@apply ml-2;
@apply mt-5;
@apply mb-3;
}

.markdown h4 {
@apply text-xl;
@apply font-medium;
@apply my-3;
@apply ml-3;
@apply mt-4;
@apply mb-3;
}

.markdown h5 {
@apply text-lg;
@apply font-medium;
@apply my-3;
@apply ml-4;
@apply mt-4;
@apply mb-3;
}

.markdown p {
@apply text-base;
@apply my-2;
@apply ml-5;
}

.markdown pre {
Expand All @@ -48,7 +47,14 @@
@apply py-3;
@apply px-5;
@apply rounded;
@apply ml-6;
@apply my-3;
}

.markdown blockquote {
@apply border-l-4;
@apply border-gray-300;
@apply pl-4;
@apply py-1;
@apply my-3;
}

Expand All @@ -63,7 +69,7 @@

.markdown ul {
@apply list-disc;
@apply ml-8;
@apply ml-4;
@apply my-2;
}

Expand Down

0 comments on commit 40bfb9d

Please sign in to comment.